@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --brand: #6366f1;
    --brand-2: #ec4899;
    --brand-3: #8b5cf6;
    --brand-glow: rgba(99, 102, 241, 0.35);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --sidebar: #0f0f14;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: linear-gradient(135deg, rgba(225,48,108,.2), rgba(131,58,180,.15));
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Buttons ── */
.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    box-shadow: 0 4px 14px var(--brand-glow);
    transition: transform .15s, box-shadow .15s;
}
.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--brand-glow);
    color: #fff !important;
}
.btn-brand:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff !important; }

.text-brand { color: var(--brand) !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Public navbar ── */
.navbar-public {
    background: rgba(15, 15, 20, 0.85) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    padding: .75rem 0;
}
.navbar-public .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}
.navbar-public .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 500;
    font-size: .9rem;
}
.navbar-public .nav-link:hover { color: #fff !important; }
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-size: .95rem;
}

/* ── Landing hero ── */
.landing-page { background: #0a0a0f; }

.hero {
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
}
.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(131,58,180,.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(225,48,108,.3) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 60% 80%, rgba(253,29,29,.15) 0%, transparent 50%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
}
.hero .lead { color: rgba(255,255,255,.65); font-size: 1.15rem; line-height: 1.7; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: .35rem 1rem .35rem .5rem;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.hero-demo {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}
.hero-demo-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.hero-demo-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.hero-demo-trigger {
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.2);
    border-radius: 10px;
    padding: .75rem 1rem;
    color: #86efac;
    font-size: .875rem;
}

.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.stat-item .lbl { font-size: .8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* ── Feature cards (landing) ── */
.section-title { font-weight: 800; letter-spacing: -.02em; }
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(225,48,108,.2);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(225,48,108,.12), rgba(131,58,180,.12));
    color: var(--brand);
}
.feature-card h5 { font-weight: 700; font-size: 1rem; }

.cta-section {
    background: linear-gradient(135deg, #0f0f14, #1a1025);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(225,48,108,.15), transparent 70%);
}

/* ── Auth pages ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: #0a0a0f;
}
.auth-visual {
    flex: 1;
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1a0a2e, #0f0f14);
}
@media (min-width: 992px) { .auth-visual { display: flex; align-items: center; justify-content: center; } }
.auth-visual-inner { padding: 3rem; max-width: 420px; color: #fff; position: relative; z-index: 1; }
.auth-visual h2 { font-weight: 800; font-size: 2rem; letter-spacing: -.02em; }
.auth-visual p { color: rgba(255,255,255,.6); line-height: 1.7; }
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.auth-card h2 { font-weight: 800; letter-spacing: -.02em; }
.auth-card .form-control {
    border-radius: 10px;
    border-color: var(--border);
    padding: .65rem .9rem;
    font-size: .9rem;
}
.auth-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(225,48,108,.12);
}
.auth-card .form-label { font-weight: 600; font-size: .85rem; color: var(--text); }

/* ── Pricing ── */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.featured {
    border: 2px solid var(--brand);
    box-shadow: 0 8px 32px var(--brand-glow);
}
.pricing-card .plan-name { font-weight: 700; color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.pricing-card .price { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; }
.pricing-card .popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Dashboard layout ── */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 1.5rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}
.sidebar-brand .brand-icon { width: 36px; height: 36px; border-radius: 10px; }
.sidebar-section {
    padding: .5rem 1rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.3);
    margin-top: .5rem;
}
.sidebar .nav-link {
    color: rgba(255,255,255,.55);
    border-radius: 10px;
    padding: .6rem .85rem;
    font-size: .875rem;
    font-weight: 500;
    margin: 1px .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: all .15s;
}
.sidebar .nav-link i { font-size: 1rem; width: 20px; text-align: center; opacity: .7; }
.sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: rgba(255,255,255,.9);
}
.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    border: 1px solid rgba(225,48,108,.2);
}
.sidebar .nav-link.active i { opacity: 1; color: #f472b6; }
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; }
.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-plan { color: rgba(255,255,255,.4); font-size: .75rem; }
.sidebar-usage {
    display: block;
    margin-top: .85rem;
}
.sidebar-usage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .4rem;
    font-size: .7rem;
    color: rgba(255,255,255,.45);
}
.sidebar-usage-label .is-high { color: #fbbf24; }
.sidebar-usage-bar {
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.sidebar-usage-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #818cf8, #f472b6);
    transition: width .4s ease;
    min-width: 0;
}
.sidebar-usage-fill.is-high {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.sidebar-usage-fill.is-unlimited {
    background: linear-gradient(90deg, #34d399, #818cf8);
    opacity: .85;
}
.sidebar-usage:hover .sidebar-usage-label { color: rgba(255,255,255,.7); }
.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(251,191,36,.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,.25);
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .65rem;
    margin: .5rem .75rem 0;
}

.dashboard-main {
    flex: 1;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}
.dashboard-content { padding: 2rem; max-width: 1200px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}
.page-header .subtitle { color: var(--text-muted); font-size: .875rem; margin-top: .25rem; }

/* ── Stat cards ── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
    height: 100%;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .75rem;
}
.stat-card .stat-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.stat-card .stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.stat-icon.pink { background: rgba(225,48,108,.1); color: var(--brand); }
.stat-icon.purple { background: rgba(131,58,180,.1); color: var(--brand-2); }
.stat-icon.blue { background: rgba(59,130,246,.1); color: #3b82f6; }
.stat-icon.green { background: rgba(34,197,94,.1); color: #22c55e; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-card .stat-meta { font-size: .75rem; color: var(--text-light); margin-top: .35rem; }
.progress-thin { height: 4px; border-radius: 100px; background: var(--border); margin-top: .75rem; overflow: hidden; }
.progress-thin .bar {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width .5s ease;
}

/* ── UI cards ── */
.ui-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ui-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ui-card-body { padding: 1.25rem; }
.ui-card-body.flush { padding: 0; }

/* ── Alerts ── */
.alert-modern {
    border: none;
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.alert-modern.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-modern.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-modern.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-modern.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.connect-banner {
    background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.04));
    border: 1px solid rgba(34,197,94,.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
}
.connect-banner.warn {
    background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(251,191,36,.04));
    border-color: rgba(251,191,36,.25);
}

/* ── Tables ── */
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table thead th {
    padding: .75rem 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.ui-table tbody td {
    padding: .85rem 1.25rem;
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.ui-table tbody tr:last-child td { border-bottom: none; }
.ui-table tbody tr:hover { background: #f8fafc; }

/* ── Badges ── */
.badge-status-active { background: #dcfce7; color: #166534; font-weight: 600; }
.badge-status-paused { background: #f1f5f9; color: #475569; font-weight: 600; }
.badge-status-draft { background: #fef9c3; color: #854d0e; font-weight: 600; }
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Forms (dashboard) ── */
.form-modern .form-control,
.form-modern .form-select {
    border-radius: 10px;
    border-color: var(--border);
    padding: .6rem .9rem;
    font-size: .875rem;
}
.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(225,48,108,.1);
}
.form-modern .form-label { font-weight: 600; font-size: .85rem; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; opacity: .3; display: block; margin-bottom: 1rem; }
.empty-state h4 { font-weight: 700; color: var(--text); font-size: 1rem; }

/* ── Flash toast ── */
.flash-toast {
    position: fixed;
    top: 1rem; right: 1rem;
    z-index: 9999;
    min-width: 280px;
    animation: slideIn .3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Mobile sidebar ── */
@media (max-width: 991px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar {
        width: 100%; min-width: unset;
        height: auto; position: relative;
        flex-direction: row; flex-wrap: wrap;
        min-height: unset;
    }
    .sidebar .nav { flex-direction: row !important; flex-wrap: wrap; padding: .5rem; }
    .sidebar .nav-link { margin: 2px; padding: .4rem .7rem; font-size: .8rem; }
    .sidebar-footer, .sidebar-section { display: none; }
    .dashboard-content { padding: 1.25rem; }
    .builder-preview { position: static !important; margin-top: 1rem; }
}

/* ── Automation Builder ── */
.automation-builder-wrap .dashboard-content { max-width: 1400px; }

.builder-progress {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
}
.builder-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
}
.builder-step .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
    transition: all .2s;
}
.builder-step.active .step-num {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 2px 8px var(--brand-glow);
}
.builder-step.active { color: var(--text); font-weight: 600; }
.builder-step.done .step-num { background: #22c55e; color: #fff; }
.builder-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 .75rem;
    min-width: 20px;
}

/* Trigger cards */
.trigger-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}
.trigger-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.trigger-card:hover { border-color: rgba(225,48,108,.3); background: #fdf2f8; }
.trigger-card.selected {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(225,48,108,.06), rgba(131,58,180,.04));
    box-shadow: 0 0 0 3px rgba(225,48,108,.1);
}
.trigger-card-icon {
    width: 48px; height: 48px;
    margin: 0 auto .75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(225,48,108,.12), rgba(131,58,180,.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--brand);
}
.trigger-card-title { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.trigger-card-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

/* Status pills */
.status-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.status-pill {
    padding: .4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-muted);
}
.status-pill:hover { border-color: var(--brand); color: var(--brand); }
.status-pill.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    color: #fff;
}

/* Scope cards */
.scope-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
@media (max-width: 576px) { .scope-cards { grid-template-columns: 1fr; } }
.scope-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.scope-card:hover { border-color: rgba(225,48,108,.3); }
.scope-card.selected {
    border-color: var(--brand);
    background: rgba(225,48,108,.04);
}
.scope-icon { font-size: 1.5rem; color: var(--brand); display: block; margin-bottom: .5rem; }
.scope-title { font-weight: 700; font-size: .85rem; }
.scope-desc { font-size: .7rem; color: var(--text-muted); margin-top: .2rem; }

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
    max-height: 480px;
    overflow-y: auto;
    padding: 2px;
}
.media-grid-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.media-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    background: var(--surface);
}
.media-card:hover { border-color: rgba(225,48,108,.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.media-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(225,48,108,.15); }
.media-thumb {
    position: relative;
    aspect-ratio: 4/5;
    background: #f1f5f9;
    overflow: hidden;
}
.media-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.media-type-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: .2rem .45rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.media-selected-check {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}
.media-caption {
    padding: .5rem .6rem 0;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-meta {
    padding: .35rem .6rem .5rem;
    display: flex;
    gap: .5rem;
    font-size: .65rem;
    color: var(--text-light);
    flex-wrap: wrap;
}
.media-meta span { display: flex; align-items: center; gap: .2rem; }

/* Keywords */
.keyword-input-wrap {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    min-height: 52px;
    transition: border-color .15s;
}
.keyword-input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(225,48,108,.1); }
.keyword-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: linear-gradient(135deg, rgba(225,48,108,.1), rgba(131,58,180,.08));
    color: var(--brand);
    border: 1px solid rgba(225,48,108,.2);
    border-radius: 100px;
    padding: .25rem .65rem;
    font-size: .8rem;
    font-weight: 600;
}
.keyword-tag button {
    border: none; background: none;
    color: var(--brand); cursor: pointer;
    font-size: 1rem; line-height: 1; padding: 0;
    opacity: .6;
}
.keyword-tag button:hover { opacity: 1; }
.keyword-text-input {
    border: none; outline: none;
    flex: 1; min-width: 120px;
    font-size: .9rem;
    padding: .25rem;
    background: transparent;
}
.keyword-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.keyword-suggestion {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 100px;
    padding: .2rem .65rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s;
}
.keyword-suggestion:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(225,48,108,.05);
}

/* Template picker (automation builder) */
.template-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.template-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: .5rem 1rem;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    transition: all .15s;
}
.template-card:hover { border-color: rgba(225,48,108,.3); }
.template-card.selected {
    border-color: var(--brand);
    background: rgba(225,48,108,.05);
    color: var(--brand);
}

/* ── Templates page ── */
.tpl-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem 1.5rem;
}
.tpl-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.tpl-section-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .2rem;
}
.tpl-section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.tpl-starter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.tpl-starter-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.9), var(--surface));
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
    overflow: hidden;
}
.tpl-starter-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, #f472b6);
}
.tpl-starter-card.color-green::before { background: linear-gradient(90deg, #34d399, #10b981); }
.tpl-starter-card.color-orange::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.tpl-starter-card.color-blue::before { background: linear-gradient(90deg, #60a5fa, #6366f1); }
.tpl-starter-card.color-purple::before { background: linear-gradient(90deg, #a78bfa, #ec4899); }
.tpl-starter-card.color-yellow::before { background: linear-gradient(90deg, #fde047, #f59e0b); }
.tpl-starter-card.color-teal::before { background: linear-gradient(90deg, #2dd4bf, #14b8a6); }
.tpl-starter-card.color-indigo::before { background: linear-gradient(90deg, #818cf8, #6366f1); }
.tpl-starter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(225,48,108,.25);
}
.tpl-starter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.tpl-starter-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,48,108,.08);
    color: var(--brand);
    font-size: 1rem;
}
.tpl-starter-card h3 {
    font-size: .95rem;
    font-weight: 750;
    margin: 0 0 .35rem;
}
.tpl-starter-desc {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
    line-height: 1.45;
}
.tpl-starter-preview {
    font-size: .75rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: .65rem .75rem;
    margin-bottom: .9rem;
    min-height: 58px;
    white-space: pre-wrap;
}
.tpl-starter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.tpl-owned {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: #16a34a;
}

.tpl-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: rgba(99,102,241,.1);
    color: #4f46e5;
}
.tpl-cat-pill.cat-lead { background: rgba(236,72,153,.12); color: #be185d; }
.tpl-cat-pill.cat-sales { background: rgba(249,115,22,.12); color: #c2410c; }
.tpl-cat-pill.cat-growth { background: rgba(34,197,94,.12); color: #15803d; }
.tpl-cat-pill.cat-engagement { background: rgba(168,85,247,.12); color: #7e22ce; }
.tpl-cat-pill.cat-support { background: rgba(59,130,246,.12); color: #1d4ed8; }
.tpl-cat-pill.cat-custom { background: rgba(99,102,241,.1); color: #4338ca; }

.tpl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}
.tpl-filter {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: all .15s;
}
.tpl-filter:hover { color: var(--text); border-color: rgba(225,48,108,.3); }
.tpl-filter.active {
    background: rgba(225,48,108,.08);
    border-color: rgba(225,48,108,.35);
    color: var(--brand);
}

.tpl-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.tpl-lib-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: border-color .15s, box-shadow .15s;
}
.tpl-lib-card.is-active,
.tpl-lib-card:hover {
    border-color: rgba(225,48,108,.3);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.tpl-lib-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.tpl-lib-actions { display: flex; gap: .35rem; }
.tpl-lib-card h3 {
    font-size: .95rem;
    font-weight: 750;
    margin: 0;
}
.tpl-lib-body {
    margin: 0;
    color: var(--text-muted);
    font-size: .8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    flex: 1;
}
.tpl-lib-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding-top: .35rem;
    border-top: 1px solid var(--border);
    font-size: .72rem;
    color: var(--text-light);
}
.tpl-lib-use {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}
.tpl-lib-use:hover { text-decoration: underline; }

.tpl-composer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.sticky-composer { position: sticky; top: 1.25rem; }
.tpl-composer-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 .25rem;
}
.tpl-composer-head p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: .85rem;
}
.tpl-cat-select {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.tpl-cat-option {
    cursor: pointer;
    opacity: .65;
    transition: opacity .15s, transform .15s;
}
.tpl-cat-option.selected,
.tpl-cat-option:hover { opacity: 1; }
.tpl-cat-option.selected .tpl-cat-pill {
    box-shadow: 0 0 0 2px rgba(225,48,108,.25);
}
.tpl-hints { display: flex; flex-wrap: wrap; gap: .4rem; }
.tpl-hint {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tpl-hint:hover {
    border-color: rgba(225,48,108,.35);
    color: var(--brand);
}

.tpl-phone {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #0b0b12;
}
.tpl-phone-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .9rem;
    background: linear-gradient(135deg, #1a1028, #111118);
    color: rgba(255,255,255,.75);
    font-size: .75rem;
    font-weight: 600;
}
.tpl-phone-thread {
    padding: 1rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    background:
        radial-gradient(circle at top right, rgba(236,72,153,.12), transparent 40%),
        #0b0b12;
}
.tpl-bubble {
    max-width: 88%;
    padding: .65rem .8rem;
    border-radius: 16px;
    font-size: .8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.tpl-bubble.in {
    align-self: flex-start;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-bottom-left-radius: 6px;
}
.tpl-bubble.out {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border-bottom-right-radius: 6px;
}

@media (max-width: 991px) {
    .sticky-composer { position: static; }
}

/* Option toggles */
.option-toggles { display: flex; flex-direction: column; gap: .5rem; }
.option-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
}
.option-toggle:hover { border-color: rgba(225,48,108,.3); }
.option-toggle.active {
    border-color: var(--brand);
    background: rgba(225,48,108,.04);
}
.option-toggle-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(225,48,108,.1);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.option-toggle-check {
    margin-left: auto;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    font-size: .85rem;
}
.option-toggle.active .option-toggle-check {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Phone preview */
.phone-mockup {
    background: #fff;
    border-radius: 0 0 20px 20px;
    min-height: 280px;
}
.phone-notch {
    height: 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.phone-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.phone-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.phone-username { font-weight: 700; font-size: .85rem; }
.phone-active { font-size: .7rem; color: var(--text-muted); }
.phone-messages { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.phone-bubble {
    background: #f1f5f9;
    border-radius: 18px 18px 18px 4px;
    padding: .65rem .9rem;
    font-size: .8rem;
    line-height: 1.45;
    max-width: 90%;
    word-break: break-word;
}

/* Review */
.review-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
}
.review-row:last-child { border-bottom: none; }

/* ── FlyDM Logo ── */
.flydm-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.flydm-logo-mark { display: flex; flex-shrink: 0; }
.flydm-logo-mark svg { width: 100%; height: 100%; display: block; }
.flydm-logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.03em;
    color: #fff;
}
.flydm-logo-accent {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-card .flydm-logo-text,
.section-light .flydm-logo-text { color: var(--text); }
.sidebar .flydm-logo-text { color: #fff; }
.navbar-brand .flydm-logo-text { color: #fff; }

/* ── Landing: FlyDM style (inspired by dmfly.in) ── */
.section-light { background: #fff; }
.section-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: .5rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}
.hero-trust i { color: #22c55e; margin-right: .25rem; }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow-1 { width: 400px; height: 400px; background: rgba(99,102,241,.25); top: 10%; left: -5%; }
.hero-glow-2 { width: 300px; height: 300px; background: rgba(236,72,153,.2); bottom: 10%; right: 10%; }

/* Hero phone mockup */
.hero-phone-wrap { position: relative; padding: 1rem; }
.hero-phone {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 64px rgba(0,0,0,.4);
}
.hero-phone-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
    color: rgba(255,255,255,.8);
}
.auto-pill {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(34,197,94,.15);
    color: #86efac;
    padding: .2rem .6rem;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 600;
}
.pulse-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}
.hero-phone-body { padding: 1rem; min-height: 220px; }
.chat-bubble {
    max-width: 85%;
    padding: .65rem .9rem;
    border-radius: 16px;
    font-size: .8rem;
    margin-bottom: .5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease;
}
.chat-bubble.show { opacity: 1; transform: translateY(0); }
.chat-bubble small { display: block; opacity: .6; font-size: .65rem; margin-bottom: .2rem; }
.chat-in { background: rgba(255,255,255,.1); color: #fff; border-radius: 16px 16px 16px 4px; }
.chat-out { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; margin-left: auto; border-radius: 16px 16px 4px 16px; }
.chat-out a { color: #fff; font-weight: 600; }
.chat-system { text-align: center; font-size: .7rem; color: #fbbf24; margin: .5rem 0; opacity: 0; transition: all .4s; }
.chat-system.show { opacity: 1; }

.float-card {
    position: absolute;
    background: rgba(255,255,255,.95);
    color: var(--text);
    padding: .5rem .85rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: .4rem;
    animation: float 3s ease-in-out infinite;
}
.float-card i { color: var(--brand); }
.float-card-1 { top: 0; right: 0; animation-delay: 0s; }
.float-card-2 { bottom: 20px; left: -10px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Creators carousel */
.creators-section { background: #0a0a0f; color: #fff; overflow: hidden; }
.creators-section .section-title { color: #fff; }
.creators-section .text-muted { color: rgba(255,255,255,.5) !important; }
.creators-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.creators-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.creators-track:hover { animation-play-state: paused; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.creator-card {
    flex-shrink: 0;
    width: 180px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.creator-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); }
.creator-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem;
}
.creator-niche {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: .25rem;
}
.creator-card strong { display: block; font-size: .85rem; color: #fff; }
.creator-card small { color: rgba(255,255,255,.45); font-size: .7rem; }

/* Feature cards v2 */
.feature-card-v2 {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: all .25s;
}
.feature-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(99,102,241,.25);
}
.feature-icon-v2 {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(236,72,153,.1));
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.feature-card-v2 h5 { font-weight: 700; font-size: .95rem; }

/* Stats section */
.stats-section {
    background: linear-gradient(135deg, #0f0f14, #1e1b4b);
    color: #fff;
}
.stat-big {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-big-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .25rem; }

/* Follow gate visual */
.follow-visual { position: relative; padding: 1rem; }
.follow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s;
}
.follow-step:hover { transform: translateX(8px); }
.step-badge {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.follow-arrow { text-align: center; color: var(--brand); padding: .25rem 0; }
.follow-counter {
    position: absolute;
    top: 50%; right: -10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 8px 24px var(--brand-glow);
    animation: float 2.5s ease-in-out infinite;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .75rem;
    font-size: .9rem;
}
.check-list i { color: #22c55e; margin-top: .15rem; }

/* Step cards */
.step-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: all .25s;
}
.landing-page .step-card {
    background: #fff;
    border-color: var(--border);
}
.landing-page #how-it-works { background: #0a0a0f; color: #fff; }
.landing-page #how-it-works .section-title { color: #fff; }
.landing-page #how-it-works .text-muted { color: rgba(255,255,255,.5) !important; }
.landing-page #how-it-works .step-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.landing-page #how-it-works .step-card h5 { color: #fff; }
.step-card .step-num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .75rem;
}
.step-card h5 { font-weight: 700; font-size: 1rem; }

/* Pricing v2 */
.pricing-card-v2 {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.pricing-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card-v2.featured {
    border: 2px solid var(--brand);
    box-shadow: 0 12px 40px var(--brand-glow);
}
.pricing-card-v2 .popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem 1rem;
    border-radius: 100px;
}

/* Final CTA */
.final-cta { background: #0a0a0f; }
.final-cta-inner {
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(236,72,153,.1));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
}
.final-cta-inner h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.final-cta-inner p { color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.final-cta-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}
.final-cta-meta i { color: #22c55e; margin-right: .25rem; }

/* Footer */
.site-footer {
    background: #0a0a0f;
    border-top: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.6);
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; }
.footer-links a:hover { color: #fff; }
.badge-meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.06);
    padding: .4rem .85rem;
    border-radius: 100px;
    font-size: .75rem;
    color: rgba(255,255,255,.6);
}
.footer-legal { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.footer-legal a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .8rem; }
.footer-legal a:hover { color: rgba(255,255,255,.85); }

/* Legal pages */
.legal-page { background: #f8fafc; min-height: 80vh; }
.legal-content { border: 1px solid var(--border); }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem; color: #0f172a; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: #334155; }
.legal-content p, .legal-content li { color: #475569; line-height: 1.7; font-size: .9375rem; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content a { color: var(--brand); }
.legal-footer-note a { color: var(--brand); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-2 { transition-delay: .15s; }

/* Navbar scroll */
.navbar-public.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

/* ── Custom fly cursor (landing, desktop only) ── */
@media (hover: hover) and (pointer: fine) {
    .landing-page.fly-cursor-on {
        cursor: none;
    }
    .landing-page.fly-cursor-on a,
    .landing-page.fly-cursor-on button,
    .landing-page.fly-cursor-on input,
    .landing-page.fly-cursor-on textarea,
    .landing-page.fly-cursor-on select,
    .landing-page.fly-cursor-on label,
    .landing-page.fly-cursor-on .btn {
        cursor: none;
    }
}

.fly-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: -6px 0 0 -4px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) rotate(-18deg);
    transition: opacity .25s ease, width .2s ease, height .2s ease, filter .2s ease;
    will-change: transform;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, .55));
}
.fly-cursor.is-visible { opacity: 1; }
.fly-cursor.is-hover {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 14px rgba(99, 102, 241, .75));
}
.fly-cursor.is-click {
    transform: translate3d(var(--x), var(--y), 0) rotate(-18deg) scale(.82);
}
.fly-cursor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fly-cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: -4px 0 0 -4px;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    background: radial-gradient(circle, #f472b6 0%, #818cf8 55%, transparent 75%);
    transform: translate3d(-100px, -100px, 0) scale(0.4);
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .fly-cursor,
    .fly-cursor-trail { display: none !important; }
    .landing-page.fly-cursor-on,
    .landing-page.fly-cursor-on * { cursor: auto !important; }
}

/* ── Admin panel ── */
.admin-sidebar .admin-badge {
    display: inline-flex;
    margin-left: .5rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(99,102,241,.2);
    color: #c7d2fe;
    vertical-align: middle;
}
.admin-filters {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: .75rem;
}
@media (max-width: 768px) {
    .admin-filters { grid-template-columns: 1fr; }
}
.admin-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
}
.admin-list-row:last-child { border-bottom: none; }
.badge-pill.plan-free { background: rgba(100,116,139,.12); color: #475569; }
.badge-pill.plan-pro { background: rgba(225,48,108,.12); color: var(--brand); }
.badge-pill.plan-business { background: rgba(99,102,241,.15); color: #4338ca; }

.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1080;
    background: linear-gradient(90deg, #4c1d95, #be185d);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.impersonation-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: .65rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .875rem;
}
.dashboard-body:has(.impersonation-banner) .sidebar {
    top: 48px;
    height: calc(100vh - 48px);
}

