/**
 * Affiliate Agency Pro 2026 — Agency Edition
 * assets/css/agency.css
 *
 * COMPLETE page-level styles for all 7 agency tools.
 * Load AFTER shared-styles.css.
 */

/* ══════════════════════════════════════════════
   AGENCY CSS VARIABLES
   ══════════════════════════════════════════════ */
:root {
    --agency-purple:     #8b5cf6;
    --agency-purple-dk:  #6d28d9;
    --agency-pink:       #ec4899;
    --agency-gradient:   linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #ec4899 100%);
    --agency-glow:       0 0 24px rgba(139, 92, 246, .35);
    --agency-gold:       #f59e0b;
    --agency-gold-dk:    #d97706;
    --agency-gold-dark:  #d97706;
}

/* ══════════════════════════════════════════════
   AGENCY TOP BANNER
   ══════════════════════════════════════════════ */
.agency-top-banner {
    background: var(--agency-gradient);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .04em;
    gap: 12px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}
.agency-top-banner .banner-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.agency-top-banner .bbadge {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .72rem;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.header {
    position: fixed;
    top: var(--banner-height, 42px);
    left: 0; right: 0;
    z-index: 900;
    background: var(--bg-secondary, #1e293b);
    border-bottom: 1px solid rgba(255,255,255,.07);
    height: var(--header-height, 64px);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}
.header-brand { display: flex; align-items: center; gap: 12px; flex: 1; }
.header-brand-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.header-brand-text h1 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.header-brand-text span { font-size: 0.72rem; color: var(--agency-purple); font-weight: 600; }
.header-nav { display: flex; gap: 8px; align-items: center; }
.header-nav a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all .2s;
    display: flex; align-items: center; gap: 6px;
}
.header-nav a:hover { background: rgba(255,255,255,.06); color: var(--text-primary, #f1f5f9); }
.agency-nav-link {
    background: var(--agency-gradient) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 6px 14px !important;
    font-weight: 700 !important;
}
.agency-nav-link:hover { opacity: .88; }

/* ══════════════════════════════════════════════
   MOBILE TOGGLE
   ══════════════════════════════════════════════ */
.mobile-menu-toggle, .hamburger {
    background: none; border: none;
    color: var(--text-primary, #f1f5f9);
    font-size: 1.25rem; cursor: pointer;
    padding: 6px 10px; border-radius: 8px;
    transition: background .2s;
    display: none;
}
.mobile-menu-toggle:hover, .hamburger:hover { background: rgba(255,255,255,.08); }
@media (max-width: 1024px) {
    .mobile-menu-toggle, .hamburger { display: flex; align-items: center; }
}

/* ══════════════════════════════════════════════
   SIDEBAR OVERLAY
   ══════════════════════════════════════════════ */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 899;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ══════════════════════════════════════════════
   SIDEBAR — Agency Section
   ══════════════════════════════════════════════ */
.sidebar-section.agency-section {
    border: 1px solid rgba(139,92,246,.35);
    border-radius: 12px;
    background: rgba(139,92,246,.08);
    margin-bottom: 6px;
}
.sidebar-section.agency-section .sidebar-title { color: var(--agency-purple); }
.sidebar-section.agency-section .sidebar-nav a { color: #c4b5fd; }
.sidebar-section.agency-section .sidebar-nav a:hover { color: #fff; background: rgba(139,92,246,.2); }

/* ══════════════════════════════════════════════
   LAYOUT — main content + sidebar
   ══════════════════════════════════════════════ */
.main-content { margin-left: var(--sidebar-width, 280px); }
@media (max-width: 1024px) { .main-content { margin-left: 0; } }

/* ══════════════════════════════════════════════
   INNER TOPBAR (per-page sub-header)
   ══════════════════════════════════════════════ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
    background: var(--bg-secondary, #1e293b);
    border-radius: 12px;
    margin-bottom: 24px;
}
.topbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}
.topbar-badge {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.3);
    color: var(--agency-gold);
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
}

/* ══════════════════════════════════════════════
   CONTENT AREA
   ══════════════════════════════════════════════ */
.content-area { padding: 0 24px 40px; }

/* ══════════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════════ */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem; font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px;
}
.section-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 20px;
}
.section-header { margin-bottom: 14px; }
.section-block {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px;
}

/* ══════════════════════════════════════════════
   BUTTONS — Gold / Outline / Ghost / Danger
   ══════════════════════════════════════════════ */
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--agency-gold), var(--agency-gold-dk));
    color: #000; border: none; padding: 10px 20px;
    border-radius: 10px; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-gold:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: var(--text-primary, #f1f5f9);
    padding: 10px 20px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.06);
    border: none; color: var(--text-secondary, #94a3b8);
    padding: 10px 20px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text-primary, #f1f5f9); }

.btn-danger {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    color: #ef4444; padding: 10px 20px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.btn-danger:hover { background: rgba(239,68,68,.25); }

/* ══════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.75); z-index: 2000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #0f172a;
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 16px; padding: 28px;
    width: 580px; max-width: 95vw;
    max-height: 90vh; overflow-y: auto;
}
.modal-box h2, .modal-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--agency-gold); margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary, #94a3b8); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 8px; padding: 10px 14px;
    color: var(--text-primary, #f1f5f9);
    font-size: 0.88rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color .2s;
    width: 100%; box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--agency-purple);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group select option { background: #1e293b; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   PAGE FOOTER
   ══════════════════════════════════════════════ */
.page-footer {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    border-top: 1px solid rgba(255,255,255,.05);
    margin-top: 32px;
}

/* ══════════════════════════════════════════════
   ▌ AGENCY WELCOME
   ══════════════════════════════════════════════ */
.hero-welcome::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at center,rgba(245,158,11,0.08) 0%,transparent 60%); pointer-events: none; }
.hero-welcome { background: linear-gradient(135deg,#1a1200 0%,#2d1f00 40%,#1a0d00 100%); border: 1px solid rgba(245,158,11,0.3); border-radius: 20px; padding: 48px 40px; text-align: center; position: relative; overflow: hidden; margin-bottom: 32px; }
.hero-welcome h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg,#fcd34d,var(--agency-gold),#f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.hero-welcome p { color: #fcd34d; font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; opacity: 0.9; }
.hero-crown { font-size: 4rem; display: block; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-name { font-size: 1.8rem; font-weight: 700; color: var(--agency-gold); font-family: 'Space Grotesk', sans-serif; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
    position: absolute; border-radius: 2px;
    animation: confetti-fall linear infinite;
}
@keyframes confetti-fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(400px) rotate(720deg); opacity: 0; } }

.unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.unlocked-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px;
    position: relative; transition: border-color .2s;
}
.unlocked-card:hover { border-color: rgba(245,158,11,.3); }
.unlocked-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.unlocked-card p { font-size: 0.82rem; color: var(--text-muted, #94a3b8); margin: 0; line-height: 1.5; }
.unlocked-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.check-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--success, #10b981);
    color: #fff; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700;
}

.checklist-section {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; padding: 24px; margin-bottom: 32px;
}
.checklist-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 10px;
    cursor: pointer; transition: background .15s;
    border: 1px solid transparent; margin-bottom: 6px;
}
.checklist-item:hover { background: rgba(255,255,255,.04); }
.checklist-item.done { opacity: .6; }
.checklist-item.done .item-label { text-decoration: line-through; }
.item-num {
    font-size: 0.68rem; font-weight: 700;
    color: var(--text-muted, #64748b); min-width: 24px;
    font-family: 'Space Grotesk', sans-serif;
}
.custom-check {
    width: 20px; height: 20px; border-radius: 6px;
    border: 2px solid rgba(99,102,241,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: transparent; transition: all .2s; flex-shrink: 0;
}
.checklist-item.done .custom-check {
    background: var(--success, #10b981);
    border-color: var(--success, #10b981); color: #fff;
}
.item-label { font-size: 0.88rem; color: var(--text-primary, #f1f5f9); }
.progress-bar-wrap {
    height: 8px; background: rgba(255,255,255,.08);
    border-radius: 4px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: var(--agency-gradient);
    border-radius: 4px; transition: width .3s;
}
.progress-text { font-size: 0.78rem; font-weight: 700; color: var(--agency-gold); white-space: nowrap; }

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px; margin-bottom: 32px;
}
.file-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    transition: border-color .2s;
}
.file-card:hover { border-color: rgba(245,158,11,.3); }
.file-icon { font-size: 1.5rem; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary, #f1f5f9); margin-bottom: 3px; }
.file-desc { font-size: 0.72rem; color: var(--text-muted, #94a3b8); }
.btn-open {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.25);
    color: var(--agency-gold);
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.72rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: all .2s;
}
.btn-open:hover { background: rgba(245,158,11,.2); }

.cta-section {
    background: var(--agency-gradient);
    border-radius: 16px; padding: 36px 24px;
    text-align: center; margin-bottom: 32px;
    box-shadow: var(--agency-glow);
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 0.9rem; margin-bottom: 20px; }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.tip-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px;
    transition: border-color .2s;
}
.tip-card:hover { border-color: rgba(139,92,246,.3); }
.tip-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.tip-card p { font-size: 0.8rem; color: var(--text-muted, #94a3b8); margin: 0; line-height: 1.55; }
.tip-num {
    font-size: 0.65rem; font-weight: 800;
    color: var(--agency-purple); letter-spacing: .08em;
    margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif;
}

/* ══════════════════════════════════════════════
   ▌ AGENCY DASHBOARD
   ══════════════════════════════════════════════ */
.license-badge {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    color: #10b981; padding: 4px 12px;
    border-radius: 20px; font-size: 0.72rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.kpi-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px;
    position: relative; transition: border-color .2s;
}
.kpi-card:hover { border-color: rgba(245,158,11,.3); }
.kpi-icon { font-size: 1.6rem; margin-bottom: 10px; }
.kpi-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text-primary, #f1f5f9); margin-bottom: 6px; }
.kpi-sub { font-size: 0.72rem; color: var(--text-muted, #64748b); display: flex; align-items: center; gap: 5px; }
.kpi-edit-btn {
    position: absolute; top: 14px; right: 14px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.2);
    color: var(--agency-purple); width: 28px; height: 28px;
    border-radius: 8px; cursor: pointer; font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all .2s;
}
.kpi-edit-btn:hover { background: rgba(99,102,241,.2); }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 28px;
}
.quick-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 16px;
    text-align: center; text-decoration: none;
    transition: all .2s; cursor: pointer;
    display: block;
}
.quick-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-2px); }
.quick-card.gold { border-color: rgba(245,158,11,.2); }
.quick-card.gold:hover { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.05); }
.quick-card-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.quick-card-label { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary, #94a3b8); }

.table-wrap {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; overflow: hidden; margin-bottom: 28px;
}
.table-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.table-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; margin: 0; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead th {
    padding: 10px 16px; font-size: 0.7rem; font-weight: 700;
    color: var(--text-muted, #94a3b8); text-transform: uppercase;
    letter-spacing: .06em; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.table-wrap tbody td { padding: 12px 16px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: rgba(255,255,255,.02); }

.status-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.status-active { background: rgba(16,185,129,.15); color: #10b981; }
.status-lead { background: rgba(99,102,241,.15); color: #a5b4fc; }
.status-onboarding { background: rgba(245,158,11,.15); color: #f59e0b; }
.status-completed { background: rgba(148,163,184,.15); color: #94a3b8; }
.status-paused { background: rgba(239,68,68,.12); color: #ef4444; }

.plan-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.plan-starter { background: rgba(99,102,241,.12); color: #a5b4fc; }
.plan-pro { background: rgba(139,92,246,.15); color: #c4b5fd; }
.plan-agency { background: rgba(245,158,11,.15); color: #f59e0b; }
.plan-custom { background: rgba(16,185,129,.12); color: #10b981; }
.plan-197 { background: rgba(245,158,11,.15); color: #f59e0b; }
.plan-97 { background: rgba(139,92,246,.15); color: #c4b5fd; }
.plan-47 { background: rgba(99,102,241,.12); color: #a5b4fc; }

.chart-section {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px; margin-bottom: 28px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-bar-container {
    display: flex; align-items: flex-end; gap: 6px;
    height: 160px; padding: 0 4px;
}
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; }
.chart-bar {
    width: 100%; background: var(--agency-gradient);
    border-radius: 4px 4px 0 0; min-height: 2px;
    position: relative; transition: height .4s; cursor: pointer;
}
.chart-bar:hover { opacity: .8; }
.chart-bar-val {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    font-size: 0.55rem; font-weight: 700; color: var(--agency-gold);
    white-space: nowrap;
}
.chart-baseline { height: 2px; background: rgba(255,255,255,.08); margin: 0 4px; }

.milestone-section {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px; margin-bottom: 28px;
}
.milestone-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-item.achieved .milestone-icon { filter: none; }
.milestone-icon { font-size: 1.5rem; min-width: 36px; text-align: center; }
.milestone-info { flex: 1; }
.milestone-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.milestone-target { font-size: 0.72rem; color: var(--text-muted, #94a3b8); }
.milestone-bar-wrap {
    width: 140px; height: 6px;
    background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden;
}
.milestone-bar {
    height: 100%; background: var(--agency-gradient);
    border-radius: 3px; transition: width .5s;
}
.milestone-pct { font-size: 0.72rem; font-weight: 700; color: var(--agency-gold); min-width: 32px; text-align: right; }

.quick-actions {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px; margin-bottom: 28px;
}
.quick-links { display: flex; flex-direction: column; gap: 6px; }
.quick-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    text-decoration: none; color: var(--text-primary, #f1f5f9);
    font-size: 0.85rem; font-weight: 500;
    transition: background .15s;
    border: 1px solid transparent;
}
.quick-link:hover { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); }
.quick-link span { font-size: 1rem; }

/* ══════════════════════════════════════════════
   ▌ AGENCY LICENSE
   ══════════════════════════════════════════════ */
.license-doc {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px; overflow: hidden; margin-bottom: 24px;
}
.license-header {
    background: var(--agency-gradient);
    padding: 40px 32px; text-align: center;
}
.license-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.license-header .subtitle {
    font-size: 0.75rem; font-weight: 700;
    color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase;
}
.license-seal { font-size: 3rem; margin-bottom: 14px; display: block; }
.license-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-top: 18px;
}
.license-meta-item {
    background: rgba(255,255,255,.15);
    border-radius: 8px; padding: 6px 14px;
    font-size: 0.78rem; color: rgba(255,255,255,.9);
}
.license-body { padding: 32px; }
.license-section {
    margin-bottom: 28px; padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.license-section:last-child { border-bottom: none; }
.license-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    color: var(--agency-gold); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.license-section p { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary, #94a3b8); margin-bottom: 10px; }
.license-section ul { padding-left: 20px; margin-bottom: 10px; }
.license-section ul li { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary, #94a3b8); margin-bottom: 6px; }
ul.green li::marker { color: #10b981; }
ul.red li::marker { color: #ef4444; }

.license-highlight {
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 10px; padding: 14px 16px;
    font-size: 0.85rem; color: var(--text-primary, #f1f5f9);
    margin: 14px 0; line-height: 1.6;
}
.license-success {
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 10px; padding: 14px 16px;
    font-size: 0.85rem; color: var(--text-primary, #f1f5f9);
    margin: 14px 0; line-height: 1.6;
}
.license-warning {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 10px; padding: 14px 16px;
    font-size: 0.85rem; color: var(--text-primary, #f1f5f9);
    margin: 14px 0; line-height: 1.6;
}
.toc {
    background: rgba(99,102,241,.06);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 12px; padding: 20px; margin-bottom: 28px;
}
.toc h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.toc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.toc-link {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 7px;
    text-decoration: none; color: var(--text-secondary, #94a3b8);
    font-size: 0.8rem; transition: all .15s;
}
.toc-link:hover { color: var(--agency-gold); background: rgba(245,158,11,.06); }
.acceptance-box {
    background: rgba(16,185,129,.06);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 14px; padding: 32px;
    text-align: center; margin-top: 10px;
}
.acceptance-box h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.acceptance-box p { font-size: 0.88rem; color: var(--text-secondary, #94a3b8); }

/* ══════════════════════════════════════════════
   ▌ CLIENT MANAGEMENT
   ══════════════════════════════════════════════ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 16px; text-align: center;
}
.stat-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--agency-gold); margin-bottom: 4px; }
.stat-label { font-size: 0.72rem; color: var(--text-muted, #94a3b8); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.toolbar {
    display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; margin-bottom: 20px;
}
.search-box {
    flex: 1; min-width: 200px;
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 10px; padding: 0 14px;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted, #94a3b8); font-size: 0.88rem;
}
.search-box input {
    flex: 1; background: none; border: none;
    color: var(--text-primary, #f1f5f9); padding: 10px 0;
    font-size: 0.88rem; outline: none;
}
.filter-sel {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 10px; padding: 10px 14px;
    color: var(--text-primary, #f1f5f9); font-size: 0.82rem;
    cursor: pointer; outline: none;
}
.filter-sel option { background: #1e293b; }
.view-toggle { display: flex; gap: 6px; }
.view-btn {
    background: rgba(255,255,255,.06); border: none;
    color: var(--text-muted, #94a3b8);
    padding: 8px 12px; border-radius: 8px; cursor: pointer;
    font-size: 0.85rem; transition: all .15s;
}
.view-btn.active { background: var(--agency-purple); color: #fff; }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.client-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 18px;
    transition: border-color .2s;
}
.client-card:hover { border-color: rgba(245,158,11,.25); }
.client-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.avatar-active  { background: rgba(16,185,129,.2); color: #10b981; }
.avatar-lead    { background: rgba(99,102,241,.2); color: #a5b4fc; }
.avatar-onboarding { background: rgba(245,158,11,.2); color: #f59e0b; }
.avatar-completed  { background: rgba(148,163,184,.15); color: #94a3b8; }
.avatar-paused     { background: rgba(239,68,68,.15); color: #ef4444; }
.client-meta { flex: 1; min-width: 0; }
.client-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-biz { font-size: 0.72rem; color: var(--text-muted, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.78rem; }
.client-email { color: var(--text-muted, #94a3b8); display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-revenue { font-size: 1rem; font-weight: 800; color: #10b981; }
.client-days { font-size: 0.72rem; color: var(--text-muted, #64748b); }
.client-actions { display: flex; gap: 6px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 12px; }
.action-btn {
    flex: 1; padding: 7px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    border: none; display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .15s;
}
.action-btn.view { background: rgba(99,102,241,.1); color: #a5b4fc; }
.action-btn.view:hover { background: rgba(99,102,241,.2); }
.action-btn.edit { background: rgba(245,158,11,.1); color: #f59e0b; }
.action-btn.edit:hover { background: rgba(245,158,11,.2); }
.action-btn.del { background: rgba(239,68,68,.1); color: #ef4444; flex: 0; padding: 7px 12px; }
.action-btn.del:hover { background: rgba(239,68,68,.2); }

.badge {
    display: inline-block; padding: 2px 9px;
    border-radius: 20px; font-size: 0.68rem; font-weight: 700; white-space: nowrap;
}
.badge-active { background: rgba(16,185,129,.15); color: #10b981; }
.badge-lead { background: rgba(99,102,241,.15); color: #a5b4fc; }
.badge-onboarding { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-completed { background: rgba(148,163,184,.12); color: #94a3b8; }
.badge-paused { background: rgba(239,68,68,.12); color: #ef4444; }
.badge-starter { background: rgba(99,102,241,.12); color: #a5b4fc; }
.badge-pro { background: rgba(139,92,246,.15); color: #c4b5fd; }
.badge-agency { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-custom { background: rgba(16,185,129,.12); color: #10b981; }

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; align-items: start;
}
.kanban-col {
    background: rgba(15,23,42,.6);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; overflow: hidden;
}
.kanban-col-header {
    padding: 12px 16px; font-size: 0.8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kanban-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; padding: 12px;
    cursor: pointer; transition: border-color .15s;
}
.kanban-card:hover { border-color: rgba(245,158,11,.3); }

.empty-state {
    text-align: center; padding: 60px 24px;
    color: var(--text-muted, #64748b); font-size: 0.85rem;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; opacity: .4; }

.notes-list { margin-bottom: 12px; }
.note-item {
    background: rgba(99,102,241,.06);
    border-left: 3px solid var(--agency-purple);
    border-radius: 6px; padding: 10px 12px;
    font-size: 0.85rem; margin-bottom: 8px; line-height: 1.5;
}
.note-ts { font-size: 0.68rem; color: var(--text-muted, #94a3b8); margin-bottom: 4px; }

/* ══════════════════════════════════════════════
   ▌ ONBOARDING CALL PREP
   ══════════════════════════════════════════════ */
.schedule-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 16px;
}
@media (max-width: 700px) { .schedule-options { grid-template-columns: 1fr; } }
.schedule-card {
    background: rgba(15,23,42,.6);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 14px; padding: 24px; text-align: center;
    transition: border-color .2s;
}
.schedule-card:hover { border-color: rgba(245,158,11,.35); }
.schedule-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.schedule-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.schedule-card p { font-size: 0.85rem; color: var(--text-muted, #94a3b8); line-height: 1.6; margin-bottom: 16px; }

.intake-success {
    display: none; background: rgba(16,185,129,.07);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 14px; padding: 32px; text-align: center;
    margin-top: 16px;
}
.intake-success.show { display: block; }
.intake-success h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: #10b981; margin-bottom: 8px; }

/* ══════════════════════════════════════════════
   ▌ REBRAND GUIDE
   ══════════════════════════════════════════════ */
.guide-hero {
    background: var(--agency-gradient);
    border-radius: 16px; padding: 32px;
    margin-bottom: 28px; box-shadow: var(--agency-glow);
}
.guide-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.guide-hero p { color: rgba(255,255,255,.85); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.permissions-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 28px;
}
@media (max-width: 700px) { .permissions-grid { grid-template-columns: 1fr; } }
.perm-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 20px;
}
.perm-card.can { border-color: rgba(16,185,129,.2); }
.perm-card.cannot { border-color: rgba(239,68,68,.15); }
.perm-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem; font-weight: 700;
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.perm-card.can .perm-header { color: #10b981; }
.perm-card.cannot .perm-header { color: #ef4444; }
.perm-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.82rem; color: var(--text-secondary, #94a3b8);
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04);
    line-height: 1.5;
}
.perm-item:last-child { border-bottom: none; }
.perm-icon { flex-shrink: 0; }

.step-block {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 24px;
    margin-bottom: 20px; position: relative;
}
.step-num {
    display: inline-block;
    background: var(--agency-gradient);
    color: #fff; font-size: 0.65rem; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: .1em; margin-bottom: 10px;
}
.step-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); line-height: 1.6; margin-bottom: 16px; }
.code-block {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 10px; padding: 16px 18px;
    font-family: 'Courier New', monospace; font-size: 0.82rem;
    line-height: 1.7; overflow-x: auto;
    white-space: pre;
}
.code-comment { color: #6b7280; }
.code-prop { color: #a5b4fc; }
.code-val { color: #6ee7b7; }

.color-vars {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.color-preview {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 20px;
    min-height: 100px;
}

/* ══════════════════════════════════════════════
   ▌ RESELL SALES KIT
   ══════════════════════════════════════════════ */
.guidance-box {
    background: rgba(99,102,241,.07);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 14px; padding: 20px;
    margin-bottom: 24px;
}
.guidance-box h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.guidance-box p { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); line-height: 1.6; margin: 0; }

.customize-panel {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(245,158,11,.2);
    border-radius: 14px; padding: 24px;
    margin-bottom: 24px;
}
.customize-panel h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.customize-panel p { font-size: 0.85rem; color: var(--text-muted, #94a3b8); margin-bottom: 18px; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cust-field { display: flex; flex-direction: column; gap: 6px; }
.cust-field label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: .04em; }
.cust-field input {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 8px; padding: 10px 14px;
    color: var(--text-primary, #f1f5f9); font-size: 0.88rem; outline: none;
    transition: border-color .2s;
}
.cust-field input:focus { border-color: var(--agency-gold); }
.cust-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.marketing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.mkt-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 16px; text-align: center;
    transition: border-color .2s;
}
.mkt-card:hover { border-color: rgba(245,158,11,.3); }
.mkt-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.mkt-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.mkt-card p { font-size: 0.75rem; color: var(--text-muted, #94a3b8); margin: 0; line-height: 1.5; }

.sales-preview-wrap {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; overflow: hidden; margin-bottom: 24px;
}
.preview-label {
    background: rgba(99,102,241,.1);
    border-bottom: 1px solid rgba(99,102,241,.2);
    padding: 10px 16px; font-size: 0.78rem; font-weight: 700;
    color: var(--agency-purple); display: flex; align-items: center; gap: 8px;
}
.sp-body { font-family: 'Inter', sans-serif; color: #f1f5f9; background: #020617; }
.sp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; background: rgba(0,0,0,.5);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sp-nav-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 800; }
.sp-nav-cta {
    background: #f59e0b; color: #000;
    border: none; border-radius: 8px; padding: 8px 18px;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.sp-hero {
    background: linear-gradient(135deg,#0f172a,#1e1b4b);
    padding: 64px 32px; text-align: center;
}
.sp-eyebrow {
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
    color: #ef4444; display: inline-block; padding: 4px 14px;
    border-radius: 20px; font-size: 0.72rem; font-weight: 700;
    margin-bottom: 20px; letter-spacing: .06em;
}
.sp-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; max-width: 640px; margin: 0 auto 16px; line-height: 1.2; }
.sp-hero h1 em { color: #f59e0b; font-style: normal; }
.sp-hero-sub { color: rgba(255,255,255,.75); font-size: 0.95rem; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.sp-hero-cta {
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #000; border: none; border-radius: 12px;
    padding: 16px 32px; font-size: 1rem; font-weight: 800;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.sp-hero-note { font-size: 0.75rem; color: rgba(255,255,255,.5); }
.sp-problem { padding: 48px 32px; background: rgba(0,0,0,.3); }
.sp-section { max-width: 720px; margin: 0 auto; }
.sp-section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.sp-section-sub { color: rgba(255,255,255,.7); font-size: 0.9rem; margin-bottom: 24px; }
.sp-problem-list { display: flex; flex-direction: column; gap: 10px; }
.sp-problem-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.12);
    border-radius: 10px; padding: 12px 16px; font-size: 0.85rem;
    color: rgba(255,255,255,.8);
}

/* ══════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════ */
.text-agency   { color: var(--agency-purple); }
.text-gold     { color: var(--agency-gold); }
.bg-agency     { background: var(--agency-gradient); }
.border-agency { border-color: rgba(139,92,246,.35); }
.page-header   { margin-bottom: var(--space-2xl, 32px); }
.page-header h1 { font-size: 2rem; margin-bottom: var(--space-sm, 8px); display: flex; align-items: center; gap: var(--space-md, 16px); }
.page-header p { color: var(--text-muted, #94a3b8); margin: 0; }

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .clients-grid { grid-template-columns: 1fr; }
    .topbar { padding: 12px 16px; }
    .content-area { padding: 0 16px 32px; }
    .license-body { padding: 20px 16px; }
    .toc-links { grid-template-columns: 1fr; }
    .sp-hero { padding: 40px 16px; }
    .sp-hero h1 { font-size: 1.4rem; }
    .sp-nav { padding: 12px 16px; }
    .sp-problem { padding: 32px 16px; }
    .cust-grid { grid-template-columns: 1fr; }
}

@media print {
    .agency-top-banner, .header, .sidebar, .topbar, .sidebar-overlay { display: none !important; }
    .main-content { margin-left: 0 !important; padding-top: 0 !important; }
    .license-doc { border: none; }
}

/* ══════════════════════════════════════════════
   ADDITIONAL CLASSES — agency-welcome
   ══════════════════════════════════════════════ */
.checklist-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.checklist-items { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════════
   ADDITIONAL CLASSES — onboarding-call-prep
   ══════════════════════════════════════════════ */
.agenda-timeline { position: relative; margin: 14px 0; }
.agenda-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 10px 0; position: relative;
}
.agenda-dot-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.agenda-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--agency-purple); flex-shrink: 0;
    border: 2px solid rgba(139,92,246,.4); z-index: 1;
    position: relative; top: 3px;
}
.agenda-line { flex: 1; width: 2px; background: rgba(139,92,246,.2); min-height: 20px; }
.agenda-content { flex: 1; }
.agenda-time { font-size: 0.7rem; font-weight: 700; color: var(--agency-purple); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .06em; }
.agenda-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.agenda-desc { font-size: 0.8rem; color: var(--text-muted, #94a3b8); line-height: 1.5; }

.autosave-indicator {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; color: #10b981; font-weight: 600;
}
.copy-btn {
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.2);
    color: var(--agency-purple); padding: 6px 12px;
    border-radius: 8px; font-size: 0.75rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
}
.copy-btn:hover { background: rgba(99,102,241,.2); }

.notes-area { position: relative; }
.notes-meta { font-size: 0.72rem; color: var(--text-muted, #64748b); margin-top: 6px; display: flex; justify-content: flex-end; gap: 12px; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.resource-link {
    background: rgba(99,102,241,.07);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: 10px; padding: 14px;
    text-decoration: none; color: var(--text-primary, #f1f5f9);
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 10px; transition: all .2s;
}
.resource-link:hover { background: rgba(99,102,241,.14); border-color: rgba(99,102,241,.3); }

.template-card {
    background: rgba(15,23,42,.6);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; overflow: hidden; margin-bottom: 14px;
}
.template-header {
    background: rgba(99,102,241,.1);
    padding: 12px 16px; font-size: 0.82rem; font-weight: 700;
    color: #a5b4fc; display: flex; align-items: center; justify-content: space-between;
}
.template-body { padding: 16px; font-size: 0.84rem; line-height: 1.7; color: var(--text-secondary, #94a3b8); white-space: pre-wrap; }

/* ══════════════════════════════════════════════
   ADDITIONAL CLASSES — rebrand-guide
   ══════════════════════════════════════════════ */
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.palette-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; overflow: hidden;
}
.palette-swatch { height: 60px; }
.palette-swatch-half { height: 30px; }
.palette-label { padding: 10px 12px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary, #94a3b8); }

.deploy-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.deploy-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 18px; transition: border-color .2s;
}
.deploy-card:hover { border-color: rgba(245,158,11,.3); }
.deploy-icon { font-size: 1.6rem; margin-bottom: 10px; }
.deploy-name { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.deploy-note { font-size: 0.78rem; color: var(--text-muted, #94a3b8); line-height: 1.5; }

.rebrand-checklist { display: flex; flex-direction: column; gap: 6px; }
.rl-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 9px;
    cursor: pointer; transition: background .15s;
    border: 1px solid transparent;
}
.rl-item:hover { background: rgba(255,255,255,.04); }
.rl-item.done { opacity: .6; }
.rl-item.done .rl-label { text-decoration: line-through; }
.rl-check {
    width: 20px; height: 20px; border-radius: 6px;
    border: 2px solid rgba(139,92,246,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: transparent; transition: all .2s; flex-shrink: 0;
}
.rl-item.done .rl-check { background: #10b981; border-color: #10b981; color: #fff; }
.rl-label { font-size: 0.88rem; color: var(--text-primary, #f1f5f9); }

/* Sidebar logo area (for rebrand preview) */
.sidebar-logo-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 800; }
.sidebar-logo-sub { font-size: 0.65rem; font-weight: 600; opacity: .7; }

/* ══════════════════════════════════════════════
   ADDITIONAL CLASSES — resell-sales-kit
   ══════════════════════════════════════════════ */
.sp-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 40px 32px; }
.sp-feat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 20px; transition: border-color .2s;
}
.sp-feat:hover { border-color: rgba(245,158,11,.3); }
.sp-feat-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.sp-feat h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.sp-feat p { font-size: 0.8rem; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }

.sp-prob-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.12);
    border-radius: 10px; padding: 12px 16px; font-size: 0.85rem;
    color: rgba(255,255,255,.8); margin-bottom: 8px;
}
.sp-prob-icon { flex-shrink: 0; color: #ef4444; }
.sp-prob-text { line-height: 1.5; }

.sp-testimonials { padding: 48px 32px; background: rgba(0,0,0,.3); }
.sp-testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.sp-testi {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 20px;
}
.sp-testi-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 10px; letter-spacing: 2px; }
.sp-testi-text { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,.8); margin-bottom: 14px; font-style: italic; }
.sp-testi-author { font-size: 0.82rem; font-weight: 700; color: #f1f5f9; }
.sp-testi-role { font-size: 0.72rem; color: rgba(255,255,255,.55); }

.sp-pricing { padding: 48px 32px; }
.sp-price-card {
    max-width: 440px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(236,72,153,.08));
    border: 2px solid rgba(245,158,11,.4);
    border-radius: 20px; padding: 36px; text-align: center;
}
.sp-price-badge {
    display: inline-block;
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
    color: #ef4444; padding: 4px 14px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; margin-bottom: 20px;
}
.sp-price { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 800; color: var(--agency-gold); margin-bottom: 4px; }
.sp-price-period { font-size: 0.85rem; color: rgba(255,255,255,.55); margin-bottom: 24px; }
.sp-price-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; text-align: left; }
.sp-price-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: rgba(255,255,255,.8);
}
.sp-price-cta {
    width: 100%; background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000; border: none; border-radius: 12px;
    padding: 16px 24px; font-size: 1rem; font-weight: 800;
    cursor: pointer; margin-bottom: 12px;
}

.sp-guarantee {
    display: flex; align-items: center; gap: 16px;
    background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
    border-radius: 14px; padding: 20px; max-width: 640px; margin: 0 auto 40px;
}
.sp-guarantee-icon { font-size: 2.5rem; flex-shrink: 0; }

.sp-faq { padding: 48px 32px; max-width: 720px; margin: 0 auto; }
.sp-faq-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.sp-faq-q {
    padding: 16px 20px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    transition: background .15s;
}
.sp-faq-q:hover { background: rgba(255,255,255,.04); }
.sp-faq-a { padding: 0 20px 16px; font-size: 0.84rem; color: rgba(255,255,255,.7); line-height: 1.7; }

.sp-footer {
    background: rgba(0,0,0,.5); padding: 32px;
    text-align: center; border-top: 1px solid rgba(255,255,255,.05);
    font-size: 0.78rem; color: rgba(255,255,255,.45);
}
