@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ─── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
    --topbar-h:      66px;
    --sidebar-w:     288px;
    --pad-h:         2.5rem;
    --pad-page:      3rem;
    --r-sm:          8px;
    --r-md:          12px;
    --r-lg:          18px;
    --r-xl:          24px;

    --bg-base:       #080808;
    --bg-panel:      rgba(18,18,20,0.88);
    --bg-panel-hov:  rgba(26,26,30,0.96);
    --bg-topbar:     rgba(8,8,8,0.92);
    --bg-sidebar:    rgba(10,10,12,0.98);

    --text-main:     #f0ede8;
    --text-muted:    rgba(240,237,232,0.45);
    --border:        rgba(255,255,255,0.08);
    --border-gold:   rgba(212,175,55,0.2);

    --gold:          #d4af37;
    --gold-light:    #e8c84a;
    --gold-dim:      rgba(212,175,55,0.12);
    --gold-glow:     rgba(212,175,55,0.22);

    --green:         #22c55e;
    --yellow:        #eab308;
    --red:           #ef4444;

    --font-display:  'Syne', sans-serif;
    --font-body:     'DM Sans', sans-serif;
    --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme {
    --bg-base:       #f4f0e8;
    --bg-panel:      rgba(255,252,244,0.92);
    --bg-panel-hov:  rgba(255,255,255,1);
    --bg-topbar:     rgba(250,247,238,0.96);
    --bg-sidebar:    rgba(252,249,240,0.99);
    --text-main:     #1a1612;
    --text-muted:    rgba(26,22,18,0.5);
    --border:        rgba(180,155,80,0.16);
    --border-gold:   rgba(212,175,55,0.28);
    --gold-dim:      rgba(212,175,55,0.12);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 4px; height: 4px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(212,175,55,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(212,175,55,0.6); }

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpEffect {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
    50%       { box-shadow: 0 0 0 7px rgba(212,175,55,0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes scanline {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}
@keyframes aiTyping {
    0%,80%,100% { transform: scale(0); opacity: 0; }
    40%         { transform: scale(1); opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}
@keyframes rotateGlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── GRAIN OVERLAY ───────────────────────────────────────────── */
.bgContainer {
    position: fixed; inset: 0; z-index: -2;
    background-image: url('AssetStore/image_1e6304.jpg');
    background-size: cover; background-position: center;
    opacity: 0.3; transition: opacity 0.5s;
}
body.light-theme .bgContainer { opacity: 0.08; filter: saturate(0.4) brightness(1.4); }

.overlayContainer {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(8,8,8,0.5) 0%, rgba(8,8,8,0.85) 100%);
}
body.light-theme .overlayContainer {
    background: radial-gradient(ellipse at 30% 40%, rgba(255,248,220,0.7) 0%, rgba(240,234,220,0.9) 100%);
}

/* ─── TOPBAR ──────────────────────────────────────────────────── */
.adminTopbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--pad-h);
    z-index: 200; backdrop-filter: blur(24px);
    box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.adminLayout {
    padding: calc(var(--topbar-h) + 2.5rem) var(--pad-h) var(--pad-page);
    max-width: 1400px; margin: 0 auto;
    position: relative; z-index: 10;
}

.layoutContainer {
    display: flex; width: 100vw; height: 100vh;
    position: relative; z-index: 10;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.sidebarNavigation {
    width: var(--sidebar-w); flex-shrink: 0;
    display: flex; flex-direction: column;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto; position: fixed; top: 0; bottom: 0; left: 0;
    box-shadow: 1px 0 30px rgba(0,0,0,0.6);
    z-index: 100;
}

.mainWorkspace {
    margin-left: var(--sidebar-w);
    flex: 1; padding: var(--pad-page) var(--pad-h);
    overflow-y: auto; max-height: 100vh;
}

/* ─── FUNNEL ──────────────────────────────────────────────────── */
.funnelWrapper {
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
    padding: calc(var(--topbar-h) + 2.5rem) var(--pad-h) 140px;
    gap: 0; position: relative; z-index: 10;
}

.funnelCard {
    width: 100%; margin: 0 auto 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-panel); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 1.4rem 3.5rem 1.4rem 4.5rem;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    animation: fadeUp 0.5s both; will-change: transform;
    position: relative; overflow: hidden; min-height: 88px;
}
.funnelCard::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(212,175,55,0.04) 100%);
    opacity: 0; transition: opacity 0.3s;
}
.funnelCard:hover::before { opacity: 1; }
.funnelCard h3 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-main); transition: color 0.25s; margin: 0 0 3px 0;
}
.funnelCard p { font-size: 0.83rem; font-weight: 400; color: var(--text-muted); text-align: center; transition: color 0.25s; margin: 0; }
.funnelCard:hover {
    background: var(--bg-panel-hov); border-color: rgba(212,175,55,0.35);
    transform: translateY(-5px) scale(1.008);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.15), 0 0 60px rgba(212,175,55,0.06);
}
.funnelCard:hover h3 { color: var(--gold); }
.funnelCard:hover p  { color: rgba(240,237,232,0.7); }
.funnelCard:hover .funnel-arrow { color: var(--gold) !important; transform: translateX(4px) translateY(-50%) !important; }

.driles-sub-card:hover {
    background: rgba(212,175,55,0.1) !important;
    border-color: rgba(212,175,55,0.4) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(212,175,55,0.12);
}

.driles-corner { opacity: 0.5; transition: opacity 0.3s, transform 0.3s; }
.driles-corner:hover { opacity: 0.9; transform: translateY(-4px); }

.f-1 { max-width: 820px; }
.f-2 { max-width: 740px; }
.f-3 { max-width: 660px; }
.f-4 { max-width: 580px; }
.f-5 { max-width: 500px; }

/* ─── CONTENT GRID ────────────────────────────────────────────── */
.contentGrid {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 1.6rem; width: 100%; align-items: stretch;
}

.infoCard {
    background: var(--bg-panel); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-top: 2px solid rgba(212,175,55,0.35);
    border-radius: var(--r-xl); padding: 2.2rem 2.5rem;
    display: flex; flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3); transition: all 0.35s var(--ease-out);
    animation: fadeUp 0.5s both; will-change: transform;
}
.infoCard:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); background: var(--bg-panel-hov); border-top-color: var(--gold); }
.infoCard h2 {
    font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); font-weight: 700;
    margin: 0 0 1.5rem 0; border-bottom: 1px solid var(--border); padding-bottom: 0.9rem;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.cardSpanFull { grid-column: 1/-1; }

.errorCard { border-top: 2px solid rgba(239,68,68,0.45) !important; }
.errorCard:hover { border-top-color: var(--red) !important; }
.errorCard h2 { color: var(--red) !important; }

.text-center { align-items: center !important; text-align: center !important; }
.text-center h2, .text-center .aligned-list-item, .text-center .footer-card { text-align: center !important; justify-content: center !important; }
.aligned-list-item { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.65; opacity: 0.9; }

.preparationGrid {
    background: var(--bg-panel); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-left: 3px solid var(--gold);
    border-radius: var(--r-xl); padding: 2.2rem 2.5rem;
    grid-column: 1/-1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3); animation: fadeUp 0.5s both;
    margin-bottom: 1.5rem; align-items: center;
}

.topHeadingFree {
    grid-column: 1/-1; text-align: center;
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    color: var(--text-main); margin: 2rem 0 1rem 0; text-transform: uppercase;
    letter-spacing: 2.5px; animation: fadeUp 0.5s both;
}

/* ─── AUTH ────────────────────────────────────────────────────── */
.authInput {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.05); border: 1.5px solid var(--border);
    color: var(--text-main); border-radius: var(--r-md);
    font-size: 0.95rem; font-family: var(--font-body); font-weight: 400;
    outline: none; transition: all 0.25s; margin-bottom: 1rem; display: block;
    letter-spacing: 0.2px;
}
.authInput::placeholder { color: var(--text-muted); }
.authInput:focus { border-color: var(--gold); background: rgba(212,175,55,0.05); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }

.authBtn {
    width: 100%; padding: 15px; margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #b5952f 100%);
    border: none; color: #0a0800; font-weight: 700; font-family: var(--font-display);
    border-radius: var(--r-md); cursor: pointer; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(212,175,55,0.2); display: block;
    position: relative; overflow: hidden;
}
.authBtn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    background-size: 200% auto;
    animation: shimmer 3s infinite; opacity: 0; transition: opacity 0.3s;
}
.authBtn:hover::before { opacity: 1; }
.authBtn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,175,55,0.35); }
.authBtn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.pwd-hint { font-size: 0.76rem; color: var(--text-muted); margin: -0.5rem 0 0.75rem 2px; }
.pwd-hint.invalid { color: var(--red); }
.pwd-hint.valid   { color: var(--green); }
.auth-toggle:hover { opacity: 1 !important; }

/* ─── SIDEBAR NAV ─────────────────────────────────────────────── */
.backButton {
    margin: 1.2rem 0.9rem;
    padding: 0.85rem 1.1rem;
    background: var(--gold-dim); border: 1px solid var(--border-gold);
    color: var(--gold); font-weight: 700; font-size: 0.78rem;
    font-family: var(--font-display);
    border-radius: var(--r-md); cursor: pointer; transition: all 0.25s var(--ease-out);
    text-transform: uppercase; letter-spacing: 2px; width: calc(100% - 1.8rem);
}
.backButton:hover { background: var(--gold); color: #000; box-shadow: 0 8px 24px rgba(212,175,55,0.3); transform: translateY(-1px); }

.nav-category { transition: all 0.2s; }
.nav-category:hover { opacity: 1 !important; background: rgba(255,255,255,0.04) !important; padding-left: 2.3rem !important; }
.nav-category-active:hover { background: rgba(212,175,55,0.1) !important; }
.nav-profile:hover { opacity: 1 !important; background: rgba(255,255,255,0.05) !important; }

/* ─── ADMIN ───────────────────────────────────────────────────── */
.userCard {
    background: var(--bg-panel); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-left: 3px solid #222;
    border-radius: var(--r-lg); display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s var(--ease-out); box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    animation: fadeUp 0.5s both; will-change: transform;
}
.userCard:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.5); background: var(--bg-panel-hov); }

/* ─── CHECKLIST ───────────────────────────────────────────────── */
.checkCard {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-left: 3px solid #222; border-radius: var(--r-md);
    display: flex; align-items: center; cursor: pointer;
    transition: all 0.25s; box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    animation: fadeUp 0.5s both;
}
.checkCard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.1); }
.checkCard.checked-onb  { border-left-color: var(--green) !important; background: rgba(34,197,94,0.06) !important; }
.checkCard.checked-onb  .checkCircle { border-color: var(--green) !important; background: var(--green); }
.checkCard.checked-onb  .checkCircle::after { content: '✓'; color: #000; font-weight: 900; font-size: 0.85rem; }
.checkCard.checked-offb { border-left-color: var(--red) !important; background: rgba(239,68,68,0.06) !important; }
.checkCard.checked-offb .checkCircle { border-color: var(--red) !important; background: var(--red); }
.checkCard.checked-offb .checkCircle::after { content: '✓'; color: #fff; font-weight: 900; font-size: 0.85rem; }
.checkCircle {
    flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; transition: all 0.25s; color: transparent;
}
.checkCard.checked .check-content { opacity: 0.4; text-decoration: line-through; }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btnIconAction {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--text-main); padding: 8px 12px; border-radius: var(--r-sm);
    cursor: pointer; transition: all 0.22s var(--ease-out); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); font-family: var(--font-body);
}
.btnIconAction:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(212,175,55,0.15); color: var(--gold); }

.btnDeleteIcon {
    background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--r-sm); color: var(--red); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.22s;
}
.btnDeleteIcon:hover { background: var(--red); color: #fff; transform: translateY(-2px) scale(1.05); box-shadow: 0 4px 14px rgba(239,68,68,0.3); }

.desligar-btn:hover { background: var(--red) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(239,68,68,0.3) !important; }
.logout-btn:hover   { background: rgba(239,68,68,0.1) !important; border-color: rgba(239,68,68,0.45) !important; transform: translateY(-1px); }
.edit-name-btn:hover { opacity: 1 !important; transform: scale(1.15); }
.start-onboarding-btn:hover { background: rgba(34,197,94,0.16) !important; border-color: var(--green) !important; transform: translateY(-2px); }
.pending-back-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 28px rgba(212,175,55,0.4) !important; }

/* ─── SELECT ──────────────────────────────────────────────────── */
.customSelect {
    appearance: none;
    background-color: var(--bg-panel);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
    border: 1px solid var(--border); color: var(--text-main);
    font-family: var(--font-body); font-weight: 500; font-size: 0.88rem;
    padding: 9px 32px 9px 12px; border-radius: var(--r-sm);
    cursor: pointer; transition: all 0.22s;
}
.customSelect:hover { border-color: rgba(212,175,55,0.4); background-color: var(--bg-panel-hov); }
.customSelect:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.customSelect option { background: #111; color: #fff; }
body.light-theme .customSelect { background-color: #fff; color: #000; }

/* ─── VIDEO ───────────────────────────────────────────────────── */
.video-panel { transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.video-panel:hover { transform: translateY(-4px) !important; box-shadow: 0 24px 50px rgba(0,0,0,0.65) !important; }
.yt-facade:hover img { opacity: 1; }
.yt-facade:hover .yt-play-btn { transform: translate(-50%,-50%) scale(1.12) !important; background: rgba(220,0,0,1) !important; }
.eye-btn:hover { background: var(--gold) !important; transform: scale(1.12); }
.close-modal-btn:hover { background: var(--red) !important; color: #fff !important; }

/* ─── TOAST ───────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    background: rgba(10,10,12,0.97); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-left: 3px solid var(--gold);
    color: var(--text-main); padding: 14px 20px; border-radius: var(--r-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7); animation: fadeUp 0.3s var(--ease-out);
    font-family: var(--font-body); font-weight: 500; font-size: 0.88rem;
    display: flex; align-items: center; gap: 10px; max-width: 360px;
}

/* ─── SEARCH / PROMPT ─────────────────────────────────────────── */
.admin-search:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold-dim) !important; }
.prompt-input:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold-dim) !important; }

/* ─── AI CHAT WIDGET ──────────────────────────────────────────── */
.ai-chat-widget {
    position: fixed; bottom: 28px; right: 28px; z-index: 1000;
    animation: fadeUp 0.5s var(--ease-out) 0.6s both;
}

.ai-chat-bubble {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #8a6a10);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.3rem;
    box-shadow: 0 8px 30px rgba(212,175,55,0.4), 0 0 0 0 rgba(212,175,55,0.4);
    transition: all 0.3s var(--ease-spring); position: relative;
    animation: pulseGold 2.5s infinite;
}
.ai-chat-bubble:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(212,175,55,0.5); }

.ai-chat-panel {
    position: absolute; bottom: 64px; right: 0;
    width: 360px; max-height: 520px;
    background: rgba(10,10,12,0.97); backdrop-filter: blur(24px);
    border: 1px solid var(--border-gold); border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.08);
    display: flex; flex-direction: column;
    animation: slideInRight 0.3s var(--ease-out);
    overflow: hidden;
}

.ai-chat-header {
    padding: 14px 16px; background: rgba(212,175,55,0.06);
    border-bottom: 1px solid var(--border-gold);
    display: flex; align-items: center; gap: 10px;
}

.ai-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #6b4f0a);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    box-shadow: 0 0 16px rgba(212,175,55,0.3);
}

.ai-messages {
    flex: 1; padding: 14px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    max-height: 360px;
}

.ai-msg {
    max-width: 88%; padding: 10px 13px; border-radius: 14px;
    font-size: 0.83rem; line-height: 1.55; animation: fadeUp 0.2s both;
}
.ai-msg.bot {
    background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.15);
    color: var(--text-main); border-bottom-left-radius: 4px; align-self: flex-start;
}
.ai-msg.user {
    background: rgba(255,255,255,0.07); border: 1px solid var(--border);
    color: var(--text-main); border-bottom-right-radius: 4px; align-self: flex-end;
}

.ai-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
    display: inline-block; margin: 0 2px;
    animation: aiTyping 1.4s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

.ai-input-row {
    padding: 12px; border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}
.ai-input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 10px; padding: 9px 12px; color: var(--text-main);
    font-family: var(--font-body); font-size: 0.83rem; outline: none;
    transition: border-color 0.2s;
}
.ai-input:focus { border-color: rgba(212,175,55,0.45); }
.ai-send {
    background: linear-gradient(135deg, var(--gold), #9a7520);
    border: none; border-radius: 10px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #000; font-size: 1rem;
    transition: all 0.2s var(--ease-out); flex-shrink: 0;
}
.ai-send:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(212,175,55,0.3); }

/* ─── DRIBLES PANEL ───────────────────────────────────────────── */
.dribles-panel {
    position: fixed; bottom: 28px; left: 24px; z-index: 900;
    animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

/* ─── CANVAS TRIGGER CARD ─────────────────────────────────────── */
.canvas-trigger-card { transition: transform 0.25s var(--ease-spring), box-shadow 0.25s; }

/* ─── VIP CARD ────────────────────────────────────────────────── */
.vip-card { transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, border-color 0.25s; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .sidebarNavigation { display: none; }
    .mainWorkspace { margin-left: 0; padding: 2rem 1.5rem; }
    .contentGrid { grid-template-columns: 1fr; }
    .adminLayout { padding: calc(var(--topbar-h) + 1.5rem) 1.5rem 3rem; }
    .adminTopbar { padding: 0 1.5rem; }
    .preparationGrid { grid-template-columns: 1fr; }
    .funnelWrapper { padding: calc(var(--topbar-h) + 1rem) 1rem 2rem; }
}
@media (max-width: 768px) {
    .auth-left { display: none !important; }
    .ai-chat-panel { width: 320px; }
}

/* ─── LIGHT THEME ─────────────────────────────────────────────── */
body.light-theme .customSelect option { background: #fff; color: #1a1612; }
body.light-theme .customSelect { background-color: rgba(255,252,244,0.95); color: #1a1612; }
body.light-theme .toast { background: rgba(252,249,240,0.98); color: #1a1612; border-color: rgba(180,155,80,0.2); }
body.light-theme .infoCard:hover { box-shadow: 0 14px 40px rgba(180,155,80,0.18); }
body.light-theme .funnelCard:hover { box-shadow: 0 20px 50px rgba(212,175,55,0.15); }
body.light-theme .btnIconAction { background: rgba(255,252,244,0.8); }
body.light-theme .authInput { background: rgba(255,255,255,0.7); border-color: rgba(180,155,80,0.22); color: #1a1612; }
body.light-theme .authInput::placeholder { color: rgba(26,22,18,0.38); }
body.light-theme .authInput:focus { background: #fff; }
body.light-theme .admin-search { background: rgba(255,252,244,0.9) !important; color: #1a1612 !important; }
body.light-theme .nav-category:hover { background: rgba(212,175,55,0.07) !important; }
body.light-theme .ai-chat-panel { background: rgba(250,248,240,0.98); border-color: rgba(212,175,55,0.25); }
body.light-theme .ai-msg.bot { background: rgba(212,175,55,0.1); }
body.light-theme .ai-msg.user { background: rgba(0,0,0,0.05); }
body.light-theme .ai-input { background: rgba(255,255,255,0.8); color: #1a1612; }
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.35); }

/* ─── AUTOFILL ────────────────────────────────────────────────── */
.authInput:-webkit-autofill,
.authInput:-webkit-autofill:hover,
.authInput:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(18,18,20,0.97) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    border-color: var(--border) !important;
    transition: background-color 9999s;
}
body.light-theme .authInput:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,252,244,0.99) inset !important;
    -webkit-text-fill-color: #1a1612 !important;
}

/* ─── HOVER HELPERS ───────────────────────────────────────────── */
.hover-gold:hover    { background:rgba(212,175,55,0.1)  !important; border-color:rgba(212,175,55,0.25) !important; }
.hover-feature:hover { background:rgba(212,175,55,0.08) !important; border-color:rgba(212,175,55,0.22) !important; }
.hover-chip:hover    { background:rgba(212,175,55,0.18) !important; }
.hover-danger:hover  { background:rgba(239,68,68,0.15)  !important; color:#ef4444 !important; border-color:rgba(239,68,68,0.3) !important; }