/* ==========================================================================
   ZK Portal — Arayüz stilleri
   Mobil öncelikli; açık/koyu tema token'ları :root üzerinde tanımlı.
   Marka kimliği (Zihin Kodlama Marka Kimliği Rehberi):
     ana renkler #0082FF ve #001F6D (ve aralarındaki geçiş), destek renkleri #031F51, #002C8D,
     turuncu #E99630, geçişler #301C73 → #190D3F ve #244B9A → #061742; yazı tipi Urbanist
     (başlık Bold, alt başlık Medium, metin Regular).
   ========================================================================== */

/* ---------- Yazı tipi: Urbanist (OFL; yerelde barındırılır, üçüncü taraf isteği yapılmaz) ---------- */
@font-face {
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/urbanist-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/urbanist-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tasarım token'ları ---------- */
:root {
    /* Marka renkleri: logo, simge kutuları, geçişler ve vurgu çizgileri için olduğu gibi kullanılır */
    --brand: #0082ff;
    --brand-navy: #001f6d;
    --brand-deep: #031f51;
    --brand-royal: #002c8d;
    --brand-orange: #e99630;
    --brand-gradient: linear-gradient(135deg, #0082ff 0%, #001f6d 100%);
    --brand-glow: rgba(0, 130, 255, .45);

    /* Nötrler marka lacivertine doğru hafif tonlu */
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f1f4f9;
    --surface-3: #e6ebf3;
    --border: #e2e7f0;
    --border-strong: #cdd5e2;
    --text: #0b1636;
    --text-2: #4a5674;
    --text-3: #7f8aa3;

    /* Metin taşıyan vurgular marka mavisinin bir ton koyusu: beyaz yazıyla AA kontrast (4.7:1) */
    --accent: #0070e6;
    --accent-hover: #005bc0;
    --accent-soft: #e8f2ff;
    --accent-text: #0062cc;
    --on-accent: #ffffff;

    --green: #16875a;   --green-soft: #e6f5ee;
    --amber: #a05c06;   --amber-soft: #fdf1e2;
    --blue: #2a6fc9;    --blue-soft: #e7f0fb;
    --violet: #6a45c4;  --violet-soft: #f0ebfc;
    --gray: #66708a;    --gray-soft: #edf0f5;
    --red: #cf3f3f;     --red-soft: #fcebeb;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(3, 31, 81, .05);
    --shadow: 0 1px 3px rgba(3, 31, 81, .06), 0 8px 24px rgba(3, 31, 81, .06);
    --shadow-lg: 0 12px 48px rgba(3, 31, 81, .18);
    --ring: 0 0 0 3px rgba(0, 130, 255, .25);

    --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

    --topbar-h: 64px;

    /* Grafik serileri: marka mavisi ve turuncusu (açık zeminde kontrast ≥ 3:1, renk körlüğünde ayırt edilir) */
    --viz-1: #0070e6;
    --viz-2: #cc7a14;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #040b1c;
        --surface: #0a1428;
        --surface-2: #101c36;
        --surface-3: #182646;
        --border: #172340;
        --border-strong: #24345a;
        --text: #eaf0fa;
        --text-2: #a2aecb;
        --text-3: #6d7b9b;
        --accent: #3d9bff;
        --accent-hover: #5cacff;
        --accent-soft: rgba(0, 130, 255, .16);
        --accent-text: #75b9ff;
        --on-accent: #001433;
        --green: #4cc38a;   --green-soft: rgba(76, 195, 138, .13);
        --amber: #f2ae5a;   --amber-soft: rgba(233, 150, 48, .14);
        --blue: #6aa8f5;    --blue-soft: rgba(106, 168, 245, .13);
        --violet: #a98bf2;  --violet-soft: rgba(169, 139, 242, .14);
        --gray: #95a0b8;    --gray-soft: rgba(149, 160, 184, .13);
        --red: #f07272;     --red-soft: rgba(240, 114, 114, .13);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55);
        --ring: 0 0 0 3px rgba(61, 155, 255, .35);
        --viz-1: #3d9bff;
        --viz-2: #e99630;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
        --bg: #040b1c;
        --surface: #0a1428;
        --surface-2: #101c36;
        --surface-3: #182646;
        --border: #172340;
        --border-strong: #24345a;
        --text: #eaf0fa;
        --text-2: #a2aecb;
        --text-3: #6d7b9b;
        --accent: #3d9bff;
        --accent-hover: #5cacff;
        --accent-soft: rgba(0, 130, 255, .16);
        --accent-text: #75b9ff;
        --on-accent: #001433;
        --green: #4cc38a;   --green-soft: rgba(76, 195, 138, .13);
        --amber: #f2ae5a;   --amber-soft: rgba(233, 150, 48, .14);
        --blue: #6aa8f5;    --blue-soft: rgba(106, 168, 245, .13);
        --violet: #a98bf2;  --violet-soft: rgba(169, 139, 242, .14);
        --gray: #95a0b8;    --gray-soft: rgba(149, 160, 184, .13);
        --red: #f07272;     --red-soft: rgba(240, 114, 114, .13);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55);
        --ring: 0 0 0 3px rgba(61, 155, 255, .35);
        --viz-1: #3d9bff;
        --viz-2: #e99630;
        color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 14.5px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border-radius: 10px; border: 1px solid transparent;
    font-weight: 500; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--text-2);
    transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn--sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field-hint { font-size: 12px; color: var(--text-3); }

.input, .select, .textarea {
    width: 100%; min-width: 0;
    height: 40px; padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a909d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input--mono { font-family: var(--mono); font-size: 13px; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 76px; }
.input-group-actions { position: absolute; right: 4px; display: flex; gap: 2px; }
.input-group:not(:has([data-pw-generate])) .input { padding-right: 40px; }

/* Hassas işlemlerde "kendi parolanız" alanı: yeni kullanıcının bilgilerinden görsel olarak ayrılır */
.reauth { display: grid; gap: 10px; margin-top: 4px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.reauth-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.reauth-head .icon { width: 16px; height: 16px; color: var(--accent); }
.reauth .input { background: var(--surface); }
.reauth .field-label strong { color: var(--text); font-weight: 600; }

.alert {
    padding: 10px 14px; margin-bottom: 18px;
    background: var(--red-soft); color: var(--red);
    border-radius: 10px; font-weight: 500;
}
.alert--info { background: var(--accent-soft); color: var(--accent); }

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-mark {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--accent); color: var(--on-accent);
    font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand--lg .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
/* Firma logosu: açık temada renkli, koyu temada açık renkli türevi */
.brand-logo { display: block; width: auto; height: 32px; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-logo--light { display: none; }
    :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
}
.brand--lg .brand-name { font-size: 18px; }

/* ---------- Giriş ekranı ----------
   Tam ekran iki sütun: solda ekran kenarlarına yapışık koyu görsel panel (akan dalgalar, modül yörüngesi,
   alt köşede başlık), sağda sade form. Form tarafı sitenin temasını izler (varsayılan açık);
   görsel panel her zaman koyudur. Mobilde panel gösterilmez. */
body.auth {
    --auth-field: #f1f4f9;
    --auth-field-hover: #e9eef6;
    min-height: 100vh; min-height: 100dvh;
    background: var(--surface);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.auth { --auth-field: #101c36; --auth-field-hover: #15223f; }
}
:root[data-theme="dark"] body.auth { --auth-field: #101c36; --auth-field-hover: #15223f; }

.auth-shell { display: grid; grid-template-rows: 1fr; min-height: 100vh; min-height: 100dvh; background: var(--surface); }

/* Sol: görsel panel (yalnızca masaüstünde; mobilde form doğrudan başlar) */
.showcase {
    position: relative; isolation: isolate; overflow: hidden;
    display: none; flex-direction: column; gap: 18px;
    margin: 0; padding: 20px 20px 22px; color: #fff;
    background:
        radial-gradient(70% 45% at 75% 28%, rgba(0, 130, 255, .4), transparent 70%),
        radial-gradient(60% 45% at 12% 90%, rgba(48, 28, 115, .65), transparent 70%),
        linear-gradient(165deg, #031f51 0%, #061742 55%, #020a24 100%);
}
/* Alt kısımdaki yazı okunaklı kalsın diye zemin aşağı doğru koyulaşır */
.showcase::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 10, 36, .1) 0%, transparent 40%, rgba(2, 10, 36, .85) 100%);
}
.showcase-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.showcase-waves path { fill: none; stroke-linecap: round; }
.showcase-waves-lines, .showcase-waves-glow { animation: wave-drift 16s ease-in-out infinite alternate; }
@keyframes wave-drift { to { transform: translate(-28px, 8px); } }

.showcase-top { display: flex; align-items: center; gap: 14px; }
.showcase-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
/* Rehberdeki turuncu vurgu çizgisi */
.showcase-rule { flex: 0 1 110px; height: 2px; border-radius: 1px; background: var(--brand-orange); }

.showcase-copy { margin-top: auto; }
.showcase-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.showcase-lead { display: none; max-width: 430px; margin: 16px 0 0; color: rgba(255, 255, 255, .78); line-height: 1.6; }
.showcase-tags { display: none; list-style: none; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.showcase-tags li {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 10px;
    border-radius: 999px; font-size: 12.5px; font-weight: 500;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.showcase-tags .icon { width: 15px; height: 15px; }

/* Modül yörüngesi: halkalar yavaşça döner, rozetler ters dönerek hep dik durur */
.orbit { display: none; position: relative; --s: min(520px, 32vw, calc(100dvh - 470px)); width: var(--s); height: var(--s); margin: auto; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); transform: translate(-50%, -50%); }
.orbit-ring--outer { width: 100%; height: 100%; }
.orbit-ring--mid { width: 72%; height: 72%; border-color: rgba(255, 255, 255, .18); }
.orbit-ring--inner { width: 44%; height: 44%; border-color: rgba(255, 255, 255, .22); background: radial-gradient(circle, rgba(0, 130, 255, .3), transparent 70%); }
.orbit-track { position: absolute; inset: 0; animation: orbit-spin 120s linear infinite; }
.orbit-track--outer { animation-duration: 160s; animation-direction: reverse; }
.orbit-item {
    position: absolute; left: 50%; top: 50%; width: 0; height: 0;
    transform: rotate(calc(var(--a) * 1deg)) translateX(calc(var(--s) * var(--r) / 100)) rotate(calc(var(--a) * -1deg));
}
.orbit-badge {
    position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    transform: translate(-50%, -50%); animation: orbit-counter 120s linear infinite;
}
.orbit-track--outer .orbit-badge { animation-duration: 160s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-counter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}
.orbit-badge--module {
    padding: 5px 13px 5px 5px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}
.orbit-badge-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand); }
.orbit-badge-icon .icon { width: 15px; height: 15px; }
.orbit-badge--new { color: rgba(255, 255, 255, .72); font-weight: 500; border-style: dashed; background: rgba(255, 255, 255, .04); }
.orbit-badge--new .orbit-badge-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.orbit-badge--feature {
    justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--brand);
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 255, 255, .07);
}
.orbit-badge--feature .icon { width: 18px; height: 18px; }
.orbit-core {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 26%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #3aa0ff, #0062d6 50%, #001f6d 100%);
    box-shadow: 0 0 0 8px rgba(0, 130, 255, .16), 0 0 70px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.orbit-core img { width: 54%; height: auto; }

/* Sağ: form */
.auth-main { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 32px 20px 20px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.auth-brand .brand-logo { height: 30px; }
/* Logo üstte, form dikeyde ortada, alt bilgi en altta (her ekran boyutunda) */
.auth-panel { width: 100%; max-width: 400px; margin: auto 0; padding: 28px 0; }

/* Başlığın üstündeki simge, arkasında silikleşen ızgara */
.auth-mark { position: relative; isolation: isolate; display: grid; place-items: center; height: 100px; margin-bottom: 6px; }
.auth-mark::before {
    content: ""; position: absolute; inset: 0 14%; z-index: -1;
    background:
        linear-gradient(var(--border-strong) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(90deg, var(--border-strong) 1px, transparent 1px) 0 0 / 20px 20px;
    -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
    mask-image: radial-gradient(closest-side, #000 20%, transparent);
}
.auth-mark-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 12px 26px -8px rgba(0, 112, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.auth-mark-icon .icon { width: 24px; height: 24px; }
.auth-title { margin: 0 0 8px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.auth-lead { margin: 0 0 26px; text-align: center; color: var(--text-2); line-height: 1.55; }
.auth-account { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.auth-panel .alert { border-radius: 12px; }

.auth-fields { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-fields:disabled { opacity: .5; }
.auth-panel .field-label { font-size: 13px; font-weight: 500; color: var(--text); }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; transition: color .15s; }
.input-icon:focus-within > .icon { color: var(--accent); }
.auth-panel .input-icon .input {
    height: 48px; padding-left: 44px; border-radius: 12px; font-size: 14.5px;
    background: var(--auth-field); border-color: transparent;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.auth-panel .input-icon .input:hover { background: var(--auth-field-hover); }
.auth-panel .input-icon .input:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--ring); }
.auth-panel .input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 100px var(--auth-field) inset;
    caret-color: var(--text);
}
.input-icon:has(.input-icon-action:not([hidden])) .input { padding-right: 46px; }
.input-icon-action { position: absolute; right: 8px; color: var(--text-3); }
.caps-warning { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--amber); }
.caps-warning .icon { width: 14px; height: 14px; }

/* "Parolamı unuttum": ayrı bir sıfırlama akışı yok, yöneticiye yönlendirir */
.auth-help { font-size: 13px; }
.auth-help summary { width: fit-content; margin-left: auto; list-style: none; cursor: pointer; font-weight: 500; color: var(--accent-text); }
.auth-help summary::-webkit-details-marker { display: none; }
.auth-help summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-help p { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--text-2); line-height: 1.5; }

.btn-lg { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.btn-auth { margin-top: 6px; gap: 10px; box-shadow: 0 12px 24px -12px rgba(0, 112, 230, .6); }
.btn-auth .icon { transition: transform .2s; }
.btn-auth:hover .icon { transform: translateX(3px); }
.btn-auth.is-busy .icon { animation: soft-pulse .9s ease-in-out infinite; }
@keyframes soft-pulse { 50% { opacity: .3; } }

.lockout {
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px;
    border-radius: 12px; background: var(--red-soft); color: var(--red);
}
.lockout > .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.lockout strong { display: block; margin-bottom: 2px; }
.lockout span { color: var(--text-2); font-size: 13px; }
.lockout-time { color: var(--red); font-size: 15px; font-variant-numeric: tabular-nums; }

.attempts { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--text-2); }
.attempts strong { color: var(--text); }
.attempts-dots { display: inline-flex; gap: 5px; }
.attempts-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); opacity: .3; }
.attempts-dots i.is-left { background: var(--green); opacity: 1; }

.pw-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 7px 12px; font-size: 12px; color: var(--text-3); }
@media (min-width: 400px) { .pw-rules { grid-template-columns: 1fr 1fr; } }
.pw-rules li { display: flex; align-items: center; gap: 7px; transition: color .15s; }
.pw-rules li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); box-sizing: border-box; }
.pw-rules li.is-ok { color: var(--green); }
.pw-rules li.is-ok::before {
    border-color: var(--green);
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* İki adımlı doğrulama adımı */
.auth-panel .input-icon .input--code { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-panel .input-icon .input--code::placeholder { color: var(--text-3); opacity: .55; }
.auth-panel .input-icon .input--recovery { font-size: 16px; letter-spacing: .12em; }
.auth-hint { font-size: 12px; color: var(--text-3); }
.auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.auth-alt form { margin: 0; }
.auth-link { padding: 4px 0; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-link--muted { color: var(--text-3); }
.auth-link--muted:hover { color: var(--text); }
.auth-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

/* Alt bilgi */
.auth-foot { display: grid; gap: 10px; justify-items: center; text-align: center; }
.auth-foot-ask { margin: 0; font-size: 13.5px; color: var(--text-2); }
.auth-foot-ask strong { color: var(--text); font-weight: 600; }
.auth-foot-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 0; font-size: 12px; color: var(--text-3); }
.conn {
    display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conn--secure { background: var(--green-soft); color: var(--green); border-color: transparent; }
.conn--secure .conn-dot { animation: soft-pulse 2s ease-in-out infinite; }
.conn--local .conn-dot { background: var(--text-3); }
.conn--insecure { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* Masaüstü: kart yok, sayfa tam ekran iki sütun. Görsel panel boşluksuz, ekran kenarlarına yapışık. */
@media (min-width: 960px) {
    .auth-shell { grid-template-rows: none; grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr); }
    .showcase { display: flex; padding: 34px 40px 40px; }
    .orbit { display: block; }
    .showcase-title { font-size: clamp(40px, 3.6vw, 56px); }
    .showcase-lead { display: block; }
    .showcase-tags { display: flex; }
    .auth-main { padding: 26px 40px 20px; }
}
/* Kısa ekranlarda yörünge sığmaz; başlık ve etiketler kalır */
@media (min-width: 960px) and (max-height: 720px) {
    .orbit { display: none; }
    .auth-main { padding-top: 20px; padding-bottom: 16px; }
    .auth-panel { padding: 8px 0; }
    .auth-mark { height: 76px; }
    .auth-lead { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-track, .orbit-badge, .showcase-waves-lines, .showcase-waves-glow, .conn-dot, .btn-auth .icon { animation: none !important; }
}

/* ---------- Üst çubuk ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand actions" "search search";
    align-items: center; gap: 12px;
    max-width: 1240px; margin: 0 auto;
    padding: 12px 16px;
}
.topbar-start { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 6px; }

.search {
    grid-area: search;
    position: relative; display: flex; align-items: center;
    height: 42px; padding: 0 12px; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-3);
    transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: var(--ring); color: var(--text-2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); }
/* Odak halkası kutunun kendisinde (:focus-within); içteki alana ikinci bir halka çizilmez */
.search input:focus-visible { box-shadow: none; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-kbd {
    display: none;
    font: 500 11px var(--font); color: var(--text-3);
    padding: 2px 7px; border: 1px solid var(--border-strong); border-radius: 6px;
}

.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.avatar-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-3); color: var(--text);
    font-weight: 600; font-size: 14px;
    transition: box-shadow .15s;
}
.avatar-btn:hover { box-shadow: 0 0 0 3px var(--surface-3); }

.menu { position: relative; }
.menu-pop {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
    min-width: 220px; padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: pop .14s ease-out;
}
.menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head-label { font-size: 12px; color: var(--text-3); }
.menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--text);
}
.menu-item .icon { color: var(--text-3); }
.menu-item:hover { background: var(--surface-2); }
.menu-item--danger, .menu-item--danger .icon { color: var(--red); }
a.menu-item { text-decoration: none; }
.menu-item.is-current { background: var(--accent-soft); color: var(--accent-text); }
.menu-item.is-current .icon { color: var(--accent); }
.menu-pop--left { right: auto; left: 0; }

/* Modül değiştirici: logonun yanında bulunulan modül */
.switcher-btn {
    display: inline-flex; align-items: center; gap: 8px; min-width: 0;
    height: 38px; padding: 0 8px 0 5px; border-radius: 11px;
    color: var(--text); font-weight: 600; font-size: 15px;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.switcher-btn:hover, .switcher-btn[aria-expanded="true"] { background: var(--surface); border-color: var(--border); }
.switcher-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); flex: none; }
.switcher-icon .icon { width: 16px; height: 16px; }
.switcher-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher-caret { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.topbar-start .brand { padding-right: 10px; border-right: 1px solid var(--border); }
.topbar-start .brand:only-child { padding-right: 0; border-right: 0; }

@media (max-width: 479px) { .hide-sm { display: none; } .btn-primary:has(.hide-sm) { width: 40px; padding: 0; } }

@media (min-width: 760px) {
    .topbar-inner {
        grid-template-columns: auto minmax(0, 560px) 1fr;
        grid-template-areas: "brand search actions";
        gap: 24px; height: var(--topbar-h); padding-top: 0; padding-bottom: 0;
    }
    .search { height: 40px; }
    .search-kbd { display: inline-block; }
}

/* ---------- Sayfa ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 20px 16px 80px; }
@media (min-width: 760px) { .page { padding: 28px 24px 96px; } .topbar-inner { padding-left: 24px; padding-right: 24px; } }

.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Modül başlığı ----------
   Marka gradyanlı simge, turuncu vurgu çizgili üst etiket (giriş ekranıyla aynı dil) ve
   tıklanınca listeyi süzen özet kartları. Mobilde kartlar başlığın altına iner. */
.mod-head {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    gap: 16px 14px; margin: 0 0 22px;
}
.mod-head-icon {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
    background: var(--brand-gradient); color: #fff;
    box-shadow: 0 12px 24px -12px rgba(0, 112, 230, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mod-head-icon .icon { width: 22px; height: 22px; }
.mod-head-text { min-width: 0; }
.mod-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.mod-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--brand-orange); }
.mod-head-title { margin: 1px 0 0; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.mod-head-sub { display: none; margin: 4px 0 0; font-size: 13.5px; color: var(--text-3); }

.mod-stats { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.mod-stats:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.mod-stat {
    display: grid; align-content: start; gap: 1px; min-width: 0; padding: 10px 14px 11px; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.mod-stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.mod-stat[aria-pressed="true"] {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.mod-stat-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.mod-stat-label::before { content: ""; display: none; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.mod-stat--green { --dot: var(--green); }
.mod-stat--blue { --dot: var(--blue); }
.mod-stat--amber { --dot: var(--amber); }
.mod-stat--red { --dot: var(--red); }
.mod-stat--gray { --dot: var(--gray); }
.mod-stat[class*="mod-stat--"] .mod-stat-label::before { display: block; }
.mod-stat-value { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mod-stat-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Toplam kartındaki dağılım çubuğu */
.mod-stat-bar { display: flex; gap: 2px; height: 4px; margin-top: 6px; border-radius: 2px; overflow: hidden; }
.mod-stat-seg { width: calc(var(--w) * 1%); min-width: 4px; background: var(--dot); }

@media (max-width: 639px) {
    /* Mobilde kartlar kompakt: alt satır yerine yalnızca sayı ve çubuk */
    .mod-stat { padding: 9px 12px 10px; border-radius: 12px; }
    .mod-stat-value { font-size: 20px; }
    .mod-stat-sub { display: none; }
}
@media (min-width: 640px) {
    .mod-head-sub { display: block; }
}
@media (min-width: 880px) {
    .mod-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 18px; margin: 4px 0 26px; }
    .mod-head-icon { width: 52px; height: 52px; border-radius: 16px; }
    .mod-head-icon .icon { width: 24px; height: 24px; }
    .mod-head-title { font-size: 26px; }
    .mod-stats, .mod-stats:has(> :nth-child(4)) { grid-column: auto; display: flex; }
    .mod-stat { min-width: 128px; }
}

/* ---------- Yaklaşan yenilemeler ---------- */
.upcoming {
    margin-bottom: 22px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.upcoming-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.upcoming-title .icon { width: 17px; height: 17px; color: var(--amber); }
.upcoming-count {
    padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 19px;
    background: var(--amber-soft); color: var(--amber); font-variant-numeric: tabular-nums;
}
.upcoming-list {
    display: flex; gap: 8px; overflow-x: auto;
    margin: 0 -16px; padding: 0 16px 2px;
    scrollbar-width: none;
}
.upcoming-list::-webkit-scrollbar { display: none; }
.upcoming-item {
    flex: none; display: flex; align-items: center; gap: 10px;
    padding: 7px 12px 7px 7px;
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: 999px;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.upcoming-item:hover { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.upcoming-item .logo { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; }
.upcoming-name { display: block; font-weight: 500; line-height: 1.3; }
.upcoming-meta { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; }
.upcoming-days { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.upcoming-days--soon { background: var(--amber-soft); color: var(--amber); }
.upcoming-days--today { background: var(--red-soft); color: var(--red); }
@media (min-width: 760px) { .upcoming-list { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }

/* ---------- Araç çubuğu ---------- */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 20px;
}
.tabs {
    display: flex; gap: 4px; padding: 4px;
    background: var(--surface-2);
    border-radius: 12px;
    overflow-x: auto; max-width: 100%;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 14px;
    border-radius: 9px;
    color: var(--text-2); font-weight: 500;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-count { font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }

.toolbar-end { display: flex; align-items: center; gap: 8px; }
.btn-toolbar { height: 42px; border-radius: 12px; border-color: var(--border); color: var(--text-2); }
.btn-toolbar:hover { color: var(--text); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--text-2); }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.notice {
    display: flex; gap: 10px; padding: 12px 14px;
    background: var(--amber-soft); color: var(--amber);
    border-radius: 10px; font-size: 13px; line-height: 1.5;
}
.notice .icon { margin-top: 1px; }

/* Güvenlik kaydı */
.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.audit li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.audit li:last-child { border-bottom: 0; }
.audit-action { font-weight: 500; }
.audit-action--warn { color: var(--red); }
.audit-time { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit-meta { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }

.select-pill {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text-3);
}
.select-pill:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.select-pill-label { font-size: 13px; }
.select-pill select { appearance: none; border: 0; background: none; outline: none; padding-right: 22px; font-weight: 500; color: var(--text); cursor: pointer; }
.select-pill .icon { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; }

/* ---------- Liste ---------- */
.group { margin-bottom: 30px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 2px; }
.group-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.group-count {
    padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 20px;
    background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums;
}

.table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-head { display: none; }

/* Liste satırı. Mobilde tek satır: logo + ad solda, ücret ve yenileme sağda; giriş bilgileri
   detay panelinde. Masaüstünde tablo sütunlarına açılır. */
.row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main meta";
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: background-color .12s;
}
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.row.is-flash { animation: flash 1.2s ease-out; }
/* Üzerine gelinen satırın solunda marka mavisi vurgu çizgisi */
.row::before, .as-row::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent); opacity: 0; transition: opacity .15s;
}
.row:hover::before, .row:focus-visible::before, .as-row:hover::before, .as-row:focus-visible::before { opacity: 1; }

.row-main { grid-area: main; display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-cred { grid-area: cred; min-width: 0; display: none; align-items: center; gap: 6px; }
.row-pass { grid-area: pass; min-width: 0; display: none; align-items: center; gap: 4px; }
.row-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.row-price, .row-renew { min-width: 0; }
.row-actions { grid-area: actions; display: none; align-items: center; justify-content: flex-end; gap: 2px; }
@media (max-width: 879px) {
    .row--nometa .row-meta { display: none; }
    /* Boş değerler mobilde yer kaplamasın */
    .row-price:has(> .muted:only-child), .row-renew:has(> .muted:only-child) { display: none; }
    .row-renew .renew { font-size: 12px; }
    .row-renew .renew .icon { display: none; }
}

.row-title { min-width: 0; }
.row-name { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.005em; }
.row-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: block; color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.logo {
    position: relative;
    flex: none; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 600; font-size: 13px; color: var(--text-2);
    overflow: hidden;
}
.logo img { width: 22px; height: 22px; object-fit: contain; }
.logo--initials {
    background: hsl(var(--h, 230) 70% 95%);
    border-color: hsl(var(--h, 230) 50% 88%);
    color: hsl(var(--h, 230) 45% 38%);
}
:root[data-theme="dark"] .logo--initials {
    background: hsl(var(--h, 230) 30% 18%);
    border-color: hsl(var(--h, 230) 25% 24%);
    color: hsl(var(--h, 230) 70% 78%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo--initials {
        background: hsl(var(--h, 230) 30% 18%);
        border-color: hsl(var(--h, 230) 25% 24%);
        color: hsl(var(--h, 230) 70% 78%);
    }
}
.logo--lg { width: 52px; height: 52px; border-radius: 14px; font-size: 17px; }
.logo--lg img { width: 30px; height: 30px; }

/* Kopyalanabilir alan */
.chip {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    width: 100%; min-width: 0; height: 36px; padding: 0 10px 0 12px;
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left; color: var(--text);
    transition: background-color .15s, border-color .15s, color .15s;
}
.chip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .icon { width: 16px; height: 16px; color: var(--text-3); transition: color .15s, transform .15s; }
.chip:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.chip:hover .icon { color: var(--accent-text); }
.chip.is-copied { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip.is-copied .icon { color: var(--green); transform: scale(1.1); }
.chip--secret .chip-text { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.chip--secret.is-masked .chip-text { letter-spacing: .14em; }
.chip--empty { background: none; color: var(--text-3); cursor: default; padding-left: 0; }
.chip--empty:hover { background: none; border-color: transparent; }
.chip-more {
    flex: none; font-size: 11px; font-weight: 600;
    padding: 1px 7px; border-radius: 999px;
    background: var(--surface-3); color: var(--text-2);
}

.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.period { color: var(--text-3); font-size: 13px; margin-left: 2px; }
.price-free { color: var(--text-3); }

.renew { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.renew .icon { width: 15px; height: 15px; color: var(--text-3); }
.renew--soon { color: var(--amber); }
.renew--soon .icon { color: var(--amber); }
.renew--past { color: var(--red); }
.renew--past .icon { color: var(--red); }
.muted { color: var(--text-3); }

/* Durum rozetleri */
.badge {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    height: 20px; padding: 0 8px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--aktif { background: var(--green-soft); color: var(--green); }
.badge--aboneliksiz { background: var(--amber-soft); color: var(--amber); }
.badge--warn { background: var(--amber-soft); color: var(--amber); }
.badge--kapali { background: var(--gray-soft); color: var(--gray); }

/* Masaüstü tablo görünümü */
@media (min-width: 880px) {
    .table-head, .row {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.35fr) minmax(0, 1fr) 112px 32px;
        grid-template-areas: "main cred pass price actions";
        align-items: center;
        gap: 16px;
        padding: 10px 12px 10px 16px;
    }
    .table-head {
        display: grid;
        padding-top: 9px; padding-bottom: 9px;
        background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
        border-bottom: 1px solid var(--border);
        font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
    }
    /* Başlıklar kopyalama alanlarının metniyle hizalı */
    .table-head > :nth-child(2), .table-head > :nth-child(3) { padding-left: 12px; }
    .table-head > :nth-child(4) { text-align: right; }
    .table-head .th-renew { display: none; }
    .row { padding-top: 11px; padding-bottom: 11px; }
    .row-cred, .row-pass, .row-actions { display: flex; }
    .row-meta { display: contents; }
    .row-price { grid-area: price; text-align: right; }
    .row-renew { display: none; text-align: left; }
    .row-actions .row-link { display: none; }
    .chip { height: 34px; }
    .row .chip--empty { padding-left: 12px; }
}
/* Fareyle kullanımda satır sade görünür: kopyala, göster ve bağlantı simgeleri satırın üzerine
   gelince (ya da klavyeyle odaklanınca) belirir. Dokunmatik ekranlarda her zaman görünür. */
@media (min-width: 880px) and (hover: hover) {
    .row .chip:not(.chip--empty) { background: transparent; }
    .row .chip .icon, .row [data-reveal], .row .row-link, .row .row-go { opacity: 0; transition: opacity .15s, color .15s, transform .15s; }
    .row:hover .chip:not(.chip--empty), .row:focus-within .chip:not(.chip--empty) { background: var(--surface-2); }
    .row:hover .chip .icon, .row:focus-within .chip .icon,
    .row:hover [data-reveal], .row:focus-within [data-reveal],
    .row:hover .row-link, .row:focus-within .row-link,
    .row:hover .row-go, .row:focus-within .row-go { opacity: 1; }
    .row .chip:not(.chip--empty):hover { background: var(--accent-soft); }
    .row .chip.is-copied:not(.chip--empty) { background: var(--green-soft); }
    .row .chip.is-copied .icon { opacity: 1; }
}
@media (min-width: 1140px) {
    .table-head, .row {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr) 112px 136px 68px;
        grid-template-areas: "main cred pass price renew actions";
    }
    .row-renew { display: block; grid-area: renew; }
    .table-head .th-renew { display: block; }
    .row-actions .row-link { display: inline-grid; }
}

/* İskelet yükleyici */
.skeleton {
    height: 64px; margin-bottom: 8px; border-radius: var(--radius);
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite linear;
}

/* Boş durum */
.empty { text-align: center; padding: 64px 16px; color: var(--text-3); }
.empty > .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.empty-title { margin: 12px 0 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.empty-text { margin: 0; }

/* ---------- Detay paneli ---------- */
.scrim {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(10, 12, 18, .38);
    animation: fade .18s ease-out;
}
.drawer {
    position: fixed; z-index: 41; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 480px;
    display: flex; flex-direction: column;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: slide-in .22s cubic-bezier(.2, .8, .2, 1);
}
/* Üst kenarda marka geçişi; başlığın arkasında hafif mavi ışık */
.drawer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1;
    background: linear-gradient(90deg, var(--brand), var(--brand-navy));
}
.drawer-head {
    display: flex; align-items: flex-start; gap: 14px; padding: 24px 20px 16px;
    background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%);
}
.drawer-title-wrap { flex: 1; min-width: 0; }
.drawer-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.drawer-sub { margin: 2px 0 8px; color: var(--text-2); }
.drawer-toolbar { display: flex; gap: 8px; padding: 0 20px 16px; border-bottom: 1px solid var(--border); }
.drawer-toolbar .btn { height: 36px; padding: 0 12px; }
.drawer-toolbar .spacer { flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 32px; overscroll-behavior: contain; }

.section { padding: 18px 0 4px; }
.section + .section { border-top: 1px solid var(--border); }
.section-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

.cred-card {
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.cred-card .chip { background: var(--surface); }
.cred-card .chip:hover { background: var(--accent-soft); }
.cred-card .chip--empty, .cred-card .chip--empty:hover { background: none; }
.cred-card-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.cred-line { display: flex; align-items: center; gap: 4px; }
.cred-line + .cred-line { margin-top: 6px; }
.cred-line-key { flex: none; width: 64px; font-size: 12px; color: var(--text-3); }

.kv { display: grid; grid-template-columns: 128px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-copy { display: inline-flex; align-items: center; gap: 4px; }

.notes { margin: 0; white-space: pre-line; color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }

.codes {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px;
    margin: 0 0 10px; padding: 0; list-style: none;
}
.codes li { font-family: var(--mono); font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: 7px; }

.drawer-foot { font-size: 12px; color: var(--text-3); padding-top: 20px; }

/* ---------- Modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 50;
    display: grid; place-items: end center;
    background: rgba(10, 12, 18, .45);
    animation: fade .18s ease-out;
}
.modal-card {
    width: 100%; max-height: 94vh; max-height: 94dvh;
    display: flex; flex-direction: column;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow-lg);
    animation: rise .22s cubic-bezier(.2, .8, .2, 1);
}
.modal-card--sm { max-width: 440px; }
.modal-card > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal-text { margin: 0; color: var(--text-2); }

@media (min-width: 640px) {
    .modal { place-items: center; padding: 24px; }
    .modal-card { max-width: 760px; max-height: 88vh; border-radius: 18px; }
    .modal-card--sm { max-width: 440px; }
}

.form { display: flex; flex-direction: column; gap: 30px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
/* Bölüm başlığı alan etiketlerinden ayrışsın: küçük büyük harf, vurgu rengi ve uzayan çizgi */
.fieldset-title {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin: 0 0 14px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.fieldset-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid-2, .grid-3 { display: grid; gap: 14px; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .span-2 { grid-column: span 2; }
}

.cred-rows { display: grid; gap: 10px; }
.cred-row {
    display: grid; gap: 8px;
    grid-template-columns: 1fr auto;
    padding: 12px; border-radius: var(--radius);
    background: var(--surface-2);
}
.cred-row .input { background: var(--surface); }
.cred-row-fields { display: grid; gap: 8px; }
@media (min-width: 640px) {
    .cred-row { align-items: center; padding: 8px; }
    .cred-row-fields { grid-template-columns: 120px 1fr 1fr; }
}
.btn-add { justify-self: start; height: 34px; padding: 0 10px; color: var(--accent-text); }
.btn-add:hover { background: var(--accent-soft); }

/* ---------- Bildirimler ---------- */
.toasts {
    position: fixed; z-index: 60; left: 50%; bottom: 24px;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
    width: max-content; max-width: calc(100% - 32px);
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 12px;
    background: var(--text); color: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    animation: toast-in .2s cubic-bezier(.2, .8, .2, 1);
}
.toast .icon { width: 18px; height: 18px; color: var(--green); }
.toast--error .icon { color: var(--red); }
.toast-sub { color: color-mix(in srgb, var(--bg) 60%, var(--text)); font-weight: 400; }
.toast.is-leaving { animation: toast-out .18s ease-in forwards; }

/* ---------- Animasyonlar ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(6px); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash { from { background: var(--accent-soft); } }

/* ==========================================================================
   Ödeme raporu
   ========================================================================== */
.btn-back { padding-left: 8px; margin-left: -8px; }
#btn-report[aria-current="page"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
@media (max-width: 479px) { #btn-report { width: 40px; padding: 0; } }

.report-head { display: grid; gap: 14px; margin-bottom: 20px; }
.report-head .btn-back { justify-self: start; }
.report-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.report-sub { margin: 4px 0 0; color: var(--text-3); }
/* Kur kaynağı: tüm TL tutarları buna bağlı olduğu için başlığın altında durur */
.report-meta { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.report-meta .icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.report-notice { margin: -4px 0 16px; }
.link-btn { padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
.link-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search--sm { height: 40px; width: 220px; max-width: 100%; }
.count-pill { padding: 1px 8px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 500; color: var(--text-2); }
.report-empty { margin: 16px 0 4px; text-align: center; }
.renewal-in { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.renewal-in--soon { color: var(--amber); }
.show-more { margin-top: 6px; }
.show-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (max-width: 639px) {
    .card-tools, .search--sm { width: 100%; }
    .search--sm { flex: 1 1 100%; }
    .renewal-in { display: inline; margin: 0 0 0 8px; }
}

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
    padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.kpi-label { font-size: 13px; color: var(--text-2); }
.kpi-value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
@media (min-width: 880px) {
    .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .kpi { padding: 20px; }
    .kpi-value { font-size: 30px; }
}

.card {
    margin-bottom: 16px; padding: 18px 16px; min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
@media (min-width: 760px) { .card { padding: 22px 24px; } }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.card-foot { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* Seri anahtarı: çubuk grafik olduğu için dikdörtgen */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-swatch { width: 10px; height: 10px; border-radius: 3px; }
.viz-key-1 { background: var(--viz-1); }
.viz-key-2 { background: var(--viz-2); }

.viz-box { position: relative; }
.viz { display: block; overflow: visible; font-family: var(--font); }
.viz-grid { stroke: var(--border); stroke-width: 1; }
.viz-axis { stroke: var(--border-strong); stroke-width: 1; }
.viz-tick { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--text); font-size: 12px; font-weight: 600; }
.viz-s1 { fill: var(--viz-1); }
.viz-s2 { fill: var(--viz-2); }
.viz-hit { fill: transparent; }
.viz-col { outline: none; }
.viz-col path { transition: opacity .12s; }
.viz-box:has(.viz-col.is-active) .viz-col:not(.is-active) path { opacity: .45; }
.viz-col:focus-visible .viz-hit { fill: var(--accent-soft); }

.viz-tip {
    position: absolute; z-index: 2; min-width: 190px; max-width: 280px; pointer-events: none;
    padding: 10px 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; color: var(--text-2);
}
.viz-tip-head { color: var(--text-3); }
.viz-tip-total { display: block; margin: 2px 0 6px; font-size: 16px; color: var(--text); }
.viz-tip-row { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 8px; padding: 2px 0; }
.viz-tip-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-key { width: 12px; height: 2px; border-radius: 1px; }
.viz-tip-names { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); color: var(--text-2); }
.viz-tip-renewal { display: flex; justify-content: space-between; gap: 12px; }
.viz-tip-renewal span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-tip-renewal b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Grafiğin altındaki yenileme listesi: tarih · ad/açıklama · tutar */
.renewals { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.renewals-title { margin: 0; font-size: 14px; font-weight: 600; }
.renewals-sub { margin: 4px 0 10px; font-size: 13px; color: var(--text-3); }
.renewal-list { list-style: none; margin: 0 -10px; padding: 0; }
.renewal {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; width: 100%;
    padding: 10px; text-align: left; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; color: inherit; font: inherit;
}
/* Ayırıcı çizgi metinle hizalı başlar (liste, üzerine gelme zemini için 10px taşar) */
.renewal-list li + li { background: linear-gradient(var(--border), var(--border)) 10px 0 / calc(100% - 20px) 1px no-repeat; }
.renewal:hover { background: var(--surface-2); }
.renewal:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.renewal-date { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.renewal-main, .renewal-amount { display: grid; gap: 2px; min-width: 0; }
.renewal-name { font-size: 13.5px; font-weight: 500; }
.renewal-sub { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.renewal-amount { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 639px) {
    .renewal { grid-template-columns: minmax(0, 1fr) auto; }
    .renewal-date { grid-column: 1 / -1; font-size: 12px; }
}

.table-scroll { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th { padding: 8px 10px; text-align: left; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.rtable td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; font-weight: 600; }
.rtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable th:first-child, .rtable td:first-child { padding-left: 0; }
.rtable th:last-child, .rtable td:last-child { padding-right: 0; }
.rtable--items tbody tr { cursor: pointer; }
.rtable--items tbody tr:hover td { background: var(--surface-2); }
.rtable--items tbody tr:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.rt-name { font-weight: 500; color: var(--text); }
.rt-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.rtable .badge { margin-left: 6px; vertical-align: 1px; }
.badge--var { background: var(--surface-3); color: var(--text-2); }
.rtable--cost tfoot td { color: var(--text); }
.show-md { display: none; }
@media (max-width: 759px) {
    .hide-md { display: none; }
    .rt-sub.show-md { display: block; }
    .rtable th { white-space: normal; vertical-align: bottom; }
    .rtable { font-size: 12px; }
    .rtable th, .rtable td { padding-left: 6px; padding-right: 6px; }

    /* Dar ekranda maliyet tablosu satır kartına dönüşür: ad üstte, dört dönem altında yan yana */
    .rtable--cost, .rtable--cost tbody, .rtable--cost tfoot { display: block; }
    .rtable--cost thead { display: none; }
    .rtable--cost tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .rtable--cost tbody tr:last-child { border-bottom: 0; }
    .rtable--cost tfoot tr { border-top: 1px solid var(--border-strong); border-bottom: 0; }
    .rtable--cost td, .rtable--cost tfoot td { padding: 0; border: 0; }
    .rtable--cost .rt-main { grid-column: 1 / -1; }
    .rtable--cost td.hide-md { display: none; }
    .rtable--cost td.num { text-align: left; font-size: 13px; }
    .rtable--cost td.num::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11px; font-weight: 400; color: var(--text-3); }
    .rtable--items.rtable--cost tbody tr:hover td { background: none; }
    .rtable--items.rtable--cost tbody tr:hover { background: var(--surface-2); }
}

/* En pahalı abonelikler: geniş ekranda ad · çubuk · tutar tek satırda; dar ekranda ad ve tutar üstte, çubuk altta.
   Tek seri olduğu için lejant yok, değerler doğrudan yazılır. Taban düz, veri ucu 4px yuvarlatılmış. */
.costbars { list-style: none; margin: 0 -10px; padding: 0; display: grid; gap: 2px; }
.costbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; width: 100%;
    padding: 8px 10px; text-align: left; background: none; border: 0; border-radius: var(--radius-sm);
    color: inherit; font: inherit; cursor: pointer;
}
.costbar-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.costbar-hint { margin-left: 6px; font-size: 12px; color: var(--text-3); }
.costbar-track { grid-column: 1 / -1; grid-row: 2; height: 12px; }
.costbar-fill { display: block; height: 100%; width: var(--w); min-width: 2px; background: var(--viz-1); border-radius: 0 4px 4px 0; transition: opacity .12s; }
.costbar-value { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.costbar-pct { display: inline-block; min-width: 3.2em; margin-left: 6px; font-weight: 400; color: var(--text-3); }
.costbar:hover, .costbar.is-active { background: var(--surface-2); }
.costbar:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.costbars:has(.costbar.is-active) .costbar:not(.is-active) .costbar-fill { opacity: .45; }
@media (min-width: 760px) {
    .costbar { grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 180px; }
    .costbar-track { grid-column: auto; grid-row: auto; }
}

/* İnce çubuk: dolu kısım vurgu rengi, iz aynı rengin açık tonu */
.meter { height: 6px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--w); min-width: 2px; border-radius: 3px; background: var(--viz-1); }

.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.hbar-label { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-value { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-value .muted { font-weight: 400; margin-left: 4px; }
.hbar-track { grid-column: 1 / -1; height: 12px; }
/* Taban düz, veri ucu 4px yuvarlatılmış */
.hbar-fill { display: block; height: 100%; width: var(--w); min-width: 2px; background: var(--viz-1); border-radius: 0 4px 4px 0; }

.skeleton--lg { height: 140px; }

/* ==========================================================================
   Kullanıcılar
   ========================================================================== */
.users-page .report-head .btn-primary { justify-self: start; }
@media (min-width: 760px) {
    .users-page .report-head { grid-template-columns: 1fr auto; align-items: end; }
    .users-page .report-head .btn-back { grid-column: 1 / -1; }
}
.card--flush { padding: 0; overflow: hidden; }
.user-list { list-style: none; margin: 0; padding: 0; }
.user-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center;
    padding: 16px; border-bottom: 1px solid var(--border);
}
.user-row:last-child { border-bottom: 0; }
.user-info { min-width: 0; }
.user-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.user-meta { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.user-meta-sep { margin: 0 6px; }
.user-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.btn-sm { height: 34px; padding: 0 10px; gap: 6px; font-size: 13px; border-radius: 9px; }
.btn-sm .icon { width: 16px; height: 16px; }
.badge--self { background: var(--accent-soft); color: var(--accent-text); }
.badge--self::before { display: none; }
.badge--locked { background: var(--red-soft); color: var(--red); }
.badge--locked::before { display: none; }
.badge--locked .icon { width: 12px; height: 12px; }
.users-foot { display: flex; gap: 8px; margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.users-foot .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
@media (min-width: 760px) {
    .user-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 16px 20px; }
    .user-actions { grid-column: auto; justify-content: flex-end; }
}

/* ==========================================================================
   İki adımlı doğrulama
   ========================================================================== */
#user-menu { min-width: 268px; }
.menu-badge {
    margin-left: auto; padding: 1px 8px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; background: var(--gray-soft); color: var(--gray);
}
.menu-badge--on { background: var(--green-soft); color: var(--green); }

.badge--2fa { background: var(--green-soft); color: var(--green); }
.badge--2fa::before { display: none; }
.badge--2fa .icon { width: 12px; height: 12px; }
.badge--no2fa { background: var(--gray-soft); color: var(--gray); }
.badge--no2fa::before { display: none; }

.input--otp { font-family: var(--mono); font-size: 16px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.input--otp::placeholder { letter-spacing: .04em; }

.tfa-hero { display: flex; gap: 14px; align-items: flex-start; }
.tfa-hero-icon, .tfa-status-icon {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px;
    background: var(--brand-gradient); color: #fff;
    box-shadow: 0 10px 22px -10px rgba(0, 112, 230, .55);
}
.tfa-hero-icon .icon, .tfa-status-icon .icon { width: 22px; height: 22px; }
.tfa-hero-title, .tfa-status-title { margin: 2px 0 4px; font-size: 15px; font-weight: 600; color: var(--text); }
.tfa-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.tfa-list li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.tfa-list .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--green); }
.tfa-list strong { color: var(--text); font-weight: 600; }

.tfa-status { display: flex; gap: 14px; align-items: center; }
.tfa-status-icon { background: linear-gradient(145deg, #34d399, #16875a); box-shadow: 0 10px 22px -10px rgba(22, 135, 90, .6); }
.tfa-status-title { color: var(--green); }
.tfa-status-sub { margin: 0; font-size: 13px; color: var(--text-2); }
.tfa-codes-left { display: grid; gap: 8px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.tfa-codes-left-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.tfa-codes-left-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.tfa-codes-left .meter > span { background: var(--green); }
.tfa-codes-left.is-low .meter > span { background: var(--amber); }
.tfa-codes-warn { display: flex; gap: 8px; margin: 2px 0 0; font-size: 12.5px; color: var(--amber); }
.tfa-codes-warn .icon { width: 15px; height: 15px; margin-top: 1px; }
.tfa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tfa-actions .btn { flex: 1 1 auto; }

.tfa-steps { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.tfa-steps > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.tfa-step-num {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700;
}
.tfa-step-body { display: grid; gap: 8px; min-width: 0; padding-top: 3px; }
.tfa-step-body > strong { font-weight: 600; color: var(--text); }
.tfa-step-body > span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.tfa-step-body .field-label { display: none; }

/* QR kod her temada beyaz zeminde: okuyucular koyu kare / açık zemin bekler */
.qr-wrap {
    justify-self: start; padding: 10px; border-radius: 14px; background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.qr { display: block; width: 184px; height: 184px; }
.tfa-manual { font-size: 13px; color: var(--text-2); }
.tfa-manual summary { cursor: pointer; width: fit-content; color: var(--accent-text); font-weight: 500; }
.tfa-manual p { margin: 8px 0; line-height: 1.5; }
.secret-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
.secret-chip code { padding: 0; background: none; font-size: 13.5px; letter-spacing: .06em; color: var(--text); overflow-wrap: anywhere; }
.secret-chip .icon-btn.is-copied { color: var(--green); }

.tfa-done { display: flex; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 13px; line-height: 1.5; font-weight: 500; }
.tfa-done .icon { width: 18px; height: 18px; margin-top: 1px; }
.recovery-codes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; padding: 14px;
    list-style: none; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong);
    counter-reset: code;
}
.recovery-codes li { display: flex; align-items: baseline; gap: 6px; counter-increment: code; }
.recovery-codes li::before { content: counter(code) "."; width: 18px; font-size: 11px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.recovery-codes code { padding: 0; background: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.recovery-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.recovery-tools .btn.is-copied { color: var(--green); }
.recovery-confirm { margin-top: 14px; font-weight: 500; color: var(--text); }

/* ==========================================================================
   Portal ana sayfası
   ========================================================================== */
/* Karşılama alanı: giriş ekranındaki koyu marka paneliyle aynı dil (her temada koyu).
   Sağda büyük, silik ZK logosu; arkada ışık ve maskeyle silikleşen ızgara. */
.home-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; gap: 18px; margin: 0 0 30px; padding: 26px 22px 22px;
    border-radius: 22px; color: #fff;
    background:
        radial-gradient(60% 90% at 88% 10%, rgba(0, 130, 255, .45), transparent 70%),
        radial-gradient(50% 80% at 0% 100%, rgba(48, 28, 115, .6), transparent 70%),
        linear-gradient(160deg, #031f51 0%, #061742 55%, #020a24 100%);
    box-shadow: 0 24px 48px -28px rgba(3, 31, 81, .7);
}
.home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px;
    -webkit-mask-image: radial-gradient(80% 120% at 85% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(80% 120% at 85% 0%, #000 10%, transparent 70%);
}
.home-hero-mark {
    position: absolute; z-index: -1; right: -50px; bottom: -80px; width: 250px; height: auto;
    opacity: .08; pointer-events: none; user-select: none;
}
.home-hero-text { max-width: 620px; }
.home-hero-eyebrow { color: rgba(255, 255, 255, .72); }
.home-hero-title { margin: 8px 0 0; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.home-hero-lead { margin: 10px 0 0; color: rgba(255, 255, 255, .74); line-height: 1.55; }
.home-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-hero-meta li {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 11px;
    border-radius: 999px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.home-hero-meta .icon { width: 15px; height: 15px; color: #7cbcff; }
@media (min-width: 760px) {
    .home-hero { gap: 26px; padding: 40px 44px 36px; border-radius: 26px; }
    .home-hero-title { font-size: clamp(32px, 3.4vw, 42px); }
    .home-hero-lead { font-size: 15px; }
}
/* Geniş ekranda logo sağda tam görünür; dar ekranda köşede kırpılı ve silik kalır (metnin üstüne binmez) */
@media (min-width: 1080px) {
    .home-hero-mark { right: 56px; bottom: auto; top: 50%; width: 210px; transform: translateY(-50%); opacity: .14; }
}

.home-section-title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.home-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.module-grid + .home-section-title { margin-top: 36px; }

.module-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .module-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } }
.module-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 16px; padding: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    color: inherit; text-decoration: none !important;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* Üzerine gelince kartın köşesinden marka mavisi ışık yayılır */
.module-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(90% 70% at 0% 0%, var(--accent-soft), transparent 70%);
    opacity: 0; transition: opacity .2s;
}
.module-card:hover, .module-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    box-shadow: 0 18px 40px -22px rgba(0, 82, 180, .45);
    transform: translateY(-2px);
}
.module-card:hover::before, .module-card:focus-visible::before { opacity: 1; }
.module-card:focus-visible { outline: none; box-shadow: var(--ring); }
.module-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.module-card-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
    background: var(--brand-gradient); color: #fff;
    box-shadow: 0 12px 24px -12px rgba(0, 112, 230, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.module-card-icon .icon { width: 24px; height: 24px; }
.module-card-go {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); color: var(--text-3);
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.module-card-go .icon { width: 17px; height: 17px; }
.module-card:hover .module-card-go, .module-card:focus-visible .module-card-go {
    background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateX(2px);
}
.module-card-body { display: grid; gap: 5px; }
.module-card-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.module-card-desc { color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
.module-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.module-card-stat { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.badge--role { background: var(--accent-soft); color: var(--accent-text); }
.badge--role::before { display: none; }

.admin-links { display: grid; gap: 10px; }
@media (min-width: 640px) { .admin-links { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; } }
.admin-link {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; width: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    color: inherit; text-decoration: none !important; font: inherit; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.admin-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.admin-link-icon {
    display: grid !important; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
}
.admin-link-icon .icon { width: 19px; height: 19px; }
.admin-link > span:not(.admin-link-icon) { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; color: var(--text-3); }
.admin-link strong { font-size: 14px; color: var(--text); font-weight: 600; }
.admin-link-go { width: 18px; height: 18px; color: var(--text-3); flex: none; transition: transform .15s, color .15s; }
.admin-link:hover .admin-link-go { color: var(--accent); transform: translateX(2px); }

/* Kullanıcı satırında modül erişimleri */
.user-access { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.access {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
    border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.access b { font-weight: 600; color: var(--text); }
.access .icon { width: 13px; height: 13px; }
.access--admin { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 600; }
.access--none { color: var(--text-3); font-style: italic; }

/* Yetki formu */
.perms { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.perm-admin { align-items: flex-start; }
.perm-admin > span { display: grid; gap: 2px; }
.perm-admin .muted { font-size: 12px; }
.perm-modules { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.perm-row { display: grid; gap: 6px; }
.perm-row .select:disabled { opacity: .5; }
.perm-hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 11.5px; color: var(--text-3); }
.perm-hints b { font-weight: 600; color: var(--text-2); }
.audit-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
