* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================
   DESIGN TOKENS - Light/Dark Theme System
   ============================================ */
:root {
    color-scheme: light dark;

    /* === Surfaces === */
    --bg-primary: #f4f6f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --bg-hover: #e8eaed;
    --bg-modal-overlay: rgba(0, 0, 0, 0.5);

    /* === Text === */
    --text-primary: #1a1f2e;
    --text-secondary: #5a6478;
    --text-muted: #8b95a5;
    --text-inverse: #ffffff;

    /* === Borders & Dividers === */
    --border-primary: #e2e6ea;
    --border-subtle: #f0f2f5;

    /* === Brand / Accent === */
    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --accent-subtle: rgba(79, 70, 229, 0.1);

    /* === Semantic === */
    --success: #10B981;
    --success-subtle: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-subtle: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-subtle: rgba(239, 68, 68, 0.1);

    /* === Shadows === */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);

    /* === Typography Scale (rem-based) === */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;

    /* === Spacing / Radii === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* === Focus === */
    --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.4);

    /* Legacy alias */
    --bg-dark: var(--bg-primary);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --bg-hover: #3b4a63;
    --bg-modal-overlay: rgba(0, 0, 0, 0.8);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border-primary: #334155;
    --border-subtle: #1e293b;

    --accent-subtle: rgba(79, 70, 229, 0.2);
    --success-subtle: rgba(16, 185, 129, 0.15);
    --warning-subtle: rgba(245, 158, 11, 0.15);
    --danger-subtle: rgba(239, 68, 68, 0.15);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);

    --focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
[data-contrast="high"] {
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --border-primary: #000000;
    --accent: #003cff;
    --bg-card: #ffffff;
    --bg-primary: #ffffff;
    --shadow-sm: none;
    --shadow-md: 0 0 0 2px #000;
}
[data-theme="dark"][data-contrast="high"] {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --border-primary: #ffffff;
    --accent: #80b0ff;
    --bg-card: #000000;
    --bg-primary: #000000;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

/* ============================================
   FONT SIZE SCALING
   ============================================ */
[data-font-size="small"] { font-size: 14px; }
[data-font-size="medium"] { font-size: 16px; }
[data-font-size="large"] { font-size: 18px; }

/* ============================================
   FOCUS & KEYBOARD ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-message { flex: 1; font-size: 14px; line-height: 1.4; }
.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.toast-close:hover { color: var(--text-primary); }

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-modal.active {
    opacity: 1;
    visibility: visible;
}
.video-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.video-modal.active .video-modal-content {
    transform: scale(1);
}
.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
}
.video-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.video-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.video-modal-close:hover {
    color: var(--danger);
}
.video-modal-body {
    padding: 0;
}
.video-modal-body video {
    width: 100%;
    display: block;
    background: #000;
}

/* Video item clickable styles */
.video-item {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.video-item.placeholder .video-thumb {
    position: relative;
}
.video-item:not(.placeholder) .video-thumb::after {
    content: '';
    display: none;
}

.screen { display: none; }
.screen.active { display: flex; }

/* Login */
#login-screen, #not-rep-screen {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 100%);
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.logo-area {
    text-align: center;
    margin-bottom: 24px;
}

.logo-area i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: var(--font-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
}

.btn-google {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-google:hover {
    background: var(--bg-hover);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-input);
}

.divider span {
    padding: 0 16px;
    font-size: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.help-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Dashboard */
#dashboard {
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.brand i {
    color: var(--accent);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

#user-name {
    color: var(--text-secondary);
}

.main-content {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-green { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.bg-yellow { background: rgba(234, 179, 8, 0.2); color: #EAB308; }
.bg-orange { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.bg-cyan { background: rgba(6, 182, 212, 0.2); color: #06B6D4; }
.bg-blue { background: rgba(79, 70, 229, 0.2); color: #4F46E5; }
.bg-purple { background: rgba(168, 85, 247, 0.2); color: #A855F7; }

.stat-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-info h3 {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.referral-card .card-body {
    text-align: center;
}

.referral-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.referral-code-display code {
    font-size: 24px;
    font-weight: 700;
    background: var(--bg-input);
    padding: 12px 24px;
    border-radius: 8px;
    letter-spacing: 2px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--bg-input);
    padding: 6px;
    border-radius: var(--radius-md);
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: var(--font-sm);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn:active:not(.active) {
    transform: scale(0.98);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
}

.table th {
    background: var(--bg-input);
    font-size: var(--font-xs);
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table td {
    border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:nth-child(even) td {
    background: var(--bg-hover);
}

.table tr:hover td {
    background: var(--accent-subtle);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal-overlay);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-bar {
        flex-direction: column;
        gap: 12px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Link Display */
.link-display {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.link-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.qr-display {
    text-align: center;
}

.qr-display img {
    background: white;
    padding: 8px;
}

/* App Launcher Grid */
.app-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.app-launch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.app-launch-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.app-launch-btn span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* Notification Area */
.notification-area {
    position: relative;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: 8px;
}

.dropdown.active {
    display: block;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
}

#notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.empty-notif {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.bg-cyan { background: rgba(6, 182, 212, 0.2); color: #06B6D4; }

.badge {
    background: var(--accent);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

@media (max-width: 768px) {
    .app-launcher-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .app-launcher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Material Request Styles */
.default-address-box {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.address-header h4 i {
    color: #10B981;
    margin-right: 8px;
}

.address-display p {
    margin: 4px 0;
    color: var(--text-primary);
}

.no-address {
    color: var(--text-secondary);
    font-style: italic;
}

.no-address a {
    color: var(--accent);
    text-decoration: none;
}

.no-address a:hover {
    text-decoration: underline;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 16px;
}

.status-badge {
    font-weight: 600;
    text-transform: capitalize;
}

/* Tab button with icon */
.tab-btn i {
    margin-right: 6px;
}

/* Responsive form rows */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== Products & Pricing Tab Styles ===== */
.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
}

.pricing-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-header h2 i {
    color: var(--accent);
    margin-right: 12px;
}

.pricing-header > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Monthly/Yearly Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toggle-label {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.save-badge {
    background: var(--success);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Product Sections */
.product-section {
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-section-header:hover {
    background: var(--bg-hover);
}

.product-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.product-title h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.product-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.section-toggle {
    color: var(--text-secondary);
    transition: transform 0.3s;
    font-size: 16px;
}

.section-toggle.collapsed {
    transform: rotate(-90deg);
}

.product-section-content {
    padding: 0 24px 24px;
    display: block;
}

.product-section-content.collapsed {
    display: none;
}

/* Subsection Titles */
.subsection-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-input);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsection-title i {
    margin-right: 8px;
    color: var(--accent);
}

/* Pricing Cards Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pricing-card.popular {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
}

.pricing-card.compact {
    padding: 16px;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service Type Badges (Self-Service vs Managed) */
.service-type-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.service-type-badge.self-service {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.service-type-badge.managed {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Service Type Explainer */
.service-type-explainer {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.service-type-explainer h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-type-explainer h4 i {
    color: var(--accent);
}

.service-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-type-box {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 16px;
}

.service-type-box h5 {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-type-box h5 .badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
}

.service-type-box.self h5 .badge {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.service-type-box.managed h5 .badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.service-type-box ul {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
}

.service-type-box ul li {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-type-box ul li i {
    margin-top: 2px;
}

.service-type-box.self ul li i {
    color: var(--text-secondary);
}

.service-type-box.managed ul li i {
    color: #10B981;
}

.managed-upsell {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.managed-upsell strong {
    color: #10B981;
}

.managed-upsell i {
    color: #10B981;
    margin-right: 6px;
}

@media (max-width: 600px) {
    .service-type-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pricing-card.popular h4 {
    margin-top: 8px;
}

.pricing-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-card .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card.compact .price {
    font-size: 22px;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.features-list li i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

.bundle-savings {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgba(79, 70, 229, 0.2);
    color: var(--accent);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.demo-btn:hover {
    background: rgba(79, 70, 229, 0.3);
}

.demo-btn i {
    font-size: 10px;
}

/* Selling Points Section */
.selling-points-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.selling-points-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.selling-points-section h3 i {
    color: var(--warning);
    margin-right: 10px;
}

.selling-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.selling-point {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.selling-point i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
}

.selling-point h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.selling-point p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-title p {
        display: none;
    }

    .pricing-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }

    .selling-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-section-header {
        padding: 16px;
    }

    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Sales Tactics Section */
.sales-tactics-section {
    margin-top: 24px;
}

.sales-tactics-section > h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
}

.sales-tactics-section > h3 i {
    color: #EF4444;
    margin-right: 10px;
}

.tactic-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent);
}

.tactic-card.highlight {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 179, 8, 0.05));
}

.tactic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tactic-header i {
    font-size: 20px;
    color: var(--accent);
    width: 36px;
    height: 36px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tactic-card.highlight .tactic-header i {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.2);
}

.tactic-header h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.tactic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tactic-list li {
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 28px;
}

.tactic-list li::before {
    content: '"';
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 18px;
    color: var(--accent);
    font-weight: bold;
}

.tactic-list li strong {
    color: var(--text-primary);
}

/* Objection Handlers */
.objection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.objection {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 16px;
}

.objection-q {
    font-size: 14px;
    font-weight: 600;
    color: #EF4444;
    margin-bottom: 8px;
    font-style: italic;
}

.objection-a {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid var(--success);
}

.bundle-pitch {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--bg-input);
    padding: 16px;
    border-radius: 8px;
    margin: 0;
}

.bundle-pitch strong {
    color: var(--warning);
}

@media (max-width: 600px) {
    .objection-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Flagship Product Section ===== */
.flagship-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.flagship-header {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.flagship-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: var(--text-inverse);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.flagship-header h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
    margin-top: 8px;
}

.flagship-header h3 i {
    color: #FFD700;
    margin-right: 10px;
}

.flagship-header p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.flagship-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.flagship-card.full-width {
    grid-column: span 2;
}

.flagship-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-input);
}

.flagship-card-header i {
    font-size: 18px;
    color: #EC4899;
    width: 36px;
    height: 36px;
    background: rgba(236, 72, 153, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flagship-card-header h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

/* Transfer Steps */
.transfer-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transfer-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.transfer-step strong {
    color: var(--text-primary);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.transfer-step p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* Flagship Benefits */
.flagship-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flagship-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-input);
    font-size: 13px;
    color: var(--text-secondary);
}

.flagship-benefits li:last-child {
    border-bottom: none;
}

.flagship-benefits li i {
    color: #EC4899;
    width: 20px;
    text-align: center;
}

.flagship-benefits li strong {
    color: var(--text-primary);
}

/* Talk Track */
.talk-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.talk-track-item {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 14px;
}

.talk-label {
    display: inline-block;
    background: #EC4899;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.talk-track-item p {
    font-size: 13px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* Comparison Table */
.comparison-table {
    border-radius: 8px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.comparison-row.header {
    background: var(--bg-input);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.comparison-row span {
    padding: 10px 12px;
    font-size: 13px;
}

.comparison-row:not(.header) {
    border-bottom: 1px solid var(--bg-input);
}

.comparison-row .yes {
    color: var(--success);
    font-weight: 500;
}

.comparison-row .yes i {
    margin-right: 4px;
}

.comparison-row .no {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Website Objection List */
.objection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.objection-item {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 14px;
}

.obj-q {
    font-size: 14px;
    font-weight: 600;
    color: #EF4444;
    margin-bottom: 8px;
    font-style: italic;
}

.obj-a {
    font-size: 13px;
    color: var(--text-primary);
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid var(--success);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .flagship-grid {
        grid-template-columns: 1fr;
    }

    .flagship-card.full-width {
        grid-column: span 1;
    }

    .talk-track {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        font-size: 11px;
    }

    .comparison-row span {
        padding: 8px;
    }
}

/* ===== Practice Pain Points Section ===== */
.practice-pain-section,
.discovery-section,
.outreach-section,
.closing-section {
    margin-top: 32px;
}

.practice-pain-section > h3,
.discovery-section > h3,
.outreach-section > h3,
.closing-section > h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.practice-pain-section > h3 i { color: #3B82F6; }
.discovery-section > h3 i { color: #8B5CF6; }
.outreach-section > h3 i { color: #F59E0B; }
.closing-section > h3 i { color: #10B981; }

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Pain Points Grid */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pain-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border-top: 4px solid;
}

.pain-card.chiro { border-color: #10B981; }
.pain-card.pt { border-color: #3B82F6; }
.pain-card.dental { border-color: #8B5CF6; }
.pain-card.small { border-color: #F59E0B; }

.pain-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pain-header i {
    font-size: 20px;
}

.pain-card.chiro .pain-header i { color: #10B981; }
.pain-card.pt .pain-header i { color: #3B82F6; }
.pain-card.dental .pain-header i { color: #8B5CF6; }
.pain-card.small .pain-header i { color: #F59E0B; }

.pain-header h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.pain-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-card ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-input);
    padding-left: 20px;
    position: relative;
}

.pain-card ul li:last-child {
    border-bottom: none;
}

.pain-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Discovery Questions */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.discovery-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discovery-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.discovery-card p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

.discovery-reveal {
    font-size: 11px;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
}

/* Outreach Scripts */
.script-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.script-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.script-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid var(--bg-input);
}

.script-header i {
    color: #F59E0B;
    font-size: 18px;
}

.script-header h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.script-body {
    padding: 16px;
}

.script-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.script-body p:last-child {
    margin-bottom: 0;
}

.script-body ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.script-body ul li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0 4px 16px;
    position: relative;
}

.script-body ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #EF4444;
}

.script-note {
    background: var(--bg-input);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
}

/* Closing Techniques */
.closing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.closing-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    border-left: 3px solid var(--success);
}

.closing-card h4 {
    font-size: 13px;
    color: var(--success);
    margin-bottom: 10px;
}

.closing-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .pain-grid,
    .discovery-grid,
    .script-grid {
        grid-template-columns: 1fr;
    }

    .closing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .closing-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SALES GUIDE MODAL STYLES
   ======================================== */

/* Guide Button in Header */
.btn-guide {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-guide:hover {
    background: linear-gradient(135deg, #6D28D9, #9333EA);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-guide i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .guide-btn-text {
        display: none;
    }
    .btn-guide {
        padding: 8px 10px;
    }
}

/* Fullscreen Modal */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-content.guide-modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

/* Guide Header */
.guide-header {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.guide-header h3 {
    color: white;
    font-size: 20px;
    margin: 0;
}

.guide-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.guide-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-search-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
}

.guide-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.guide-search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.guide-header .close-btn {
    color: white;
    background: rgba(255,255,255,0.15);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-header .close-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Guide Layout */
.guide-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
}

@media (min-width: 769px) {
    .guide-layout {
        flex-direction: row;
    }
}

/* Guide Mobile Navigation */
.guide-mobile-nav {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-primary);
    padding: 12px;
    gap: 8px;
    border-bottom: 1px solid var(--bg-input);
    scrollbar-width: none;
}

.guide-mobile-nav::-webkit-scrollbar {
    display: none;
}

.guide-mobile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    min-height: 40px;
}

.guide-mobile-btn i {
    font-size: 14px;
}

.guide-mobile-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #A855F7;
}

.guide-mobile-btn.active {
    background: rgba(124, 58, 237, 0.3);
    color: #A855F7;
    font-weight: 600;
}

@media (max-width: 768px) {
    .guide-mobile-nav {
        display: flex;
    }
}

/* Guide Sidebar */
.guide-sidebar {
    width: 240px;
    background: var(--bg-primary);
    border-right: 1px solid var(--bg-input);
    padding: 16px;
    overflow-y: auto;
    flex-shrink: 0;
}

.guide-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.guide-nav-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #A855F7;
}

.guide-nav-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: #A855F7;
    font-weight: 600;
}

.guide-nav-link i {
    width: 20px;
    text-align: center;
}

/* Guide Main Content */
.guide-main {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--bg-primary);
}

.guide-section {
    display: none;
}

.guide-section.active {
    display: block;
}

/* Guide Hero */
.guide-hero {
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 16px;
    padding: 32px;
    color: white;
    margin-bottom: 32px;
}

.guide-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.guide-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0;
}

/* Guide Cards Grid */
.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.guide-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--bg-input);
}

.guide-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin-bottom: 14px;
}

.guide-card-icon.bg-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.guide-card-icon.bg-green { background: linear-gradient(135deg, #10B981, #059669); }
.guide-card-icon.bg-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.guide-card-icon.bg-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.guide-card-icon.bg-red { background: linear-gradient(135deg, #EF4444, #DC2626); }

.guide-card h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.guide-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Guide Highlight Box */
.guide-highlight-box {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.guide-highlight-box.green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.guide-highlight-box.green h4 {
    color: #10B981;
}

.guide-highlight-box.green p {
    color: #6EE7B7;
}

.guide-highlight-box.purple {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.guide-highlight-box.purple h4 {
    color: #A855F7;
}

.guide-highlight-box.purple p {
    color: #C4B5FD;
}

.guide-highlight-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-highlight-box p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* Guide Section Heading */
.guide-section h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.guide-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 24px 0 16px;
}

.guide-intro {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Guide Product Cards */
.guide-product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--bg-input);
}

.guide-product-header {
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-product-card.blue .guide-product-header { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.guide-product-card.green .guide-product-header { background: linear-gradient(135deg, #10B981, #059669); }
.guide-product-card.orange .guide-product-header { background: linear-gradient(135deg, #F97316, #EA580C); }
.guide-product-card.purple .guide-product-header { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.guide-product-card.red .guide-product-header { background: linear-gradient(135deg, #EF4444, #DC2626); }

.guide-product-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.guide-product-header h3 {
    font-size: 22px;
    margin: 0 0 4px;
    color: white;
}

.guide-product-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.guide-status-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.guide-product-body {
    padding: 24px;
}

.guide-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.guide-product-body h5 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.guide-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.guide-check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10B981;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-problem-solution {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.guide-problem-solution.green { background: rgba(16, 185, 129, 0.1); }
.guide-problem-solution.orange { background: rgba(249, 115, 22, 0.1); }
.guide-problem-solution.purple { background: rgba(139, 92, 246, 0.1); }
.guide-problem-solution.red { background: rgba(239, 68, 68, 0.1); }

.guide-problem-solution div {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Colored problem-solution text colors */
.guide-problem-solution.green div { color: #A7F3D0; }
.guide-problem-solution.orange div { color: #FED7AA; }
.guide-problem-solution.purple div { color: #DDD6FE; }
.guide-problem-solution.red div { color: #FECACA; }

.guide-problem-solution div:last-child {
    margin-bottom: 0;
}

.guide-best-for {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 16px;
    opacity: 0.85;
}

.guide-info-box {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    color: #FBBF24;
    margin-top: 16px;
}

.guide-info-box i {
    margin-right: 8px;
}

/* Guide Expandable Sections */
.guide-expandable {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--bg-input);
}

.guide-expandable-header {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s;
}

.guide-expandable-header:hover {
    background: var(--bg-hover);
}

.guide-expandable-header i.fa-chevron-down {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.guide-expandable.open .guide-expandable-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.guide-expandable-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-time-badge {
    background: rgba(124, 58, 237, 0.2);
    color: #A855F7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.guide-time-badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.guide-time-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.guide-time-badge.teal {
    background: rgba(20, 184, 166, 0.2);
    color: #2DD4BF;
}

.guide-expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.guide-expandable.open .guide-expandable-content {
    max-height: 1000px;
}

.guide-script-box {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 18px;
    margin: 0 20px 20px;
    position: relative;
}

.guide-script-box.blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.guide-script-box.green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.guide-script-box p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding-right: 40px;
}

/* Colored script boxes - ensure readable text colors */
.guide-script-box.green p {
    color: #D1FAE5;
}

.guide-script-box.green p strong {
    color: #6EE7B7;
}

.guide-script-box.blue p {
    color: #DBEAFE;
}

.guide-script-box.blue p strong {
    color: #93C5FD;
}

.guide-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.guide-copy-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #A855F7;
}

/* Objection Icons */
.objection-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.objection-icon.red { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.objection-icon.amber { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.objection-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8B5CF6; }
.objection-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.objection-icon.gray { background: rgba(156, 163, 175, 0.2); color: #9CA3AF; }

/* Guide Tables */
.guide-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.guide-table thead {
    background: var(--bg-input);
}

.guide-table.competitors thead {
    background: var(--bg-primary);
}

.guide-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.guide-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-input);
}

.guide-table td strong {
    color: var(--text-primary);
}

.guide-table td small {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.guide-table td.weaknesses ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-table td.weaknesses li {
    color: #F87171;
    font-size: 13px;
    margin-bottom: 4px;
}

.guide-table.glossary td:first-child {
    width: 180px;
}

/* Guide Bundles Grid */
.guide-bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.guide-bundle-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--bg-input);
    position: relative;
}

.guide-bundle-card.popular {
    border-color: #7C3AED;
}

.bundle-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bundle-name {
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: 8px;
}

.bundle-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bundle-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.7;
}

.guide-bundle-card > p {
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: 16px;
}

.guide-bundle-card .guide-check-list {
    margin-bottom: 16px;
}

.guide-bundle-card .bundle-savings {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Guide Upsell Path */
.guide-upsell-path {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
}

.guide-upsell-path h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upsell-steps {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.upsell-step {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
}

.upsell-step.highlight {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.upsell-step span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.upsell-step.highlight span {
    color: #A855F7;
}

.upsell-step small {
    font-size: 12px;
    color: var(--text-secondary);
}

.upsell-steps i {
    color: var(--text-secondary);
}

/* Guide Advantages Grid */
.guide-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.advantage-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    flex-shrink: 0;
}

.advantage-item strong {
    display: block;
    color: #6EE7B7;
    font-size: 14px;
    margin-bottom: 4px;
}

.advantage-item p {
    font-size: 13px;
    color: rgba(110, 231, 183, 0.7);
    margin: 0;
}

/* Guide Case Study */
.guide-case-study-hero {
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 16px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.case-study-badge i {
    color: #FCD34D;
}

.guide-case-study-hero h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.case-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.case-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.case-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

.case-study-story {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
}

.case-study-story h4 {
    color: white;
    margin-bottom: 16px;
}

.case-study-story p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.case-study-story p:last-child {
    margin-bottom: 0;
}

/* Guide ROI Section */
.guide-roi-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
}

.guide-roi-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.roi-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
}

.roi-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.roi-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.roi-item.highlight {
    border-top: 1px solid var(--bg-input);
    padding-top: 12px;
    margin-top: 12px;
}

.roi-item strong.green {
    color: #10B981;
}

/* Guide Discovery Questions */
.guide-questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.questions-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--bg-input);
}

.questions-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.questions-list li i {
    color: #60A5FA;
    margin-top: 3px;
}

/* Guide Responsive */
@media (max-width: 1024px) {
    .guide-sidebar {
        width: 200px;
    }

    .guide-main {
        padding: 24px;
    }

    .guide-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .guide-bundles-grid {
        grid-template-columns: 1fr;
    }

    .case-study-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .roi-grid {
        grid-template-columns: 1fr;
    }

    .guide-questions-grid {
        grid-template-columns: 1fr;
    }

    .guide-advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guide-sidebar {
        display: none;
    }

    .guide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .guide-header-left {
        width: 100%;
    }

    .guide-header-right {
        width: 100%;
        gap: 8px;
    }

    .guide-search-input {
        flex: 1;
        padding: 10px 14px;
        font-size: 14px;
    }

    .guide-main {
        padding: 16px;
    }

    .guide-hero {
        padding: 20px;
        margin-bottom: 20px;
    }

    .guide-hero h1 {
        font-size: 20px;
    }

    .guide-hero p {
        font-size: 14px;
    }

    .guide-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-card {
        padding: 16px;
    }

    .guide-card h4 {
        font-size: 15px;
    }

    .guide-product-card {
        margin-bottom: 16px;
    }

    .guide-product-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .guide-product-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .guide-product-header h3 {
        font-size: 16px;
    }

    .guide-product-header p {
        font-size: 13px;
    }

    .guide-status-badge {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        margin-left: 0;
    }

    .guide-product-body {
        padding: 16px;
    }

    .guide-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .guide-section h3 {
        font-size: 16px;
    }

    .guide-intro {
        font-size: 14px;
        padding: 14px;
    }

    .guide-expandable-header {
        padding: 14px 16px;
    }

    .guide-expandable-title {
        font-size: 14px;
    }

    .guide-expandable-content {
        padding: 16px;
    }

    .guide-script-box {
        padding: 14px;
    }

    .guide-script-box p {
        font-size: 13px;
    }

    .guide-table-wrapper {
        margin: 0 -16px;
        padding: 0;
        overflow-x: auto;
    }

    .guide-table {
        font-size: 12px;
        min-width: 500px;
    }

    .guide-table th,
    .guide-table td {
        padding: 10px 12px;
    }

    .guide-bundle-card {
        padding: 16px;
    }

    .guide-highlight-box {
        padding: 14px;
    }

    .guide-highlight-box h4 {
        font-size: 14px;
    }

    .guide-highlight-box p {
        font-size: 13px;
    }

    .guide-info-box {
        padding: 12px 14px;
        font-size: 13px;
    }

    .case-study-stats {
        grid-template-columns: 1fr;
    }

    .upsell-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .guide-check-list li {
        font-size: 13px;
        padding-left: 24px;
    }

    .guide-problem-solution {
        padding: 12px;
    }

    .guide-problem-solution div {
        font-size: 13px;
    }

    .upsell-steps i {
        transform: rotate(90deg);
        align-self: center;
    }
}

/* ============================================
   NEW SECTIONS: Features, Battlecards, FAQ, Demos
   ============================================ */

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-list li i {
    color: var(--success);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Battlecards */
.battlecard {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 20px;
}

.battlecard-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.battlecard-row:last-child {
    border-bottom: none;
}

.battlecard-row.highlight {
    background: rgba(139, 92, 246, 0.1);
    margin: 8px -16px;
    padding: 12px 16px;
    border-radius: 8px;
    border-bottom: none;
}

.battlecard-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.battlecard-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.battlecard-math {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.battlecard-math .green {
    color: var(--success);
    font-weight: 600;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-category {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.faq-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.faq-a {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Demo Scripts */
.demo-script {
    padding: 10px 0;
}

.demo-script h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-script h4:first-child {
    margin-top: 0;
}

.demo-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.demo-steps li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-steps li::before {
    content: counter(step);
    counter-increment: step;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-script ul.demo-steps {
    counter-reset: step;
}

.wow-moment {
    font-size: 14px;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--warning);
}

.demo-cta {
    font-size: 14px;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--success);
    font-weight: 500;
}

/* Guide Highlight Boxes */
.guide-highlight-box {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.guide-highlight-box.blue {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3B82F6;
}

.guide-highlight-box.green {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success);
}

.guide-highlight-box.purple {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8B5CF6;
}

.guide-highlight-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive for new sections */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .battlecard-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .demo-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ONBOARDING TOUR STYLES
   ============================================ */

.tour-btn {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.tour-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.tour-overlay.active {
    pointer-events: auto;
}

.tour-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tour-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--accent);
}

.tour-tooltip {
    position: fixed;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    z-index: 10003;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.3);
    pointer-events: auto;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tour-step-indicator {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.tour-close-btn:hover {
    color: var(--danger);
}

.tour-tooltip h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tour-tooltip p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--bg-input);
}

.tour-nav-btns {
    display: flex;
    gap: 8px;
}

/* Tour Mobile Fixes */
@media (max-width: 768px) {
    .tour-tooltip {
        position: fixed !important;
        bottom: 20px !important;
        top: auto !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }

    .tour-spotlight {
        /* On mobile, make spotlight less intrusive */
        box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.7);
    }

    .tour-tooltip-footer {
        flex-direction: column;
        gap: 12px;
    }

    .tour-tooltip-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .tour-nav-btns {
        width: 100%;
        flex-direction: column;
    }

    .tour-nav-btns .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tour-tooltip {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        padding: 16px;
    }

    .tour-tooltip h4 {
        font-size: 1rem;
    }

    .tour-tooltip p {
        font-size: 0.85rem;
    }
}

/* ============================================
   TRAINING TAB STYLES - MODERNIZED 2024
   ============================================ */

/* --- Training Hero Section --- */
.training-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.training-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.training-hero-left {
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 1;
}

.training-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 1;
}

/* --- Circular Progress Ring --- */
.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-ring-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.progress-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Hero Info --- */
.training-hero-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.hero-stats {
    display: flex;
    gap: 20px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-stat i {
    color: var(--accent);
    font-size: 0.9rem;
}

.hero-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Level Card --- */
.level-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 220px;
    backdrop-filter: blur(10px);
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.level-badge i {
    font-size: 1.5rem;
    color: #F59E0B;
}

.level-badge span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.xp-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xp-numbers {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.current-xp {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8B5CF6;
}

.xp-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.next-level-xp {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.xp-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.xp-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.next-level-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.next-level-text span {
    color: #8B5CF6;
    font-weight: 500;
}

/* --- Glass Button --- */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* --- Course Filters --- */
.course-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    padding: 6px;
    border-radius: var(--radius-md);
}

.filter-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.filter-tab.active {
    background: var(--accent);
    color: white;
}

.filter-tab i {
    font-size: 0.8rem;
}

.course-search {
    position: relative;
    min-width: 250px;
}

.course-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.course-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.1);
}

.course-search input::placeholder {
    color: var(--text-secondary);
}

/* --- Recommended Course Card --- */
.recommended-course-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(16, 185, 129, 0.3); }
    50% { border-color: rgba(16, 185, 129, 0.6); }
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.recommended-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recommended-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    flex-shrink: 0;
}

.recommended-info {
    flex: 1;
}

.recommended-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.recommended-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.recommended-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.recommended-meta i {
    margin-right: 4px;
    color: var(--accent);
}

/* --- Glow Button --- */
.btn-glow {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-glow i {
    transition: transform 0.2s;
}

.btn-glow:hover i {
    transform: translateX(3px);
}

/* --- Badges Showcase --- */
.badges-showcase {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.badges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.badges-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badges-header h4 i {
    color: #F59E0B;
}

.badges-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badges-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.badges-scroll::-webkit-scrollbar {
    height: 6px;
}

.badges-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.badges-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* --- Learning Paths --- */
.learning-paths {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.learning-path {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.learning-path:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.path-header:hover {
    background: var(--bg-hover);
}

.path-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.path-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.path-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.path-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.path-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.path-progress-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8B5CF6);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.path-progress span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 40px;
}

.path-chevron {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.learning-path.expanded .path-chevron {
    transform: rotate(180deg);
}

.path-courses {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.learning-path.expanded .path-courses {
    max-height: 2000px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 20px 24px;
}

/* --- Modern Course Cards --- */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    background: var(--bg-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.course-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
}

.course-card.completed::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.course-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.course-card .course-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.course-card-title {
    flex: 1;
}

.course-card-title h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.course-card-title p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.course-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card-meta i {
    font-size: 0.7rem;
}

.course-card-action {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.course-card-action:hover {
    background: #6366F1;
    transform: scale(1.02);
}

.course-card.completed .course-card-action {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.course-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.course-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8B5CF6);
    transition: width 0.3s ease;
}

/* In-progress course card */
.course-card.in-progress {
    border-color: rgba(245, 158, 11, 0.3);
}

.course-card.in-progress .course-card-action {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* Required badge */
.badge-required {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Courses source (hidden) */
.courses-source {
    display: none !important;
}

/* ============================================
   ONBOARDING TAB STYLES
   ============================================ */

.badge-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.onboarding-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.onboarding-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.onboarding-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4F46E5, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.onboarding-hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.onboarding-hero-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
}

.onboarding-progress {
    text-align: right;
    min-width: 200px;
}

.onboarding-progress-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.onboarding-progress span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Onboarding Checklist */
.onboarding-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.onboarding-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
}

.onboarding-item-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}

.status-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.status-circle.pending {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.status-circle.completed {
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: white;
}

.status-line {
    width: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 12px;
    min-height: 40px;
}

.onboarding-item:last-child .status-line {
    display: none;
}

.onboarding-item-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.onboarding-item-content:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

.onboarding-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.onboarding-item-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.doc-badge.required {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.doc-badge.optional {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-muted);
}

.onboarding-item-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.onboarding-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.onboarding-item-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon-text {
    font-size: 0.8rem;
    color: #F59E0B;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Completed state */
.onboarding-item.completed .status-circle.pending {
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: white;
}

.onboarding-item.completed .status-circle.pending i::before {
    content: "\f00c"; /* checkmark */
}

.onboarding-item.completed .onboarding-item-content {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* Agreement Reminder Banner */
.agreement-reminder-banner {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 16px;
}

.agreement-reminder-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9em;
}

.agreement-reminder-content i {
    font-size: 1.2em;
}

.agreement-reminder-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.3em;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
}

.agreement-reminder-dismiss:hover {
    color: #fff;
}

/* Agreement Review Styles */
.agreement-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.agreement-summary-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
}

.agreement-summary-item label {
    display: block;
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.agreement-summary-item span {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
}

/* Agreement Status Badges */
.agreement-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.agreement-status-badge.status-pending {
    background: rgba(59,130,246,0.15);
    color: #60A5FA;
}

.agreement-status-badge.status-rep-signed {
    background: rgba(217,119,6,0.15);
    color: #FBBF24;
}

.agreement-status-badge.status-signed {
    background: rgba(16,185,129,0.15);
    color: #34D399;
}

.agreement-status-badge.status-revoked {
    background: rgba(239,68,68,0.15);
    color: #F87171;
}

/* Acknowledgment Checkboxes */
.agreement-acknowledgments {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.agreement-ack-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

.agreement-ack-item:last-child {
    border-bottom: none;
}

.agreement-ack-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #4F46E5;
}

/* Signature Section */
.agreement-signature-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.agreement-signature-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
}

.agreement-signature-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ob-signature-input {
    font-family: 'Dancing Script', cursive, Georgia, serif;
    font-size: 1.2em;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05em;
}

/* Full Agreement Document Viewer */
.full-agreement-container {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
}

.full-agreement-doc {
    padding: 32px 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10.5pt;
    line-height: 1.6;
}

.full-agreement-doc h1 {
    color: #1a1a1a;
    font-size: 16pt;
    margin-bottom: 16px;
}

.full-agreement-doc h2 {
    color: #1a1a1a;
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    margin: 24px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}

.full-agreement-doc h3 {
    color: #333;
    font-size: 10.5pt;
    font-weight: 600;
    margin: 12px 0 4px;
}

.full-agreement-doc p {
    color: #333;
    margin-bottom: 8px;
    text-align: justify;
}

.full-agreement-doc ul, .full-agreement-doc ol {
    margin-left: 24px;
    margin-bottom: 8px;
    color: #333;
}

.full-agreement-doc li {
    margin-bottom: 4px;
}

.full-agreement-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 10pt;
}

.full-agreement-doc th, .full-agreement-doc td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    color: #333;
}

.full-agreement-doc th {
    background: #f5f5f5;
    font-weight: 600;
}

.full-agreement-doc strong {
    color: #1a1a1a;
}

.agreement-highlight {
    background: #e8f4fd;
    border-left: 4px solid #0066cc;
    padding: 12px;
    margin: 12px 0;
    font-size: 10pt;
    color: #333;
    border-radius: 0 4px 4px 0;
}

.agreement-exhibit {
    border: 2px solid #333;
    padding: 20px;
    margin: 20px 0;
    background: #fafafa;
    border-radius: 4px;
}

.agreement-exhibit h2 {
    border-bottom: none;
    margin-top: 0;
}

@media print {
    /* Hide everything on the page */
    body * {
        visibility: hidden;
    }

    /* Show only the agreement print wrapper */
    .agreement-print-wrapper,
    .agreement-print-wrapper * {
        visibility: visible !important;
    }

    .agreement-print-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .full-agreement-container {
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
        display: block !important;
    }

    .full-agreement-doc {
        padding: 0.5in 0.75in;
    }

    /* Hide UI chrome inside agreement area */
    #toggle-agreement-btn,
    .agreement-reminder-banner,
    .agreement-status-badge,
    .btn {
        display: none !important;
    }

    /* Show signature block at bottom */
    .print-signature-block {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.resource-card:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.resource-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.resource-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.resource-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Onboarding Mobile */
@media (max-width: 768px) {
    .onboarding-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .onboarding-hero-content {
        flex-direction: column;
    }

    .onboarding-hero-content p {
        max-width: 100%;
    }

    .onboarding-progress {
        width: 100%;
        text-align: center;
    }

    .onboarding-progress-bar {
        width: 100%;
    }

    .onboarding-item {
        flex-direction: column;
        gap: 12px;
    }

    .onboarding-item-status {
        flex-direction: row;
        width: 100%;
    }

    .status-line {
        width: auto;
        height: 2px;
        flex: 1;
        margin-top: 0;
        margin-left: 12px;
        min-height: auto;
    }

    .onboarding-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Old training-header still needed for compatibility --- */
.training-header {
    display: none; /* Hidden - replaced by training-hero */
}

.training-stats {
    display: flex;
    gap: 24px;
}

.training-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 12px;
}

.training-stat i {
    font-size: 1.5rem;
}

.training-stat div {
    display: flex;
    flex-direction: column;
}

.training-stat span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.training-stat label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges Grid - Modern Compact Style */
.badges-grid {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.badge-item:hover {
    transform: translateY(-2px);
    background: var(--bg-hover);
}

.badge-item.earned {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.badge-item.earned:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.badge-item.locked:hover {
    opacity: 0.6;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.badge-item.earned .badge-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-item.locked .badge-icon {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.badge-item h5 {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.badge-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.badge-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

.badge-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: white !important;
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--bg-input);
    transition: background 0.2s;
}

.course-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.course-item:last-child {
    border-bottom: none;
}

.course-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.course-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.course-meta i {
    margin-right: 4px;
}

.course-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 100px;
}

.course-progress {
    width: 100px;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8B5CF6);
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

.course-item.completed .course-start-btn {
    background: var(--success);
}

/* Course Modal */
.course-modal-content {
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.course-header {
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.course-header-info h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.course-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.course-progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.course-progress-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.course-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.course-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--bg-input);
    display: flex;
    justify-content: space-between;
}

/* Course Lesson Content */
.lesson-content {
    max-width: 700px;
    margin: 0 auto;
}

.lesson-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lesson-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.lesson-content ul, .lesson-content ol {
    margin: 16px 0 16px 24px;
    line-height: 2;
    color: var(--text-primary);
}

/* Hero boxes with colored backgrounds need white text */
.lesson-content .hero-box,
.lesson-content .hero-box h3,
.lesson-content .hero-box p,
.lesson-content .hero-box strong {
    color: white !important;
}

.lesson-content .highlight-box {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.lesson-content .highlight-box h4 {
    color: var(--accent);
    margin-bottom: 8px;
}

/* Lesson Tables */
.lesson-content table.lesson-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.lesson-content table.lesson-table th,
.lesson-content table.lesson-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--bg-input);
}

.lesson-content table.lesson-table th {
    background: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
}

.lesson-content table.lesson-table td {
    color: var(--text-primary);
}

.lesson-content table.lesson-table tr.highlight-row {
    background: rgba(79, 70, 229, 0.15);
}

.lesson-content table.lesson-table tr.highlight-row td {
    color: var(--text-primary);
}

/* Pain Grid */
.lesson-content .pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.lesson-content .pain-item {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 16px;
}

.lesson-content .pain-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lesson-content .pain-item p {
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Big Quote */
.lesson-content .big-quote {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* ROI Examples */
.lesson-content .roi-example {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.lesson-content .roi-example p:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.lesson-content .roi-result {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
}

/* Lesson H3 */
.lesson-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-input);
    padding-bottom: 8px;
}

/* Quiz Styles */
.quiz-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.quiz-container h3 {
    color: var(--accent);
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.quiz-question {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-input);
}

.quiz-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quiz-question p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--accent);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.15);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--accent);
}

.quiz-option label {
    cursor: pointer;
    flex: 1;
    color: var(--text-secondary);
}

.quiz-option.selected label,
.quiz-option.correct label,
.quiz-option.incorrect label {
    color: var(--text-primary);
}

.quiz-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.quiz-submit-btn:hover {
    background: var(--accent-hover);
}

.quiz-submit-btn:disabled {
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.quiz-result {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.quiz-result.passed {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
}

.quiz-result.failed {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
}

.quiz-result h4 {
    margin-bottom: 8px;
}

.quiz-result.passed h4 {
    color: var(--success);
}

.quiz-result.failed h4 {
    color: var(--danger);
}

.quiz-score {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0;
}

.quiz-result.passed .quiz-score {
    color: var(--success);
}

.quiz-result.failed .quiz-score {
    color: var(--danger);
}

/* Feature Comparison Cards */
.lesson-content .feature-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.lesson-content .compare-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
}

.lesson-content .compare-card.highlight {
    background: rgba(79, 70, 229, 0.15);
    border: 2px solid var(--accent);
}

.lesson-content .compare-card h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.lesson-content .compare-card.highlight h4 {
    color: var(--accent);
}

/* Talk Track Box */
.lesson-content .talk-track {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.lesson-content .talk-track h4 {
    color: var(--warning);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-content .talk-track h4::before {
    content: "💬";
}

.lesson-content .talk-track p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Objection Box */
.lesson-content .objection-box {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.lesson-content .objection {
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 12px;
}

.lesson-content .objection::before {
    content: "❌ ";
}

.lesson-content .response {
    color: var(--success);
    padding-left: 20px;
    border-left: 3px solid var(--success);
}

.lesson-content .response::before {
    content: "✅ ";
}

/* Warning Box */
.lesson-content .warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.lesson-content .warning-box h4 {
    color: var(--danger);
    margin-bottom: 8px;
}

.lesson-content .warning-box h4::before {
    content: "⚠️ ";
}

/* Pro Tip Box */
.lesson-content .pro-tip {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.lesson-content .pro-tip h4 {
    color: #8B5CF6;
    margin-bottom: 12px;
}

.lesson-content .pro-tip h4::before {
    content: "💡 ";
}

/* Badge Earned Modal */
.badge-modal-content {
    max-width: 400px;
    text-align: center;
}

.badge-celebration {
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.badge-earned-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    animation: badgePop 0.5s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.badge-celebration h2 {
    color: var(--warning);
    margin-bottom: 8px;
}

.badge-celebration h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.badge-celebration p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   MOBILE RESPONSIVE STYLES
   ============================================= */

/* --- Global Mobile Adjustments --- */
@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
    }
}

/* --- Top Bar Mobile --- */
@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand {
        font-size: 18px;
    }

    .user-area {
        width: 100%;
        justify-content: space-between;
    }

    #user-name {
        font-size: 13px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* --- Tabs Mobile (Horizontal Scroll) --- */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 12px;
        gap: 6px;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* --- Stats Grid Mobile --- */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }
}

/* --- Tables Mobile --- */
@media (max-width: 768px) {
    .table th, .table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .table th, .table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .table th:nth-child(n+4),
    .table td:nth-child(n+4) {
        display: none;
    }

    .table.show-all-cols th,
    .table.show-all-cols td {
        display: table-cell;
    }
}

/* --- Training Section Mobile --- */
@media (max-width: 768px) {
    /* New Training Hero Mobile */
    .training-hero {
        flex-direction: column;
        padding: 24px 20px;
        gap: 24px;
    }

    .training-hero-left {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .training-hero-info {
        text-align: center;
    }

    .training-hero-info h2 {
        font-size: 1.4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .training-hero-right {
        width: 100%;
        align-items: center;
    }

    .level-card {
        width: 100%;
        min-width: auto;
    }

    .progress-ring-container {
        width: 100px;
        height: 100px;
    }

    .progress-ring {
        width: 100px;
        height: 100px;
    }

    .progress-percent {
        font-size: 1.4rem;
    }

    /* Course Filters Mobile */
    .course-filters {
        flex-direction: column;
        gap: 12px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .course-search {
        width: 100%;
        min-width: auto;
    }

    /* Recommended Course Mobile */
    .recommended-course-card {
        padding: 16px;
    }

    .recommended-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .recommended-meta {
        justify-content: center;
    }

    .btn-glow {
        width: 100%;
        justify-content: center;
    }

    /* Learning Paths Mobile */
    .path-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .path-progress {
        width: 100%;
    }

    .path-progress-bar {
        flex: 1;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    /* Old styles for compatibility */
    .training-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .training-stats {
        flex-wrap: wrap;
        width: 100%;
    }

    .training-stat {
        padding: 12px 16px;
        flex: 1;
        min-width: 100px;
    }

    .course-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .course-status {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
    }

    .course-progress {
        flex: 1;
        margin-right: 16px;
    }

    .badges-grid {
        justify-content: flex-start;
    }

    .course-info h4 {
        font-size: 15px;
    }

    .course-info p {
        font-size: 13px;
    }

    .course-meta span {
        font-size: 12px;
    }
}

/* --- Lesson Content Mobile --- */
@media (max-width: 768px) {
    .lesson-content {
        padding: 16px;
    }

    .lesson-content h2 {
        font-size: 20px;
    }

    .lesson-content h3 {
        font-size: 16px;
    }

    .lesson-content h4 {
        font-size: 14px;
    }

    .lesson-content p,
    .lesson-content li {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Lesson Tables */
    .lesson-content table.lesson-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }

    .lesson-content table.lesson-table th,
    .lesson-content table.lesson-table td {
        padding: 10px 12px;
        min-width: 100px;
    }

    /* Pain Grid */
    .lesson-content .pain-grid {
        grid-template-columns: 1fr;
    }

    .lesson-content .pain-card {
        padding: 16px;
    }

    /* Talk Tracks */
    .lesson-content .talk-track {
        padding: 16px;
        font-size: 14px;
    }

    .lesson-content .talk-track::before {
        font-size: 11px;
    }

    /* Objection Boxes */
    .lesson-content .objection-box {
        padding: 16px;
    }

    .lesson-content .objection-box h5 {
        font-size: 14px;
    }

    /* Pro Tips & Warning Boxes */
    .lesson-content .pro-tip,
    .lesson-content .warning-box {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Feature Grids */
    .lesson-content .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Quiz Mobile --- */
@media (max-width: 768px) {
    .quiz-container {
        padding: 16px;
    }

    .quiz-question {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .quiz-option {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 48px;
    }

    .quiz-submit-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .quiz-result {
        padding: 16px;
        font-size: 14px;
    }
}

/* --- Modals Mobile --- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* --- Forms Mobile --- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .btn-block {
        width: 100%;
    }
}

/* --- App Launcher Mobile --- */
@media (max-width: 480px) {
    .app-launcher-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .app-btn {
        padding: 12px 8px;
        font-size: 11px;
    }

    .app-btn i {
        font-size: 20px;
    }
}

/* --- Pricing Cards Mobile --- */
@media (max-width: 600px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pricing-card {
        padding: 16px;
    }

    .pricing-card h4 {
        font-size: 16px;
    }

    .pricing-card .price {
        font-size: 28px;
    }
}

/* --- Sales Guide Mobile --- */
@media (max-width: 768px) {
    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        display: none;
    }

    .guide-main {
        padding: 16px;
    }

    .guide-btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .guide-btn {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        min-height: 70px;
    }

    .guide-btn i {
        font-size: 20px;
    }

    .guide-btn-text {
        display: none;
    }

    .guide-content {
        padding: 16px;
    }
}

/* --- Battlecards Mobile --- */
@media (max-width: 768px) {
    .battlecard-grid {
        grid-template-columns: 1fr;
    }

    .battlecard {
        padding: 16px;
    }

    .flagship-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Lead/Sales Tables Mobile --- */
@media (max-width: 600px) {
    #leads-table th:nth-child(n+5),
    #leads-table td:nth-child(n+5),
    #sales-table th:nth-child(n+4),
    #sales-table td:nth-child(n+4) {
        display: none;
    }
}

/* --- Notifications Mobile --- */
@media (max-width: 480px) {
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }

    .notification-item {
        padding: 12px;
    }
}

/* --- Landing Page / QR Code Mobile --- */
@media (max-width: 600px) {
    .landing-page-card .card-body {
        flex-direction: column;
        gap: 16px;
    }

    .landing-url-section {
        text-align: center;
    }

    .qr-section {
        align-items: center;
    }

    .referral-code-display {
        flex-direction: column;
        gap: 8px;
    }

    .referral-code-display code {
        font-size: 18px;
        padding: 10px 16px;
    }
}

/* --- Materials Tab Mobile --- */
@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: 1fr;
    }

    .material-form {
        padding: 16px;
    }
}

/* --- Touch-Friendly Adjustments --- */
@media (max-width: 768px) {
    /* Ensure minimum tap target size */
    button,
    .btn,
    .tab-btn,
    .app-btn,
    .guide-btn,
    a.clickable,
    .notification-item,
    .quiz-option,
    .lesson-nav button {
        min-height: 44px;
    }

    /* Add spacing between clickable items */
    .course-list .course-item {
        margin-bottom: 12px;
    }

    .lesson-list .lesson-item {
        padding: 12px 16px;
        margin-bottom: 4px;
    }
}

/* --- Very Small Screens (320px) --- */
@media (max-width: 380px) {
    .main-content {
        padding: 12px;
    }

    .brand {
        font-size: 16px;
    }

    .brand span {
        display: none;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .course-meta {
        flex-wrap: wrap;
        gap: 4px;
    }

    .course-meta span {
        font-size: 11px;
    }
}

/* --- Onboarding Tour Mobile --- */
@media (max-width: 600px) {
    .tour-modal {
        padding: 16px;
        margin: 16px;
        max-width: calc(100vw - 32px);
    }

    .tour-modal h2 {
        font-size: 20px;
    }

    .tour-modal p {
        font-size: 14px;
    }

    .tour-progress {
        gap: 4px;
    }

    .tour-progress span {
        width: 24px;
        height: 4px;
    }

    .tour-nav {
        flex-direction: column;
        gap: 8px;
    }

    .tour-nav button {
        width: 100%;
    }
}

/* --- iOS Smooth Scrolling & Fixes --- */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific fixes */
    .tabs,
    .table-responsive,
    .modal-content,
    .lesson-content {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent iOS zoom on form focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* --- Safe Area Padding (Notched Phones) --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .modal-footer,
    .tour-nav {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .top-bar {
        padding-top: calc(16px + env(safe-area-inset-top));
    }
}

/* --- Landscape Mobile Adjustments --- */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
    }

    .tour-modal {
        padding: 12px 16px;
    }

    .tour-modal h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .badge-celebration {
        padding: 16px;
    }

    .badge-icon {
        font-size: 32px;
    }
}

/* ============================================
   ENHANCED TRAINING FEATURES
   ============================================ */

/* Badge "Coming Soon" / "New" */
.badge-new {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Video Demo Library */
.video-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.video-category h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-input);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.video-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.video-item.placeholder {
    opacity: 0.6;
}

.video-item.placeholder:hover {
    opacity: 0.8;
}

/* Available video indicator */
.video-item:not(.placeholder) {
    border: 1px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-input));
}

.video-item:not(.placeholder):hover {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.video-item:not(.placeholder) .video-thumb {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    overflow: hidden;
}

.video-item:not(.placeholder) .video-thumb i {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 2;
    font-size: 1.5rem;
    opacity: 0.9;
    transition: transform 0.2s, opacity 0.2s;
}

.video-item:not(.placeholder):hover .video-thumb i {
    transform: scale(1.2);
    opacity: 1;
}

/* Watch badge for available videos */
.video-item:not(.placeholder)::after {
    content: 'WATCH';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--success);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.video-item:not(.placeholder) {
    position: relative;
}

/* Viewed video indicator */
.video-item.viewed::after {
    content: '\2713  VIEWED';
    background: var(--accent);
}

.video-item.viewed {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-subtle), var(--bg-input));
}

.video-item.viewed:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.video-item.viewed .video-thumb {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(79, 70, 229, 0.1));
}

.video-item.viewed .video-thumb i.fa-play::before {
    content: '\f00c';
}

/* Coming soon badge for placeholders */
.video-item.placeholder::after {
    content: 'SOON';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid var(--bg-input);
}

.video-item.placeholder {
    position: relative;
}

.video-thumb {
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.video-thumb i {
    font-size: 1.2rem;
    color: var(--accent);
}

.video-thumb span {
    font-size: 0.65rem;
    color: var(--text-secondary);
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    padding: 2px 4px;
    border-radius: 3px;
}

.video-info h5 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.video-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Flashcard Deck */
.flashcard-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.flashcard {
    perspective: 1000px;
    height: 200px;
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.flashcard-front {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
    border: 2px solid var(--bg-input);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flashcard-front:hover {
    border-color: var(--accent);
}

.flashcard-back {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.1));
    border: 2px solid var(--accent);
    transform: rotateY(180deg);
    overflow-y: auto;
}

.objection-tag {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.flashcard-front h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.flip-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

.flashcard-back h5 {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.flashcard-back p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Weekly Challenge */
.challenge-timer {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.challenge-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.challenge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8B5CF6;
    font-weight: 600;
    letter-spacing: 1px;
}

.challenge-info h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 8px 0;
}

.challenge-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.challenge-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.reward-xp {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reward-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reward-badge i {
    color: #F59E0B;
}

.challenge-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.challenge-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 8px;
    transition: all 0.2s;
}

.challenge-task.completed {
    background: rgba(16, 185, 129, 0.15);
}

.challenge-task.completed .task-checkbox i {
    color: var(--success);
}

.challenge-task.completed span:first-of-type {
    text-decoration: line-through;
    opacity: 0.7;
}

.challenge-task.bonus {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px dashed rgba(245, 158, 11, 0.3);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox i {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.challenge-task span:first-of-type {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.task-xp {
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.85rem;
}

.challenge-progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
    border-radius: 4px;
    transition: width 0.3s;
}

.challenge-progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 8px;
}

.lb-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-tab:hover {
    color: var(--text-primary);
}

.lb-tab.active {
    background: var(--accent);
    color: white;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--bg-input);
    transition: background 0.2s;
}

.lb-row:hover {
    background: var(--bg-input);
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row.lb-top1 {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
}

.lb-row.lb-top2 {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1), transparent);
}

.lb-row.lb-top3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
}

.lb-row.lb-you {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    margin: 8px;
}

.lb-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.lb-top1 .lb-rank {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.lb-top2 .lb-rank {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    color: white;
}

.lb-top3 .lb-rank {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.lb-rank span {
    line-height: 1;
}

.lb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.lb-name {
    display: flex;
    flex-direction: column;
}

.lb-name strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lb-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lb-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lb-xp {
    font-weight: 700;
    color: #F59E0B;
    font-size: 0.95rem;
}

.lb-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lb-badges i {
    color: #F59E0B;
}

.lb-streak {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #EF4444;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Quick Pitch Scripts */
.pitch-scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.pitch-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pitch-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pitch-card:active {
    transform: scale(0.98);
}

.pitch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pitch-header i {
    font-size: 1.2rem;
}

.pitch-header h5 {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--accent);
}

.pitch-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Sales Tools - Calculators */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tool-header i {
    font-size: 1.5rem;
}

.tool-header h4 {
    margin: 0;
    flex: 1;
}

.tool-badge {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 16px 0;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.calc-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-row label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-row select,
.calc-row input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.9rem;
    color-scheme: dark;
}

.calc-row select {
    cursor: pointer;
}

.calc-row select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px;
}

.calc-row select:focus,
.calc-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.calc-results {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-row strong {
    font-size: 1rem;
    color: var(--text);
}

.result-row .highlight-green {
    color: #10B981;
    font-size: 1.2rem;
}

.result-row.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    margin: 8px -16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
}

.result-row.featured strong {
    color: #8B5CF6;
    font-size: 1.1rem;
}

/* Tool card full width */
.tool-card-full {
    grid-column: 1 / -1;
}

/* Outreach Generator */
.outreach-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.outreach-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.outreach-output {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border);
}

.output-header span {
    font-weight: 600;
    color: var(--text);
}

.output-content {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.output-content pre {
    color: var(--text);
}

.output-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Print Center */
.print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.print-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.print-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.print-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #F97316, #FB923C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.print-card h5 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: var(--text);
}

.print-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive for new features */
@media (max-width: 768px) {
    .video-library-grid {
        grid-template-columns: 1fr;
    }

    .flashcard-deck {
        grid-template-columns: 1fr;
    }

    .challenge-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .challenge-reward {
        align-items: center;
    }

    .leaderboard-tabs {
        flex-wrap: wrap;
    }

    .lb-row {
        flex-wrap: wrap;
    }

    .lb-stats {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .pitch-scripts-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .outreach-row {
        grid-template-columns: 1fr;
    }

    .print-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SKIP NAVIGATION
   ============================================ */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 16px;
}

/* ============================================
   SETTINGS PANEL
   ============================================ */
.settings-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    z-index: 10002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.settings-panel.active {
    right: 0;
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.settings-panel-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-panel-header h3 i {
    color: var(--accent);
}

.settings-panel-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-options {
    display: flex;
    gap: 6px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.settings-option {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.settings-option:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.settings-option.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal-overlay);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   UNIVERSAL SEARCH
   ========================================== */
.universal-search {
    position: relative;
    margin-right: 12px;
    flex-shrink: 1;
}

.universal-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--bg-card);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.universal-search-trigger:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.universal-search-trigger i {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.universal-search-trigger input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 200px;
    padding: 0;
}

.universal-search-trigger input::placeholder {
    color: var(--text-secondary);
}

.search-kbd {
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-family: inherit;
    pointer-events: none;
}

.search-results-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--bg-input);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    margin-top: 4px;
    z-index: 1000;
    display: none;
}

.search-results-overlay.active {
    display: block;
}

.search-category {
    padding: 4px 0;
}

.search-category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background: var(--accent-subtle);
}

.search-result-title {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.search-result-title mark {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.search-result-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.search-no-results i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Search highlight animation for navigated items */
.search-highlight {
    animation: searchHighlightPulse 2s ease-out;
}

@keyframes searchHighlightPulse {
    0% { box-shadow: 0 0 0 4px var(--accent); }
    100% { box-shadow: 0 0 0 0px transparent; }
}

/* ==========================================
   VIDEO SEARCH & FILTER PILLS
   ========================================== */
.video-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.video-search-bar:focus-within {
    border-color: var(--accent);
}

.video-search-bar i {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.video-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.video-filter-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.video-filter-pills::-webkit-scrollbar {
    display: none;
}

.video-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--bg-input);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.video-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.video-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================================
   OFFLINE BANNER
   ========================================== */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F59E0B;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==========================================
   MOBILE BOTTOM NAV (< 768px only)
   ========================================== */
.mobile-bottom-nav {
    display: none;
}

.mobile-fab-container {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--bg-card);
        border-top: 1px solid var(--bg-input);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 4px 0;
        padding-bottom: env(safe-area-inset-bottom, 4px);
    }

    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px 6px;
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 0.65rem;
        cursor: pointer;
        transition: color 0.2s;
    }

    .mobile-nav-btn i {
        font-size: 1.15rem;
    }

    .mobile-nav-btn.active {
        color: var(--accent);
    }

    .mobile-nav-btn.active i {
        color: var(--accent);
    }

    /* Add padding to main content so it isn't hidden behind bottom nav */
    .main-content {
        padding-bottom: 80px !important;
    }

    /* Universal search - icon-only on mobile, expands on focus */
    .universal-search-trigger input {
        width: 0;
        padding: 0;
        opacity: 0;
        transition: width 0.3s, opacity 0.2s;
    }

    .universal-search-trigger:focus-within input {
        width: 150px;
        opacity: 1;
    }

    .search-kbd {
        display: none;
    }

    .search-results-overlay {
        position: fixed;
        top: 56px;
        left: 8px;
        right: 8px;
        min-width: auto;
    }

    /* FAB */
    .mobile-fab-container {
        display: block;
        position: fixed;
        bottom: 76px;
        right: 16px;
        z-index: 950;
    }

    .fab-main {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--accent);
        color: #fff;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
        transition: transform 0.3s, background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fab-main:hover {
        background: var(--accent-hover);
    }

    .mobile-fab-container.expanded .fab-main {
        transform: rotate(45deg);
        background: var(--danger, #EF4444);
    }

    .fab-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: -1;
    }

    .mobile-fab-container.expanded .fab-backdrop {
        display: block;
    }

    .fab-actions {
        position: absolute;
        bottom: 60px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity 0.25s, transform 0.25s;
    }

    .mobile-fab-container.expanded .fab-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .fab-action-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: var(--bg-card);
        color: var(--text-primary);
        border: 1px solid var(--bg-input);
        border-radius: 24px;
        font-size: 0.82rem;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        white-space: nowrap;
        transition: background 0.2s;
    }

    .fab-action-btn:hover {
        background: var(--accent-subtle);
    }

    .fab-action-btn i {
        color: var(--accent);
    }

    /* Mobile notification dropdown fix */
    #notification-dropdown {
        position: fixed !important;
        top: 56px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Mobile settings panel slide-in */
    .settings-panel {
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 2000 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
    }

    .settings-panel.active {
        right: 0 !important;
    }

    /* Video player responsive */
    .video-modal-content {
        width: 95vw !important;
        max-width: none !important;
    }

    .video-modal-body video {
        max-width: 100%;
        height: auto;
    }

    /* Landscape modal height fix */
    .modal .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* --- Print Styles (for sales materials) --- */
@media print {
    .top-bar,
    .tabs,
    .btn,
    .modal,
    .settings-panel {
        display: none !important;
    }

    .main-content {
        max-width: 100%;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
        color: black;
    }
}

/* --- Onboarding Document Panels & Forms --- */
.doc-panel {
    margin-top: 12px;
    animation: docPanelSlide 0.2s ease;
}
@keyframes docPanelSlide {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 5000px; }
}

.ob-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ob-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.ob-form-group label {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ob-form-row {
    display: flex;
    gap: 12px;
}
@media (max-width: 640px) {
    .ob-form-row {
        flex-direction: column;
    }
}

.doc-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-circle.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border-color: #10B981;
}

.coming-soon-text {
    color: var(--text-muted);
    font-size: 0.85em;
}
