/* =====================================================================
   Ayşenur Hoca Akademi — Tasarım sistemi çekirdeği
   Tokenlar, sıfırlama, tipografi ve paylaşılan bileşenler.
   ===================================================================== */

:root {
    /* marka */
    --navy:        #0b1f3a;
    --navy-soft:   #14315a;
    --orange:      #f97316;
    --orange-soft: #fff2e6;
    --blue:        #2563eb;
    --blue-soft:   #eaf1ff;

    /* yüzey */
    --bg:      #f8fafc;
    --paper:   #ffffff;
    --soft:    #f1f5f9;
    --line:    #dfe5ec;
    --line-2:  #eef2f7;

    /* metin */
    --text:    #111827;
    --muted:   #5f6b7c;
    --faint:   #8d99a8;

    /* durum */
    --ok:        #157a52;
    --ok-bg:     #e8f6ef;
    --warn:      #b7791f;
    --warn-bg:   #fdf6e3;
    --bad:       #c0392b;
    --bad-bg:    #fdecea;
    --info:      #2563eb;
    --info-bg:   #eaf1ff;

    /* biçim */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, .05);
    --shadow:    0 8px 26px rgba(11, 31, 58, .08);
    --shadow-lg: 0 20px 56px rgba(11, 31, 58, .10);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Manrope', var(--font);

    --header-h: 64px;
    --sidebar-w: 244px;

    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg:      #081321;
    --paper:   #0f2034;
    --soft:    #142941;
    --line:    #29405c;
    --line-2:  #1d3350;
    --text:    #f4f7fb;
    --muted:   #aebcd0;
    --faint:   #8496ad;
    --navy:    #f4f7fb;
    --navy-soft: #c9d7e8;
    --orange-soft: #3a2312;
    --blue-soft:   #14294a;
    --ok-bg:   #10301f;
    --warn-bg: #322611;
    --bad-bg:  #34191a;
    --info-bg: #14294a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.28);
    --shadow:    0 10px 30px rgba(0,0,0,.32);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.38);
    color-scheme: dark;
}

/* ------------------------------------------------------------- sıfırlama */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* [hidden] her zaman kazanmalı — display kuralları bunu ezmesin */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(26px, 3.4vw, 40px); }
h2 { font-size: clamp(20px, 2.4vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--orange); color: #fff; }

/* ------------------------------------------------------------- yardımcı */
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(880px, 100% - 40px); margin-inline: auto; }

.stack   { display: grid; gap: 16px; }
.stack-sm{ display: grid; gap: 8px; }
.stack-lg{ display: grid; gap: 26px; }
.row     { display: flex; align-items: center; gap: 10px; }
.row-wrap{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow    { flex: 1 1 auto; min-width: 0; }
.center  { display: grid; place-items: center; }

.muted   { color: var(--muted); }
.faint   { color: var(--faint); }
.small   { font-size: 13px; }
.tiny    { font-size: 12px; }
.strong  { font-weight: 700; }
.mono    { font-variant-numeric: tabular-nums; }
.nowrap  { white-space: nowrap; }
.truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; }
.text-center{ text-align: center; }
.hidden  { display: none !important; }

.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--orange);
}
.eyebrow-blue { color: var(--blue); }
.eyebrow-muted { color: var(--muted); }

.tone-ok   { color: var(--ok); }
.tone-warn { color: var(--warn); }
.tone-bad  { color: var(--bad); }
.tone-info { color: var(--info); }

/* ------------------------------------------------------------------ kart */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.card-pad   { padding: 20px; }
.card-pad-sm{ padding: 14px; }
.card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.card-head h2, .card-head h3 { font-size: 17px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--soft); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-hover { transition: transform .16s ease, box-shadow .16s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ buton */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--navy);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .12s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { border-color: var(--navy-soft); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #ea6a0c; border-color: #ea6a0c; }

.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
:root[data-theme="dark"] .btn-navy { color: #0b1f3a; }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--soft); }

.btn-soft { background: var(--soft); border-color: transparent; }
.btn-soft:hover { background: var(--line-2); }

.btn-warn { background: var(--orange-soft); border-color: #f6c79b; color: #9a4a08; }
.btn-danger { background: var(--bad-bg); border-color: #f0b7b1; color: var(--bad); }
.btn-ok { background: var(--ok-bg); border-color: #a9dcc6; color: var(--ok); }

.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 50%; }

/* ------------------------------------------------------------------ rozet */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 12px; font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.badge-ok    { background: var(--ok-bg);   border-color: transparent; color: var(--ok); }
.badge-warn  { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.badge-bad   { background: var(--bad-bg);  border-color: transparent; color: var(--bad); }
.badge-info  { background: var(--info-bg); border-color: transparent; color: var(--info); }
.badge-orange{ background: var(--orange-soft); border-color: transparent; color: #9a4a08; }
.badge-navy  { background: var(--navy); border-color: transparent; color: #fff; }
:root[data-theme="dark"] .badge-navy { color: #0b1f3a; }

/* --------------------------------------------------------------- istatistik */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.stat {
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.stat-label {
    font-size: 11px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--faint);
}
.stat-value {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 27px; font-weight: 800; line-height: 1.1;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.stat-value.sm { font-size: 21px; }
.stat-note { margin-top: 3px; font-size: 12px; color: var(--muted); }
.stat-accent { border-color: #f6c79b; background: var(--orange-soft); }
.stat-accent .stat-value { color: #9a4a08; }

/* -------------------------------------------------------------------- form */
.field { display: grid; gap: 6px; }
.field > label, .label {
    font-size: 13px; font-weight: 600; color: var(--navy);
}
.label-hint { font-weight: 400; color: var(--faint); font-size: 12px; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--text);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:disabled, .select:disabled { background: var(--soft); color: var(--faint); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input-sm { padding: 6px 9px; font-size: 13px; }
.input-num { text-align: center; font-variant-numeric: tabular-nums; }
.input.has-error, .select.has-error { border-color: var(--bad); }

.field-error { font-size: 12px; color: var(--bad); }
.field-help  { font-size: 12px; color: var(--muted); }

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

.check {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.check:hover { border-color: var(--blue); }
.check input { margin-top: 3px; accent-color: var(--orange); }
.check-title { font-size: 14px; font-weight: 600; }
.check-desc  { font-size: 12px; color: var(--muted); }
.check:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
:root[data-theme="dark"] .check:has(input:checked) { background: #2a1d10; }

/* ------------------------------------------------------------------- tablo */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
.table { font-size: 14px; }
.table th {
    padding: 10px 14px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}
.table td { padding: 11px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: var(--soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-compact th, .table-compact td { padding: 7px 10px; }

/* -------------------------------------------------------------- ilerleme */
.progress {
    height: 8px;
    background: var(--soft);
    border-radius: 999px;
    overflow: hidden;
}
.progress > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--ok), var(--orange));
    border-radius: 999px;
    transition: width .4s ease;
}
.progress-thin { height: 5px; }
.progress-blue > span { background: var(--blue); }

.ring {
    --size: 62px; --pct: 0;
    width: var(--size); height: var(--size);
    border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--orange) calc(var(--pct) * 1%), var(--soft) 0);
    position: relative;
}
.ring::before {
    content: ''; position: absolute; inset: 6px;
    background: var(--paper); border-radius: 50%;
}
.ring > span { position: relative; font-size: 13px; font-weight: 800; color: var(--navy); }

/* ------------------------------------------------------------------ avatar */
.avatar {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px; font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
:root[data-theme="dark"] .avatar { background: var(--blue); }

/* ------------------------------------------------------------------- flash */
.flash-stack {
    position: fixed; top: 76px; right: 18px; z-index: 80;
    display: grid; gap: 8px; width: min(360px, calc(100vw - 36px));
}
.flash {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--r);
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: 14px;
    animation: flash-in .25s ease;
}
.flash-success { border-left-color: var(--ok);    background: var(--ok-bg); }
.flash-error   { border-left-color: var(--bad);   background: var(--bad-bg); }
.flash-warning { border-left-color: var(--warn);  background: var(--warn-bg); }
.flash-info    { border-left-color: var(--blue);  background: var(--info-bg); }
.flash button  { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; }
@keyframes flash-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.alert {
    display: flex; gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--soft);
    font-size: 14px;
}
.alert-warn { background: var(--warn-bg); border-color: #ecd9a8; color: #7a5a12; }
.alert-info { background: var(--info-bg); border-color: #c3d7fb; }
.alert-ok   { background: var(--ok-bg);   border-color: #a9dcc6; }
.alert-bad  { background: var(--bad-bg);  border-color: #f0b7b1; }

/* -------------------------------------------------------------- boş durum */
.empty {
    display: grid; gap: 10px; justify-items: center;
    padding: 44px 24px;
    text-align: center;
    color: var(--muted);
}
.empty-icon { font-size: 34px; opacity: .5; }
.empty h3 { font-size: 16px; color: var(--navy); }

/* ----------------------------------------------------------------- sekmeler */
.tabs {
    display: flex; gap: 4px;
    padding: 4px;
    background: var(--soft);
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.tab:hover { color: var(--navy); text-decoration: none; }
.tab.is-active { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .tab.is-active { background: var(--blue); color: #fff; }

/* ------------------------------------------------------------------- modal */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 90;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(11, 31, 58, .55);
    backdrop-filter: blur(3px);
    animation: fade-in .15s ease;
}
.modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modal-in .2s ease;
}
.modal-lg { width: min(1020px, 100%); }
.modal-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--line-2);
}
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 9px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- akordiyon */
.accordion { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.accordion + .accordion { margin-top: 8px; }
.accordion > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: '+'; font-size: 20px; color: var(--orange); line-height: 1; }
.accordion[open] > summary::after { content: '–'; }
.accordion > div { padding: 0 18px 16px; color: var(--muted); }


/* =====================================================================
   Paylaşılan bileşenler (hem tanıtım sayfası hem panel kullanır)
   ===================================================================== */

/* ----------------------------------------------------------- plan tablosu */
.plan-week { display: grid; gap: 10px; }
.plan-day {
    display: grid; grid-template-columns: 44px minmax(0, 1fr);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.plan-day-label {
    display: grid; place-items: center;
    padding: 12px 0;
    color: #fff; font-size: 12px; font-weight: 700;
    writing-mode: vertical-rl; transform: rotate(180deg);
    letter-spacing: .04em;
}
.plan-day-tasks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 10px; padding: 10px;
    min-width: 0;
}
.plan-task {
    display: grid; gap: 6px;
    padding: 12px 13px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--paper);
    font-size: 13.5px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.plan-task.is-done { background: var(--ok-bg); border-color: #b9e2cf; }
.plan-task.is-missed { background: var(--bad-bg); border-color: #f0c4bf; }
.plan-task.is-support { border-left: 3px solid var(--orange); }
.plan-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.plan-task-top > * { min-width: 0; }
.plan-task h4 { font-size: 14px; line-height: 1.35; }
.plan-task p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.plan-task-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
    padding: 2px 8px;
    background: var(--soft);
    border-radius: 999px;
    font-size: 11px; font-weight: 600; color: var(--muted);
    white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-orange { background: var(--orange-soft); color: #9a4a08; }
.chip-blue { background: var(--blue-soft); color: var(--blue); }

.plan-summary-bar {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    padding: 11px 16px;
    background: var(--soft);
    border-radius: var(--r);
    font-size: 13px; color: var(--muted);
}
.plan-summary-bar b { color: var(--navy); }

/* --------------------------------------------------------- deneme kartları */
.exam-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.exam-subject {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper);
}
.exam-subject-head {
    padding: 10px 12px;
    font-size: 13px; font-weight: 600;
    position: relative;
}
.exam-subject-head .star { position: absolute; top: 5px; right: 7px; color: var(--bad); font-size: 11px; }
.exam-dyb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; }
.exam-dyb > div { padding: 5px 2px; border-radius: 6px; text-align: center; }
.exam-dyb .k { font-size: 9.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.exam-dyb .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-dyb .d { background: var(--ok-bg); }   .exam-dyb .d .v { color: var(--ok); }
.exam-dyb .y { background: var(--bad-bg); }  .exam-dyb .y .v { color: var(--bad); }
.exam-dyb .b { background: var(--soft); }
.exam-net {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 8px 12px; border-top: 1px solid var(--line-2);
}
.exam-net .k { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.exam-net .v { font-family: var(--font-display); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ grafik */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-col .bar-track { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; }
.bar-col .bar {
    width: 100%;
    background: linear-gradient(180deg, #4fb0c4, #2f7f96);
    border-radius: 6px 6px 0 0;
    min-height: 3px;
    transition: height .4s ease;
}
.bar-col.is-active .bar { background: linear-gradient(180deg, var(--orange), #d2590a); }
.bar-col .bar-value { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-col .bar-label { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }

.line-chart { width: 100%; height: 230px; }
.line-chart .grid-line { stroke: var(--line-2); stroke-dasharray: 4 4; }
.line-chart .area { fill: url(#lineFill); }
.line-chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .dot { fill: var(--paper); stroke: var(--blue); stroke-width: 2.5; }
.line-chart .dot.is-last { fill: var(--orange); stroke: var(--orange); }
.line-chart text { font-size: 11px; fill: var(--muted); }
.line-chart .value-label { font-size: 12px; font-weight: 700; fill: var(--navy); }

.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.donut { position: relative; width: 148px; height: 148px; flex: 0 0 auto; }
.donut-center {
    position: absolute; inset: 0;
    display: grid; place-content: center; text-align: center;
}
.donut-center .v { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.donut-center .k { font-size: 11px; color: var(--muted); }
.donut-legend { flex: 1 1 200px; display: grid; gap: 5px; }
.donut-legend li {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 11px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13px;
}
.donut-legend .swatch { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.donut-legend .val { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- lig */
.league-tiers { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.league-tier { display: grid; justify-items: center; gap: 4px; min-width: 78px; opacity: .45; }
.league-tier.is-current { opacity: 1; }
.league-tier .shield { font-size: 30px; line-height: 1; }
.league-tier .name { font-size: 11px; font-weight: 600; text-align: center; color: var(--muted); }
.league-tier.is-current .name { color: var(--navy); font-weight: 700; }

.league-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.league-shield {
    position: relative;
    width: 96px; height: 96px;
    display: grid; place-items: center;
    font-size: 52px;
    flex: 0 0 auto;
}
.league-progress-track { height: 11px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.league-progress-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--orange)); }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.badge-card {
    display: flex; gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
}
.badge-card.is-locked { opacity: .5; }
.badge-card .icon {
    width: 42px; height: 42px; flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--soft);
    font-size: 20px;
}
.badge-card.lv-bronz .icon { background: #f6e6d8; }
.badge-card.lv-gumus .icon { background: #e8ecf1; }
.badge-card.lv-altin .icon { background: #fbf0d2; }
.badge-card h4 { font-size: 14px; }
.badge-card .lvl { font-size: 12px; font-weight: 600; color: var(--navy); }
.badge-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }



/* ------------------------------------- paylaşılan bileşenler · responsive */
@media (max-width: 640px) {
    .plan-day { grid-template-columns: minmax(0, 1fr); }
    .plan-day-label { writing-mode: horizontal-tb; transform: none; padding: 7px 0; }
    .plan-day-tasks { grid-template-columns: minmax(0, 1fr); }
    .exam-subjects { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
    .bar-chart { height: 150px; gap: 5px; }
    .bar-col .bar-label { font-size: 10px; }
}


/* ------------------------------------------- karanlık tema · kontrast düzeltmeleri */
:root[data-theme="dark"] {
    /* durum renkleri karanlık zeminde okunur tonlara çekilir */
    --ok:   #4ade80;
    --warn: #fbbf24;
    --bad:  #f87171;
    --info: #7dd3fc;
}
:root[data-theme="dark"] .badge-orange { background: #3a2312; color: #ffb066; }
:root[data-theme="dark"] .chip-orange  { background: #3a2312; color: #ffb066; }
:root[data-theme="dark"] .btn-warn     { background: #3a2312; border-color: #6b4318; color: #ffb066; }
:root[data-theme="dark"] .btn-danger   { background: #34191a; border-color: #6b2c2c; color: var(--bad); }
:root[data-theme="dark"] .btn-ok       { background: #10301f; border-color: #245c3d; color: var(--ok); }
:root[data-theme="dark"] .stat-accent  { background: #2a1d10; border-color: #6b4318; }
:root[data-theme="dark"] .stat-accent .stat-value { color: #ffb066; }
:root[data-theme="dark"] .alert-warn   { background: #322611; border-color: #6b5218; color: #f5d99b; }
:root[data-theme="dark"] .alert-info   { background: #14294a; border-color: #2f4d7d; }
:root[data-theme="dark"] .alert-ok     { background: #10301f; border-color: #245c3d; }
:root[data-theme="dark"] .alert-bad    { background: #34191a; border-color: #6b2c2c; }
:root[data-theme="dark"] .flash-success{ background: #10301f; }
:root[data-theme="dark"] .flash-error  { background: #34191a; }
:root[data-theme="dark"] .flash-warning{ background: #322611; }
:root[data-theme="dark"] .flash-info   { background: #14294a; }
:root[data-theme="dark"] .exam-dyb .d  { background: #10301f; }
:root[data-theme="dark"] .exam-dyb .y  { background: #34191a; }
:root[data-theme="dark"] .plan-task.is-done   { background: #10301f; border-color: #245c3d; }
:root[data-theme="dark"] .plan-task.is-missed { background: #34191a; border-color: #6b2c2c; }
:root[data-theme="dark"] .badge-card.lv-bronz .icon { background: #3a2a1c; }
:root[data-theme="dark"] .badge-card.lv-gumus .icon { background: #232c36; }
:root[data-theme="dark"] .badge-card.lv-altin .icon { background: #3a331a; }
:root[data-theme="dark"] .price-card.is-popular { box-shadow: 0 0 0 3px #3a2312; }
:root[data-theme="dark"] .hero-points .tick { background: #10301f; }
:root[data-theme="dark"] .feature .ico { background: #2a1d10; }
:root[data-theme="dark"] .ring::before { background: var(--paper); }
:root[data-theme="dark"] .bar-col .bar { background: linear-gradient(180deg, #4fb0c4, #23606f); }
:root[data-theme="dark"] .line-chart .line { stroke: #7dd3fc; }
:root[data-theme="dark"] .line-chart .dot  { stroke: #7dd3fc; }
:root[data-theme="dark"] .value-label { fill: var(--text); }
:root[data-theme="dark"] .phone-mock { background: #050d18; }
:root[data-theme="dark"] .site-brand .mark,
:root[data-theme="dark"] .app-brand > span:first-child { background: linear-gradient(135deg, #1c3f6d, #2f5c96) !important; }

/* ------------------------------------------------------------------ yazdır */
@media print {
    .no-print, .app-sidebar, .app-header, .flash-stack { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; break-inside: avoid; }
    .app-main { padding: 0 !important; }
}

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