/* ==========================================================================
   Nerzen WP — tasarım sistemi (panel + ortak bileşenler)
   Koyu tema varsayılan; [data-theme="light"] açık tema.
   ========================================================================== */
:root {
    --bg: #070b12;
    --bg-2: #0b111c;
    --surface: rgba(17, 25, 39, .72);
    --surface-solid: #111927;
    --surface-2: rgba(255, 255, 255, .035);
    --surface-3: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #e8eef7;
    --text-2: #a5b1c4;
    --text-3: #6f7c91;
    --brand: #22c55e;
    --brand-2: #14b8a6;
    --brand-3: #0ea5e9;
    --brand-ink: #03140a;
    --grad: linear-gradient(135deg, #22c55e 0%, #14b8a6 55%, #0ea5e9 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(14, 165, 233, .12));
    --violet: #8b5cf6;
    --red: #f43f5e;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
    --glow: 0 0 0 1px rgba(34, 197, 94, .35), 0 8px 30px -6px rgba(34, 197, 94, .45);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --sidebar: 268px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-2: #eef3f9;
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #ffffff;
    --surface-2: rgba(15, 23, 42, .035);
    --surface-3: rgba(15, 23, 42, .06);
    --border: rgba(15, 23, 42, .08);
    --border-strong: rgba(15, 23, 42, .16);
    --text: #0f1728;
    --text-2: #4a5872;
    --text-3: #8391a7;
    --shadow: 0 10px 30px -14px rgba(15, 23, 42, .25), 0 2px 6px -2px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, .35);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--text);
    background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body.panel-body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(14, 165, 233, .10), transparent 60%),
        radial-gradient(700px 500px at 10% 110%, rgba(34, 197, 94, .09), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
::selection { background: rgba(34, 197, 94, .3); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Kaydırma çubuğu ─────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }

/* ── Panel yerleşimi ─────────────────────────────────────────────────────── */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar); z-index: 40;
    background: linear-gradient(180deg, rgba(10, 16, 26, .92), rgba(8, 12, 20, .96));
    border-right: 1px solid var(--border); backdrop-filter: blur(18px);
    display: flex; flex-direction: column; transition: transform .35s var(--ease);
}
[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(247, 250, 253, .97)); }
.sb-top { padding: 18px 18px 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad);
    box-shadow: 0 8px 22px -6px rgba(34, 197, 94, .6); color: #04120a; position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite 2s; }
.brand-mark svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.device-switch {
    margin: 14px 14px 6px; padding: 12px; border-radius: 14px; background: var(--grad-soft);
    border: 1px solid rgba(34, 197, 94, .22); position: relative;
}
.device-switch label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-2); text-transform: uppercase; margin-bottom: 6px; }
.device-switch select { width: 100%; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; }
[data-theme="light"] .device-switch select { background: rgba(255, 255, 255, .8); }
.device-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.device-switch .dot.on { background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.nav { flex: 1; overflow-y: auto; padding: 6px 10px 18px; }
.nav-group { margin-top: 14px; }
.nav-title { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 6px; }
.nav a {
    display: flex; align-items: center; gap: 11px; padding: 8.5px 12px; margin: 1px 0; border-radius: 10px;
    color: var(--text-2); font-weight: 600; font-size: 13.5px; position: relative; transition: background .2s, color .2s, transform .2s var(--ease);
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; transition: transform .25s var(--ease); }
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a:hover svg { transform: scale(1.1) rotate(-4deg); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(34, 197, 94, .16), rgba(34, 197, 94, .03)); }
.nav a.active::before {
    content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--grad); box-shadow: 0 0 12px rgba(34, 197, 94, .8); animation: growY .4s var(--ease);
}
.nav a.active svg { color: var(--brand); opacity: 1; }
.nav .pill { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--grad); color: #04120a; }
.nav .pill.red { background: var(--red); color: #fff; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sb-foot { padding: 12px 14px 16px; border-top: 1px solid var(--border); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
    background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 19px; font-weight: 800; }
.topbar .sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.topbar .spacer { flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; transition: all .2s;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.green { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); color: #4ade80; }
[data-theme="light"] .chip.green { color: #15803d; }
.chip.amber { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); color: #fbbf24; }
.chip.red { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .3); color: #fb7185; }
.icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: all .2s; position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text); font: inherit; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--grad); color: #04120a; flex: none; }
.user-btn .nm { font-size: 13px; font-weight: 700; line-height: 1.1; text-align: left; }
.user-btn .nm small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }

.content { padding: 26px 28px 60px; max-width: 1480px; width: 100%; }
.content.wide { max-width: 1900px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 800; }
.page-head p { color: var(--text-2); margin-top: 4px; }

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .2s var(--ease); z-index: 60; }
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); color: var(--text); }
.dropdown svg { width: 16px; height: 16px; }
.dropdown .sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* ── Kartlar ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    backdrop-filter: blur(12px); position: relative;
}
.card-pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h3 { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.card-h h3 svg { width: 18px; height: 18px; color: var(--brand); }
.card-h p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-b { padding: 20px; }
.card.hover { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card.glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.card.hero-card { background: linear-gradient(135deg, #065f46 0%, #0f766e 50%, #0c4a6e 100%); border: 0; color: #eafff4; overflow: hidden; }
.card.hero-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, 18px); } }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 340px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; } .mb { margin-bottom: 18px; }

/* ── İstatistik kartı ─────────────────────────────────────────────────────── */
.stat { padding: 18px; display: flex; gap: 14px; align-items: flex-start; overflow: hidden; }
.stat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(34, 197, 94, .13); color: var(--green); }
.stat .ic svg { width: 21px; height: 21px; }
.stat .ic.blue { background: rgba(59, 130, 246, .14); color: #60a5fa; }
.stat .ic.amber { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.stat .ic.violet { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.stat .ic.red { background: rgba(244, 63, 94, .14); color: #fb7185; }
.stat .v { font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .l { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 3px; }
.stat .s { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.grid > *, .g-main > * { min-width: 0; }
.card.stat::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .08), transparent 70%); }

/* ── İlerleme çubuğu ──────────────────────────────────────────────────────── */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.2s var(--ease); position: relative; }
.progress > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: sweep 2.2s infinite; }
.progress.warn > i { background: linear-gradient(90deg, #f59e0b, #f43f5e); }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── Düğmeler ─────────────────────────────────────────────────────────────── */
.btn {
    --b: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
    border-radius: 11px; border: 1px solid var(--border); background: var(--b); color: var(--text); font: inherit; font-size: 13.5px;
    font-weight: 700; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; transition: transform .15s, box-shadow .25s, background .2s, border-color .2s, opacity .2s;
    user-select: none;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); color: var(--brand-ink); border: 0; box-shadow: 0 8px 22px -8px rgba(34, 197, 94, .7); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(34, 197, 94, .8); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-danger { background: rgba(244, 63, 94, .12); color: #fb7185; border-color: rgba(244, 63, 94, .3); }
.btn-danger:hover { background: rgba(244, 63, 94, .2); }
.btn-soft { background: rgba(34, 197, 94, .12); color: #4ade80; border-color: rgba(34, 197, 94, .28); }
[data-theme="light"] .btn-soft { color: #15803d; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: rgba(255, 255, 255, .7) rgba(255, 255, 255, .7) transparent transparent; animation: spin .7s linear infinite; }
.btn-primary.loading::before { border-color: #04120a #04120a transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Rozetler ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.b-green { background: rgba(34, 197, 94, .13); color: #4ade80; }
.b-red { background: rgba(244, 63, 94, .13); color: #fb7185; }
.b-amber { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.b-blue { background: rgba(59, 130, 246, .14); color: #60a5fa; }
.b-violet { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.b-gray { background: var(--surface-3); color: var(--text-2); }
[data-theme="light"] .b-green { color: #15803d; } [data-theme="light"] .b-red { color: #be123c; }
[data-theme="light"] .b-amber { color: #b45309; } [data-theme="light"] .b-blue { color: #1d4ed8; } [data-theme="light"] .b-violet { color: #6d28d9; }
.badge.live::before { animation: pulse 2s infinite; }

/* ── Formlar ──────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .lbl { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url],
input[type=search], input[type=datetime-local], input[type=date], select, textarea {
    width: 100%; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .18);
    color: var(--text); font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
[data-theme="light"] .input, [data-theme="light"] input:not([type]), [data-theme="light"] input[type=text], [data-theme="light"] input[type=email], [data-theme="light"] input[type=password],
[data-theme="light"] input[type=number], [data-theme="light"] input[type=tel], [data-theme="light"] input[type=url], [data-theme="light"] input[type=search],
[data-theme="light"] input[type=datetime-local], [data-theme="light"] input[type=date], [data-theme="light"] select, [data-theme="light"] textarea { background: #fff; }
input:focus, select:focus, textarea:focus { border-color: rgba(34, 197, 94, .6); box-shadow: 0 0 0 4px rgba(34, 197, 94, .14); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238391a7' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select option { background: var(--surface-solid); color: var(--text); }
.input-group { display: flex; }
.input-group > input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; flex: none; }
.input-group > input { min-width: 0; flex: 1; }
.btn svg { flex: none; min-width: 15px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); cursor: pointer; transition: all .25s var(--ease); }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::before { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.seg button, .seg label { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: all .2s; }
.seg .on, .seg input:checked + span { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.seg input { display: none; }

/* ── Tablolar ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .t-main { font-weight: 700; }
.table .t-sub { font-size: 12px; color: var(--text-3); }

/* ── Boş durum ────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; }
.empty .em-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); position: relative; }
.empty .em-ic::before { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 1px dashed rgba(34, 197, 94, .35); animation: spin 22s linear infinite; }
.empty .em-ic svg { width: 32px; height: 32px; }
.empty h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 16px; }

/* ── Uyarı kutuları ───────────────────────────────────────────────────────── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 13px; border: 1px solid; font-size: 13.5px; margin-bottom: 16px; }
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.alert .grow { flex: 1; }
.alert a.lnk { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.alert.info { background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .25); color: #93c5fd; }
.alert.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .28); color: #fcd34d; }
.alert.err { background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .28); color: #fda4af; }
.alert.ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .28); color: #86efac; }
[data-theme="light"] .alert.info { color: #1e40af; } [data-theme="light"] .alert.warn { color: #92400e; }
[data-theme="light"] .alert.err { color: #9f1239; } [data-theme="light"] .alert.ok { color: #166534; }

/* ── Sekmeler ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-3); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); border-bottom-color: var(--brand); }
.tab-pane { display: none; animation: fadeUp .4s var(--ease); }
.tab-pane.on { display: block; }

/* ── Kod blokları ─────────────────────────────────────────────────────────── */
pre.code { position: relative; margin: 0; padding: 16px 18px; border-radius: 13px; background: #060a11; border: 1px solid var(--border); color: #d6e2f0; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; overflow-x: auto; white-space: pre; }
[data-theme="light"] pre.code { background: #0e1622; }
pre.code .k { color: #7dd3fc; } pre.code .s { color: #86efac; } pre.code .n { color: #fbbf24; } pre.code .c { color: #64748b; }
.copy-btn { position: absolute; top: 10px; right: 10px; }
code.inline { font-family: var(--mono); font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); }
.method { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(34, 197, 94, .15); color: #4ade80; }
.method.get { background: rgba(59, 130, 246, .15); color: #60a5fa; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 12, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.97); transition: transform .35s var(--ease); }
.modal.lg { max-width: 760px; } .modal.xl { max-width: 1000px; }
.modal-bg.open .modal { transform: none; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-h h3 { font-size: 16.5px; font-weight: 800; }
.modal-b { padding: 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.drawer-right { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%); z-index: 101; background: var(--surface-solid); border-left: 1px solid var(--border-strong); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.drawer-right.open { transform: none; }

/* ── Bildirimler (toast) ──────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 280px; max-width: 420px; display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease); font-size: 13.5px; font-weight: 600; }
.toast.out { animation: toastOut .3s ease forwards; }
.toast .ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 16px; height: 16px; }
.toast.ok .ti { background: rgba(34, 197, 94, .15); color: #4ade80; }
.toast.err .ti { background: rgba(244, 63, 94, .15); color: #fb7185; }
.toast.info .ti { background: rgba(59, 130, 246, .15); color: #60a5fa; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ── Giriş animasyonları ──────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
/* backwards: gecikme süresince başlangıç hâli uygulanır, animasyon BİTİNCE öğe normal stiline döner
   ("both" son kareyi — opacity:1 + transform — kalıcı tutuyordu; iç içe fixed pencereleri bozuyordu) */
.anim > * { animation: fadeUp .6s var(--ease) backwards; }
.anim > *:nth-child(1) { animation-delay: .02s; } .anim > *:nth-child(2) { animation-delay: .07s; }
.anim > *:nth-child(3) { animation-delay: .12s; } .anim > *:nth-child(4) { animation-delay: .17s; }
.anim > *:nth-child(5) { animation-delay: .22s; } .anim > *:nth-child(6) { animation-delay: .27s; }
.anim > *:nth-child(7) { animation-delay: .32s; } .anim > *:nth-child(8) { animation-delay: .37s; }
.anim > *:nth-child(n+9) { animation-delay: .42s; }
/* Modal bir .anim kapsayıcısının içinde kalırsa giriş animasyonu (fill: both) opaklığı 1'e kilitler,
   transform da position:fixed'i bozar → görünür ama tıklanamaz pencere (09-24 cihazlar sayfası). */
.anim > .modal-bg, .anim > .toasts { animation: none !important; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.3s infinite; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ── Cihaz kartı / QR ─────────────────────────────────────────────────────── */
.dev-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: all .25s var(--ease); }
.dev-card:hover { border-color: var(--border-strong); transform: translateX(3px); }
.dev-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: var(--green); flex: none; position: relative; }
.dev-ic.off { background: var(--surface-3); color: var(--text-3); }
.dev-ic svg { width: 22px; height: 22px; }
.dev-ic .st { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--surface-solid); background: var(--text-3); }
.dev-ic .st.on { background: var(--green); }
.qr-box { width: 280px; height: 280px; margin: 0 auto; border-radius: 20px; padding: 14px; background: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 20px 50px -18px rgba(34, 197, 94, .55); }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-box .scan { position: absolute; left: 14px; right: 14px; height: 3px; top: 14px; background: linear-gradient(90deg, transparent, #22c55e, transparent); box-shadow: 0 0 14px #22c55e; animation: scanline 2.4s ease-in-out infinite; border-radius: 3px; }
@keyframes scanline { 0%, 100% { top: 14px; } 50% { top: calc(100% - 17px); } }
.qr-wait { width: 280px; height: 280px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--border-strong); text-align: center; color: var(--text-2); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 0 auto 12px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 14px 40px; color: var(--text-2); font-size: 13.5px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--grad-soft); color: var(--brand); border: 1px solid rgba(34, 197, 94, .28); }
.steps-list li b { color: var(--text); }

/* ── Sihirbaz adımları ────────────────────────────────────────────────────── */
.wizard { display: flex; gap: 8px; margin-bottom: 20px; }
.wizard .ws { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); font-weight: 700; font-size: 13px; transition: all .3s; }
.wizard .ws b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.wizard .ws.on { border-color: rgba(34, 197, 94, .4); color: var(--text); background: var(--grad-soft); }
.wizard .ws.on b, .wizard .ws.done b { background: var(--grad); color: #04120a; }

/* ── Sohbet önizleme (telefon) ────────────────────────────────────────────── */
.phone-prev { border-radius: 26px; background: #0b141a; border: 1px solid var(--border-strong); overflow: hidden; max-width: 340px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.phone-prev .ph-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c34; color: #e9edef; font-weight: 700; font-size: 13.5px; }
.phone-prev .ph-b { padding: 14px; min-height: 220px; background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff08'/%3E%3C/svg%3E"); display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 85%; padding: 7px 10px 18px; border-radius: 10px; font-size: 13.5px; color: #e9edef; position: relative; white-space: pre-wrap; word-wrap: break-word; animation: scaleIn .35s var(--ease) both; }
.bubble.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.bubble.in { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.bubble time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: rgba(233, 237, 239, .6); }

/* ── Paket kartları ───────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { padding: 26px 22px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.popular { border-color: rgba(34, 197, 94, .5); box-shadow: var(--glow); }
.plan .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: var(--grad); color: #04120a; font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.plan h4 { font-size: 18px; font-weight: 800; }
.plan .desc { color: var(--text-2); font-size: 13px; margin: 6px 0 16px; min-height: 40px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.plan li svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }

/* ── Kimlik (giriş/kayıt) ekranları ───────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 20% 10%, rgba(34, 197, 94, .25), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(14, 165, 233, .22), transparent 60%), #050910; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #eaf3ff; }
.auth-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%); }
.auth-art h2 { font-size: 38px; font-weight: 800; letter-spacing: -.035em; max-width: 480px; position: relative; }
.auth-art p { color: #a9b7cb; max-width: 440px; margin-top: 14px; font-size: 15.5px; position: relative; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 27px; font-weight: 800; }
.auth-card .lead { color: var(--text-2); margin: 8px 0 26px; }
.floating-chat { position: relative; margin-top: 34px; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.floating-chat .bubble { animation: fadeUp .7s var(--ease) both; }

/* ── Kaplama (mobil menü) ─────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }

/* ── Duyarlı ──────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .menu-toggle { display: grid; }
    .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}
@media (max-width: 720px) {
    .content { padding: 18px 16px 50px; }
    .topbar { padding: 12px 16px; }
    .topbar .sub, .tb-actions .chip.hide-sm, .user-btn .nm { display: none; }
    .g-2, .g-3, .g-4, .g-5, .form-grid { grid-template-columns: 1fr; }
    .wizard { flex-direction: column; }
    .page-head h2 { font-size: 19px; }
    .stat .v { font-size: 22px; }
    .toasts { left: 12px; right: 12px; bottom: 12px; }
    .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
