/* ══════════════════════════════════════════════════════════════════════════
   NeydiNeOldu — "Koyu + Altın" tasarım sistemi (ADR-024)
   Obsidyen zemin, metalik altın vurgu, parıltılı ("çil çil") grafik.
   Tek dosya, elle yazılmış. Tailwind yok.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Obsidyen zemin */
    --ob-950: #07090D;
    --ob-900: #0B0E14;
    --ob-850: #10141D;
    --ob-800: #161B26;
    --ob-700: #222938;

    --bg: #080A0F;
    --surface: #10141D;

    /* Metin */
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --line: #1E293B;
    --line-strong: #334155;

    /* Altın */
    --gold-100: #FFF7D6;
    --gold-200: #FEECA8;
    --gold-300: #FED867;
    --gold-400: #F9BE28;
    --gold-500: #E6A817;
    --gold-600: #C68B0A;
    --gold-700: #9E6A05;
    --gold-glow: #FFD700;
    --gold-metallic: #D4AF37;

    --pos: #34D399;
    --pos-dim: #10B981;
    --neg: #FB7185;
    --neg-dim: #F43F5E;

    --gold-text-gradient: linear-gradient(135deg, #FFF9D2 0%, #FFDF6D 25%, #E5A91A 60%, #B88106 100%);
    --gold-btn-gradient: linear-gradient(90deg, #E6A817 0%, #C68B0A 100%);
    --gold-line-gradient: linear-gradient(135deg, rgba(255, 230, 128, 0.45), rgba(212, 175, 55, 0.12), rgba(184, 129, 6, 0.32));

    --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.8), inset 0 1px 1px 0 rgba(254, 216, 103, 0.14);
    --shadow-glow: 0 0 25px -4px rgba(230, 168, 23, 0.4), 0 0 10px -2px rgba(255, 215, 0, 0.28);

    --font-heading: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

    --radius: 16px;
    --radius-lg: 22px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;

    --header-h: 65px;
}

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

html, body { height: 100%; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.15), transparent 45%),
        radial-gradient(circle at 10% 40%, rgba(243, 186, 47, 0.06), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-2);
    color: #fff;
}

p { margin: 0 0 var(--space-3); }

a {
    color: var(--gold-300);
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 168, 23, 0.35);
}
a:hover { color: var(--gold-200); border-bottom-color: var(--gold-400); }

input, select, button, textarea { font-family: var(--font-body); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
::selection { background: var(--gold-500); color: var(--ob-950); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ── Yardımcılar ── */

.kicker {
    margin: 0 0 var(--space-3);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.text-muted { color: var(--text-muted); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.gold-text {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.coin-badge {
    background: radial-gradient(circle at 35% 30%, #FFEFA3 0%, #D49D14 55%, #8C5F03 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 999px;
}

.gold-border { position: relative; }
.gold-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gold-line-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card {
    position: relative;
    background: linear-gradient(to bottom, var(--ob-800), var(--ob-850));
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(230, 168, 23, 0.22);
    background: rgba(230, 168, 23, 0.12);
    color: var(--gold-300);
    font-family: var(--font-mono);
}
.pill-pos { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.28); color: var(--pos); }
.pill-neg { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.28); color: var(--neg); }

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
    50% { transform: translateY(-4px) scale(1.12); opacity: 1; filter: drop-shadow(0 0 6px var(--gold-glow)); }
}
.sparkle { animation: sparkleFloat 3.5s ease-in-out infinite; }

/* ── App shell ── */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: 0 var(--space-8);
    background: rgba(11, 14, 20, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 168, 23, 0.18);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-h);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 14px 0;
    border: 0;
    color: inherit;
    text-decoration: none;
}
.app-brand .mark {
    width: 26px;
    height: 26px;
    flex: none;
    background: radial-gradient(circle at 35% 30%, #FFEFA3 0%, #D49D14 55%, #8C5F03 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}
.app-brand .word {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.app-nav { display: flex; align-items: center; gap: var(--space-1); }
.app-nav a,
.app-nav .nav-tab {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
}
.app-nav a:hover, .app-nav .nav-tab:hover { background: rgba(230, 168, 23, 0.08); color: #fff; }
.app-nav a.active,
.app-nav a[aria-current="page"] {
    background: rgba(230, 168, 23, 0.14);
    color: var(--gold-300);
    border: 1px solid rgba(230, 168, 23, 0.28);
}

.app-main { flex: 1; }

/* ── Form controls ── */

.f-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px var(--space-6);
}

.f-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.f-field > span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}
.f-input {
    appearance: none;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-strong);
    background: var(--ob-950);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.f-input::placeholder { color: var(--text-dim); font-weight: 400; }
.f-input:focus-visible { border-color: var(--gold-400); outline: none; box-shadow: 0 0 0 1px rgba(249, 190, 40, 0.4); }
select.f-input option { background: var(--ob-850); color: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid transparent;
    background: var(--gold-btn-gradient);
    color: var(--ob-950);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--ob-950); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-block { width: 100%; }
.btn-ghost {
    background: transparent;
    color: var(--gold-300);
    border-color: rgba(230, 168, 23, 0.35);
    box-shadow: none;
}
.btn-ghost:hover { background: rgba(230, 168, 23, 0.1); color: var(--gold-200); border-color: var(--gold-400); filter: none; }
.btn-on-accent { background: var(--ob-950); color: var(--gold-300); border-color: rgba(230, 168, 23, 0.4); box-shadow: none; }
.btn-on-accent:hover { background: #000; color: var(--gold-200); filter: none; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(230, 168, 23, 0.3);
    background: rgba(230, 168, 23, 0.08);
    color: var(--gold-300);
    cursor: pointer;
    flex: none;
}
.icon-btn:hover { background: rgba(230, 168, 23, 0.16); color: var(--gold-200); }
.icon-btn svg { width: 18px; height: 18px; }

.share-btn { flex: none; padding: 9px 16px; font-size: 13px; white-space: nowrap; align-self: flex-start; }
.share-btn svg { flex: none; width: 15px; height: 15px; }

/* ── Tablo ── */

.t { width: 100%; border-collapse: collapse; }
.t th {
    text-align: left;
    padding: 12px 14px 12px 0;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}
.t td {
    padding: 11px 14px 11px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.t th.r, .t td.r { text-align: right; padding-right: 0; padding-left: 14px; }
.t td.strong { font-weight: 700; color: #fff; }
.t td.gold { color: var(--gold-300); font-weight: 700; }
.t tbody tr:hover td { background: rgba(230, 168, 23, 0.04); }
.t tbody tr.is-peak td { background: rgba(16, 185, 129, 0.06); }
.t tbody tr.is-low td { background: rgba(244, 63, 94, 0.06); }
.t tbody tr.is-current td { background: rgba(230, 168, 23, 0.1); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* ── Section rhythm ── */

.rule { height: 1px; background: var(--line-strong); border: 0; margin: var(--space-8) 0; }
.section { padding: 48px 40px 64px; max-width: 1160px; margin: 0 auto; }
.section-tight { padding: 28px 40px; max-width: 1160px; margin: 0 auto; }

/* ── KPI kartları ── */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 28px 40px;
    max-width: 1160px;
    margin: 0 auto;
}
.kpi {
    position: relative;
    background: linear-gradient(to bottom, var(--ob-800), var(--ob-850));
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.kpi::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gold-line-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kpi-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.kpi-value {
    display: flex; align-items: baseline; gap: 6px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}
.kpi-value .unit { font-size: 15px; font-weight: 700; color: var(--gold-300); font-family: var(--font-heading); }
.kpi-value.gold { color: var(--gold-300); }
.kpi-foot {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Home eski .stat-row kullanımı → kpi görünümü */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
    position: relative;
    background: linear-gradient(to bottom, var(--ob-800), var(--ob-850));
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}
.stat-label { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.stat-value {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: #fff;
}
.stat-value.neg { color: var(--neg); }

/* ── Grafik sayfası ── */

.chart-hero { padding: 44px 40px 8px; max-width: 1160px; margin: 0 auto; }
.chart-hero h1 {
    margin: 0;
    max-width: 22ch;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.chart-card {
    max-width: 1160px;
    margin: 8px auto 0;
    background: linear-gradient(to bottom, var(--ob-850), var(--ob-900) 60%, var(--ob-950));
    border: 1px solid rgba(230, 168, 23, 0.28);
    border-radius: var(--radius-lg);
    padding: 22px 26px 26px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}
.chart-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-title-row > div { min-width: 0; flex: 1 1 240px; }
.chart-title-row h2 { margin: 0; font-size: clamp(17px, 2.2vw, 22px); color: #fff; }
.chart-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }

.chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding-top: 14px; }
.chart-scroll .canvas { min-width: 720px; }
.chart-scroll .canvas svg { width: 100%; height: auto; display: block; overflow: visible; }

.chart-glow-line { filter: drop-shadow(0px 4px 12px rgba(249, 190, 40, 0.55)); }
.point-pulse { animation: pulseHalo 2.2s infinite; transform-box: fill-box; }
@keyframes pulseHalo {
    0% { r: 5; opacity: 0.85; }
    70% { r: 15; opacity: 0; }
    100% { r: 15; opacity: 0; }
}

.chart-missing { margin: 0; font-size: 12px; color: var(--gold-300); }

.insight {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-muted);
}
.insight .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold-400); flex: none; }
.insight strong { color: var(--gold-300); font-family: var(--font-mono); }

/* ── "Şu an" şeridi ── */
.now-strip {
    max-width: 1160px;
    margin: 24px auto 0;
    padding: 22px 26px;
    background: linear-gradient(to bottom, var(--ob-800), var(--ob-850));
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: relative;
}
.now-line { margin: 6px 0 0; font-size: 17px; line-height: 1.45; max-width: 62ch; color: var(--text); }
.now-line strong { font-family: var(--font-mono); font-weight: 800; color: var(--gold-300); }
.now-line .neg { color: var(--neg); font-weight: 700; }
.now-note { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

/* ── EVDS son fiyat satırı ── */
.evds-strip {
    max-width: 1160px; margin: 0 auto; padding: 10px 40px;
    font-size: 12px; color: var(--text-dim);
    display: flex; align-items: center; gap: 8px;
}
.evds-strip .live-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--pos); box-shadow: 0 0 6px var(--pos); }

/* ── Paylaş ── */
.share-sheet {
    margin-top: 18px;
    background: var(--ob-900);
    border: 1px solid rgba(230, 168, 23, 0.3);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.share-sheet h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.share-sheet .lead { margin: 0 0 14px; font-size: 12px; color: var(--text-muted); max-width: 52ch; }
.share-menu { display: flex; flex-wrap: wrap; gap: 10px; }
.share-menu .btn, .share-menu .btn-ghost { font-size: 13px; padding: 9px 14px; }
.share-field { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.share-field .f-input { min-width: 200px; flex: 1; font-size: 14px; }
.share-link-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.share-link-row .f-input { min-width: 240px; flex: 1; font-size: 13px; color: var(--text-muted); }

/* Eski .share* sınıfları — geri uyum */
.share { border-top: 1px solid var(--line); }
.share-h { margin: 0 0 8px; font-size: 20px; color: #fff; }
.share-lead { margin: 0 0 18px; max-width: 48ch; font-size: 13px; color: var(--text-muted); }
.share-form, .share-result { display: flex; flex-direction: column; gap: 14px; }
.share-link { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-link .f-input { min-width: 260px; flex: 1; font-size: 13px; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Poster bandı (altın) ── */
.poster {
    max-width: 1160px;
    margin: 32px auto 48px;
    background: linear-gradient(135deg, #C68B0A, #E6A817 45%, #FED867);
    color: var(--ob-950);
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}
.poster p {
    margin: 0;
    max-width: 26ch;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(26px, 4.4vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ob-950);
}

/* ── Maaş girişi sayfası ── */
.entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 44px 40px 64px;
}
.entry-form { min-width: 0; }
.entry-list {
    min-width: 0;
    background: linear-gradient(to bottom, var(--ob-800), var(--ob-850));
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.entry-h1 {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}
.entry-lead { margin: 18px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.entry-lead strong { color: var(--gold-300); }
.entry-note { margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: var(--text-dim); }
.form-error {
    margin: 14px 0 0;
    padding: 10px 14px;
    background: rgba(244, 63, 94, 0.1);
    color: var(--neg);
    border: 1px solid rgba(244, 63, 94, 0.28);
    border-radius: 10px;
    font-size: 13px;
}
.entry-list-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 12px;
}
.entry-list-head h2 { margin: 0; font-size: 18px; color: #fff; }
.entry-count { font-family: var(--font-mono); font-weight: 800; font-size: 20px; color: var(--gold-300); }

/* ── Bordro yükleme ── */
.bordro { margin-top: 36px; }
.bordro-lead { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); max-width: 46ch; }
.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center;
    border: 1px dashed rgba(230, 168, 23, 0.4);
    background: rgba(230, 168, 23, 0.04);
    border-radius: 12px;
    padding: 26px 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}
.dropzone:hover { border-color: var(--gold-400); color: var(--gold-300); }
.dropzone strong { font-family: var(--font-heading); font-size: 14px; color: #fff; }
.dropzone .hint { font-size: 11px; color: var(--text-dim); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bordro-status { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.bordro-warn {
    margin: 12px 0 0; padding: 10px 14px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px; line-height: 1.5; color: var(--text-muted);
}

.review { margin-top: 18px; }
.review .t td { padding: 8px 8px 8px 0; vertical-align: middle; }
.review .t td.r { padding-right: 0; padding-left: 8px; }
.r-input {
    appearance: none;
    width: 100%;
    max-width: 120px;
    border: 1px solid var(--line-strong);
    background: var(--ob-950);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-align: right;
    color: #fff;
}
.r-input.ym { max-width: 66px; }
.r-input:focus-visible { border-color: var(--gold-400); }
.review .t tr.row-bad td { background: rgba(244, 63, 94, 0.08); }
.review .t tr.row-done td { opacity: 0.5; }
.conf { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.conf.low { color: var(--neg); }
.review-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.review-msg { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }

/* ── Maaş değişikliği listesi ── */
.f-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); font-size: 11px; }
.row-del {
    border: 0; background: none; cursor: pointer;
    font-size: 18px; line-height: 1; color: var(--text-dim); padding: 2px 6px;
}
.row-del:hover { color: var(--neg); }
.row-del:disabled { opacity: 0.4; cursor: default; }

/* ── Kaydını e-postaya bağla ── */
.link-email { margin-top: 36px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.link-email-lead { margin: 8px 0 14px; font-size: 13px; line-height: 1.55; color: var(--text-muted); max-width: 48ch; }
.link-email-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-email-form .f-input { min-width: 220px; flex: 1; }
.link-email-note { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); }

/* ── Alt bilgi ── */
.app-footer {
    border-top: 1px solid var(--line);
    padding: 22px 40px;
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    background: var(--ob-950);
}
.app-footer a { color: var(--text-muted); border: 0; }
.app-footer a:hover { color: var(--gold-300); }

/* ── Responsive ── */
@media (max-width: 960px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .entry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .app-header { padding: 0 var(--space-4); }
    .section, .section-tight { padding: 24px 18px 40px; }
    .chart-hero { padding: 28px 18px 4px; }
    .chart-card { margin: 8px 12px 0; padding: 18px 16px 20px; border-radius: var(--radius); }
    .now-strip { margin: 18px 12px 0; padding: 18px; }
    .kpi-grid { padding: 20px 12px; }
    .evds-strip { padding: 8px 18px; }
    .entry-grid { padding: 24px 16px 48px; }
    .poster { margin: 24px 12px 40px; padding: 32px 20px; }
    .app-footer { padding: 18px; }
    .f-grid { grid-template-columns: 1fr; }
    /* Mobilde tutamaç sikkeleri parmakla tutulabilecek kadar büyük olmalı.
       (Grafik yatay kaydırılabilir kalır; touch-action:none tutamaçta kaymayı
       engeller, bu yüzden dikey sürükleme şeritle çakışmaz.) */
    .coin-hit { r: 36px; }
    .coin-face { r: 22px; stroke-width: 2; }
    .coin-k { font-size: 15px; }
}
@media (max-width: 460px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Meslek seçimi (kutucuk ızgarası + arama) ── */
.meslek-hero { max-width: 720px; margin: 0 auto; padding: 48px 24px 8px; }
.meslek-pick { margin-top: 22px; }
.meslek-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meslek-chip-btn {
    border: 1px solid var(--line-strong); background: var(--ob-850); color: #fff;
    border-radius: 999px; padding: 10px 16px; font-size: 14px; line-height: 1;
    cursor: pointer; transition: border-color .12s, background .12s, transform .06s;
}
.meslek-chip-btn:hover:not(:disabled),
.meslek-chip-btn:focus-visible {
    border-color: var(--gold-400); background: rgba(249, 190, 40, 0.14); outline: none;
}
.meslek-chip-btn:active:not(:disabled) { transform: scale(0.96); }
.meslek-chip-btn:disabled { opacity: 0.5; cursor: default; }
.meslek-chip-blank { border-style: dashed; color: var(--gold-300); }
.meslek-filter {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 16px; font-size: 13px; color: var(--text-muted);
}
.meslek-filter > span { white-space: nowrap; }
.meslek-filter > input { flex: 1; min-width: 200px; font-size: 15px; padding: 10px 14px; }
.meslek-empty { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }

.manual-fallback { max-width: 720px; margin: 20px auto 0; padding: 0 24px; }
.manual-fallback > summary {
    cursor: pointer; font-size: 13px; color: var(--text-muted);
    padding: 12px 0; border-top: 1px solid var(--line); list-style: none;
}
.manual-fallback > summary::before { content: "▸ "; color: var(--gold-300); }
.manual-fallback[open] > summary::before { content: "▾ "; }
.manual-fallback > summary:hover { color: var(--gold-300); }

/* ── Grafik üstünde sürükleme ── */
.chart-scroll .canvas { position: relative; }
.drag-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
/* Sikke tutamaçları kendi jestlerini yönetir — dokunurken sayfa/şerit kaymasın (mobil). */
.drag-layer .handle-coin { touch-action: none; -webkit-tap-highlight-color: transparent; }
.drag-layer .drag-catch { touch-action: none; }
.coin-hit { fill: transparent; }
.coin-face {
    fill: #FDE047; stroke: #FFF6B8; stroke-width: 2.5;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
    transition: fill .1s;
}
.handle-coin:hover .coin-face,
.handle-coin.is-dragging .coin-face { fill: #FFE875; stroke: #fff; }
.coin-k {
    fill: #5A3A0B; font-family: var(--font-mono, ui-monospace, monospace);
    font-weight: 900; text-anchor: middle; pointer-events: none;
    paint-order: stroke; stroke: rgba(255, 251, 220, 0.7); stroke-width: 2.5px;
}
.chart-hint { margin: 8px 0 0; font-size: 12px; color: var(--text-dim); }
.meslek-chip { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.link-btn {
    border: 0; background: none; cursor: pointer; padding: 0;
    color: var(--gold-300); font-size: 12px; text-decoration: underline;
}
.link-btn:hover { color: #fff; }

/* ── Yıl yıl düzelt ── */
.year-edit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.year-edit > summary { cursor: pointer; font-size: 13px; color: var(--text-muted); list-style: none; }
.year-edit > summary::before { content: "▸ "; color: var(--gold-300); }
.year-edit[open] > summary::before { content: "▾ "; }
.year-edit-grid {
    margin-top: 14px; display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.year-edit-row { display: flex; align-items: center; gap: 8px; }
.year-edit-row > span { font-family: var(--font-mono); font-weight: 700; color: var(--gold-300); font-size: 13px; }
.year-edit-row > input {
    width: 100%; min-width: 0; background: var(--ob-850); color: #fff;
    border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 9px;
    font-family: var(--font-mono); font-size: 13px;
}
.year-edit-row > input:focus-visible { border-color: var(--gold-400); outline: none; }

/* ── Blazor hata kutusu ── */
#blazor-error-ui {
    color-scheme: dark only;
    background: var(--neg-dim);
    color: #fff;
    bottom: 0; left: 0;
    padding: 12px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: none;
    font-weight: 600;
}
#blazor-error-ui .reload { color: #fff; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }
.blazor-error-boundary { background: var(--neg-dim); padding: 12px 16px; color: #fff; font-weight: 600; }
.blazor-error-boundary::after { content: "Bir hata oluştu."; }
.validation-message { color: var(--neg); font-size: 13px; }
