/* ══════════════════════════════════════════════════════════════════
   PRODUCT RECOMMENDATION BLOCK - COMPLETE STYLESHEET
   Version: 40.0.0 (Fixed Syntax Errors & Dynamic Image Size)
   ══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   1. BASE CARD & RESET
   ──────────────────────────────────────── */
.prb-card, .prb-card * {
    box-sizing: border-box;
}

.prb-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    max-width: 100%;
}

.prb-card h3.prb-title, .prb-card h4 {
    margin: 0; padding: 0; border: none; background: none; font-family: inherit;
}
.prb-card ul, .prb-card ol { list-style: none; padding: 0; margin: 0; }

/* ───────────────────────────────────────
   2. LAYOUT (Body, Image, Content)
   ─────────────────────────────────────── */
.prb-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
}

.prb-image {
    flex: 0 0 auto;
    /* FIX: Removed hardcoded max-width: 250px so the slider works */
    width: 100%;
}

.prb-image img {
    width: 100%; height: auto; border-radius: 8px; object-fit: contain; background: #f9fafb;
}

.prb-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ────────────────────────────────────────
   3. URGENCY & BADGES
   ──────────────────────────────────────── */
.prb-urgency-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    border-radius: 4px; z-index: 20;
}

.prb-micro-badge {
    font-size: 11px; padding: 3px 8px; border-radius: 4px; background: #f3f4f6; color: #4b5563; font-weight: 600;
}
.prb-badge-verified { background: #dcfce7; color: #166534; }

.prb-badge-editors {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid rgba(255,255,255,0.2);
}

/* 10 Editor's Choice Styles */
.prb-editors-choice-classic-gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.prb-editors-choice-modern-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.prb-editors-choice-neon-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; }
.prb-editors-choice-minimalist-black { background: #1f2937; color: #ffffff; }
.prb-editors-choice-royal-purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #6b21a8; }
.prb-editors-choice-sunset-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }
.prb-editors-choice-ocean-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #115e59; }
.prb-editors-choice-ruby-red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; }
.prb-editors-choice-slate-gray { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #334155; }
.prb-editors-choice-premium-silver { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #475569; border: 1px solid #cbd5e1; }

/* ────────────────────────────────────────
   4. ANNOUNCEMENT BAR (10 Styles)
   ──────────────────────────────────────── */
.prb-announcement-bar {
    position: relative;
    z-index: 15;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}
.prb-ann-icon { font-size: 16px; flex-shrink: 0; }
.prb-ann-text { flex: 1; line-height: 1.4; }

.prb-ann-style-modern { background: #f8f9fa; border: 1px solid #e9ecef; color: #495057; }
.prb-ann-style-alert { background: #fff3cd; border-left: 4px solid #ffc107; color: #856404; }
.prb-ann-style-success { background: #d1e7dd; border-left: 4px solid #198754; color: #0f5132; }
.prb-ann-style-urgency { background: #f8d7da; border-left: 4px solid #dc3545; color: #842029; }
.prb-ann-style-premium { background: linear-gradient(90deg, #fff9c4, #fff); border: 1px solid #fbc02d; color: #f57f17; }
.prb-ann-style-tech { background: #e7f1ff; border-left: 4px solid #0d6efd; color: #084298; }
.prb-ann-style-dark { background: #212529; color: #f8f9fa; }
.prb-ann-style-glass { background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); color: #333; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.prb-ann-style-retro { background: #fff; border: 2px dashed #333; color: #333; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.prb-ann-style-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3); }

/* ───────────────────────────────────────
   5. TITLE, STARS & DESCRIPTION
   ─────────────────────────────────────── */
.prb-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prb-title { flex: 1; line-height: 1.3; margin: 0; }
.prb-stars { color: #d1d5db; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.prb-star.filled { color: #FBBF24; }
.prb-desc { color: #4b5563; font-size: 14px; line-height: 1.5; margin: 0; }

/* ────────────────────────────────────────
   6. PROS & CONS
   ──────────────────────────────────────── */
.prb-pros-cons-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0; padding: 20px; background: #f9fafb; border-radius: 12px; border: 1px solid #e5e7eb; }
.prb-pros-column, .prb-cons-column { min-width: 0; }
.prb-pros-title, .prb-cons-title { font-size: 15px; font-weight: 700; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
.prb-pros-title { color: #059669; } .prb-cons-title { color: #dc2626; }
.prb-pros-list, .prb-cons-list { list-style: none; padding: 0; margin: 0; }
.prb-pro-item, .prb-con-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; line-height: 1.5; }
.prb-pro-item:last-child, .prb-con-item:last-child { border-bottom: none; }
.prb-pro-icon { color: #059669; font-weight: bold; font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.prb-con-icon { color: #dc2626; font-weight: bold; font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.prb-pro-text, .prb-con-text { color: #374151; }

/* ───────────────────────────────────────
   7. COUNTDOWN TIMER
   ────────────────────────────────────── */
.prb-countdown { background: #fef3c7; border: 1px solid #fbbf24; border-radius: 8px; padding: 16px; margin: 10px 0; text-align: center; }
.prb-countdown-label { font-size: 14px; font-weight: 600; color: #92400e; margin-bottom: 12px; }
.prb-countdown-timer { display: flex; justify-content: center; gap: 16px; }
.prb-countdown-unit { display: flex; flex-direction: column; align-items: center; }
.prb-countdown-num { font-size: 24px; font-weight: 700; color: #92400e; font-family: 'Courier New', monospace; }
.prb-countdown-text { font-size: 11px; color: #a16207; text-transform: uppercase; margin-top: 4px; }

/* ──────────────────────────────────────
   8. COUPON CODE (BULLETPROOF LAYOUT FIX)
   ────────────────────────────────────── */
.prb-coupon-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 15px !important;
    border-radius: 8px;
    position: relative;
    clear: both;
    float: none !important;
    box-sizing: border-box;
    overflow: visible !important;
    z-index: 1;
}

.prb-coupon-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 15px;
    display: block;
}

.prb-coupon-code-display {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.prb-coupon-code {
    font-family: monospace !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #065f46 !important;
    border: 2px solid #a7f3d0 !important;
    flex: 1 !important;
    text-align: center !important;
    min-width: 150px !important;
    box-sizing: border-box !important;
}

.prb-coupon-copy-btn {
    background: #10b981 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
.prb-coupon-copy-btn:hover { background: #059669 !important; }

.prb-coupon-expired { color: #ef4444; font-weight: 700; padding: 10px 16px; background: #fee2e2; border-radius: 6px; }

.prb-coupon-timer-section {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.prb-notify-btn { background: #3b82f6; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* Coupon Design Styles */
.prb-coupon-classic-dashed { background: #f0fdf4; border: 2px dashed #10b981; }
.prb-coupon-modern-solid { background: #ffffff; border: 1px solid #e5e7eb; border-left: 4px solid #3b82f6; }
.prb-coupon-gradient-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #ffffff; border: none; }
.prb-coupon-ticket-style { background: #fff; border: 1px dashed #cbd5e1; color: #475569; }
.prb-coupon-minimalist-line { background: transparent; border: none; border-bottom: 2px solid #000; padding: 10px 0; border-radius: 0; color: #000; }
.prb-coupon-dark-mode { background: #1f2937; color: #f3f4f6; border: 1px solid #374151; }
.prb-coupon-neon-glow { background: #000; color: #0ff; border: 1px solid #0ff; box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff; }
.prb-coupon-heavy-rounded { background: #fef3c7; border: 4px solid #f59e0b; border-radius: 24px; color: #92400e; }
.prb-coupon-outline-only { background: transparent; border: 2px solid #ef4444; color: #ef4444; }
.prb-coupon-badge-compact { background: #e0e7ff; color: #3730a3; padding: 10px 20px; display: inline-block !important; border-radius: 50px; font-weight: bold; width: auto !important; }

/* ────────────────────────────────────────
   9. BUTTONS (FIXED LAYOUT - NO OVERLAP)
   ──────────────────────────────────────── */
.prb-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

.prb-btn {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 11 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
    border-radius: 6px;
}

.prb-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.prb-price { font-size: 15px; font-weight: 700; }
.prb-store { font-size: 14px; font-weight: 500; }

.prb-btn-default { border-radius: 6px; }
.prb-btn-pill { border-radius: 50px; }
.prb-btn-square { border-radius: 0; }
.prb-btn-gradient { background: linear-gradient(135deg, var(--btn-bg, #000) 0%, #4A6CF7 100%) !important; color: #fff !important; }
.prb-btn-outline { background: transparent !important; border: 2px solid var(--btn-bg, #000); color: var(--btn-bg, #000) !important; }
.prb-btn-outline:hover { background: var(--btn-bg, #000) !important; color: #fff !important; }
.prb-btn-shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.prb-btn-oos { opacity: 0.6; cursor: not-allowed; background: #9ca3af !important; }
.prb-btn-alternative { border: 2px solid #10b981; }
.prb-oos-badge, .prb-alt-badge { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.2); }

/* ───────────────────────────────────────
   10. EMAIL, FAQ, TERMS, STICKY
   ─────────────────────────────────────── */
.prb-email-capture { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; margin: 10px 0; clear: both; }
.prb-email-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 12px 0; }
.prb-email-inputs { display: flex; gap: 12px; margin-bottom: 12px; }
.prb-email-input { flex: 1; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.prb-email-btn { width: 100%; padding: 12px; background: #4A6CF7; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.prb-email-privacy { font-size: 12px; color: #6b7280; margin: 8px 0 0 0; text-align: center; }

.prb-terms { font-size: 11px; color: #9ca3af; margin-top: 16px; line-height: 1.5; border-top: 1px solid #f3f4f6; padding-top: 12px; }

.prb-faq { margin: 10px 0; clear: both; }
.prb-faq-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 12px 0; }
.prb-faq-item { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.prb-faq-question { padding: 12px 16px; background: #f9fafb; cursor: pointer; font-weight: 600; font-size: 14px; }
.prb-faq-answer { padding: 12px 16px; font-size: 14px; color: #4b5563; line-height: 1.6; }

.prb-sticky-mobile-btn { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; z-index: 1000; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); text-align: center; display: none; }
.prb-sticky-link { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }

/* ──────────────────────────────────────
   11. RESPONSIVE
   ─────────────────────────────────────── */
@media (max-width: 768px) {
    .prb-body { flex-direction: column; }
    .prb-image { max-width: 100%; margin-bottom: 15px; }
    .prb-pros-cons-container { grid-template-columns: 1fr; }
    .prb-btn { flex-direction: column; text-align: center; gap: 5px; }
    .prb-coupon-code-display { flex-direction: column; }
    .prb-coupon-code { width: 100%; }
    .prb-sticky-mobile-btn { display: block; }
}

/* ══════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS STYLES
   ════════════════════════════════════════════════════════════════ */
.prb-toc-container {
    --prb-toc-primary: #3b82f6;
    --prb-toc-hover: #2563eb;
    --prb-toc-active: #1e40af;
    --prb-toc-separator: #e2e8f0;
    --prb-toc-font: inherit;
    background: #ffffff;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    font-family: var(--prb-toc-font);
    transition: all 0.3s ease;
}

.prb-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.prb-toc-header:hover { background: #f1f5f9; }

.prb-toc-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.prb-toc-chevron {
    color: #64748b;
    transition: transform 0.3s ease;
}

.prb-toc-container.is-expanded .prb-toc-chevron { transform: rotate(180deg); }

.prb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--prb-toc-separator);
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.prb-toc-container.is-collapsed .prb-toc-list {
    max-height: 0;
    opacity: 0;
    border-top: none;
}

.prb-toc-item { margin: 0; }

.prb-toc-link {
    display: block;
    padding: 12px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.prb-toc-link:hover {
    background: #f8fafc;
    color: var(--prb-toc-hover);
    border-left-color: var(--prb-toc-primary);
    padding-left: 24px;
}

.prb-toc-link.active {
    background: #eff6ff;
    color: var(--prb-toc-active);
    font-weight: 600;
    border-left-color: var(--prb-toc-primary);
}

.prb-toc-indent .prb-toc-link { padding-left: 40px; font-size: 14px; }
.prb-toc-level-3 .prb-toc-link { padding-left: 40px; font-size: 14px; }
.prb-toc-level-4 .prb-toc-link { padding-left: 60px; font-size: 13px; }

/* Separator Styles */
.prb-toc-separator-solid .prb-toc-item { border-bottom: 1px solid var(--prb-toc-separator); }
.prb-toc-separator-dashed .prb-toc-item { border-bottom: 1px dashed var(--prb-toc-separator); }
.prb-toc-separator-dotted .prb-toc-item { border-bottom: 1px dotted var(--prb-toc-separator); }
.prb-toc-separator-double .prb-toc-item { border-bottom: 2px double var(--prb-toc-separator); }
.prb-toc-separator-gradient .prb-toc-item { border-bottom: 1px solid transparent; background: linear-gradient(to right, var(--prb-toc-primary), transparent) bottom no-repeat; background-size: 100% 1px; }
.prb-toc-separator-none .prb-toc-item { border-bottom: none; }

/* 22 TOC Design Styles */
.prb-toc-style-modern { border-left: 4px solid var(--prb-toc-primary); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.prb-toc-style-minimal { border: 1px solid #e5e7eb; box-shadow: none; }
.prb-toc-style-minimal .prb-toc-header { background: transparent; }
.prb-toc-style-classic { border: 2px solid var(--prb-toc-primary); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.prb-toc-style-boxed { border: 3px solid var(--prb-toc-primary); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.prb-toc-style-sidebar { border-left: 5px solid var(--prb-toc-primary); box-shadow: 4px 0 8px rgba(0,0,0,0.1); }
.prb-toc-style-floating { box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 16px; border: none; }
.prb-toc-style-gradient { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border-left: 4px solid var(--prb-toc-primary); }
.prb-toc-style-glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.prb-toc-style-neumorphism { background: #f0f4f8; box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff; border: none; }
.prb-toc-style-outline { border: 2px dashed var(--prb-toc-primary); box-shadow: none; }
.prb-toc-style-bordered { border: 4px solid var(--prb-toc-primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.prb-toc-style-compact { padding: 12px; }
.prb-toc-style-compact .prb-toc-link { padding: 8px 12px; font-size: 14px; }
.prb-toc-style-expanded .prb-toc-link { padding: 16px 20px; }
.prb-toc-style-accordion { border: 1px solid #e5e7eb; }
.prb-toc-style-tabs .prb-toc-header { background: var(--prb-toc-primary); color: white; }
.prb-toc-style-tabs .prb-toc-title { color: white; }
.prb-toc-style-pill { border-radius: 50px; border: 2px solid var(--prb-toc-primary); }
.prb-toc-style-chip .prb-toc-link { display: inline-block; background: #f3f4f6; border-radius: 16px; padding: 8px 16px; margin: 4px 8px; }
.prb-toc-style-card { border: 1px solid #e5e7eb; }
.prb-toc-style-card .prb-toc-item { background: #f9fafb; margin: 4px; border-radius: 6px; }
.prb-toc-style-list .prb-toc-link:before { content: "•"; color: var(--prb-toc-primary); font-weight: bold; margin-right: 8px; }
.prb-toc-style-tree .prb-toc-level-3 .prb-toc-link:before { content: "├─ "; color: var(--prb-toc-primary); }
.prb-toc-style-elegant { border-left: 3px solid var(--prb-toc-primary); background: linear-gradient(to right, #fafafa, #ffffff); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.prb-toc-style-professional { border: 1px solid #d1d5db; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* TOC Mobile Responsive */
@media (max-width: 768px) {
    .prb-toc-container { margin: 1.5rem 0; border-radius: 8px; }
    .prb-toc-header { padding: 14px 16px; }
    .prb-toc-link { padding: 10px 16px; font-size: 14px; }
}

/* TOC Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .prb-toc-container { background: #1e293b; }
    .prb-toc-header { background: #0f172a; }
    .prb-toc-title { color: #f1f5f9; }
    .prb-toc-list { border-top-color: #334155; }
    .prb-toc-link { color: #cbd5e1; }
    .prb-toc-link:hover { background: #334155; color: var(--prb-toc-primary); }
    .prb-toc-link.active { background: #1e3a8a; color: var(--prb-toc-primary); }
}

/* ════════════════════════════════════════════════════════════════
   TOC CORNER BADGES - 20 PREMIUM DESIGNS
   ════════════════════════════════════════════════════════════════ */
.prb-toc-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    max-width: 95px;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.prb-badge-style-1 { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #d4af37 100%); color: #1a1a1a; border-radius: 50%; width: 85px; height: 85px; border: 3px solid #fff; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.5); font-size: 9px; font-weight: 800; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); }
.prb-badge-style-2 { background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #a8a8a8 100%); color: #2c2c2c; clip-path: polygon(50% 0%, 100% 20%, 100% 75%, 50% 100%, 0% 75%, 0% 20%); width: 75px; height: 85px; padding-top: 25px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); font-size: 9px; font-weight: 800; }
.prb-badge-style-3 { background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #b91c1c 100%); color: #fff; clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%); width: 95px; height: 45px; box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4); font-size: 10px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.prb-badge-style-4 { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%); color: #fff; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 85px; height: 85px; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-5 { background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%); color: #fff; border-radius: 25px; padding: 12px 18px; width: auto; max-width: 110px; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); font-size: 10px; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.3); }
.prb-badge-style-6 { background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #7e22ce 100%); color: #fff; border-radius: 12px 12px 0 0; padding: 12px 10px; width: 85px; height: 55px; border-bottom: 4px solid #fbbf24; box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-7 { background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #111827 100%); color: #fbbf24; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); width: 75px; height: 75px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); font-size: 8px; font-weight: 800; border: 2px solid #fbbf24; }
.prb-badge-style-8 { background: linear-gradient(135deg, #cd7f32 0%, #da9150 50%, #a0522d 100%); color: #fff; border-radius: 50%; width: 80px; height: 80px; border: 3px solid #fff; box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.3); font-size: 9px; font-weight: 800; }
.prb-badge-style-9 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); color: #1a1a1a; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15% 50%); width: 90px; height: 40px; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-10 { background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #dc2626 100%); color: #fff; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); width: 80px; height: 80px; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-11 { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #0284c7 100%); color: #fff; clip-path: polygon(50% 0%, 100% 20%, 100% 75%, 50% 100%, 0% 75%, 0% 20%); width: 75px; height: 85px; padding-top: 25px; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-12 { background: linear-gradient(135deg, #22c55e 0%, #4ade80 50%, #16a34a 100%); color: #fff; border-radius: 50%; width: 75px; height: 75px; border: 3px solid #fff; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-13 { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%); color: #1f2937; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 85px; height: 85px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); font-size: 9px; font-weight: 800; border: 2px solid #fff; }
.prb-badge-style-14 { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #7c3aed 100%); color: #fff; clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%); width: 95px; height: 45px; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); font-size: 10px; font-weight: 700; }
.prb-badge-style-15 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%); color: #fff; clip-path: polygon(50% 0%, 100% 20%, 100% 75%, 50% 100%, 0% 75%, 0% 20%); width: 75px; height: 85px; padding-top: 25px; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-16 { background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #dc2626 100%); color: #fff; border-radius: 50%; width: 75px; height: 75px; border: 3px dashed #fff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); font-size: 8px; font-weight: 800; }
.prb-badge-style-17 { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%); color: #fff; border-radius: 8px; padding: 10px 15px; width: auto; max-width: 110px; box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4); font-size: 9px; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.2); }
.prb-badge-style-18 { background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #059669 100%); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15% 50%); width: 90px; height: 40px; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); font-size: 9px; font-weight: 800; }
.prb-badge-style-19 { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%); color: #fbbf24; border-radius: 50%; width: 80px; height: 80px; border: 3px solid #fbbf24; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); font-size: 9px; font-weight: 800; }
.prb-badge-style-20 { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); color: #fff; border-radius: 15px; padding: 12px 18px; width: auto; max-width: 110px; box-shadow: 0 4px 20px rgba(118, 75, 162, 0.5); font-size: 9px; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }

@media (max-width: 768px) {
    .prb-toc-badge { top: 10px; right: 10px; transform: scale(0.85); transform-origin: top right; }
}

/* ═════════════════════════════════════════════════════════════════
   ANALYTICS DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════ */
.prb-dashboard { max-width: 1400px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.prb-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.prb-dash-title { font-size: 28px; font-weight: 700; color: #1f2937; margin: 0; }
.prb-dash-subtitle { color: #6b7280; margin: 5px 0 0 0; font-size: 14px; }
.prb-dash-actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.prb-theme-toggle { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 18px; transition: all 0.3s ease; }
.prb-theme-toggle:hover { background: #e5e7eb; }
.prb-select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 14px; cursor: pointer; }
.prb-export-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #10b981; color: #fff; text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; }
.prb-export-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.prb-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.prb-stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; }
.prb-stat-card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); transform: translateY(-2px); }
.prb-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.prb-icon-blue { background: #dbeafe; color: #3b82f6; }
.prb-icon-green { background: #d1fae5; color: #10b981; }
.prb-icon-orange { background: #fed7aa; color: #f97316; }
.prb-icon-purple { background: #e9d5ff; color: #8b5cf6; }
.prb-stat-info { flex: 1; }
.prb-stat-label { font-size: 13px; color: #6b7280; margin-bottom: 5px; }
.prb-stat-value { font-size: 24px; font-weight: 700; color: #1f2937; }

.prb-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; overflow: hidden; }
.prb-panel-full { grid-column: 1 / -1; }
.prb-panel-header { padding: 20px; border-bottom: 1px solid #e5e7eb; }
.prb-panel-title { font-size: 18px; font-weight: 600; color: #1f2937; margin: 0; }
.prb-panel-body { padding: 20px; }
.prb-no-pad { padding: 0; }
.prb-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.prb-chart-container { position: relative; height: 300px; padding: 10px; }

.prb-data-table { width: 100%; border-collapse: collapse; }
.prb-data-table thead { background: #f9fafb; }
.prb-data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e5e7eb; }
.prb-data-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #374151; }
.prb-data-table tbody tr:hover { background: #f9fafb; }
.prb-empty { text-align: center; padding: 40px; color: #9ca3af; font-style: italic; }

.prb-device-row { margin-bottom: 15px; }
.prb-device-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prb-device-name { font-size: 14px; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 8px; }
.prb-device-meta { font-size: 13px; color: #6b7280; }
.prb-flag-icon { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; }
.prb-progress-track { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.prb-progress-fill { height: 100%; background: #3b82f6; border-radius: 3px; transition: width 0.3s ease; }

.prb-cell-main { display: flex; flex-direction: column; gap: 4px; }
.prb-cell-sub { font-size: 12px; color: #9ca3af; }
.prb-location-row { display: flex; align-items: center; gap: 8px; }
.prb-tech-row { font-size: 13px; }
.prb-tech-label { font-weight: 600; color: #6b7280; }
.prb-ip-address { font-family: monospace; font-size: 11px; }

.prb-event-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-view { background: #dbeafe; color: #1e40af; }
.badge-click { background: #d1fae5; color: #065f46; }

@media (max-width: 768px) {
    .prb-dash-header { flex-direction: column; align-items: flex-start; }
    .prb-dash-actions { width: 100%; justify-content: space-between; }
    .prb-stats-grid { grid-template-columns: 1fr; }
    .prb-grid-3 { grid-template-columns: 1fr; }
    .prb-table-responsive { overflow-x: auto; }
    .prb-data-table { min-width: 800px; }
}

/* Dashboard Dark Mode */
.prb-dashboard.prb-dark { background: #111827; }
.prb-dashboard.prb-dark .prb-panel, .prb-dashboard.prb-dark .prb-stat-card { background: #1f2937; color: #f3f4f6; }
.prb-dashboard.prb-dark .prb-panel-title, .prb-dashboard.prb-dark .prb-stat-value { color: #f3f4f6; }
.prb-dashboard.prb-dark .prb-stat-label, .prb-dashboard.prb-dark .prb-device-meta, .prb-dashboard.prb-dark .prb-cell-sub { color: #9ca3af; }
.prb-dashboard.prb-dark .prb-data-table thead { background: #374151; }
.prb-dashboard.prb-dark .prb-data-table th { color: #d1d5db; border-bottom-color: #4b5563; }
.prb-dashboard.prb-dark .prb-data-table td { color: #e5e7eb; border-bottom-color: #374151; }
.prb-dashboard.prb-dark .prb-data-table tbody tr:hover { background: #374151; }
.prb-dashboard.prb-dark .prb-progress-track { background: #4b5563; }