/* ═══════════════════════════════════════════
   RAVIN — Design System «Noir Emerald»
   Premium Black + Refined Emerald
   ═══════════════════════════════════════════ */
:root {
    --ink: #09090b;
    --obsidian: #111113;
    --slate: #18181b;
    --slate-light: #27272a;
    --cream: #fafaf9;
    --pearl: #f4f4f5;
    --white: #ffffff;

    --ravin-green: #eab308;
    --ravin-green-light: #facc15;
    --ravin-green-dark: #ca8a04;
    --ravin-moss: #064e3b;
    --ravin-moss-deep: #022c22;
    --ravin-forest: #052e22;
    --ravin-terra: #f43f5e;

    --accent: var(--ravin-green);
    --accent-light: var(--ravin-green-light);
    --accent-dim: var(--ravin-green-dark);
    --accent-secondary: var(--ravin-moss);
    --accent-warm: var(--ravin-terra);
    --coral: var(--ravin-terra);
    --gold: var(--ravin-green-light);

    --text: #18181b;
    --text-soft: #52525b;
    --text-muted: #71717a;

    --border: rgba(9, 9, 11, 0.07);
    --border-strong: rgba(9, 9, 11, 0.12);
    --glass: rgba(250, 250, 249, 0.82);
    --accent-muted: rgba(234, 179, 8, 0.10);
    --steel-muted: rgba(6, 78, 59, 0.08);
    --glow-green: 0 0 0 1px rgba(234, 179, 8, 0.25), 0 8px 32px rgba(234, 179, 8, 0.14);
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-soft: 0 1px 2px rgba(9, 9, 11, 0.04), 0 4px 24px rgba(9, 9, 11, 0.04);
    --shadow: 0 4px 6px rgba(9, 9, 11, 0.04), 0 20px 60px rgba(9, 9, 11, 0.08);
    --shadow-deep: 0 24px 80px rgba(9, 9, 11, 0.22);
    --font: 'Peyda', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(16, 185, 129, 0.22); color: var(--ink); }

a { color: var(--ravin-green-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--ravin-green); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.75rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.6rem; border-radius: 12px;
    font-family: inherit; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.25s var(--ease); text-decoration: none;
    letter-spacing: -0.01em; position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--ink); color: var(--white);
    box-shadow: 0 1px 2px rgba(9, 9, 11, 0.1), 0 8px 24px rgba(9, 9, 11, 0.15);
}
.btn-primary:hover {
    background: var(--slate); transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(9, 9, 11, 0.2); color: var(--white);
}
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-glow {
    background: var(--ravin-green); color: var(--white); font-weight: 700;
    box-shadow: var(--glow-green);
}
.btn-glow:hover {
    background: var(--ravin-green-dark); transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 12px 40px rgba(16, 185, 129, 0.25);
    color: var(--white);
}

.btn-outline {
    background: var(--white); color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}
.btn-outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--text-muted); border-radius: 10px; }
.btn-ghost:hover { color: var(--text); background: rgba(9, 9, 11, 0.04); }

.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.8rem; border-radius: 10px; }
.btn-lg { padding: 1rem 2rem; font-size: 0.95rem; border-radius: 14px; }

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.card-glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.7);
}
.card-hover { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(16, 185, 129, 0.15);
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; margin-bottom: 0.45rem; font-weight: 600;
    font-size: 0.8rem; color: var(--text-soft); letter-spacing: 0.01em;
}
.form-control {
    width: 100%; padding: 0.85rem 1.1rem;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.9rem; background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* ── Alerts & Badges ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; }
.alert-success { background: rgba(16,185,129,0.07); color: #047857; border: 1px solid rgba(16,185,129,0.15); }
.alert-danger { background: rgba(239,68,68,0.06); color: #b91c1c; border: 1px solid rgba(239,68,68,0.15); }
.alert-error { background: rgba(239,68,68,0.06); color: #b91c1c; border: 1px solid rgba(239,68,68,0.12); }

.badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
    border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-red { background: rgba(239,68,68,0.08); color: #b91c1c; }
.badge-teal { background: var(--accent-muted); color: var(--ravin-green-dark); }
.badge-steel { background: var(--steel-muted); color: var(--ravin-moss); }
.badge-green { background: var(--accent-muted); color: var(--ravin-green-dark); }
.badge-dark { background: var(--ink); color: var(--accent-light); }

/* ── Logo mark ── */
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}
.brand-mark::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(16, 185, 129, 0.35) 100%);
}
.brand-mark::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--ravin-green), var(--ravin-green-light));
}
.brand-mark svg { position: relative; z-index: 1; }

/* ═══ LANDING ═══ */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 1.1rem 0; transition: all 0.35s var(--ease);
}
.landing-nav .logo {
    display: flex; align-items: center; gap: 0.75rem;
    font-weight: 800; font-size: 1.1rem; color: white; text-decoration: none;
    letter-spacing: -0.03em; transition: color 0.35s var(--ease);
}
.landing-nav .btn-ghost { color: rgba(255,255,255,0.55); }
.landing-nav .btn-ghost:hover { color: white; background: rgba(255,255,255,0.08); }
.landing-nav .btn-primary {
    background: rgba(255,255,255,0.1); color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.landing-nav .btn-primary:hover {
    background: var(--ravin-green); color: white;
    box-shadow: var(--glow-green);
}
.landing-nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 24px rgba(9, 9, 11, 0.04);
}
.landing-nav.scrolled .logo { color: var(--ink); }
.landing-nav.scrolled .btn-ghost { color: var(--text-muted); }
.landing-nav.scrolled .btn-ghost:hover { color: var(--text); background: rgba(9,9,11,0.04); }
.landing-nav.scrolled .btn-primary {
    background: var(--ink); color: white;
    box-shadow: 0 4px 20px rgba(9, 9, 11, 0.15);
}
.landing-nav.scrolled .btn-primary:hover { background: var(--slate); color: white; }
body.has-landing-nav { padding-top: 76px; }

/* Hero */
.hero-aurora {
    position: relative; min-height: 94vh;
    display: flex; align-items: center;
    background: var(--ink); color: var(--white); overflow: hidden;
    padding: 5rem 0 4rem;
}
.hero-aurora::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 20% 30%, rgba(16,185,129,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 80% 70%, rgba(5,150,105,0.08) 0%, transparent 55%);
}
.hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.4;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 { width: 420px; height: 420px; background: rgba(16,185,129,0.15); top: -10%; left: -5%; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(5,150,105,0.1); bottom: 10%; right: 5%; animation-delay: -4s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-15px) scale(1.05)} }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ravin-green-light);
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 100px;
}
.hero-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ravin-green); box-shadow: 0 0 8px var(--ravin-green);
    animation: livePulse 2s infinite;
}

.hero-aurora h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 800;
    line-height: 1.12; letter-spacing: -0.045em; margin-bottom: 1.5rem;
}
.hero-aurora h1 em {
    font-style: normal; color: var(--ravin-green-light);
}
.hero-lead {
    font-size: 1.05rem; color: rgba(255,255,255,0.55);
    max-width: 460px; line-height: 1.9; margin-bottom: 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }
.hero-cta .btn-outline {
    background: transparent; border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8); box-shadow: none;
}
.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); color: white;
}

.hero-metrics {
    display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-metrics strong {
    display: block; font-size: 1.75rem; font-weight: 800;
    letter-spacing: -0.03em; color: var(--white);
}
.hero-metrics strong span { color: var(--ravin-green-light); }
.hero-metrics > div > span { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.15rem; display: block; }

/* Chat mockup */
.hero-device { position: relative; }
.device-glow {
    position: absolute; inset: -20%; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.device-frame {
    position: relative;
    background: var(--slate); border-radius: 20px; padding: 12px;
    box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.5s var(--ease);
}
.device-frame:hover { transform: translateY(-6px); }
.device-screen {
    background: var(--cream); border-radius: 14px; overflow: hidden;
    height: 420px; display: flex; flex-direction: column;
}
.device-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--obsidian); }
.device-dot { width: 8px; height: 8px; border-radius: 50%; }
.device-chat-head {
    padding: 18px 20px; background: var(--ink); color: white;
    display: flex; align-items: center; gap: 12px;
}
.device-chat-head .dot-live {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
    animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.device-chat-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #f5f5f4; }
.d-bubble { padding: 11px 15px; border-radius: 16px; font-size: 13px; line-height: 1.65; max-width: 80%; }
.d-bubble.in {
    background: white; border: 1px solid var(--border);
    align-self: flex-start; border-bottom-right-radius: 4px; color: var(--text);
    box-shadow: 0 1px 3px rgba(9,9,11,0.04);
}
.d-bubble.out {
    background: var(--ink); color: rgba(255,255,255,0.92);
    align-self: flex-end; border-bottom-left-radius: 4px;
}
.device-float {
    position: absolute; bottom: -20px; left: -24px;
    background: white; border-radius: var(--radius); padding: 16px 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--border);
}
.device-float .num {
    font-size: 1.6rem; font-weight: 800; color: var(--ravin-green);
    letter-spacing: -0.03em; line-height: 1;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ravin-green-dark); margin-bottom: 0.6rem;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800;
    letter-spacing: -0.035em; margin-bottom: 0.6rem; color: var(--ink);
}
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 480px; line-height: 1.8; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.bento-card { padding: 1.75rem; position: relative; }
.bento-card.wide { grid-column: span 2; }
.bento-card.dark {
    background: var(--ink); color: white; border-color: transparent;
    box-shadow: var(--shadow-deep);
}
.bento-card.dark .bento-desc { color: rgba(255,255,255,0.5); }
.bento-card.dark .bento-icon {
    background: rgba(16, 185, 129, 0.12); color: var(--ravin-green-light);
    border-color: rgba(16, 185, 129, 0.2);
}
.bento-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-muted); color: var(--ravin-green-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(16, 185, 129, 0.12);
}
.bento-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.bento-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.bento-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

/* Timeline */
.timeline { display: grid; gap: 0; margin-top: 2.5rem; position: relative; }
.timeline::before {
    content: ''; position: absolute; right: 23px; top: 24px; bottom: 24px;
    width: 1px; background: linear-gradient(180deg, var(--ravin-green), rgba(16,185,129,0.1));
}
.timeline-step { display: flex; gap: 1.25rem; padding: 1.25rem 0; position: relative; }
.timeline-num {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: var(--white); border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--ravin-green-dark); z-index: 1;
    box-shadow: var(--shadow-soft);
}
.timeline-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* Pricing */
.pricing-zone { background: var(--pearl); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; align-items: start; }
.price-card { padding: 2.25rem 1.75rem; text-align: center; }
.price-card.featured {
    background: var(--ink); color: white; border-color: transparent;
    box-shadow: var(--shadow-deep), var(--glow-green);
    transform: scale(1.02);
}
.price-card.featured .price-label,
.price-card.featured .price-features li { color: rgba(255,255,255,0.5); }
.price-card.featured .price-amount { color: var(--ravin-green-light); }
.price-card.featured .btn-glow { width: 100%; }
.price-amount {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em;
    color: var(--ink); margin: 1rem 0 0.35rem;
}
.price-label { font-size: 0.82rem; color: var(--text-muted); }
.price-features {
    list-style: none; text-align: right; margin: 1.75rem 0;
    font-size: 0.85rem; color: var(--text-muted); line-height: 2.2;
}
.price-features li::before { content: '✓ '; color: var(--ravin-green); font-weight: 700; }

/* Footer */
.site-footer {
    background: var(--ink); color: rgba(255,255,255,0.4);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: var(--ravin-green-light); }

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

.dashboard-sidebar {
    width: 260px; background: var(--ink); color: rgba(255,255,255,0.5);
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; flex-direction: column;
}
.dashboard-sidebar::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, rgba(16,185,129,0.3), rgba(255,255,255,0.04) 40%, transparent);
}
.dashboard-sidebar .brand { padding: 1.5rem 1.25rem 1.25rem; }
.panel-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    margin: 0 0.5rem 1rem 1.25rem;
}
.panel-badge-client { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.panel-badge-owner { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }
.sidebar-owner .dashboard-nav a.active .nav-dot { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.4); }
.dashboard-sidebar .brand a {
    display: flex; align-items: center; gap: 0.7rem;
    color: white; font-weight: 800; font-size: 1rem; text-decoration: none;
    letter-spacing: -0.03em;
}
.dashboard-nav { flex: 1; padding: 0.25rem 0.75rem; }
.dashboard-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 0.9rem; border-radius: 10px;
    color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem;
    font-weight: 500; margin-bottom: 0.15rem; transition: all 0.2s var(--ease);
}
.dashboard-nav a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.dashboard-nav a.active {
    color: white; background: rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.dashboard-nav a.active .nav-dot { background: var(--ravin-green); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.12); flex-shrink: 0; }

.dashboard-sidebar .user-block {
    padding: 1.15rem 1.25rem; margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.user-avatar {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--ravin-green), var(--ravin-green-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.75rem; color: white;
}

.dashboard-main {
    flex: 1; margin-right: 260px; padding: 2rem 2.25rem;
    background: var(--pearl);
    background-image: radial-gradient(circle at 20% 10%, rgba(16,185,129,0.03) 0%, transparent 50%);
    min-height: 100vh;
}
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.page-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { padding: 1.35rem 1.5rem; border-radius: var(--radius-lg); }
.stat-card.teal {
    background: var(--ink); border-color: transparent;
    box-shadow: var(--shadow-soft);
}
.stat-card.coral, .stat-card.gold { background: var(--white); }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.stat-card.teal .stat-label { color: rgba(255,255,255,0.4); }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-top: 0.3rem; }
.stat-card.teal .stat-value { color: var(--ravin-green-light); }
.stat-card.coral .stat-value { color: var(--ink); }
.stat-card.gold .stat-value { color: var(--ravin-green); }

.admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1100px) {
    .admin-stat-grid { grid-template-columns: repeat(6, 1fr); }
}
.admin-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.admin-live {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.75rem; color: var(--text-muted); background: white;
    border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 0.85rem;
}
.admin-live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ravin-green);
    box-shadow: 0 0 0 2px rgba(16,185,129,.2); animation: rvnPulse 2s infinite;
}
.admin-online-toggle {
    display: inline-flex; align-items: center; gap: 0.65rem;
    background: white; border: 1px solid var(--border); border-radius: 100px;
    padding: 0.4rem 0.85rem 0.4rem 0.5rem; font-size: 0.8rem;
}
.admin-online-toggle input { accent-color: var(--ravin-green); width: 15px; height: 15px; }
.admin-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem;
}
.admin-panel { padding: 0; overflow: hidden; }
.admin-panel-head {
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.admin-panel-head h2 { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em; }
.admin-panel-head span { font-size: 0.72rem; color: var(--text-muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th {
    text-align: right; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text-muted); padding: 0.65rem 1.25rem;
    background: var(--cream); border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(16,185,129,.03); }
.admin-empty {
    padding: 2.5rem 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
.admin-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 100px;
}
.admin-status.online { background: rgba(16,185,129,.1); color: var(--ravin-green-dark); }
.admin-status.offline { background: var(--pearl); color: var(--text-muted); }
.admin-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-role {
    font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.45rem;
    border-radius: 6px; background: var(--pearl); color: var(--text-muted);
}
.admin-link { color: var(--ravin-green-dark); text-decoration: none; font-weight: 600; font-size: 0.78rem; }
.admin-link:hover { color: var(--ravin-green); }
.admin-page-url {
    max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text-muted); font-size: 0.75rem; direction: ltr; text-align: right;
}

/* Sales panel */
.sales-plan-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    padding: 0.18rem 0.55rem; border-radius: 100px; letter-spacing: -0.01em;
}
.sales-plan-base { background: rgba(148,163,184,.15); color: #64748b; }
.sales-plan-plus { background: rgba(59,130,246,.12); color: #1d4ed8; }
.sales-plan-pro { background: rgba(16,185,129,.12); color: var(--ravin-green-dark); }
.sales-plan-elite { background: rgba(245,158,11,.12); color: #b45309; }
.sales-bar-row { margin-bottom: 1rem; }
.sales-bar-row:last-child { margin-bottom: 0; }
.sales-bar-label {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 0.4rem; font-size: 0.78rem; color: var(--text-muted);
}
.sales-bar-track {
    height: 6px; border-radius: 100px; background: var(--pearl); overflow: hidden;
}
.sales-bar-fill { height: 100%; border-radius: 100px; transition: width .4s ease; }
.sales-bar-base { background: #94a3b8; }
.sales-bar-plus { background: #3b82f6; }
.sales-bar-pro { background: var(--ravin-green); }
.sales-bar-elite { background: #f59e0b; }
.sales-stat-box {
    background: var(--pearl); border-radius: 12px; padding: 1rem 1.1rem;
}
.sales-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.sales-stat-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }

.feature-matrix-wrap { overflow-x: auto; }
.feature-matrix { width: 100%; border-collapse: collapse; font-size: 0.78rem; min-width: 720px; }
.feature-matrix th, .feature-matrix td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(9,9,11,.06); text-align: center; }
.feature-matrix th:first-child, .feature-matrix td:first-child { text-align: right; min-width: 220px; }
.feature-matrix th { font-size: 0.72rem; color: var(--text-muted); background: var(--pearl); }
.feature-matrix-cat td { background: rgba(16,185,129,.04); font-weight: 700; font-size: 0.72rem; color: var(--ravin-green-dark); text-align: right !important; }
.feature-check { color: var(--ravin-green-dark); font-weight: 700; }
.feature-dash { color: #cbd5e1; }
.feature-status { font-size: 0.62rem; margin-right: 0.35rem; opacity: 0.7; }
.feature-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; padding: 1rem 1.25rem 1.25rem; }
.feature-list-item { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.75rem; border-radius: 10px; background: var(--pearl); }
.feature-list-item.locked { opacity: 0.55; }
.feature-list-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; background: rgba(16,185,129,.12); color: var(--ravin-green-dark); flex-shrink: 0; }
.feature-list-item.locked .feature-list-icon { background: #e2e8f0; color: #94a3b8; }
.feature-list-name { font-size: 0.82rem; font-weight: 600; }
.feature-list-meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }
.feature-matrix-current { background: rgba(16,185,129,.08) !important; }
.tools-list-item { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(9,9,11,.05); font-size: 0.82rem; }
.tools-list-item:last-child { border-bottom: none; }
.chat-typing-indicator { padding: 0.35rem 1rem 0.5rem; font-size: 0.72rem; color: var(--text-muted); min-height: 1.4rem; }
.inbox-canned-wrap { padding: 0.35rem 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.inbox-canned-btn { font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 100px; border: 1px solid rgba(9,9,11,.08); background: #fff; cursor: pointer; color: var(--text-muted); }
.inbox-canned-btn:hover { border-color: var(--ravin-green); color: var(--ravin-green-dark); }
.profile-actions { padding: 1rem 1.25rem; border-top: 1px solid rgba(9,9,11,.06); display: grid; gap: 0.75rem; }
.profile-tag-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Inbox */
.inbox-page-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; padding: 0.55rem 1rem; margin-bottom: 0.75rem;
    flex-shrink: 0; direction: ltr;
}
.inbox-page-right {
    display: flex; align-items: center; gap: 0.5rem;
    margin-left: auto; direction: rtl;
}
.inbox-page-title {
    font-size: 0.9rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--ink); white-space: nowrap;
}
.inbox-page-desc {
    font-size: 0.72rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: left;
}
.inbox-page-filter {
    padding: 0.35rem 0.75rem; border: 1px solid var(--border);
    border-radius: 100px; font-family: inherit; font-size: 0.72rem;
    background: white; color: var(--text); cursor: pointer;
}
.inbox-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 1rem;
    height: calc(100vh - 88px); min-height: 560px;
    background: transparent;
}
.inbox-layout.has-profile { grid-template-columns: 280px 1fr 248px; }
.inbox-panel {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-soft);
    overflow: hidden; min-height: 0;
}
.inbox-sidebar {
    display: flex; flex-direction: column;
    background: var(--cream);
}
.inbox-sidebar-header { padding: 1.15rem; border-bottom: 1px solid var(--border); }
.inbox-search {
    width: 100%; padding: 0.65rem 1rem 0.65rem 2.4rem;
    border: 1px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: 0.82rem; background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.inbox-list { flex: 1; overflow-y: auto; }
.inbox-item {
    display: flex; gap: 0.75rem; padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit; transition: background 0.15s;
}
.inbox-item:hover { background: var(--accent-muted); }
.inbox-item.active { background: var(--accent-muted); border-inline-start: 2px solid var(--ravin-green); }
.inbox-avatar {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: var(--ink); color: var(--ravin-green-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
}
.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-name { font-weight: 600; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.inbox-item-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.inbox-item-meta { font-size: 0.68rem; color: #a1a1aa; margin-top: 2px; }
.inbox-unread {
    background: var(--ravin-green); color: white;
    border-radius: 100px; padding: 0.1rem 0.45rem; font-size: 0.62rem; font-weight: 700;
}
.inbox-profile {
    background: var(--cream); display: flex; flex-direction: column;
    overflow-y: auto; min-width: 0;
}
.inbox-profile-header {
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.6rem; background: white;
}
.inbox-profile-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--ink); color: var(--ravin-green-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem;
}
.inbox-profile-name { font-weight: 700; font-size: 0.85rem; letter-spacing: -0.02em; }
.inbox-profile-site { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }
.inbox-profile-body { padding: 0.65rem 0.85rem; display: flex; flex-direction: column; gap: 0; }
.profile-field {
    display: flex; flex-direction: row; align-items: center;
    justify-content: space-between; gap: 0.5rem;
    padding: 0.45rem 0; border-bottom: 1px solid rgba(9, 9, 11, 0.05);
    min-height: 0;
}
.profile-field:last-child { border-bottom: none; }
.profile-label {
    flex-shrink: 0; width: 4.5rem;
    font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
    text-align: right;
}
.profile-value {
    flex: 1; min-width: 0; font-size: 0.75rem; color: var(--text);
    text-align: left; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-value.profile-mono { font-family: ui-monospace, monospace; font-size: 0.7rem; }
.profile-value.profile-small {
    font-size: 0.65rem; color: var(--text-soft);
    white-space: normal; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.profile-link {
    flex: 1; min-width: 0; font-size: 0.7rem; color: var(--ravin-green-dark);
    text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-link:hover { color: var(--ravin-green); }
.profile-field .badge { flex-shrink: 0; margin-right: auto; }

.inbox-main {
    display: flex; flex-direction: column; min-width: 0; min-height: 0;
    overflow: visible;
}
.inbox-main.inbox-panel { overflow: visible; }
.inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; text-align: center; }
.inbox-empty-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--pearl); display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; margin-bottom: 1rem; border: 1px solid var(--border);
}

.chat-pro-header {
    padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--cream);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}
.chat-pro-messages {
    flex: 1; overflow-y: auto; overflow-x: visible; padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    background: #f5f5f4; direction: rtl;
}
.chat-pro-input {
    padding: 0.75rem 1.25rem 1rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.5rem;
    background: white; flex-shrink: 0; position: relative; z-index: 5;
    overflow: visible;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.chat-pro-input-row {
    display: flex; gap: 1rem; align-items: center;
    direction: rtl;
}
.chat-pro-input .form-control {
    flex: 1; min-width: 0; resize: none;
    border-radius: 12px; background: var(--pearl);
    border: 1px solid var(--border);
    padding: 0.7rem 1rem; font-size: 0.875rem; line-height: 1.5;
}
.chat-pro-input .form-control:focus {
    outline: none; border-color: var(--ravin-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.chat-input-slot {
    flex-shrink: 0; height: 42px; position: relative;
    overflow: visible; z-index: 30;
    display: flex; align-items: center; gap: 8px;
}
.chat-input-slot .btn-attach,
.chat-input-slot .btn-send {
    position: static; margin: 0; z-index: 1; flex-shrink: 0;
}
.chat-pro-input .btn-send {
    padding: 0; border-radius: 12px; font-size: 0.72rem;
    background: var(--ravin-green); color: white;
    border: none; font-family: inherit; font-weight: 600;
    cursor: pointer; transition: background 0.2s, opacity 0.15s;
    height: 42px; width: 42px;
    display: flex; align-items: center; justify-content: center;
}
.chat-pro-input .btn-send:hover { background: var(--ravin-green-dark); }
.chat-pro-input .btn-send[hidden] { display: none !important; }
/* reply-to bar carries an inline display:flex, so [hidden] needs !important to win */
#reply-to-bar[hidden] { display: none !important; }
.msg-bubble {
    width: fit-content; max-width: 72%; padding: 0.75rem 1.1rem;
    border-radius: 16px; font-size: 0.875rem; line-height: 1.7;
    animation: msgIn 0.35s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-bubble.visitor {
    background: white; border: 1px solid var(--border);
    align-self: flex-end; border-radius: 16px;
    box-shadow: 0 1px 3px rgba(9,9,11,0.04);
}
.msg-bubble.agent {
    background: var(--ink); color: rgba(255,255,255,0.92);
    align-self: flex-start; border-radius: 16px;
}
.msg-bubble.agent[data-has-menu="1"] {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 0.65rem;
    align-items: start;
    padding: 0.65rem 1rem 0.75rem 0.7rem;
    position: relative;
    direction: ltr;
}
.msg-bubble.agent[data-has-menu="1"] .msg-topbar {
    grid-column: 1; grid-row: 1;
    position: relative; align-self: start; z-index: 2;
}
.msg-bubble.agent[data-has-menu="1"] .msg-body {
    grid-column: 2; grid-row: 1; min-width: 0; direction: rtl;
}
.msg-more-btn {
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 7px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65); cursor: pointer; padding: 0;
    transition: background 0.15s, color 0.15s;
}
.msg-more-btn:hover,
.msg-topbar.is-open .msg-more-btn {
    background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.98);
}
.msg-edit-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.msg-popover {
    position: absolute; top: 50%; transform: translateY(-50%);
    right: calc(100% + 8px); left: auto;
    min-width: 130px; background: white; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 10px 32px rgba(9,9,11,0.14);
    padding: 0.35rem; z-index: 60; overflow: hidden;
}
.msg-popover[hidden] { display: none !important; }
.msg-popover-item {
    display: flex; align-items: center; gap: 0.5rem; width: 100%;
    padding: 0.55rem 0.75rem; border: none; border-radius: 8px;
    background: transparent; font-family: inherit; font-size: 0.8rem;
    color: var(--text); cursor: pointer; text-align: right;
}
.msg-popover-item svg { flex-shrink: 0; color: var(--ravin-green-dark); }
.msg-popover-item:hover { background: var(--accent-muted); color: var(--ink); }
.msg-edit-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(9,9,11,0.45); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.msg-edit-overlay[hidden] { display: none !important; }
.msg-edit-dialog {
    width: 100%; max-width: 420px; background: white;
    border-radius: 16px; border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(9,9,11,0.2); padding: 1.25rem;
}
.msg-edit-head {
    font-weight: 700; font-size: 0.95rem; margin-bottom: 0.85rem;
}
.msg-edit-input {
    width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border);
    border-radius: 12px; font-family: inherit; font-size: 0.875rem;
    line-height: 1.6; resize: vertical; min-height: 96px;
    background: var(--pearl); direction: rtl;
}
.msg-edit-input:focus {
    outline: none; border-color: var(--ravin-green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.msg-edit-actions {
    display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem;
}
.msg-bubble.system {
    background: rgba(16,185,129,0.08); color: var(--ravin-green-dark);
    align-self: center; font-size: 0.78rem; text-align: center; max-width: 90%;
    border-radius: 100px; padding: 0.45rem 1.15rem;
}
.msg-text { word-break: break-word; }
.msg-footer { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.35rem; }
.msg-time { font-size: 0.62rem; opacity: 0.45; }
.msg-edited { font-size: 0.58rem; color: var(--text-muted); }
.msg-bubble.agent .msg-edited { color: rgba(255,255,255,0.45); }
.msg-attachment { margin-bottom: 0.4rem; }
.msg-attachment img { max-width: 220px; max-height: 180px; border-radius: 10px; display: block; }
.msg-attachment video { max-width: 260px; max-height: 200px; border-radius: 10px; display: block; }
.msg-file-link {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.65rem;
    background: rgba(9,9,11,0.05); border-radius: 8px; text-decoration: none;
    color: inherit; font-size: 0.75rem; max-width: 100%;
}
.msg-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── voice message (waveform player) — inherits bubble text color ── */
.msg-voice { display: flex; align-items: center; gap: 10px; direction: ltr; min-width: 214px; padding: 2px 0; }
.msg-voice-play {
    width: 36px; height: 36px; flex-shrink: 0; padding: 0; cursor: pointer;
    border: 2px solid currentColor; background: transparent; color: inherit;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: transform .12s ease, opacity .15s;
}
.msg-voice-play:hover { opacity: .82; }
.msg-voice-play:active { transform: scale(.92); }
.msg-voice-play svg { width: 14px; height: 14px; fill: currentColor; }
.msg-voice-play .ic-pause { display: none; }
.msg-voice.is-playing .ic-play { display: none; }
.msg-voice.is-playing .ic-pause { display: block; }
.msg-voice-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.msg-voice-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; cursor: pointer; }
.msg-voice-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .3; transition: opacity .1s; }
.msg-voice-wave i.on { opacity: .95; }
.msg-voice-time { flex-shrink: 0; min-width: 30px; text-align: left; font-size: 11px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.msg-voice-audio { display: none; }
.chat-pro-input .btn-attach {
    width: 42px; height: 42px; display: flex; align-items: center;
    justify-content: center; border-radius: 12px; border: 1px solid var(--border);
    background: var(--pearl); color: var(--text-muted); cursor: pointer;
    transition: border-color 0.2s, color 0.2s, opacity 0.15s;
}
.chat-pro-input .btn-attach[hidden] { display: none !important; }
.chat-pro-input .btn-attach:hover { border-color: var(--ravin-green); color: var(--ravin-green-dark); }
.chat-pro-input .file-pending {
    font-size: 0.68rem; color: var(--ravin-green-dark); max-width: 90px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0;
}
.chat-input-slot[hidden] { display: none !important; }
.attach-menu {
    position: absolute; bottom: calc(100% + 8px); left: 0;
    min-width: 148px; background: white;
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 24px rgba(9,9,11,0.12);
    padding: 0.35rem; display: flex; flex-direction: column; gap: 2px;
    z-index: 40;
}
.attach-menu[hidden] { display: none !important; }
.attach-menu-item {
    display: flex; align-items: center; gap: 0.5rem; width: 100%;
    padding: 0.5rem 0.65rem; border: none; border-radius: 8px;
    background: transparent; font-family: inherit; font-size: 0.78rem;
    color: var(--text); cursor: pointer; text-align: right;
}
.attach-menu-item:hover { background: var(--accent-muted); color: var(--ink); }
.attach-menu-icon { font-size: 1rem; line-height: 1; }

/* Auth */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand {
    background: var(--ink); color: white; padding: 4rem;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.auth-brand::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 75%, rgba(16,185,129,0.1), transparent 55%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
}
.auth-brand-inner { position: relative; z-index: 1; max-width: 360px; }
.auth-brand h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; margin-bottom: 1rem; }
.auth-brand p { color: rgba(255,255,255,0.45); line-height: 1.85; font-size: 0.92rem; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--cream); }
.auth-card { background: white; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.auth-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--text-muted); font-size: 0.88rem; margin: 0.3rem 0 1.75rem; }

.mobile-topbar {
    display: none; background: var(--ink); color: white;
    padding: 0.8rem 1.15rem; position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-device { display: none; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-card.wide { grid-column: span 1; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card.featured { transform: none; }
    .inbox-layout, .inbox-layout.has-profile { grid-template-columns: 1fr; height: auto; }
    .inbox-sidebar { max-height: 260px; border-inline-start: none; border-bottom: 1px solid var(--border); }
    .inbox-profile { display: none; }
}

@media (max-width: 768px) {
    .dashboard-sidebar { display: none; }
    .dashboard-main { margin-right: 0; padding: 1.15rem; }
    .mobile-topbar { display: flex; align-items: center; justify-content: space-between; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .hero-metrics { flex-direction: column; gap: 1.25rem; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card { padding: 1.75rem; border: none; box-shadow: none; background: transparent; }
}
