/* ============================================================
   GMB Mega Poster — Complete UI Stylesheet
   Design: dark sidebar + clean dashboard (The Ranking Factory style)
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
    --primary:        #2563EB;
    --primary-dark:   #1D4ED8;
    --primary-light:  #EFF6FF;
    --sidebar-bg:     #ffffff;
    --sidebar-hover:  #f1f5f9;
    --sidebar-active: #1D4ED8;
    --sidebar-text:   #374151;
    --sidebar-muted:  #9ca3af;
    --sidebar-w:      260px;
    --topbar-h:       60px;
    --bg:             #f8fafc;
    --surface:        #ffffff;
    --border:         #e2e8f0;
    --text:           #0f172a;
    --text-muted:     #64748b;
    --radius:         12px;
    --radius-sm:      8px;
    --shadow:         0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:      0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:      0 10px 25px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px; color: var(--text); background: var(--bg); margin: 0;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============================================================
   APP LAYOUT (authenticated)
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1000;
    transition: transform .25s ease;
    overflow-y: auto; overflow-x: hidden;
}
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text) !important; text-decoration: none;
    font-size: 18px; font-weight: 600; letter-spacing: -.3px;
}
.sidebar-brand strong { font-weight: 800; }
.brand-icon {
    width: 36px; height: 36px; background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
}
.sidebar-body { flex: 1; padding: 12px 0; }
.sidebar-nav { list-style: none; margin: 0; padding: 0; }

/* Collapsible section wrapper */
.nav-section { list-style: none; }

/* Section header button */
.nav-section-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 18px 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--sidebar-muted);
    background: none; border: none; cursor: pointer;
    transition: color .15s;
}
.nav-section-btn:hover { color: var(--primary); }
.nav-section-btn.open { color: var(--primary); }

/* Chevron rotates when open */
.nav-chevron { font-size: 10px; transition: transform .22s ease; }
.nav-section-btn.open .nav-chevron { transform: rotate(180deg); }

/* Collapsible items list */
.nav-section-items {
    list-style: none; margin: 0; padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
}
.nav-section-items.open { max-height: 400px; }

.sidebar-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px; color: var(--sidebar-text);
    font-size: 13.5px; font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none; margin: 1px 8px; border-radius: var(--radius-sm);
}
.sidebar-nav li a i { font-size: 16px; flex-shrink: 0; }
.sidebar-nav li a:hover { background: var(--sidebar-hover); color: var(--primary); }
.sidebar-nav li.active a { background: var(--primary); color: #fff; }
.sidebar-footer { padding: 12px 10px; border-top: 1px solid rgba(0,0,0,.08); }
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: var(--radius-sm);
    background: var(--sidebar-hover);
}
.user-avatar {
    width: 34px; height: 34px; background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sidebar-muted); }
.logout-btn { color: var(--sidebar-muted) !important; font-size: 16px; padding: 4px; flex-shrink: 0; transition: color .15s; }
.logout-btn:hover { color: #f87171 !important; }
.sidebar-toggle { background: none; border: none; padding: 4px 8px; font-size: 20px; cursor: pointer; color: var(--text); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }

/* Main wrapper */
.main-wrapper { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar */
.topbar {
    height: var(--topbar-h); background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 24px; gap: 12px;
    position: sticky; top: 0; z-index: 100;
}
.topbar-breadcrumb { flex: 1; }
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Content area */
.content-area { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */
.app-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.app-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.app-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; display: flex; align-items: center; }
.app-card-body { padding: 20px; }
.app-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: #fafafa; }

/* Stat cards */
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px; display: flex; align-items: center; gap: 14px;
    transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-card-body { display: flex; flex-direction: column; }
.stat-card-num { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-card-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Buttons */
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-icon {
    width: 30px; height: 30px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); transition: all .15s;
}
.btn-icon:hover { background: var(--bg); border-color: #d1d5db; }

/* Tables */
.app-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.app-table th {
    background: #f9fafb; border-bottom: 1px solid var(--border);
    padding: 10px 16px; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); white-space: nowrap;
}
.app-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.app-table tr:last-child td { border-bottom: none; }
.app-table tr:hover td { background: #fafafa; }
.post-summary-cell { max-width: 260px; }

/* Page toolbar */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Empty state */
.empty-state { text-align: center; color: var(--text-muted); padding: 40px 20px; }
.empty-state-icon { font-size: 40px; opacity: .35; display: block; margin-bottom: 12px; }
.empty-state h5 { color: var(--text); }
.empty-state p { font-size: 13px; }

/* Post list */
.post-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6; transition: background .15s;
}
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover { background: #fafafa; }
.pli-type-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.pli-body { flex: 1; min-width: 0; }
.pli-summary { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pli-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px; }
.pli-action { color: var(--text-muted); font-size: 14px; padding: 4px 6px; border-radius: 6px; transition: background .15s; }
.pli-action:hover { background: var(--bg); color: var(--primary); }

/* Topic type pills */
.topic-standard  { background: #EDE9FE; color: #5B21B6; }
.topic-event     { background: #DBEAFE; color: #1D4ED8; }
.topic-offer     { background: #D1FAE5; color: #065F46; }
.topic-product   { background: #FEF3C7; color: #92400E; }
.type-pill { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; display: inline-block; }

/* Account lists */
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.account-list-item:last-child { border-bottom: none; }
.acc-avatar {
    width: 36px; height: 36px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.acc-avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.acc-info { flex: 1; display: flex; flex-direction: column; }
.acc-name { font-size: 13px; font-weight: 600; }
.acc-email { font-size: 11.5px; color: var(--text-muted); }

/* Account detail list */
.account-detail-list { list-style: none; margin: 0; padding: 0; }
.account-detail-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; flex-wrap: wrap; }
.account-detail-item:last-child { border-bottom: none; }
.adc-avatar {
    width: 44px; height: 44px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.adc-info { flex: 1; }
.adc-name { font-size: 14px; font-weight: 600; }
.adc-meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.adc-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Activity list */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-success { background: #10b981; }
.dot-danger  { background: #ef4444; }
.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 11px; color: var(--text-muted); }

/* Onboarding */
.onboarding-card {
    background: linear-gradient(135deg, #1D4ED8 0%, #0f172a 100%);
    border-radius: var(--radius); padding: 28px;
    color: #fff; display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
}
.onboarding-icon {
    width: 56px; height: 56px; background: rgba(255,255,255,.15);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.onboarding-body { flex: 1; }
.onboarding-body h4 { color: #fff; font-weight: 700; margin-bottom: 6px; }
.onboarding-body p { color: #c4b5fd; font-size: 13.5px; margin-bottom: 16px; }
.onboarding-action { display: flex; align-items: flex-start; padding-top: 4px; }
.onboarding-steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ob-step { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border-radius: 8px; padding: 10px 14px; }
.ob-step.done { background: rgba(16,185,129,.2); }
.ob-step-num { width: 24px; height: 24px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ob-step.done .ob-step-num { background: #10b981; }
.ob-step strong { font-size: 13px; display: block; }
.ob-step small { font-size: 11px; color: #c4b5fd; }
.ob-step-arrow { color: #7c6fcd; font-size: 16px; }

/* Post create form */
.topic-type-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.topic-type-option {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all .15s; font-size: 12px; font-weight: 600;
    color: var(--text-muted); user-select: none;
}
.topic-type-option input { display: none; }
.topic-type-option i { font-size: 20px; }
.topic-type-option:hover, .topic-type-option.selected { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.field-group-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 10px 0 6px; border-top: 1px dashed var(--border); margin-bottom: 12px; }
.media-preview-box { height: 80px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.tips-list { padding-left: 18px; margin: 0; }
.tips-list li { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }

/* OAuth steps */
.oauth-steps { list-style: none; padding: 0; margin: 0; }
.oauth-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.oauth-steps li:last-child { border-bottom: none; }
.os-icon { width: 32px; height: 32px; background: var(--primary-light); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.scope-list { padding-left: 0; list-style: none; }
.scope-list li { font-size: 12.5px; color: var(--text-muted); padding: 4px 0; }
.scope-list code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }
.role-info + .role-info { border-top: 1px solid var(--border); padding-top: 12px; }
.link-muted { color: var(--text-muted); font-size: 12.5px; }
.link-muted:hover { color: var(--primary); }

/* ============================================================
   PUBLIC LAYOUT (landing + auth)
   ============================================================ */
.public-layout { background: #fff; }

/* Nav — white, clean */
.public-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center;
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.public-nav .container-fluid { display: flex; align-items: center; justify-content: space-between; }
.public-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #0f172a !important; text-decoration: none; letter-spacing: -.4px; }
.public-brand strong { font-weight: 800; color: var(--primary); }
.brand-icon-sm { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.public-nav-links { display: flex; align-items: center; gap: 28px; }
.public-nav-links > a:not(.btn) { color: #475569; font-size: 14px; font-weight: 500; transition: color .15s; }
.public-nav-links > a:not(.btn):hover { color: #0f172a; }
.public-nav-links .btn-outline-primary { border-color: #cbd5e1; color: #0f172a; font-weight: 500; }
.public-nav-links .btn-outline-primary:hover { background: #f8fafc; border-color: #94a3b8; }

/* Hero — light, clean, professional */
.hero-section {
    padding: 140px 0 100px;
    background: #fff;
    min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 60px 60px; opacity: .3;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-size: clamp(36px, 5vw, 58px); font-weight: 800; color: #0f172a; line-height: 1.12; margin-bottom: 20px; letter-spacing: -.5px; }
.hero-title-accent { color: var(--primary); }
.hero-subtitle { font-size: 18px; color: #475569; line-height: 1.65; margin-bottom: 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; font-weight: 600; transition: background .15s, transform .15s !important; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
.hero-btn-primary:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; transform: translateY(-1px); }
.btn-outline-light { border-color: #cbd5e1 !important; color: #374151 !important; font-weight: 500; background: #fff !important; }
.btn-outline-light:hover { background: #f8fafc !important; border-color: #94a3b8 !important; }
.hero-social-proof { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 13px; }
.sp-avatars { display: flex; }
.sp-avatar { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; margin-left: -6px; }
.sp-avatar:first-child { margin-left: 0; }

/* Stats bar — light gray */
.stats-bar { background: #f8fafc; padding: 48px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: 32px; font-weight: 800; color: #0f172a; }
.stat-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }

/* Features */
.features-section { padding: 100px 0; background: #fff; }
.section-header { margin-bottom: 60px; }
.section-badge { display: inline-block; background: #eff6ff; color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: #0f172a; letter-spacing: -.3px; margin-bottom: 14px; }
.section-subtitle { font-size: 17px; color: #64748b; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 32px; height: 100%; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #bfdbfe; }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.feature-card p { font-size: 14px; color: #64748b; margin: 0; line-height: 1.65; }

/* How it works */
.how-section { background: #f8fafc; padding: 100px 0; }
.steps-list { list-style: none; padding: 0; margin: 0; }
.steps-list li { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid #e2e8f0; }
.steps-list li:last-child { border-bottom: none; }
.step-num { width: 38px; height: 38px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.steps-list strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 5px; color: #0f172a; }
.steps-list p { font-size: 14px; color: #64748b; margin: 0; line-height: 1.6; }

/* Mockup — keep dark for contrast */
.mockup-card { background: #0f172a; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18); border: 1px solid #1e293b; }
.mockup-bar { background: #1e293b; padding: 12px 16px; display: flex; gap: 6px; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #10b981; }
.mockup-body { padding: 20px; }
.mockup-stat-row { display: flex; gap: 12px; margin-bottom: 20px; }
.mockup-stat { flex: 1; background: rgba(37,99,235,.15); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #93c5fd; }
.ms-num { font-size: 22px; font-weight: 800; color: #fff; }
.mockup-post { background: rgba(255,255,255,.05); border-radius: 8px; padding: 14px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.06); }
.mp-type { font-size: 10px; font-weight: 700; background: rgba(37,99,235,.3); color: #93c5fd; padding: 2px 8px; border-radius: 12px; display: inline-block; margin-bottom: 8px; }
.mp-type.mp-event { background: rgba(16,185,129,.25); color: #6ee7b7; }
.mp-text { font-size: 12.5px; color: #cbd5e1; line-height: 1.5; margin-bottom: 8px; }
.mp-meta { font-size: 11px; color: #64748b; }

/* CTA section — dark navy like Ranking Factory */
.cta-section { background: #0f172a; padding: 100px 0; color: #fff; }
.cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cta-subtitle { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; }

/* Testimonials */
.testimonials-section { background: #fff; padding: 100px 0; }
.testimonial-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius);
    padding: 32px; height: 100%;
    display: flex; flex-direction: column; gap: 16px;
    transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.testimonial-featured { background: #eff6ff; border-color: #bfdbfe; }
.testi-stars { color: #f59e0b; font-size: 14px; display: flex; gap: 2px; }
.testimonial-card blockquote { font-size: 14.5px; color: #374151; line-height: 1.7; margin: 0; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-name { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.testi-role { font-size: 12px; color: #64748b; }

/* Guarantee badge */
.guarantee-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 12px 20px; font-size: 14px; color: rgba(255,255,255,.9); }

/* Pricing cards */
.pricing-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 36px 32px;
    position: relative; height: 100%;
    display: flex; flex-direction: column; gap: 20px;
    transition: border-color .2s;
}
.pricing-card:hover { border-color: rgba(255,255,255,.3); }
.pricing-popular {
    background: #fff; color: #0f172a; border-color: transparent;
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 4px 16px; border-radius: 20px;
}
.pricing-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.pricing-popular .pricing-name { color: #64748b; }
.pricing-price { font-size: 48px; font-weight: 800; color: #fff; line-height: 1; }
.pricing-popular .pricing-price { color: #0f172a; }
.pricing-price span { font-size: 16px; font-weight: 400; color: rgba(255,255,255,.6); }
.pricing-popular .pricing-price span { color: #64748b; }
.pricing-features { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.pricing-popular .pricing-features { color: #374151; }
.pricing-features .text-muted { color: rgba(255,255,255,.35) !important; }
.pricing-popular .pricing-features .text-muted { color: #94a3b8 !important; }

/* Footer */
.public-footer { background: #0f172a; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); }

/* Auth page wrapper (wraps Identity UI default layout) */
.auth-wrap {
    min-height: 100vh;
    background: #dce8f5;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 40px 40px 32px;
    width: 100%; max-width: 460px;
}
.auth-logo {
    text-align: center; margin-bottom: 8px;
}
.auth-logo img {
    height: 44px; width: auto;
}
.auth-tagline {
    text-align: center; color: #64748b; font-size: 14px; margin-bottom: 28px;
}
.auth-links {
    text-align: center; margin-top: 16px; font-size: 14px;
}
.auth-links a { color: var(--primary); }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: #94a3b8; font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-footer-link {
    text-align: center; margin-top: 20px; font-size: 14px; color: #64748b;
}
.auth-footer-link a { color: var(--primary); font-weight: 500; }

/* Public logo image */
.public-logo { width: 170px; height: 56px; object-fit: contain; display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-wrapper { margin-left: 0; }
    .content-area { padding: 16px; }
    .onboarding-steps { flex-direction: column; gap: 8px; }
    .ob-step-arrow { display: none; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 30px; }
    .hero-cta { flex-direction: column; }
    .stat-card-num { font-size: 22px; }
    .mockup-card { display: none; }
    .public-nav-links a:not(.btn) { display: none; }
    .topic-type-option { padding: 10px 12px; }
}

