/* ============================================================
   style.css — TEMA BARU "macam thundr.com" ✅
   Gelap + ungu→merah jambu, headline bold dengan perkataan
   italic-serif, UI bersih & moden.
   (Semua class lama app/login/register dikekalkan, jadi
    index.php TAK perlu diubah — tema terpakai automatik.)
   ============================================================ */
:root {
    --bg: #08070d;
    --ink: #f5f3ff;
    --muted: #a09bb8;
    --card: rgba(255, 255, 255, .045);
    --card2: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .09);
    --violet: #8b5cf6;
    --pink: #ec4899;
    --blue: #38bdf8;
    --volt: #fde047;
    --red: #fb7185;
    --grad: linear-gradient(90deg, var(--violet), var(--pink));
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(139, 92, 246, .22), transparent 60%),
        radial-gradient(800px 500px at 95% 10%, rgba(236, 72, 153, .14), transparent 60%),
        radial-gradient(700px 600px at 50% 110%, rgba(56, 189, 248, .10), transparent 60%),
        var(--bg);
}
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, .35); border-radius: 99px; }
::selection { background: rgba(139, 92, 246, .45); }
button, input { font-family: inherit; }
button { cursor: pointer; color: inherit; background: none; border: none; }
a { color: inherit; text-decoration: none; }
.it, em.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: .01em; }

/* ---------- kilat latar (subtle) ---------- */
.flash-layer { position: fixed; inset: 0; pointer-events: none; z-index: 3; mix-blend-mode: screen; opacity: 0; }
.flash-a { background: radial-gradient(55% 40% at 75% 0%, rgba(139,92,246,.35), transparent 62%); animation: flashA 13s infinite; }
.flash-b { background: radial-gradient(45% 32% at 20% 0%, rgba(236,72,153,.28), transparent 60%); animation: flashB 19s infinite 7s; }
@keyframes flashA { 0%,86%,90%,100%{opacity:0} 87%{opacity:.7} 88%{opacity:.08} 89%{opacity:.75} 89.6%{opacity:0} }
@keyframes flashB { 0%,78%,84%,100%{opacity:0} 80%{opacity:.6} 81%{opacity:.08} 82%{opacity:.65} 83%{opacity:0} }

/* ============================================================
   LANDING (home.php) — susun atur macam thundr.com
   ============================================================ */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 26px;
    padding: 16px 5vw;
    background: rgba(8, 7, 13, .75); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.nav-logo .bolt {
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--grad); display: grid; place-items: center; color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, .45);
}
.nav-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; margin-left: 22px; }
.btn-solid {
    padding: 10px 20px; border-radius: 999px;
    background: var(--grad); color: #fff; font-size: 14px; font-weight: 700;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .4);
    transition: transform .15s, box-shadow .2s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(236, 72, 153, .45); }
.btn-line {
    padding: 10px 20px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--muted);
    font-size: 14px; font-weight: 500; transition: .15s;
}
.btn-line:hover { color: var(--ink); border-color: rgba(139, 92, 246, .5); }

.hero { max-width: 900px; margin: 0 auto; padding: 90px 20px 60px; text-align: center; position: relative; z-index: 5; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .4);
    color: #c4b5fd; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
    margin-bottom: 26px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.hero h1 .it { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 26px auto 0; max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero p.beauty { margin-top: 18px; font-size: 19px; color: var(--ink); }
.hero p.beauty .it { color: var(--pink); }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-start {
    padding: 16px 42px; border-radius: 999px;
    background: var(--grad); color: #fff;
    font-size: 17px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 14px 40px rgba(139, 92, 246, .5), 0 0 30px rgba(236, 72, 153, .3);
    transition: transform .15s, box-shadow .2s;
}
.btn-start:hover { transform: translateY(-3px) scale(1.02); }
.hero-stats { margin-top: 40px; display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; }
.hstat b { display: block; font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat span { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.section { max-width: 1060px; margin: 0 auto; padding: 70px 20px; position: relative; z-index: 5; }
.sec-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); font-weight: 700; margin-bottom: 12px; text-align: center; }
.sec-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; text-align: center; letter-spacing: -.01em; }
.sec-title .it { color: var(--violet); }
.sec-sub { max-width: 660px; margin: 18px auto 0; text-align: center; color: var(--muted); line-height: 1.7; font-size: 15.5px; }

.feat-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 26px 22px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); box-shadow: 0 16px 40px rgba(139, 92, 246, .18); }
.feat .ic {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .35);
    display: grid; place-items: center; font-size: 21px; margin-bottom: 16px;
}
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.testi-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 26px 22px;
    display: flex; flex-direction: column; gap: 18px;
}
.testi q { font-size: 14px; color: #d9d5ea; line-height: 1.7; quotes: '“' '”'; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); box-shadow: 0 0 16px rgba(139, 92, 246, .4); }
.testi .who b { display: block; font-size: 14px; }
.testi .who span { font-size: 12px; color: var(--muted); }

.cta-band {
    max-width: 1060px; margin: 30px auto 80px; position: relative; z-index: 5;
    background: var(--grad); border-radius: 30px;
    padding: 60px 30px; text-align: center;
    box-shadow: 0 30px 80px rgba(139, 92, 246, .35);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; color: #fff; }
.cta-band h2 .it { color: #0b0714; }
.cta-band p { margin: 14px auto 30px; max-width: 560px; color: rgba(255, 255, 255, .85); line-height: 1.65; }
.btn-white {
    padding: 15px 40px; border-radius: 999px;
    background: #fff; color: #170b22; font-size: 16px; font-weight: 700;
    transition: transform .15s;
}
.btn-white:hover { transform: translateY(-3px) scale(1.02); }

.footer {
    border-top: 1px solid var(--border);
    padding: 26px 5vw; display: flex; align-items: center; gap: 14px;
    color: var(--muted); font-size: 13px; flex-wrap: wrap;
}
.footer .nav-logo { font-size: 16px; }
.footer span.right { margin-left: auto; }

@media (max-width: 860px) {
    .nav-links { display: none; }
    .feat-grid, .testi-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH (login / daftar)
   ============================================================ */
.auth-wrap { position: relative; z-index: 5; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card {
    width: min(430px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 36px 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 0 0 1px rgba(139,92,246,.08), 0 0 70px rgba(139,92,246,.14), 0 30px 80px rgba(0,0,0,.6);
    text-align: center;
    animation: pop .5s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.logo {
    width: 68px; height: 68px; margin: 0 auto 14px;
    border-radius: 22px;
    background: var(--grad);
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 12px 34px rgba(139, 92, 246, .5);
    animation: boltPulse 2.6s ease-in-out infinite;
}
@keyframes boltPulse {
    0%,100% { box-shadow: 0 12px 26px rgba(139,92,246,.35); }
    50% { box-shadow: 0 12px 44px rgba(236,72,153,.6); }
}
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.auth-card h1 .t1 { color: var(--ink); }
.auth-card h1 .t2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flicker { animation: flick 6s infinite; }
@keyframes flick { 0%,100%{opacity:1} 3%{opacity:.5} 5%{opacity:1} 41%{opacity:1} 43%{opacity:.6} 45%{opacity:1} }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 10px 0 24px; line-height: 1.6; }
.auth-card .sub .it { color: var(--pink); }
.auth-card label {
    display: block; text-align: left;
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); margin: 16px 0 7px;
}
.auth-card input {
    width: 100%;
    background: rgba(0, 0, 0, .35);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 16px;
    color: var(--ink); font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.16), 0 0 24px rgba(139,92,246,.2); }
.btn-primary {
    width: 100%; margin-top: 26px; padding: 15px;
    border: none; border-radius: 999px;
    background: var(--grad); color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: .04em;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 10px 30px rgba(139,92,246,.4), 0 0 22px rgba(236,72,153,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139,92,246,.55), 0 0 30px rgba(236,72,153,.45); }
.err {
    margin-top: 16px; font-size: 13px; color: #fda4af;
    background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.35);
    border-radius: 10px; padding: 10px 12px;
}
.switch { margin-top: 20px; font-size: 13px; color: var(--muted); }
.switch a { font-weight: 700; color: var(--pink); }
.back-home { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.back-home:hover { color: var(--ink); }

/* ============================================================
   APP (index.php) — tema sama
   ============================================================ */
.app {
    position: relative; z-index: 5;
    max-width: 470px; margin: 0 auto;
    height: 100dvh;
    display: flex; flex-direction: column;
    gap: 12px; padding: 14px 16px;
}
header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-box {
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--grad);
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 8px 22px rgba(139, 92, 246, .45);
}
.brand { line-height: 1.15; }
.brand strong { font-size: 17px; letter-spacing: .02em; }
.brand strong .t1 { color: var(--ink); }
.brand strong .t2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 11px; color: var(--muted); }
.brand small b { color: var(--pink); }
.stats { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 5px 9px; text-align: center; }
.stat b { display: block; font-size: 15px; color: var(--violet); }
.stat.match b { color: var(--pink); }
.stat span { font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    display: grid; place-items: center; font-size: 16px;
    transition: transform .25s, box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(139,92,246,.35); }
.icon-btn.out:hover { box-shadow: 0 0 18px rgba(244,63,94,.4); }

/* ---------- dek kad ---------- */
.deck-zone { position: relative; flex: 1; min-height: 0; }
.deck { position: relative; width: 100%; height: 100%; }
.card {
    position: absolute; inset: 0;
    border-radius: 26px; overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card2);
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 30px rgba(139,92,246,.1);
    touch-action: none; user-select: none; -webkit-user-select: none;
    cursor: grab;
}
.card:active { cursor: grabbing; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 70px 20px 18px;
    background: linear-gradient(180deg, transparent, rgba(5,4,10,.94) 62%);
}
.card-info h2 { font-size: 24px; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.card-info p { font-size: 13.5px; color: #d9d5ea; margin: 5px 0 10px; line-height: 1.5; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span {
    font-size: 11px; font-weight: 500;
    background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.4);
    color: #c4b5fd; padding: 3px 10px; border-radius: 999px;
}
.stamp {
    position: absolute; top: 26px;
    font-size: 26px; font-weight: 700; letter-spacing: .08em;
    padding: 6px 16px; border-radius: 12px;
    border: 3px solid currentColor; opacity: 0;
    background: rgba(5,4,10,.55); backdrop-filter: blur(4px);
    pointer-events: none;
}
.stamp-like { left: 20px; color: var(--violet); transform: rotate(-14deg); box-shadow: 0 0 24px rgba(139,92,246,.5); }
.stamp-pass { right: 20px; color: var(--red); transform: rotate(14deg); box-shadow: 0 0 24px rgba(251,113,133,.5); }
.deck-empty {
    position: absolute; inset: 0;
    display: grid; place-items: center; text-align: center;
    border: 1px dashed var(--border); border-radius: 26px;
    color: var(--muted); font-size: 14px; padding: 20px;
}
.deck-empty b { display: block; font-size: 40px; margin-bottom: 10px; }

/* ---------- butang aksi ---------- */
.actions { display: flex; justify-content: center; align-items: center; gap: 22px; }
.act {
    border-radius: 50%; display: grid; place-items: center;
    transition: transform .15s, box-shadow .2s;
    background: var(--card2); border: 1px solid var(--border);
}
.act:active { transform: scale(.9); }
.act-pass { width: 62px; height: 62px; color: var(--red); font-size: 24px; box-shadow: 0 0 20px rgba(251,113,133,.25); }
.act-pass:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(251,113,133,.5); }
.act-undo { width: 48px; height: 48px; color: var(--volt); font-size: 19px; }
.act-undo:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(253,224,71,.4); }
.act-like {
    width: 62px; height: 62px; color: #fff;
    background: var(--grad);
    box-shadow: 0 0 24px rgba(139,92,246,.5), 0 0 18px rgba(236,72,153,.4);
}
.act-like:hover { transform: translateY(-3px); box-shadow: 0 0 36px rgba(236,72,153,.65); }
.hint { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* ---------- bar padanan ---------- */
.match-bar { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; }
.mb-title { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.match-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.match-list::-webkit-scrollbar { height: 0; }
.no-match { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }
.match-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; transition: transform .15s; }
.match-chip:hover { transform: translateY(-2px); }
.match-chip img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); box-shadow: 0 0 16px rgba(139,92,246,.5); }
.match-chip span { font-size: 11px; }

/* ---------- overlays ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 60;
    display: grid; place-items: center; padding: 20px;
    background: rgba(5,4,10,.8); backdrop-filter: blur(12px);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.ov-card {
    width: min(400px, 100%);
    background: var(--card2); border: 1px solid var(--border);
    border-radius: 26px; padding: 32px 26px; text-align: center;
    box-shadow: 0 0 60px rgba(139,92,246,.18), 0 30px 70px rgba(0,0,0,.6);
    animation: pop .45s cubic-bezier(.2,.9,.3,1.2);
    overflow: hidden;
}
.ov-card img { max-width: 100%; }
.match-title {
    font-size: 34px; font-weight: 700; letter-spacing: .06em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(236,72,153,.5));
    animation: flick 4s infinite;
}
.match-avs { display: flex; justify-content: center; align-items: center; margin: 22px 0 14px; }
.m-av {
    width: 92px; height: 92px; border-radius: 50%;
    display: grid; place-items: center; font-size: 40px;
    background: var(--grad); color: #fff;
    border: 3px solid var(--violet);
    box-shadow: 0 0 34px rgba(139,92,246,.6);
    overflow: hidden; flex-shrink: 0;
}
.m-av img { width: 100%; height: 100%; object-fit: cover; }
#matchImg {
    width: 92px; height: 92px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    margin-left: -18px;
    border: 3px solid var(--pink);
    box-shadow: 0 0 34px rgba(236,72,153,.6);
    animation: bounceIn .6s .12s cubic-bezier(.2,.9,.3,1.3) backwards;
}
@keyframes bounceIn { from { transform: scale(.3); opacity: 0; } }
.match-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.match-sub b { color: var(--pink); }
.ov-btns { display: flex; gap: 10px; }
.btn-grad {
    flex: 1; padding: 13px; border-radius: 999px;
    background: var(--grad); color: #fff;
    font-size: 14px; font-weight: 700;
    box-shadow: 0 8px 26px rgba(139,92,246,.45);
    transition: transform .15s;
}
.btn-grad:hover { transform: translateY(-2px); }
.btn-ghost {
    flex: 1; padding: 13px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--muted);
    font-size: 14px; font-weight: 500; transition: background .15s;
}
.btn-ghost:hover { background: rgba(139,92,246,.1); }
.count-num {
    font-size: 66px; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 26px rgba(139,92,246,.6));
    animation: pulseNum 1s infinite;
}
@keyframes pulseNum { 50% { transform: scale(1.12); } }
.ov-card h3 { font-size: 22px; margin: 6px 0 8px; }
.ov-card .ov-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; line-height: 1.6; }
.ov-card .ov-sub .it { color: var(--violet); }

/* ---------- log aktiviti ---------- */
.logs-list { list-style: none; max-height: 260px; overflow-y: auto; text-align: left; margin-bottom: 20px; }
.logs-list::-webkit-scrollbar { width: 6px; }
.logs-list::-webkit-scrollbar-thumb { background: rgba(139,92,246,.3); border-radius: 99px; }
.logs-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 6px; font-size: 13px;
    border-bottom: 1px dashed var(--border);
}
.logs-list li:last-child { border-bottom: none; }
.logs-list time { color: var(--muted); font-size: 11px; flex-shrink: 0; }

/* ---------- sembang ---------- */
.chat-ov {
    position: fixed; inset: 0; z-index: 70;
    display: flex; justify-content: center;
    background: rgba(5,4,10,.6); backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.chat-ov.open { opacity: 1; pointer-events: auto; }
.chat-panel {
    width: min(470px, 100%); height: 100%;
    display: flex; flex-direction: column;
    background: rgba(10, 8, 16, .97);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    transform: translateY(100%); transition: transform .32s cubic-bezier(.3,.8,.3,1);
}
.chat-ov.open .chat-panel { transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--card); }
.back-btn { width: 38px; height: 38px; border-radius: 11px; background: var(--card2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 17px; }
.chat-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); box-shadow: 0 0 14px rgba(139,92,246,.45); }
.chat-id strong { display: block; font-size: 15px; }
.chat-id small { font-size: 11.5px; color: #4ade80; }
.chat-id small.typing-on { color: var(--pink); font-style: italic; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(139,92,246,.3); border-radius: 99px; }
.cmsg { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.cmsg.bot { align-self: flex-start; background: var(--card2); border: 1px solid var(--border); border-top-left-radius: 5px; }
.cmsg.me { align-self: flex-end; background: var(--grad); color: #fff; font-weight: 500; border-top-right-radius: 5px; box-shadow: 0 0 18px rgba(139,92,246,.4); }
.cmsg.typing-b { display: flex; gap: 5px; }
.cmsg.typing-b i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1s infinite; }
.cmsg.typing-b i:nth-child(2) { animation-delay: .2s; }
.cmsg.typing-b i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-3px); } }
.chat-form { display: flex; gap: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--border); background: var(--card); }
.chat-form input {
    flex: 1; background: rgba(0,0,0,.35); border: 1px solid var(--border);
    border-radius: 999px; padding: 12px 18px; color: var(--ink);
    font-size: 14px; outline: none;
}
.chat-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.chat-send {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(139,92,246,.45);
}

.toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 100;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 14, 32, .92); border: 1px solid rgba(139,92,246,.4);
    color: #c4b5fd; backdrop-filter: blur(12px);
    padding: 11px 20px; border-radius: 999px;
    font-size: 13.5px; font-weight: 500;
    opacity: 0; pointer-events: none; transition: .25s;
    box-shadow: 0 0 24px rgba(139,92,246,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }