/* Fastann SMS — tüm sayfaların stili
 *
 * Düzen: üstte koyu menü (.topnav); her sayfa .page-head ile başlar, başlık
 * koyu bandın üstünde durur ve ardından gelen kartlar bandın üzerine biner.
 * Bant, .page-head'in border-image'ıyla tam genişliğe yayılır (yatay kaydırma
 * oluşturmaz). Tablolar dar ekranda karta dönüşür (.table-cards + data-label).
 */

:root {
    --bg: #f2f4f9;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef1f7;
    --border: #e3e8f0;
    --border-strong: #cdd5e2;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eaf1ff;
    --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --ring: 0 0 0 4px rgba(37, 99, 235, .16);

    --success: #047857;
    --success-solid: #10b981;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --warning-border: #fde68a;

    --hero: #0b1324;
    --hero-text: #e2e8f0;
    --hero-muted: #8d9cb8;

    --radius: 18px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px -6px rgba(15, 23, 42, .10);
    --shadow-lg: 0 32px 64px -16px rgba(15, 23, 42, .35);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --nav-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55;
    color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
[hidden] { display: none !important; }
::selection { background: #bfdbfe; }

svg.i {
    width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Logo -------------------------------------------------------------- */

.brand {
    display: inline-flex; align-items: center; gap: 11px; flex: none;
    color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; text-decoration: none !important;
}
.brand-mark {
    width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px;
    color: #fff; background: var(--grad);
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand-mark svg.i { width: 18px; height: 18px; fill: currentColor; }
.brand-name b {
    font-weight: 800; color: transparent;
    background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text;
}

/* ---- Üst menü ---------------------------------------------------------- */

.topnav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 19, 36, .94); border-bottom: 1px solid rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.topnav-inner {
    position: relative; max-width: 1280px; height: var(--nav-h); margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; gap: 28px;
}
.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
    color: #a3b1c9; font-weight: 600; white-space: nowrap; transition: color .15s, background .15s;
}
.nav a svg.i { width: 17px; height: 17px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nav a.active svg.i { color: #60a5fa; }
.nav .count {
    min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
    font-size: 11.5px; font-weight: 800; color: #fff; background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .25);
}
.nav-me { display: none; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.credit {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; white-space: nowrap;
    font-size: 13px; color: #bfdbfe; border-radius: 999px;
    background: rgba(37, 99, 235, .16); border: 1px solid rgba(96, 165, 250, .25);
}
.credit svg.i { width: 16px; height: 16px; color: #60a5fa; }
.credit b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.credit small { font-size: 12px; color: #93c5fd; }
.me {
    display: flex; align-items: center; gap: 10px; padding-left: 14px; margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}
.who { min-width: 0; }
.who b { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 1.25; color: #fff; }
.who small { display: block; font-size: 12px; color: var(--hero-muted); }
.topnav .icon-btn { color: #a3b1c9; }
.topnav .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none !important; }

@media (max-width: 1240px) {
    .me .who { display: none; }
}
@media (max-width: 1100px) {
    .topnav-inner { padding: 0 16px; gap: 12px; }
    .nav-toggle { display: inline-grid !important; }
    .me, .nav-right > a.icon-btn { display: none; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; display: none;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
        background: var(--hero); border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    }
    body.nav-open .nav { display: flex; }
    .nav a { padding: 12px 14px; }
    .nav-me {
        display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 4px 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .nav-me .who { flex: 1; }
}
@media (max-width: 420px) {
    .credit small { display: none; }
    .brand { font-size: 16px; }
}

/* ---- Sayfa ------------------------------------------------------------- */

.content { max-width: 1280px; margin: 0 auto; padding: 0 28px 64px; }

.page-head {
    position: relative; display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px 24px; flex-wrap: wrap; padding: 36px 0 86px; margin-bottom: -54px; color: #fff;
    border-image: linear-gradient(var(--hero), var(--hero)) fill 0 / 0 / 100vmax 100vmax 0;
}
.page-head::before {
    content: ""; position: absolute; top: -160px; bottom: 70px; left: -8%; width: 58%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(37, 99, 235, .32), transparent);
}
.page-head::after {
    content: ""; position: absolute; top: -60px; bottom: 60px; right: 0; width: 38%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(6, 182, 212, .14), transparent);
}
.page-head > * { position: relative; }
/* Bandın üzerine binen kartlar bandın önünde çizilsin (bant konumlu bir öğe) */
.card, .alert { position: relative; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 6px 0 0; color: var(--hero-muted); font-size: 14.5px; }
.page-head .btn:not(.btn-secondary) { box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    color: var(--hero-muted); font-size: 13px; font-weight: 600;
}
.back:hover { color: #fff; text-decoration: none; }
.back svg.i { width: 16px; height: 16px; }

@media (max-width: 760px) {
    .content { padding: 0 16px 40px; }
    .page-head { padding: 26px 0 78px; }
    .page-head h1 { font-size: 24px; }
    .page-head .btn { width: 100%; }
}

/* ---- Kartlar ----------------------------------------------------------- */

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card + .card { margin-top: 24px; }
.stats > .card, .send-grid > .card { margin-top: 0; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.card-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat {
    position: relative; overflow: hidden; display: flex; flex-direction: row-reverse;
    justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 18px;
}
.stat-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg.i { width: 21px; height: 21px; }
.stat-icon.indigo { background: #eaf1ff; color: #2563eb; }
.stat-icon.green  { background: #e8faf2; color: #059669; }
.stat-icon.amber  { background: #fff4e6; color: #ea580c; }
.stat-icon.sky    { background: #e6fafd; color: #0891b2; }
.stat-icon.red    { background: #fef0f0; color: #dc2626; }
.stat > div { min-width: 0; }
.stat div > span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat div > strong {
    display: block; margin: 6px 0 2px; font-size: 28px; font-weight: 800; line-height: 1.1;
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat div > small { color: var(--faint); font-size: 12.5px; font-weight: 500; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .stats { gap: 12px; }
    .stat { padding: 16px; }
    .stat-icon { width: 36px; height: 36px; border-radius: 11px; }
    .stat-icon svg.i { width: 18px; height: 18px; }
    .stat div > strong { font-size: 22px; }
}

/* ---- Form -------------------------------------------------------------- */

.field + .field { margin-top: 20px; }
label, .label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
label .muted { font-weight: 500; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.label-row label { margin: 0; }
.input, .textarea, .select {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 14px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .textarea:hover, .select:hover { border-color: #b6c1d3; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.textarea.mono, .input.mono { font-family: var(--mono); font-size: 13px; }
.select {
    width: auto; padding-right: 36px; appearance: none; cursor: pointer;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 16px;
}
.field .select { width: 100%; }
.input-icon { position: relative; }
.input-icon > svg.i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--faint); pointer-events: none; transition: color .15s;
}
.input-icon:focus-within > svg.i { color: var(--primary); }
.input-icon > .input { padding-left: 40px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.hint { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.counter { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
form.compact .field + .field { margin-top: 14px; }
.form-sep {
    display: flex; align-items: center; gap: 12px; margin: 26px 0 16px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
}
.form-sep::before, .form-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---- Butonlar ---------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 17px; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap;
    color: #fff; background: linear-gradient(180deg, #3b82f6, #2563eb); border: 1px solid #1d4ed8;
    border-radius: var(--radius-sm); cursor: pointer; text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: background .15s, box-shadow .15s, opacity .15s, transform .05s;
}
.btn:hover { background: linear-gradient(180deg, #2f74f0, #1d4ed8); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-secondary {
    color: var(--text-2); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--text); background: var(--surface-2); border-color: #b6c1d3; }
.btn-success { background: linear-gradient(180deg, #10b981, #059669); border-color: #047857; }
.btn-success:hover { background: linear-gradient(180deg, #0ea472, #047857); }
.btn-danger { background: linear-gradient(180deg, #ef4444, #dc2626); border-color: #b91c1c; }
.btn-danger:hover { background: linear-gradient(180deg, #e33b3b, #b91c1c); }
.btn-danger-soft { color: var(--danger); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-danger-soft:hover { background: var(--danger-soft); border-color: var(--danger-border); }
.btn-ghost { color: var(--hero-text); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 9px; }
.btn-sm svg.i { width: 15px; height: 15px; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer;
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* ---- Rozetler ---------------------------------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; white-space: nowrap;
    font-size: 12px; font-weight: 700; line-height: 1.5; border-radius: 999px; color: #475569; background: #f1f4f9;
}
.badge svg.i { width: 13px; height: 13px; }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.danger  { color: var(--danger);  background: var(--danger-soft); }
.badge.primary { color: var(--primary); background: var(--primary-soft); }
.badge.warning { color: var(--warning); background: #fff4e0; }
.badge.info    { color: #6d28d9; background: #f3eefe; }
.badge.api     { padding: 1px 7px; font-size: 10.5px; letter-spacing: .05em; color: #0e7490; background: #e0f7fb; }
.msg-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.msg-cell .badge { flex: none; }
/* Süren gönderim: nokta dalga yayarak atar */
.badge.sending::before { animation: badge-sending 1.4s ease-out infinite; }
@keyframes badge-sending {
    0%   { box-shadow: 0 0 0 0 currentColor; }
    100% { box-shadow: 0 0 0 5px transparent; }
}
/* "Durumlar kendiliğinden güncelleniyor" notu (history.php) */
.live-note { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.live-note::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; color: var(--primary); background: currentColor;
    animation: badge-sending 1.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .badge.sending::before, .live-note::before { animation: none; } }

/* ---- Tablolar ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    padding: 11px 18px; text-align: left; white-space: nowrap;
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
    background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8faff; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }
.table .actions form { display: inline; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.truncate { display: block; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus  { color: var(--success); font-weight: 700; }
.minus { color: var(--danger); font-weight: 700; }
.amount { font-weight: 700; }

.user-cell { display: flex; align-items: center; gap: 12px; color: inherit; }
.user-cell > div { min-width: 0; }
.user-cell b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-weight: 700; color: var(--text); }
.user-cell b .badge { padding: 1px 8px; font-size: 11px; }
.user-cell small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
a.user-cell:hover { text-decoration: none; }
a.user-cell:hover > div > b { color: var(--primary); }
.user-cell .tree { display: grid; margin-left: 4px; color: #c3cbd8; }
.user-cell .tree svg.i { width: 16px; height: 16px; }
.contact b { display: block; font-weight: 700; }
.contact b .badge { margin-left: 6px; vertical-align: middle; }
.contact small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
tr.is-off .avatar { filter: grayscale(1); opacity: .45; }
tr.is-off .amount { color: var(--muted); }
.avatar {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
    font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .02em;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }

.statuses { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; vertical-align: middle; }
.statuses-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.alert .statuses { margin: 2px 6px 2px 0; }

.search { position: relative; }
.search > svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { width: 260px; padding: 8px 12px 8px 36px; font-size: 13px; background: var(--surface-2); }
.search .input:focus { background: var(--surface); }

.pagination {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.pagination .pages { display: flex; gap: 8px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center;
    border-radius: 16px; background: var(--primary-soft); color: var(--primary);
}
.empty-icon svg.i { width: 24px; height: 24px; }
.empty b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--text); }

/* Dar ekranda tablo satırları karta dönüşür (yatay kaydırma olmasın) */
@media (max-width: 900px) {
    .table-cards, .table-cards tbody { display: block; }
    .table-cards thead { display: none; }
    .table-cards tr {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
        padding: 16px 18px; border-bottom: 1px solid var(--border);
    }
    .table-cards tbody tr:last-child { border-bottom: 0; }
    .table-cards td { display: block; min-width: 0; padding: 0; border: 0; text-align: left !important; white-space: normal; }
    .table-cards td.cell-main, .table-cards td.actions { grid-column: 1 / -1; }
    .table-cards td[data-label]::before {
        content: attr(data-label); display: block; margin-bottom: 3px;
        font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
    }
    .table-cards td.actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .table-cards td.actions > * + * { margin-left: 0; }
    .table-cards .truncate { max-width: 100%; }
    .table-cards .user-cell small { white-space: normal; }
    .card-head .search, .card-head .search .input { width: 100%; }
}

/* ---- Uyarılar / bildirimler ------------------------------------------- */

.alert {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 16px;
    border: 1px solid; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.alert > svg.i { margin-top: 1px; }
.alert b { display: block; margin-bottom: 1px; }
.alert a { font-weight: 700; }
.alert.success { color: #064e3b; background: var(--success-soft); border-color: var(--success-border); }
.alert.success > svg.i { color: var(--success-solid); }
.alert.danger  { color: #7f1d1d; background: var(--danger-soft); border-color: var(--danger-border); }
.alert.danger > svg.i { color: var(--danger); }
.alert.warning { color: #78350f; background: var(--warning-soft); border-color: var(--warning-border); }
.alert.warning > svg.i { color: #d97706; }
.alert.info    { color: #1e3a8a; background: var(--primary-soft); border-color: #c7d9fe; }
.alert.info > svg.i { color: var(--primary); }
.alert code {
    padding: 1px 5px; font-family: var(--mono); font-size: 12.5px; border-radius: 5px; background: rgba(255, 255, 255, .7);
}

.toasts {
    position: fixed; top: calc(var(--nav-h) + 16px); right: 20px; z-index: 300;
    display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px);
}
.toast {
    display: flex; align-items: flex-start; gap: 10px; width: 390px; max-width: 100%; padding: 13px 8px 13px 15px;
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: 14px; box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease; transition: opacity .2s, transform .2s;
}
.toast.success { border-left-color: var(--success-solid); }
.toast.danger { border-left-color: var(--danger); }
.toast > svg.i { margin-top: 2px; }
.toast.success > svg.i { color: var(--success-solid); }
.toast.danger > svg.i { color: var(--danger); }
.toast p { flex: 1; margin: 1px 0 0; font-weight: 600; }
.toast .icon-btn { width: 28px; height: 28px; margin-top: -3px; }
.toast .icon-btn svg.i { width: 16px; height: 16px; }
.toast.hide { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 520px) { .toasts { left: 16px; right: 16px; top: 12px; } .toast { width: auto; } }

/* ---- Modal ------------------------------------------------------------- */

dialog.modal {
    width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px;
    color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(11, 19, 36, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 0; }
.modal-head > div { flex: 1; min-width: 0; }
.modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.modal-head p { margin: 4px 0 0; color: var(--muted); }
.modal-head .icon-btn { margin: -6px -8px 0 0; }
.modal-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; }
.modal-icon.indigo { background: var(--primary-soft); color: var(--primary); }
.modal-icon.red    { background: var(--danger-soft); color: var(--danger); }
.modal-icon.green  { background: var(--success-soft); color: var(--success-solid); }
.modal-body { padding: 22px 24px; }
.modal-body > p { margin: 0; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px;
    background: var(--surface-2); border-top: 1px solid var(--border); border-radius: 0 0 22px 22px;
}

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
    display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 9px;
    font-weight: 700; color: var(--muted); border-radius: 9px; cursor: pointer; transition: background .15s, color .15s;
}
.segmented input:checked + label { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.segmented input:checked + label.in  { color: var(--success); }
.segmented input:checked + label.out { color: var(--danger); }
.segmented input:focus-visible + label { box-shadow: var(--ring); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
    padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

.preview {
    display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 13px 15px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.preview b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.preview b.bad { color: var(--danger); }
.preview + .preview { margin-top: 8px; }

/* ---- SMS gönder -------------------------------------------------------- */

.send-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.summary dl { margin: 0 0 20px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--text-2); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary .row.total {
    margin-top: 10px; padding: 16px; align-items: baseline; border-radius: 14px;
    background: linear-gradient(135deg, #eaf1ff, #e6fafd);
}
.summary .row.total dt { color: var(--text-2); font-weight: 600; }
.summary .row.total dd { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.summary .row.bad dd { color: var(--danger); }
.summary .hint { text-align: center; margin-top: 12px; }
.pill { padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; }
.file-btn { margin-top: 10px; }
.bubble {
    max-height: 240px; overflow: auto; padding: 13px 15px; white-space: pre-wrap; word-break: break-word;
    background: var(--primary-soft); border: 1px solid #d6e4ff; border-radius: 18px 18px 18px 5px;
}
@media (max-width: 1000px) {
    .send-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
}

/* Kodlama rozeti (Mesaj etiketinin yanında) */
.enc-chip { padding: 3px 10px; font-size: 12px; font-weight: 700; border-radius: 999px; color: var(--primary); background: var(--primary-soft); }
.enc-chip.tr      { color: var(--success); background: var(--success-soft); }
.enc-chip.unicode { color: var(--warning); background: #fff4e0; }

/* SMS sayacı: her blok bir SMS parçası, son blok doluluk oranında */
.meter { margin-top: 10px; }
.meter-bar { display: flex; gap: 4px; height: 8px; }
.meter-bar span { flex: 1; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s ease; }
.meter-bar.tr i      { background: var(--success); }
.meter-bar.unicode i { background: #f59e0b; }
.meter-text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.meter-text b { flex: none; font-size: 14px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* Karakter analizi */
.char-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.char-notes:empty { display: none; }
.cnote { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 10px; }
.cnote code { min-width: 20px; padding: 0 5px; font: 700 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; border-radius: 6px; background: rgba(255, 255, 255, .75); }
.cnote.tr  { color: var(--success); background: var(--success-soft); }
.cnote.ext { color: var(--primary); background: var(--primary-soft); }
.cnote.uni { color: var(--warning); background: #fff4e0; }

/* Tasarruf önerisi */
.sms-tip {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; font-size: 13px; color: #78350f;
    background: var(--warning-soft); border: 1px solid var(--warning-border); border-radius: 12px;
}
.sms-tip > svg.i { flex: none; color: #f59e0b; }
.sms-tip span { flex: 1; min-width: 0; }
.sms-tip .btn { flex: none; }

/* Kurallar */
.sms-rules { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sms-rules summary { width: fit-content; font-weight: 600; color: var(--primary); cursor: pointer; }
.sms-rules table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.sms-rules th, .sms-rules td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.sms-rules th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sms-rules td { color: var(--text-2); font-weight: 600; }
.sms-rules td small { display: block; font-weight: 400; color: var(--muted); }
.sms-rules .num { text-align: right; font-variant-numeric: tabular-nums; }
.sms-rules tr.active td { background: var(--primary-soft); }
.sms-rules ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; }

/* Onay penceresi */
dialog.modal.modal-confirm { width: min(540px, calc(100vw - 32px)); }
.bcode-tag { margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .8); border-radius: 6px; }
.confirm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.confirm-grid div { padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.confirm-grid span, .credit-flow span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.confirm-grid b { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.confirm-grid small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-flow {
    display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #eaf1ff, #e6fafd);
}
.credit-flow div { flex: 1; min-width: 0; }
.credit-flow b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit-flow .minus b { color: var(--danger); }
.credit-flow .after b { color: var(--primary); }
.credit-flow i { flex: none; color: var(--muted); }
.credit-flow i svg.i { width: 16px; height: 16px; }
.confirm-notes { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.confirm-notes:empty { display: none; }
@media (max-width: 560px) {
    .confirm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sms-tip { flex-wrap: wrap; }
    .modal-confirm .modal-foot { flex-direction: column-reverse; }
    .modal-confirm .modal-foot .btn { width: 100%; justify-content: center; }
}

.overlay {
    position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 16px; text-align: center;
    background: rgba(242, 244, 249, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.overlay.show { display: grid; }
.overlay h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.spinner {
    width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%;
    border: 4px solid #dbe7ff; border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Geçmiş ------------------------------------------------------------ */

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.tabs a { padding: 7px 15px; font-weight: 700; color: var(--muted); border-radius: 9px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.filter { display: flex; align-items: center; gap: 8px; }
.filter label { margin: 0; color: var(--muted); }
@media (max-width: 520px) {
    .tabs { width: 100%; }
    .tabs a { flex: 1; text-align: center; padding: 7px 8px; }
    .filter, .filter .select { width: 100%; }
}

/* ---- API sayfası: anahtar kartı ve belge -------------------------------- */

.api-key-card { scroll-margin-top: calc(var(--nav-h) + 16px); }
.key-icon {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    border-radius: 13px; color: var(--primary); background: var(--primary-soft);
}
.key-reveal { display: flex; gap: 10px; margin-bottom: 22px; }
.key-reveal .input { flex: 1; min-width: 0; font-size: 14px; letter-spacing: .02em; background: var(--surface-2); }
.key-status { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.key-chip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.key-chip b { display: block; font-size: 15px; }
.key-chip small, .key-empty small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.key-used { padding-left: 28px; border-left: 1px solid var(--border); }
.key-used span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.key-used b { display: block; }
.key-used small { font-size: 12px; color: var(--faint); }
.key-actions { display: flex; gap: 8px; margin-left: auto; }
.key-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.key-empty > div { flex: 1; min-width: 200px; }
.key-empty b { display: block; font-size: 15px; }
.key-note { margin: 20px 0 0; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.docs-nav {
    position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 2px;
    max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding: 26px 14px 26px 18px;
}
.docs-nav-title {
    padding: 0 10px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
}
.docs-nav a {
    padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted);
    transition: color .15s, background .15s;
}
.docs-nav a:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.docs-nav a.active { color: var(--primary); background: var(--primary-soft); }
.docs-body { min-width: 0; padding: 0 36px 36px; border-left: 1px solid var(--border); }
.docs-body section { padding-top: 30px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.docs-body section + section { margin-top: 30px; border-top: 1px solid var(--border); }
.docs-body h2 { margin-bottom: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.docs-body h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 700; }
.docs-body p { max-width: 780px; margin: 0 0 14px; line-height: 1.65; color: var(--text-2); }
.docs-body p.muted { color: var(--muted); }
.docs-body :not(pre) > code, .facts code {
    padding: 1px 6px; font-family: var(--mono); font-size: 12.5px; color: var(--text);
    background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere;
}
.docs-body .alert { margin: 18px 0; }
.docs-body .alert code { border: 0; }

.endpoint {
    display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; padding: 9px 10px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.docs-body .endpoint code { flex: 1; min-width: 0; padding: 0; font-size: 14px; font-weight: 700; background: none; border: 0; }
.endpoint code span { font-weight: 500; color: var(--faint); }
.method { padding: 3px 9px; font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .03em; border-radius: 7px; }
.method.get  { color: #047857; background: #d1fae5; }
.method.post { color: #1d4ed8; background: #dbeafe; }

.copy-btn {
    display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 600;
    color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; transition: color .15s, background .15s;
}
.copy-btn:hover { color: var(--text); background: var(--surface-3); }
.copy-btn svg.i { width: 14px; height: 14px; }
.copy-btn.copied, .btn.copied { color: var(--success); }
.btn.copied { color: #fff; background: var(--success-solid); }

.code { margin: 14px 0; overflow: hidden; background: #0b1324; border: 1px solid #1e293b; border-radius: 14px; box-shadow: var(--shadow-sm); }
.code-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 5px 8px 5px 14px;
    background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-head > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.code-tabs { display: flex; gap: 2px; min-width: 0; margin-left: -8px; overflow-x: auto; }
.code-tabs button {
    padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap;
    color: #94a3b8; background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.code-tabs button:hover { color: #e2e8f0; }
.code-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.code .copy-btn { color: #94a3b8; }
.code .copy-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.code .copy-btn.copied { color: #34d399; }
.code pre {
    margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.8px; line-height: 1.7;
    color: #e2e8f0; tab-size: 4;
}
.code code { font: inherit; color: inherit; }
.tc { color: #64748b; font-style: italic; }
.ts { color: #86efac; }
.tp { color: #93c5fd; }
.tk { color: #c4b5fd; }
.tn { color: #fdba74; }
.tv { color: #f9a8d4; }
.code-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.code-pair .code { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 6px; }
.facts > div {
    position: relative; min-width: 0; padding: 13px 15px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.facts span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.facts code { display: block; padding: 0; font-size: 13px; background: none; border: 0; }
.facts .copy-btn { position: absolute; top: 6px; right: 6px; }

.doc-table { width: 100%; margin: 14px 0 18px; border-collapse: collapse; font-size: 13.5px; }
.doc-table th {
    padding: 9px 12px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.doc-table td { padding: 11px 12px; vertical-align: top; color: var(--text-2); border-bottom: 1px solid var(--border); }
.doc-table td:first-child { white-space: nowrap; }
.doc-table td small { display: block; margin-top: 2px; }
.doc-table .num { text-align: right; white-space: nowrap; }
.req { margin-left: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--danger); }
.doc-list { margin: 8px 0 16px; padding-left: 20px; color: var(--text-2); line-height: 1.6; }
.doc-list li + li { margin-top: 6px; }

@media (max-width: 1000px) {
    .facts { grid-template-columns: 1fr; }
    .code-pair { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .docs { grid-template-columns: minmax(0, 1fr); }
    .docs-nav {
        position: sticky; top: var(--nav-h); z-index: 5; flex-direction: row; max-height: none; padding: 10px 12px;
        overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
    }
    .docs-nav-title { display: none; }
    .docs-nav a { white-space: nowrap; }
    .docs-body { padding: 0 18px 24px; border-left: 0; }
    .docs-body section { scroll-margin-top: calc(var(--nav-h) + 64px); }
    .key-used { padding-left: 0; border-left: 0; }
    .key-actions { width: 100%; margin-left: 0; }
}
/* Dar ekranda tablo satırı kart olur: ilk sütunlar üstte yan yana, son sütun altta */
@media (max-width: 560px) {
    .key-reveal { flex-direction: column; }
    .endpoint .copy-btn span { display: none; }
    .doc-table, .doc-table tbody { display: block; }
    .doc-table thead { display: none; }
    .doc-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .doc-table td { display: inline-block; padding: 0 10px 0 0; border: 0; vertical-align: middle; }
    .doc-table td:last-child { display: block; margin-top: 6px; padding: 0; overflow-wrap: anywhere; }
    .doc-table .num { text-align: left; }
}

/* ---- Giriş / kayıt ----------------------------------------------------- */

.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.auth-side {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    gap: 36px; padding: 40px 56px; color: #fff;
    background:
        radial-gradient(640px 420px at 0% 0%, rgba(37, 99, 235, .45), transparent 65%),
        radial-gradient(560px 420px at 100% 100%, rgba(6, 182, 212, .28), transparent 65%),
        var(--hero);
}
.auth-side::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 45%, #000 20%, transparent 75%);
}
.auth-side > * { position: relative; }
.auth-pitch { max-width: 520px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #bfdbfe;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.eyebrow svg.i { width: 15px; height: 15px; color: #22d3ee; fill: currentColor; }
.auth-side h2 { margin-top: 20px; font-size: 46px; font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
.grad {
    color: transparent; background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text; background-clip: text;
}
.auth-side p { max-width: 460px; margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #a3b1c9; }
.demo {
    max-width: 440px; margin-top: 32px; padding: 18px; border-radius: 20px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .11);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 36px 70px -24px rgba(0, 0, 0, .6);
}
.demo-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #cbd5e1; }
.demo-head b { margin-left: auto; color: #fff; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .05); } }
.demo-bar { height: 6px; margin: 11px 0 15px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.demo-bar span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--grad); }
.demo-bubble { padding: 12px 15px; border-radius: 16px 16px 16px 5px; font-size: 13.5px; line-height: 1.5; color: var(--text); background: #fff; }
.demo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.demo-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.demo-stats small { display: block; font-size: 11.5px; color: var(--hero-muted); }
.demo-stats b { font-size: 14px; color: #fff; white-space: nowrap; }
.features { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; }
.features svg.i { width: 16px; height: 16px; color: #22d3ee; }
.auth-side > small { color: #5b6b86; }

.auth-main { display: grid; place-items: center; padding: 48px 20px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { display: none; margin-bottom: 36px; color: var(--text); }
.auth-box .brand-name b { background-image: linear-gradient(90deg, #2563eb, #0891b2); }
.auth-box h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.auth-box > p { margin: 8px 0 28px; color: var(--muted); font-size: 15px; }
.auth-box .input { padding-top: 12px; padding-bottom: 12px; background: var(--surface-2); }
.auth-box .input:focus { background: var(--surface); }
.auth-box .btn-block { margin-top: 26px; }
.auth-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-note a { font-weight: 700; }
@media (max-width: 1100px) {
    .auth-side { padding: 36px 40px; }
    .auth-side h2 { font-size: 38px; }
}
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { place-items: start center; padding-top: 40px; }
    .auth-box .brand { display: inline-flex; }
}
