/* ==========================================================================
   Sınıf Denizi — Tasarım sistemi v1.0 (Ekim 2026)
   İki yüzey, tek dil: açık, ferah uygulama yüzeyi ve koyu, sinematik akvaryum
   yüzeyi üzerinde cam kontroller. Plus Jakarta Sans + Phosphor ikonları (yerel).
   Katmanlar: 1) yazı tipi  2) token'lar  3) temel  4) düzen  5) bileşenler
              6) sayfalar  7) hareket tercihleri
   CSP: satır içi stil yok; dinamik değerler JS ile CSSOM üzerinden yazılır.
   ========================================================================== */

/* 1) Yazı tipi — yerel olarak sunulur (KVKK: üçüncü taraf isteği yok) ----- */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-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;
}

/* 2) Token'lar ------------------------------------------------------------ */
:root {
    /* Okyanus */
    --sd-navy-900: #071A33;
    --sd-navy-800: #0B2545;
    --sd-navy-700: #13406B;
    --sd-blue-600: #1E6FD9;
    --sd-blue-100: #E3EEFD;
    --sd-teal-600: #0B7A86;
    --sd-teal-650: #0A6E78;
    --sd-teal-700: #0A5A63;
    --sd-aqua-400: #4FD1D9;
    --sd-aqua-300: #7FE3E8;
    --sd-aqua-100: #DDF6F7;
    --sd-aqua-50:  #F0FBFC;
    --sd-foam-50:  #F4FAFC;
    --sd-mist:     #EAF2F6;
    --sd-white:    #FFFFFF;

    /* Vurgu · ödül */
    --sd-gold-400: #F7C548;
    --sd-gold-500: #F2A81D;
    --sd-gold-700: #8A5A00;
    --sd-gold-100: #FFF4D6;
    --sd-gold-50:  #FFF9EC;
    --sd-coral-500: #FF6F59;
    --sd-coral-700: #B8361F;
    --sd-pearl-100: #F6F0E6;
    --sd-reward: linear-gradient(180deg, #F9C356, #EEA62E);
    --sd-reward-ink: #3D2A00;

    /* Durumlar (zemin / metin) */
    --sd-ok: #1F9D62;      --sd-ok-ink: #1F7A4D;      --sd-ok-bg: #E3F6EC;
    --sd-warn: #E8A317;    --sd-warn-ink: #7A5300;    --sd-warn-bg: #FFF4D6;
    --sd-orange: #EF7D2D;  --sd-orange-ink: #9A3F0D;  --sd-orange-bg: #FFE9DA;
    --sd-faint: #8E86C2;   --sd-faint-ink: #4E4590;   --sd-faint-bg: #EEEBFA;
    --sd-sleep: #3F4FA8;   --sd-sleep-ink: #3F4FA8;   --sd-sleep-bg: #E6E9FB;
    --sd-absent: #D2546E;  --sd-absent-ink: #A8324B;  --sd-absent-bg: #FDE8EE;
    --sd-calm-ink: #24705B; --sd-calm-bg: #E6F6F1;
    --sd-magic-ink: #5B3FC4; --sd-magic-bg: #EEEAFE;

    /* Nötr */
    --sd-text:   #0B2545;
    --sd-text-2: #4A5F7A;
    --sd-text-3: #5D6F86;
    --sd-line:   #DCE7EF;
    --sd-line-soft: #EEF3F6;
    --sd-surface: #FFFFFF;
    --sd-bg: var(--sd-foam-50);

    /* Eski adlar (geçiş) */
    --sd-text-muted: var(--sd-text-2);
    --sd-border: var(--sd-line);
    --sd-primary: var(--sd-teal-600);
    --sd-danger: var(--sd-absent);

    /* Tipografi */
    --sd-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --sd-mono: ui-monospace, Menlo, Consolas, monospace;
    --sd-fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem);
    --sd-fs-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    --sd-fs-h2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
    --sd-fs-h3: 1.375rem;
    --sd-fs-title: 1.125rem;
    --sd-fs-body: 1rem;
    --sd-fs-small: 0.875rem;
    --sd-fs-caption: 0.75rem;
    --sd-tracking: -0.022em;

    /* Boşluk (4 px) */
    --sd-sp-1: 4px;  --sd-sp-2: 8px;  --sd-sp-3: 12px; --sd-sp-4: 16px; --sd-sp-5: 20px;
    --sd-sp-6: 24px; --sd-sp-8: 32px; --sd-sp-10: 40px; --sd-sp-12: 48px; --sd-sp-16: 64px;

    /* Köşe ve gölge */
    --sd-r-xs: 8px; --sd-r-sm: 10px; --sd-r-md: 14px; --sd-r-lg: 18px; --sd-r-xl: 22px; --sd-r-2xl: 28px;
    --sd-sh-1: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px -2px rgba(11, 37, 69, .08);
    --sd-sh-2: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px -12px rgba(11, 37, 69, .22);
    --sd-sh-3: 0 2px 4px rgba(11, 37, 69, .06), 0 24px 48px -20px rgba(11, 37, 69, .35);
    --sd-sh-glow: 0 0 0 4px rgba(79, 209, 217, .3), 0 10px 24px -10px rgba(11, 122, 134, .5);

    /* Cam (akvaryum yüzeyi) */
    --sd-glass: rgba(7, 26, 51, .58);
    --sd-glass-strong: rgba(7, 26, 51, .66);
    --sd-glass-line: rgba(255, 255, 255, .16);

    --sd-touch: 44px;
    --sd-container: 1240px;
    --sd-gutter: 16px;

    --sd-dur-fast: 150ms;
    --sd-dur-base: 220ms;
    --sd-dur-slow: 300ms;
    --sd-ease: cubic-bezier(.22, 1, .36, 1);
    --sd-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --sd-scene: url("../images/themes/klasik-okyanus.webp");
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sd-font);
    font-size: var(--sd-fs-body);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.006em;
    color: var(--sd-text);
    background: var(--sd-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0 0 var(--sd-sp-3);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: var(--sd-tracking);
    color: var(--sd-text);
}

p { margin: 0 0 var(--sd-sp-4); }

a { color: var(--sd-teal-650); font-weight: 700; text-decoration: none; }
a:hover { color: var(--sd-navy-800); text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
code { font-family: var(--sd-mono); font-size: .9em; }

:focus-visible {
    outline: 3px solid var(--sd-aqua-400);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Phosphor ikonları metinle hizalanır */
[class^="ph-"], [class*=" ph-"] { display: inline-block; flex: none; vertical-align: -0.125em; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--sd-sp-4);
    top: -100px;
    z-index: 1000;
    padding: var(--sd-sp-2) var(--sd-sp-4);
    background: var(--sd-navy-800);
    color: var(--sd-white);
    border-radius: var(--sd-r-sm);
}
.skip-link:focus { top: var(--sd-sp-4); color: var(--sd-white); }

.muted { color: var(--sd-text-2); }

/* 4) Düzen ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--sd-container);
    margin-inline: auto;
    padding-inline: var(--sd-gutter);
}
@media (min-width: 768px) { :root { --sd-gutter: 24px; } }
@media (min-width: 1100px) { :root { --sd-gutter: 40px; } }

.grid { display: grid; gap: var(--sd-sp-4); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* 5) Bileşenler ----------------------------------------------------------- */

/* Marka: gülen balık işareti + "sınıf denizi" (Plus Jakarta Sans 800, −4,5% harf aralığı) */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-text);
    text-decoration: none;
}
.brand:hover { color: inherit; text-decoration: none; }
.brand__mark { display: block; width: 44px; height: 44px; flex: none; }
.brand__word { font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.brand__accent { color: #00A6A6; }
.brand--dark { color: #fff; }
.brand--dark .brand__accent { color: #3CC3BE; }
.brand--lg .brand__mark { width: 52px; height: 52px; }
.brand__disc {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFF8E7;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 6px 16px -6px rgba(7, 26, 51, .5);
}
.brand__disc .brand__mark { width: 32px; height: 32px; margin: 2px 0 0 1px; }
.brand--lg .brand__disc { width: 50px; height: 50px; }
.brand--lg .brand__disc .brand__mark { width: 40px; height: 40px; }
.brand--disc.brand--dark .brand__accent { color: #7FE3E8; }
.brand--lg .brand__word { font-size: 1.75rem; }
@media (max-width: 480px) { .brand__word { font-size: 1.3rem; } .brand__mark { width: 38px; height: 38px; } }

/* Düğmeler: .btn--{primary|secondary|soft|reward|ghost|danger|glass} .btn--{small|lg|board} */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sd-sp-2);
    min-height: 48px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: var(--sd-r-sm);
    background: transparent;
    color: var(--sd-text);
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--sd-dur-fast) var(--sd-ease), background-color var(--sd-dur-fast), border-color var(--sd-dur-fast), box-shadow var(--sd-dur-fast), color var(--sd-dur-fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn i { font-size: 1.2em; }

.btn--primary { background: var(--sd-teal-600); color: #fff; box-shadow: 0 8px 18px -8px rgba(11, 122, 134, .7); }
.btn--primary:hover { background: var(--sd-teal-650); color: #fff; }

.btn--secondary,
.btn--light,
.btn--outline { background: #fff; border-color: var(--sd-line); color: var(--sd-text); }
.btn--secondary:hover,
.btn--light:hover,
.btn--outline:hover { border-color: var(--sd-aqua-400); color: var(--sd-text); }
.btn--secondary i,
.btn--outline i { color: var(--sd-teal-650); }

.btn--soft { background: var(--sd-aqua-100); color: var(--sd-teal-700); }
.btn--soft:hover { background: #CBF0F2; color: var(--sd-teal-700); }

.btn--reward { background: var(--sd-reward); color: var(--sd-reward-ink); box-shadow: 0 8px 18px -8px rgba(242, 168, 29, .8); }
.btn--reward:hover { color: var(--sd-reward-ink); filter: brightness(1.04); }

.btn--warm { background: var(--sd-gold-100); color: var(--sd-warn-ink); }
.btn--warm:hover { background: #FFEDC2; color: var(--sd-warn-ink); }

.btn--ghost { background: transparent; color: var(--sd-teal-650); padding-inline: 14px; }
.btn--ghost:hover { background: var(--sd-mist); color: var(--sd-teal-700); }

.btn--glass {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
    backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--danger { background: var(--sd-absent); color: #fff; }
.btn--danger:hover { background: #B8405A; color: #fff; }
.btn--danger-soft { background: var(--sd-absent-bg); color: var(--sd-absent-ink); }
.btn--danger-soft:hover { background: #FAD6DF; color: #7E2238; }

.btn--small { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 26px; border-radius: 12px; font-size: 1.0625rem; }
.btn--xl { min-height: 60px; padding: 0 26px; border-radius: 12px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--icon { width: 48px; padding: 0; }
.btn--small.btn--icon { width: 40px; }

.btn[aria-disabled="true"],
.btn:disabled { background: #E7EEF3; border-color: transparent; color: var(--sd-text-3); box-shadow: none; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .85; pointer-events: none; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 0;
    border-radius: var(--sd-r-sm);
    background: transparent;
    color: var(--sd-text-2);
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color var(--sd-dur-fast), color var(--sd-dur-fast);
}
.icon-btn:hover { background: var(--sd-mist); color: var(--sd-text); }
.icon-btn--boxed { border: 1px solid var(--sd-line); background: #fff; }
.icon-btn--teal { color: var(--sd-teal-650); }
.icon-btn--danger { color: var(--sd-absent-ink); }
.icon-btn--danger:hover { background: var(--sd-absent-bg); color: var(--sd-absent-ink); }
.icon-btn--soft { background: var(--sd-mist); color: var(--sd-text); }

/* Etiketler, durum etiketleri, oyun çipleri */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sd-sp-2);
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sd-mist);
    color: var(--sd-navy-700);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
.badge--teal { background: var(--sd-aqua-100); color: var(--sd-teal-700); }
.badge--ok { background: var(--sd-ok-bg); color: var(--sd-ok-ink); }
.badge--warn { background: var(--sd-warn-bg); color: var(--sd-warn-ink); }
.badge--gold { background: var(--sd-gold-400); color: var(--sd-reward-ink); }
.badge--danger { background: var(--sd-absent-bg); color: var(--sd-absent-ink); }
.badge--quiet { background: var(--sd-line-soft); color: var(--sd-text-2); }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 800;
    white-space: nowrap;
}
.tag--xp     { background: var(--sd-gold-100); color: var(--sd-warn-ink); }
.tag--xp i   { color: var(--sd-gold-500); }
.tag--level  { background: var(--sd-gold-100); color: var(--sd-warn-ink); }
.tag--plain  { background: var(--sd-mist); color: var(--sd-navy-700); }
.tag--pearl  { background: var(--sd-pearl-100); color: #6B5233; }
.tag--streak { background: var(--sd-orange-bg); color: var(--sd-orange-ink); }
.tag--streak i { color: var(--sd-orange); }
.tag--magic  { background: var(--sd-magic-bg); color: var(--sd-magic-ink); }
.pearl-dot {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #EADFCB 55%, #C8B596);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--sd-ok-bg);
    color: var(--sd-ok-ink);
    font-size: .875rem;
    font-weight: 800;
    white-space: nowrap;
}
.status-tag[data-state="acikmis"]  { background: var(--sd-warn-bg); color: var(--sd-warn-ink); }
.status-tag[data-state="cokac"]    { background: var(--sd-orange-bg); color: var(--sd-orange-ink); }
.status-tag[data-state="baygin"]   { background: var(--sd-faint-bg); color: var(--sd-faint-ink); }
.status-tag[data-state="uyuyor"]   { background: var(--sd-sleep-bg); color: var(--sd-sleep-ink); }
.status-tag[data-state="gelmedi"]  { background: var(--sd-absent-bg); color: var(--sd-absent-ink); }
.status-tag[data-state="sakin"]    { background: var(--sd-calm-bg); color: var(--sd-calm-ink); }
.status-tag[data-state="donusmus"] { background: var(--sd-magic-bg); color: var(--sd-magic-ink); }
.status-tag[data-state="ogretmen"] { background: var(--sd-gold-100); color: var(--sd-warn-ink); }

/* Kart */
.card {
    background: var(--sd-surface);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-r-lg);
    padding: var(--sd-sp-6);
    box-shadow: 0 1px 2px rgba(11, 37, 69, .04);
}
.card--flush { padding: 0; overflow: hidden; }
.card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sd-sp-3);
    margin-bottom: var(--sd-sp-4);
}
.card__head .section-title { margin: 0; }
.card--flush .card__head { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--sd-line-soft); }
.card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--sd-sp-1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 14px -8px rgba(11, 37, 69, .35);
    font-size: 28px;
}
.card__title { margin: 0; font-size: 1.3rem; }
.card__text { margin: 0; color: #33475F; font-size: .95rem; line-height: 1.55; }

/* Bölüm başlıkları */
.eyebrow {
    margin: 0 0 var(--sd-sp-1);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sd-teal-650);
}
.eyebrow a { color: inherit; }
.section-title { font-size: var(--sd-fs-h3); margin-bottom: var(--sd-sp-4); }
.section-title i { color: var(--sd-teal-650); }
.section-title .muted { font-size: 1.05rem; font-weight: 700; }

/* Formlar ---------------------------------------------------------------- */
.form { display: grid; gap: var(--sd-sp-4); }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-weight: 800; font-size: .875rem; color: var(--sd-text); padding: 0; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field__optional { font-weight: 700; color: var(--sd-text-2); margin-left: 2px; }
.field__control { position: relative; display: flex; align-items: center; }
.field__icon { position: absolute; left: 14px; font-size: 20px; color: var(--sd-text-2); pointer-events: none; }
.field__control--icon .input { padding-left: 44px; }
.field__hint { margin: 0; font-size: .82rem; color: var(--sd-text-2); }
.field__error { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .84rem; font-weight: 700; color: var(--sd-absent-ink); }

.input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--sd-line);
    border-radius: var(--sd-r-sm);
    background: #fff;
    color: var(--sd-text);
    font: inherit;
    font-size: 1rem;              /* iOS'ta odaklanınca yakınlaştırmayı önler */
    font-weight: 600;
    transition: border-color var(--sd-dur-fast), box-shadow var(--sd-dur-fast);
}
.input::placeholder { color: var(--sd-text-3); font-weight: 500; }
.input:focus {
    outline: none;
    border: 2px solid var(--sd-teal-600);
    padding: 9.5px 13.5px;
    box-shadow: 0 0 0 4px rgba(79, 209, 217, .25);
}
.field__control--icon .input:focus { padding-left: 43.5px; }
.field--error .input { border: 2px solid var(--sd-absent); background: #FFF8FA; }
select.input { padding-right: 36px; cursor: pointer; }
.input--code {
    min-height: 64px;
    border: 2px solid var(--sd-teal-600);
    background: var(--sd-foam-50);
    text-align: center;
    font: 800 1.75rem var(--sd-mono);
    letter-spacing: .22em;
    text-transform: uppercase;
}
.input--code::placeholder { letter-spacing: .22em; }
.input--area { min-height: 160px; resize: vertical; line-height: 1.5; }
.input--short { min-height: 84px; }
.input--time { width: auto; min-height: 44px; padding: 6px 12px; }
.input--time:focus { padding: 5.5px 11.5px; }

.field__toggle {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--sd-r-sm);
    background: transparent;
    color: var(--sd-teal-650);
    font: inherit;
    font-size: .875rem;
    font-weight: 800;
    cursor: pointer;
}
.field__toggle:hover { background: var(--sd-mist); }
.field__control:has(.field__toggle) .input { padding-right: 96px; }

.field-row { display: grid; gap: var(--sd-sp-3); align-items: start; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row--3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* Açma/kapama düğmesi görünümlü onay kutusu */
.check {
    display: flex;
    gap: var(--sd-sp-4);
    align-items: flex-start;
    padding: var(--sd-sp-4);
    border: 1.5px solid var(--sd-line);
    border-radius: var(--sd-r-md);
    background: #fff;
    cursor: pointer;
}
.check input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 52px;
    height: 32px;
    flex: none;
    margin: 0;
    border-radius: 999px;
    background: #C9D6E0;
    cursor: pointer;
    transition: background-color var(--sd-dur-base) var(--sd-ease);
}
.check input::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    transition: transform var(--sd-dur-base) var(--sd-ease);
}
.check input:checked { background: var(--sd-teal-600); }
.check input:checked::after { transform: translateX(20px); }
.check strong { display: block; font-weight: 800; }
.check small { display: block; margin-top: 2px; color: var(--sd-text-2); font-size: .875rem; line-height: 1.45; }
.check--inline { padding: var(--sd-sp-3); align-items: center; }

/* Seçim kartları (.choice) */
.choices { display: grid; gap: 10px; }
.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid var(--sd-line);
    border-radius: var(--sd-r-md);
    background: #fff;
    color: inherit;
    font-weight: 500;
    cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border: 2px solid var(--sd-teal-600); padding: 15.5px; background: var(--sd-aqua-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--sd-aqua-400); outline-offset: 3px; }
.choice__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 12px;
    background: var(--sd-aqua-100);
    color: var(--sd-teal-650);
    font-size: 30px;
}
.choice__icon--warm { background: #FFF1E0; color: #C2632F; }
.choice__icon--quiet { background: var(--sd-line-soft); color: var(--sd-text-3); }
.choice__icon--sea { background: var(--sd-aqua-50); color: var(--sd-teal-600); }
.choice__icon--sky { background: #EAF4FF; color: #3D7CC9; }
.choices--row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice__body { display: grid; flex: 1; }
.choice__body strong { font-size: 1.0625rem; font-weight: 800; }
.choice__body small { color: var(--sd-text-2); font-size: .875rem; line-height: 1.4; }
.choice__check { font-size: 26px; color: var(--sd-teal-600); opacity: 0; }
.choice:has(input:checked) .choice__check { opacity: 1; }
.choice__arrow { font-size: 20px; color: var(--sd-text-3); }
.choice--link:hover { border-color: var(--sd-aqua-400); color: inherit; text-decoration: none; }
.choice--disabled { cursor: default; border-style: dashed; border-color: #C9D6E0; background: #F9FBFC; color: var(--sd-text-3); }
.choice--disabled .choice__body small { color: var(--sd-text-3); }

/* Segmentli kontrol */
.segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: var(--sd-r-sm);
    background: var(--sd-mist);
    min-width: 0;
}
.segmented__option { position: relative; cursor: pointer; }
.segmented__option input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__option span,
.segmented__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--sd-r-sm);
    color: var(--sd-text-2);
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.segmented__link:hover { color: var(--sd-text); text-decoration: none; }
.segmented__option input:checked + span,
.segmented__link[aria-current="page"] { background: #fff; color: var(--sd-text); font-weight: 800; box-shadow: 0 2px 6px rgba(11, 37, 69, .12); }
.segmented__option input:focus-visible + span { outline: 3px solid var(--sd-aqua-400); outline-offset: 2px; }

/* Çipler */
.chips { display: flex; flex-wrap: wrap; gap: var(--sd-sp-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--sd-line);
    border-radius: 999px;
    background: #fff;
    font-size: .875rem;
    font-weight: 700;
}
.chip input:checked + span { background: var(--sd-teal-600); border-color: var(--sd-teal-600); color: #fff; font-weight: 800; }
.chip input:focus-visible + span { outline: 3px solid var(--sd-aqua-400); outline-offset: 2px; }

/* Uyarı kutuları */
.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: var(--sd-sp-4);
    padding: 12px 14px;
    border-radius: var(--sd-r-sm);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.45;
}
.alert > i { font-size: 20px; margin-top: 1px; }
.alert__body { flex: 1; }
.alert a { color: inherit; text-decoration: underline; }
.alert--success { background: var(--sd-ok-bg); color: #165C3A; }
.alert--success > i { color: var(--sd-ok); }
.alert--info    { background: var(--sd-gold-100); color: #5C3D00; }
.alert--info > i { color: #B7821A; }
.alert--error   { background: var(--sd-absent-bg); color: #7E2238; }
.alert--error > i { color: var(--sd-absent); }
.alert--note    { background: var(--sd-sleep-bg); color: #232F78; }
.alert--note > i { color: var(--sd-sleep); }

/* İlerleme çubuğu */
.progress { height: 8px; border-radius: 4px; background: var(--sd-mist); overflow: hidden; }
.progress__bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--sd-teal-600);
    transition: width .5s var(--sd-ease);
}
.progress--gold .progress__bar { background: linear-gradient(90deg, #FFD66B, #F2A81D); }
.progress--lg { height: 12px; border-radius: 6px; }

/* Ölçerler (tokluk, sağlık) */
.meter { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 12px; font-size: .9rem; font-weight: 800; }
.meter b { text-align: right; color: var(--sd-text-2); }
.meter__bar { width: 100%; height: 12px; }
.meter__track { fill: var(--sd-mist); }
.meter__fill--xp { fill: #F2A81D; }
.meter__fill--satiety { fill: var(--sd-ok); }
.meter__fill--health { fill: #3B8CF0; }

/* Boş durum */
.empty {
    display: grid;
    justify-items: center;
    gap: var(--sd-sp-3);
    padding: var(--sd-sp-8) var(--sd-sp-4);
    border: 1.5px dashed #C9D6E0;
    border-radius: var(--sd-r-md);
    text-align: center;
    color: var(--sd-text-2);
}
.empty p { margin: 0; max-width: 360px; }
.empty__title { margin: 0; font-size: 1.375rem; color: var(--sd-text); }
.empty__img { width: 110px; height: 66px; object-fit: contain; }
.empty__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--sd-r-md);
    background: var(--sd-mist);
    color: var(--sd-text-2);
    font-size: 32px;
}

/* Liste */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sd-sp-2); }
.list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sd-sp-3);
    padding: 14px;
    border-radius: var(--sd-r-md);
    background: var(--sd-surface);
    border: 1px solid var(--sd-line);
}
.list__actions { display: flex; flex-wrap: wrap; gap: var(--sd-sp-1); }

/* Diyaloglar */
.dialog {
    width: min(600px, calc(100vw - 2 * var(--sd-gutter)));
    max-height: calc(100vh - 32px);
    padding: 28px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: var(--sd-text);
    box-shadow: 0 30px 70px -30px rgba(11, 37, 69, .5);
}
.dialog[open] { animation: dialog-in var(--sd-dur-base) var(--sd-ease); }
.dialog--small { width: min(520px, calc(100vw - 2 * var(--sd-gutter))); }
.dialog::backdrop { background: rgba(4, 14, 30, .45); backdrop-filter: blur(6px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sd-sp-3); }
.dialog__head h2 { margin: 0; font-size: 1.625rem; display: flex; align-items: center; gap: 10px; }
.dialog__head h2 i { color: var(--sd-teal-650); }
.dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sd-sp-2); margin-top: var(--sd-sp-2); }
.dialog .species-picker { max-height: 260px; overflow-y: auto; padding: 2px; }
@keyframes dialog-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Bildirim kutucukları (toast) */
.toast-region {
    position: fixed;
    left: 50%;
    bottom: var(--sd-sp-6);
    z-index: 500;
    display: grid;
    gap: var(--sd-sp-2);
    width: min(460px, calc(100vw - 2 * var(--sd-gutter)));
    transform: translateX(-50%);
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sd-navy-800);
    color: #fff;
    font-weight: 700;
    font-size: .93rem;
    line-height: 1.35;
    box-shadow: 0 18px 40px -16px rgba(11, 37, 69, .6);
    animation: toast-in .3s var(--sd-ease);
    transition: opacity .4s, transform .4s;
}
.toast::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--sd-aqua-400);
    box-shadow: 0 0 0 4px rgba(79, 209, 217, .25);
}
.toast--success::before { background: #5BE0A0; box-shadow: 0 0 0 4px rgba(91, 224, 160, .25); }
.toast--error::before { background: #FF8DA4; box-shadow: 0 0 0 4px rgba(255, 141, 164, .25); }
.toast--leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Sahne (akvaryum görseli üstünde balıklar) — tanıtım, giriş, sınıf kartları */
.scene {
    position: relative;
    overflow: hidden;
    background: #0C5E91 var(--sd-scene) center 40% / cover no-repeat;
}
.scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 20, 40, .18) 0%, rgba(4, 20, 40, 0) 30%, rgba(4, 20, 40, 0) 70%, rgba(4, 20, 40, .22) 100%);
    pointer-events: none;
}
.scene__fish {
    position: absolute;
    z-index: 1;
    width: 18%;
    height: auto;
    filter: drop-shadow(0 6px 8px rgba(0, 10, 30, .28));
    animation: bob 3.2s ease-in-out infinite;
}
.scene__fish--flip { transform: scaleX(-1); animation-name: bob-flipped; }
.scene__fish--1 { left: 12%; top: 22%; }
.scene__fish--2 { left: 60%; top: 16%; width: 15%; animation-delay: -1.2s; }
.scene__fish--3 { left: 34%; top: 52%; width: 16%; animation-delay: -2.1s; }
.scene__fish--4 { left: 74%; top: 56%; width: 13%; animation-delay: -.6s; }
.scene__fish--5 { left: 46%; top: 30%; width: 12%; animation-delay: -1.7s; }

/* 6) Sayfalar ------------------------------------------------------------- */

/* 6a) Tanıtım — sayfanın kendi stilleri css/landing.css'te */
.page-home { background: var(--sd-foam-50); }
/* JS ile yüzen balıklar: konum ve yön transform ile verilir, CSS salınım animasyonu kapanır */
.scene__fish.is-swimming { left: 0; top: 0; animation: none; will-change: transform; }
.pill i { color: #FF9AC1; }

/* Renk tonları (ikon kutuları) */
.tone-rose   { background: var(--sd-absent-bg); color: var(--sd-absent); }
.tone-gold   { background: var(--sd-gold-100); color: #B7821A; }
.tone-violet { background: var(--sd-magic-bg); color: #6B3FD9; }
.tone-teal   { background: var(--sd-aqua-100); color: var(--sd-teal-650); }
.tone-blue   { background: var(--sd-blue-100); color: var(--sd-blue-600); }
.tone-green  { background: var(--sd-ok-bg); color: var(--sd-ok-ink); }
.tone-indigo { background: var(--sd-sleep-bg); color: var(--sd-sleep); }
.tone-orange { background: var(--sd-orange-bg); color: #C2632F; }
.tone-navy   { background: #E6EEF7; color: var(--sd-navy-700); }

/* 6b) Giriş, kayıt, parola */
.auth-page { min-height: 100vh; }
.auth-scene { min-height: 100vh; display: flex; flex-direction: column; }
.auth-scene::after { background: rgba(7, 26, 51, .25); }
.auth-scene--night { background-image: url("../images/themes/gece.webp"); }
.auth-scene--night::after { background: rgba(7, 26, 51, .25); }
.auth-scene > :not(.scene__fish) { position: relative; z-index: 2; }
.auth-header { padding-block: 28px; }
.auth-header .brand { color: #fff; }
.auth-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 8px var(--sd-gutter) 64px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px;
    border-radius: var(--sd-r-xl);
    background: rgba(255, 255, 255, .97);
    color: var(--sd-text);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.auth-card--wide { max-width: 520px; }
@media (max-width: 520px) { .auth-card { padding: 28px 20px; } }
.auth-card > * { margin: 0; }
.auth-card__title { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem); line-height: 1.05; }
.auth-card__lead { margin: 4px 0 0; color: var(--sd-text-2); font-size: .97rem; }
.auth-card__tag { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-teal-650); }
.auth-card__tag--warm { color: #C2632F; }
.auth-card__divider { height: 1px; background: var(--sd-line); }
.auth-card__links { display: grid; gap: 10px; font-size: .95rem; }
.auth-card__links a { display: inline-flex; align-items: center; gap: 8px; }
.auth-card__links i { font-size: 20px; }
.auth-card__footer { text-align: center; font-size: .95rem; color: var(--sd-text-2); }
.auth-card__hero {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: var(--sd-r-lg);
    font-size: 42px;
    align-self: center;
}
.auth-card--center { align-items: center; text-align: center; }
.auth-card--center .auth-card__lead { line-height: 1.55; }

/* Kayıt sihirbazı */
.wizard { gap: 18px; }
.wizard__step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--sd-sp-4); }
.wizard__step + .wizard__step { margin-top: var(--sd-sp-8); }
.wizard--js .wizard__step + .wizard__step { margin-top: 0; }
.wizard__step[hidden] { display: none; }
.wizard--js .wizard__step:not([hidden]) { animation: step-in 260ms var(--sd-ease); }
.wizard__title { padding: 0; font-size: 1.875rem; font-weight: 700; line-height: 1.1; letter-spacing: var(--sd-tracking); color: var(--sd-text); }
.wizard__lead { margin: -8px 0 0; color: var(--sd-text-2); }
.wizard__nav { display: flex; gap: 10px; margin-top: var(--sd-sp-2); }
.wizard:not(.wizard--js) .wizard__progress,
.wizard:not(.wizard--js) [data-next],
.wizard:not(.wizard--js) [data-prev] { display: none; }
.wizard__progress { display: grid; gap: 8px; }
.wizard__progress-top { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 800; color: var(--sd-text-2); }
.wizard__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wizard__bars span { height: 6px; border-radius: 3px; background: var(--sd-line); transition: background-color var(--sd-dur-slow); }
.wizard__bars span.is-done { background: var(--sd-teal-600); }
.wizard__preview { height: 120px; border-radius: var(--sd-r-md); display: flex; align-items: flex-end; padding: 12px 14px; }
.wizard__preview strong { position: relative; z-index: 2; font-size: 1.375rem; letter-spacing: var(--sd-tracking); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.wizard__ready {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--sd-r-md);
    background: linear-gradient(160deg, var(--sd-aqua-50), var(--sd-aqua-100));
    color: var(--sd-teal-700);
    font-weight: 700;
    line-height: 1.45;
}
.wizard__ready img { width: 90px; height: 54px; object-fit: contain; flex: none; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* 6c) Hata sayfası: assets/css/error.css (statik sayfalarla ortak) */

/* 6d) Uygulama iskeleti */
.app-page { background: var(--sd-foam-50); }
.app-bar {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--sd-line);
    backdrop-filter: blur(10px);
}
.app-bar__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.app-bar .brand { font-size: 1.375rem; }
.app-nav { display: flex; gap: 4px; margin-right: auto; }
.app-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--sd-r-sm);
    color: var(--sd-text-2);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
}
.app-nav__link i { font-size: 20px; }
.app-nav__link:hover { color: var(--sd-text); background: var(--sd-foam-50); text-decoration: none; }
.app-nav__link[aria-current="page"] { background: #E6F5F6; color: var(--sd-teal-700); font-weight: 800; }
.app-bar__spacer { flex: 1; }
.app-bar__user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.app-bar__name { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--sd-text); font-weight: 800; font-size: .95rem; text-decoration: none; }
.app-bar__name:hover { color: var(--sd-teal-650); text-decoration: none; }
.avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--sd-orange-bg);
    color: var(--sd-orange-ink);
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: 0;
}
.app-bar__logout { color: var(--sd-text-2); font-weight: 700; }
/* Eşikler İngilizce menü adlarına göre (2026-10-12; 1366 px dizüstünde ad + menü + çıkış sığmıyordu) */
@media (max-width: 1440px) { .app-nav__link { padding: 0 11px; gap: 6px; } .app-bar__inner { gap: 16px; } .app-bar__logout span { display: none; } }
@media (max-width: 1400px) { .app-bar__label { display: none; } }
/* Telefonda menü yana kaymaz, satıra sığmayan öğe alta iner (gizli kalmasın) */
@media (max-width: 520px) { .app-nav { flex-wrap: wrap; gap: 2px; overflow: visible; } .app-nav__link { height: 36px; padding: 0 9px; gap: 5px; font-size: .9rem; } .app-nav__link i { font-size: 18px; } }
/* Menü sığmadığında ikinci satıra iner (yazılar ve rozetler kırılmaz) */
@media (max-width: 1100px) {
    .app-bar__inner { flex-wrap: wrap; gap: 10px; padding-block: 10px; min-height: 64px; }
    .app-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
    .app-nav__link { height: 40px; padding: 0 12px; }
    .app-bar__logout span { display: none; }
}

.app-main { padding-block: 32px 64px; }

.page-head { margin-bottom: var(--sd-sp-6); }
.page-head__title { margin: 0; font-size: var(--sd-fs-h1); line-height: 1.05; }
.page-head__lead { margin: 6px 0 0; color: var(--sd-text-2); font-weight: 600; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; color: var(--sd-text-2); font-weight: 700; font-size: .97rem; }
.page-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-head__meta .is-accent { color: var(--sd-teal-650); }
.page-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sd-sp-4) var(--sd-sp-6); }
.page-head--split > div:first-child { flex: 1; min-width: min(100%, 300px); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--sd-sp-2); }
.page-head__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: var(--sd-r-md);
    font-size: 34px;
}
.page-head__with-icon { display: flex; gap: 18px; align-items: flex-start; }

/* İstatistik kartları */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 12px;
    margin-bottom: var(--sd-sp-6);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: var(--sd-r-md);
    background: #fff;
    border: 1px solid var(--sd-line);
    box-shadow: 0 1px 2px rgba(11, 37, 69, .04);
}
.stat__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--sd-r-sm); font-size: 22px; }
.stat__value { font-size: 2rem; font-weight: 700; letter-spacing: var(--sd-tracking); line-height: 1; }
.stat__label { font-size: .84rem; font-weight: 700; color: var(--sd-text-2); line-height: 1.25; }
.stat--warn { background: var(--sd-gold-50); border-color: #F3D9A6; }
.stat--warn .stat__value, .stat--warn .stat__label { color: var(--sd-warn-ink); }

.dash-grid { display: grid; gap: var(--sd-sp-6); align-items: start; }
@media (min-width: 1040px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 400px; } }
/* Panel: "Haftayı velilerle paylaş" kartı (views/teacher/dashboard.php) */
.wk-card { display: flex; align-items: flex-start; gap: 16px; margin: 0; }
.wk-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #E3F7EC; color: #1F9D55; font-size: 26px; }
.wk-card__body { display: grid; gap: 8px; min-width: 0; }
.wk-card__title { margin: 0; font-size: 1.125rem; }
.wk-card__body p { margin: 0; }
.wk-card__classes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head .section-title { margin: 0; font-size: 1.625rem; }
.section-head a { font-size: .95rem; }

/* Aktivite listesi */
.activity { padding: 20px; }
.activity__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.activity__head .section-title { margin: 0; }
.activity__list { list-style: none; margin: 0; padding: 0; }
.activity__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sd-line-soft); }
.activity__item:last-child { border-bottom: 0; }
.activity__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--sd-r-sm); font-size: 19px; }
.activity__text { display: block; font-size: .875rem; line-height: 1.4; font-weight: 600; }
.activity__meta { display: block; font-size: .78rem; font-weight: 700; color: var(--sd-text-2); }

/* Sınıf kartı (akvaryum önizlemeli) */
.class-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--sd-r-lg);
    background: #fff;
    border: 1px solid var(--sd-line);
    overflow: hidden;
    box-shadow: var(--sd-sh-2);
    color: inherit;
    text-decoration: none;
    transition: transform var(--sd-dur-base) var(--sd-ease), box-shadow var(--sd-dur-base);
}
.class-card:hover { transform: translateY(-3px); box-shadow: var(--sd-sh-3); color: inherit; text-decoration: none; }
.class-card__scene { height: 200px; }
.class-card__visit {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--sd-teal-700);
    font-weight: 800;
    font-size: .8rem;
}
.class-card__body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.class-card__info { flex: 1; min-width: 0; }
.class-card__title { margin: 0; font-size: 1.19rem; font-weight: 800; letter-spacing: -0.01em; }
.class-card__meta { margin: 0; font-size: .875rem; color: var(--sd-text-2); font-weight: 700; }
.class-card__open { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: var(--sd-r-sm); background: var(--sd-aqua-100); color: var(--sd-teal-700); font-weight: 800; font-size: .875rem; }
.class-card--add {
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 280px;
    border: 2px dashed #C9D6E0;
    background: transparent;
    box-shadow: none;
    color: var(--sd-text-2);
}
.class-card--add:hover { border-color: var(--sd-aqua-400); box-shadow: none; }
.class-card--add strong { color: var(--sd-text); font-weight: 800; }
.class-card--add .empty__icon { color: var(--sd-teal-650); font-size: 24px; width: 56px; height: 56px; }

.archived { margin-top: var(--sd-sp-12); }

/* Sınıf formu */
.form--page { max-width: 780px; gap: var(--sd-sp-8); }
.form-section { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--sd-sp-4); }
.form-section__title { padding: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: var(--sd-tracking); color: var(--sd-text); }
.form-section__title + .muted { margin: -8px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sd-sp-2); }
.form-actions--start { justify-content: flex-start; }

.schedule { display: grid; gap: 8px; }
.schedule__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-radius: var(--sd-r-sm); background: var(--sd-foam-50); }
.schedule__day { display: flex; align-items: center; gap: 10px; min-width: 140px; font-weight: 800; cursor: pointer; }
.schedule__day input { width: 20px; height: 20px; accent-color: var(--sd-teal-600); }
.schedule__row:not(:has(input:checked)) .input--time { opacity: .45; }
.bell-plan { display: grid; gap: var(--sd-sp-3); margin-top: var(--sd-sp-4); padding: 16px; border-radius: var(--sd-r-md); border: 1px solid var(--sd-line); background: #fff; }
.bell-plan__head { display: grid; gap: 4px; }
.bell-plan__head strong { display: flex; align-items: center; gap: 8px; }
.bell-plan__head i { color: var(--sd-ok-ink); font-size: 20px; }
.bell-plan__head small { color: var(--sd-text-2); line-height: 1.5; }
.bell-plan__list[hidden] { display: none; }
.bell-plan__empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border-radius: var(--sd-r-sm); border: 1.5px dashed var(--sd-line); color: var(--sd-text-2); font-weight: 700; }
.bell-plan__empty[hidden] { display: none; }
.bell-plan__row--lesson { display: flex; justify-content: space-between; }
.bell-plan__del { all: unset; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; color: var(--sd-absent-ink); font-size: .85rem; font-weight: 800; cursor: pointer; }
.bell-plan__del:hover, .bell-plan__del:focus-visible { background: var(--sd-absent-bg); }
.bell-plan__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; color: var(--sd-text-2); font-size: .9rem; }
.bell-plan__caption { margin: 0 0 8px; color: var(--sd-text-2); font-size: .9rem; }
.bell-plan__rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bell-plan__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-radius: var(--sd-r-sm); background: var(--sd-foam-50); font-variant-numeric: tabular-nums; }
.bell-plan__row--lesson { background: transparent; padding-block: 2px; color: var(--sd-text-2); font-size: .9rem; }
.bell-plan__row--long { background: var(--sd-gold-50); }
.bell-plan__row b { min-width: 110px; }
.bell-plan__row span { color: var(--sd-text-2); }
.bell-plan__row label { display: flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; }
.bell-plan__row input { width: 76px; min-height: 40px; text-align: center; }

.danger-zone { max-width: 780px; margin-top: var(--sd-sp-8); border-color: #F6C9D3; background: #FFFAFB; }

/* Sınıf çalışma alanı: sekmeler */
.class-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: var(--sd-sp-6);
    border-bottom: 1px solid var(--sd-line);
    overflow-x: auto;
    scrollbar-width: thin;
}
.class-switcher__item {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 18px;
    border-bottom: 3px solid transparent;
    color: var(--sd-text-2);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
.class-switcher__item:hover { color: var(--sd-text); text-decoration: none; }
.class-switcher__item[aria-current="page"] { border-bottom-color: var(--sd-teal-600); color: var(--sd-text); font-weight: 800; }
.class-switcher__item--add { color: var(--sd-teal-650); padding: 0 12px; }

.class-layout { display: grid; gap: var(--sd-sp-6); }

.quick-add { display: grid; gap: 16px; padding: 22px; }
.quick-add .card__head { margin: 0; }
.quick-add__row { display: grid; gap: 10px; align-items: end; }
@media (min-width: 860px) { .quick-add__row { grid-template-columns: minmax(0, 2fr) 120px minmax(0, 1.2fr) auto; } }
.quick-add__row .btn { min-height: 52px; }
.quick-add__row .input { min-height: 52px; }

.species-details { border: 1px solid var(--sd-line); border-radius: var(--sd-r-md); background: var(--sd-foam-50); }
.species-details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
}
.species-details summary i { color: var(--sd-teal-650); font-size: 20px; }
.species-details[open] summary { border-bottom: 1px solid var(--sd-line); }
.species-details .species-picker { padding: 12px; max-height: 340px; overflow-y: auto; }

.species-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.species-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 96px;
    padding: 8px 4px;
    border: 2px solid var(--sd-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--sd-dur-fast), box-shadow var(--sd-dur-fast);
}
.species-option:hover { border-color: var(--sd-aqua-400); }
.species-option input { position: absolute; opacity: 0; pointer-events: none; }
.species-option:has(input:checked) { border-color: var(--sd-teal-600); background: var(--sd-aqua-50); box-shadow: 0 0 0 4px rgba(79, 209, 217, .25); }
.species-option:has(input:focus-visible) { outline: 3px solid var(--sd-aqua-400); outline-offset: 2px; }
.species-option__img { width: 64px; height: 38px; object-fit: contain; }
.species-option__img--random { display: grid; place-items: center; font-size: 28px; color: var(--sd-teal-650); }
.species-option__name { font-size: .75rem; font-weight: 800; line-height: 1.1; padding: 0 4px; }
.species-option__lock {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sd-mist);
    color: var(--sd-text-2);
    font-size: .66rem;
    font-weight: 800;
}
.species-option--locked { cursor: not-allowed; background: #F7F9FA; }
.species-option--locked:hover { border-color: var(--sd-line); }
.species-option--locked .species-option__name { color: var(--sd-text-3); }
.species-option--locked .species-option__img { filter: grayscale(1); opacity: .45; }

/* Öğrenci listesi */
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.list-head .section-title { flex: 1; margin: 0; }
.list-head__hint { margin: 0; font-size: .84rem; font-weight: 700; }

.student-list { list-style: none; margin: 0; padding: 0; }
.student-row {
    display: grid;
    grid-template-columns: 28px 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--sd-line-soft);
    background: #fff;
    transition: box-shadow var(--sd-dur-base), transform var(--sd-dur-base) var(--sd-ease);
}
.student-row:last-child { border-bottom: 0; }
@media (min-width: 1000px) {
    .student-row { grid-template-columns: 28px 76px minmax(0, 1.4fr) minmax(0, 1.2fr) auto auto; }
}
.student-row--teacher { background: #FFFAEC; }
.student-row--dragging { position: relative; z-index: 2; border-radius: 16px; box-shadow: 0 24px 40px -16px rgba(11, 37, 69, .45); transform: translateX(14px) rotate(-.6deg); opacity: .95; }
.student-row__handle { display: grid; place-items: center; color: var(--sd-text-3); font-size: 20px; cursor: grab; user-select: none; }
.student-row__handle--static { cursor: default; color: var(--sd-gold-500); }
.student-row__fishbox { display: grid; place-items: center; width: 76px; height: 52px; border-radius: var(--sd-r-sm); background: #F0F7FA; }
.student-row--teacher .student-row__fishbox { background: #FFF1C9; }
.student-row__fish { width: 60px; height: 38px; object-fit: contain; }
.student-row__info { display: grid; min-width: 0; }
.student-row__name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.03rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-row__meta { font-size: .84rem; color: var(--sd-text-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-row__meta--bday { display: inline-flex; align-items: center; gap: 4px; color: #C2457A; }
.student-row__meta--bday i { font-size: 14px; }
/* Doğum günü: gün + ay seçicisi ve toplu liste */
.bday-pick { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; }
.bday-list { display: grid; gap: 6px; max-height: min(56vh, 520px); margin: 4px 0 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.bday-list__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); gap: 12px; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--sd-mist); }
.bday-list__name { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .bday-list__row { grid-template-columns: 1fr; gap: 6px; } }
.student-row__fishname { display: none; font-size: .9rem; font-weight: 700; color: var(--sd-text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-row__fishname b { color: var(--sd-text); font-weight: 700; }
.student-row__stats { display: flex; gap: 6px; grid-column: 2 / -1; }
.student-row__actions { display: flex; flex-wrap: wrap; gap: 2px; grid-column: 1 / -1; justify-content: flex-end; }
@media (min-width: 1000px) {
    .student-row__fishname { display: block; }
    .student-row .student-row__meta--fish { display: none; }
    .student-row__stats, .student-row__actions { grid-column: auto; }
}
.pill-stat { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--sd-mist); color: var(--sd-navy-700); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.pill-stat--xp { background: var(--sd-gold-100); color: var(--sd-warn-ink); }

.example { margin: 0; padding: 12px; border-radius: var(--sd-r-sm); background: var(--sd-foam-50); border: 1px solid var(--sd-line); font: .84rem var(--sd-mono); white-space: pre-wrap; }
.bulk-welcome { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--sd-r-sm); background: var(--sd-foam-50); border: 1px solid var(--sd-line); font-weight: 600; }
.bulk-welcome i { flex: none; margin-top: 2px; color: var(--sd-teal-650); font-size: 18px; }
.bulk-result { display: grid; gap: 8px; padding: 14px; border-radius: var(--sd-r-md); background: var(--sd-ok-bg); color: #165C3A; font-size: .9rem; }
.bulk-result__title { margin: 0; font-weight: 800; font-size: 1.05rem; }
.bulk-result ul { margin: 0; padding-left: 20px; max-height: 160px; overflow-y: auto; color: var(--sd-text); }

/* Davet kodu ve paylaşım */
.invite {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 22px;
    border-radius: var(--sd-r-md);
    background: linear-gradient(160deg, var(--sd-aqua-50), var(--sd-aqua-100));
    text-align: center;
}
.invite[hidden] { display: none; }
.invite p { margin: 0; }
.invite__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-teal-700); }
.invite__code { font: 800 2.5rem var(--sd-mono); letter-spacing: .16em; color: var(--sd-text); }
.share { display: flex; gap: 18px; align-items: center; }
@media (max-width: 520px) { .share { flex-direction: column; } }
.share__qr { display: grid; place-items: center; width: 180px; min-height: 180px; flex: none; padding: 10px; border-radius: var(--sd-r-md); border: 1px solid var(--sd-line); background: #fff; }
.share__text { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--sd-text-2); }
.share__text b { color: var(--sd-text); }
.share__url { display: flex; gap: 8px; }
.share__url .input { font: .9rem var(--sd-mono); background: var(--sd-foam-50); color: var(--sd-text-2); }
.notice {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sd-gold-100);
    color: #5C3D00;
    font-size: .875rem;
}
.notice > i { font-size: 22px; color: #B7821A; }
.notice__text { flex: 1; }

/* Veli satırı */
.person { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--sd-line); }
.person__info { flex: 1; min-width: 0; }

/* 6e) Yoklama */
.date-nav { display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 6px; border-radius: 12px; border: 1.5px solid var(--sd-line); background: #fff; }
.date-nav__arrow { width: 40px; height: 40px; border-radius: var(--sd-r-sm); background: var(--sd-mist); color: var(--sd-text); display: grid; place-items: center; }
.date-nav__arrow:hover { text-decoration: none; background: #DCEAF1; color: var(--sd-text); }
.date-nav__arrow[aria-disabled="true"] { background: #F4F7F9; color: #C9D6E0; pointer-events: none; }
.date-nav__picker { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 800; }
.date-nav__picker i { color: var(--sd-teal-650); font-size: 20px; }
.date-nav__picker .input { min-height: 40px; border: 0; padding: 4px 6px; font-weight: 800; background: transparent; }
.date-nav__picker .input:focus { padding: 4px 6px; box-shadow: none; border: 0; }

.attendance { display: grid; gap: 20px; }
.attendance__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sd-line);
}
.attendance__counts { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0; flex: 1; }
.att-count { display: flex; align-items: center; gap: 10px; }
.att-count__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--sd-r-sm); font-size: 22px; }
.att-count__n { font-size: 1.75rem; font-weight: 700; letter-spacing: var(--sd-tracking); line-height: 1; }
.att-count__t { font-weight: 800; font-size: .95rem; color: var(--sd-text-2); }
.attendance__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 1000px) { .attendance__list { grid-template-columns: 1fr 1fr; } }
.attendance__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    border: 1.5px solid #CDEBDB;
    border-radius: var(--sd-r-md);
    background: #F4FBF7;
}
.attendance__row:has(input[value="absent"]:checked)  { background: #FFF5F7; border-color: #F6C9D3; }
.attendance__row:has(input[value="excused"]:checked) { background: #F3F5FE; border-color: #C9D0F5; }
.attendance__row:has(input[value="late"]:checked)    { background: #FFFAEC; border-color: #F3D9A6; }
.attendance__row:has(input[value="absent"]:checked) .attendance__fish,
.attendance__row:has(input[value="excused"]:checked) .attendance__fish { filter: brightness(.82) saturate(.8); }
.attendance__name { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; font-size: 1.03rem; }
.attendance__fishbox { display: grid; place-items: center; width: 64px; height: 46px; flex: none; border-radius: var(--sd-r-sm); background: rgba(255, 255, 255, .7); }
.attendance__fish { width: 52px; height: 32px; object-fit: contain; }
.attendance__row .segmented { background: rgba(255, 255, 255, .75); border: 1px solid var(--sd-line); }
.attendance__row .segmented__option span { padding: 0 12px; font-weight: 800; }
.segmented__option--present input:checked + span { background: var(--sd-ok-ink); color: #fff; }   /* beyaz yazı 4.5:1 üstü (WCAG AA) */
.segmented__option--absent input:checked + span  { background: #B8405A; color: #fff; }
.segmented__option--late input:checked + span    { background: var(--sd-warn); color: var(--sd-reward-ink); }
.segmented__option--excused input:checked + span { background: var(--sd-sleep); color: #fff; }
@media (max-width: 560px) {
    .attendance__row .segmented { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
    .attendance__row .segmented__option span { width: 100%; padding: 0 4px; font-size: .8rem; }
}
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; }

/* 6f) Görevler ve hedefler */
.goals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-bottom: var(--sd-sp-6); }
.goal {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: var(--sd-r-lg);
    background: linear-gradient(135deg, #FFF6DC, #FFE7A8);
    border: 1px solid #F3D9A6;
    color: #4A2D00;
}
.goal--weekly { background: linear-gradient(135deg, var(--sd-aqua-50), var(--sd-aqua-100)); border-color: #B8E3E6; color: var(--sd-teal-700); }
.goal--done { background: linear-gradient(135deg, #E3F6EC, #C7EEDB); border-color: #A9DFC3; color: #165C3A; }
.goal__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(160deg, #FFE08A, #F2A81D);
    color: #4A2D00;
    font-size: 40px;
    box-shadow: 0 10px 20px -10px rgba(183, 112, 26, .8);
}
.goal--weekly .goal__icon { background: linear-gradient(160deg, #7FE3E8, #0B7A86); color: #fff; box-shadow: 0 10px 20px -10px rgba(11, 122, 134, .8); }
.goal--done .goal__icon { background: var(--sd-ok); color: #fff; box-shadow: none; }
.goal__body { flex: 1; display: grid; gap: 8px; }
.goal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal__title { margin: 0; font-size: 1.19rem; font-weight: 800; letter-spacing: -0.01em; color: inherit; }
.goal__count { font-size: 1.5rem; font-weight: 700; letter-spacing: var(--sd-tracking); white-space: nowrap; }
.goal .progress { height: 12px; border-radius: 6px; background: rgba(74, 45, 0, .12); }
.goal .progress__bar { background: linear-gradient(90deg, #F2A81D, #C98A0B); }
.goal--weekly .progress { background: rgba(10, 90, 99, .12); }
.goal--weekly .progress__bar { background: linear-gradient(90deg, #4FD1D9, #0B7A86); }
.goal--done .progress { background: rgba(22, 92, 58, .12); }
.goal--done .progress__bar { background: var(--sd-ok); }
.goal__meta { margin: 0; font-size: .875rem; font-weight: 700; opacity: .85; }

.task-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1100px) { .task-layout { grid-template-columns: 540px minmax(0, 1fr); } }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rubric { padding: 16px; border-radius: 12px; background: var(--sd-foam-50); border: 1px solid var(--sd-line); }
.rubric__hint { margin: 0; font-size: .84rem; }
.rubric__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rubric__row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 40px; align-items: center; gap: 10px; }
.rubric__row::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sd-ok); }
.rubric__row:nth-child(2)::before { background: var(--sd-warn); }
.rubric__row:nth-child(n+3)::before { background: #C9D6E0; }
.rubric__row > .input { min-height: 44px; background: #fff; }
.rubric__food { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 800; color: var(--sd-warn-ink); }
.rubric__food .input { width: 76px; min-height: 44px; background: #fff; }

.task-list { display: grid; gap: 12px; }
.task-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: var(--sd-r-md);
    border: 1px solid var(--sd-line);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color var(--sd-dur-fast), box-shadow var(--sd-dur-fast);
}
@media (min-width: 760px) { .task-item { grid-template-columns: 48px minmax(0, 1fr) 200px auto; } }
.task-item:hover { border-color: var(--sd-aqua-400); box-shadow: var(--sd-sh-1); color: inherit; text-decoration: none; }
.task-item--closed { opacity: .65; }
.task-item__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--sd-r-sm); font-size: 24px; }
.task-item__title { display: block; font-weight: 800; font-size: 1.06rem; }
.task-item__meta { display: block; font-size: .84rem; color: var(--sd-text-2); font-weight: 700; }
.task-item__progress { display: grid; gap: 6px; font-size: .84rem; font-weight: 800; }
.task-item__progress-top { display: flex; justify-content: space-between; }
.task-item__progress-top span:last-child { color: var(--sd-text-2); }

.evaluation { display: grid; gap: 16px; }
.evaluation__bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--sd-r-md);
    background: #fff;
    border: 1px solid var(--sd-line);
}
.evaluation__bulk-text { flex: 1; min-width: 240px; font-weight: 800; }
.evaluation__list { list-style: none; margin: 0; padding: 0; border-radius: var(--sd-r-lg); background: #fff; border: 1px solid var(--sd-line); overflow: hidden; }
.evaluation__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--sd-line-soft);
}
.evaluation__row:last-child { border-bottom: 0; }
.evaluation__row--done { background: #FBFEFC; }
.evaluation__options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rubric-btn { display: inline-flex; align-items: center; gap: 8px; }
.rubric-btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sd-ok); }
.rubric-btn--1 .rubric-btn__dot { background: var(--sd-warn); }
.rubric-btn--2 .rubric-btn__dot, .rubric-btn--3 .rubric-btn__dot, .rubric-btn--4 .rubric-btn__dot { background: #C9D6E0; }
.rubric-btn__food { color: var(--sd-warn-ink); }
.evaluation__bulk { background: var(--sd-foam-50); border: 2px dashed #C9D6E0; }
.evaluation__bulk-text i { color: var(--sd-teal-650); font-size: 1.3em; }
.evaluation__bulk-btn { background: transparent; border-color: var(--sd-line); }
.evaluation__bulk-btn.is-armed { background: var(--sd-absent-bg); border-color: var(--sd-absent); color: var(--sd-absent-ink); }
.evaluation__bulk-btn.is-armed .rubric-btn__food { display: none; }
.evaluation__count { margin: 0; font-weight: 700; }

/* 6g) Veli */
.child-card { }
.child-card__scene { height: 170px; display: grid; place-items: center; }
.child-card__fish { position: relative; z-index: 1; width: 150px; height: 90px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 10, 30, .28)); animation: bob 2.8s ease-in-out infinite; }
.add-child { margin-top: var(--sd-sp-8); }
.add-child__form { display: flex; flex-wrap: wrap; gap: var(--sd-sp-2); }
.add-child__form .input { width: auto; flex: 1 1 200px; }
.add-child__form .input--code { min-height: 52px; font-size: 1.25rem; flex: 2 1 240px; }

.child-grid { display: grid; gap: var(--sd-sp-6); margin-bottom: var(--sd-sp-6); align-items: start; }
@media (min-width: 900px) { .child-grid { grid-template-columns: 1fr 1fr; } }
.fish-card { display: grid; gap: 14px; }
.fish-card__tank { height: 180px; display: grid; place-items: center; border-radius: var(--sd-r-md); }
.fish-card__img { position: relative; z-index: 1; width: 220px; height: 132px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 10, 30, .28)); animation: bob 2.8s ease-in-out infinite; }
.fish-card__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fish-card__head .section-title { margin: 0; flex: 1; }
.fish-card__species { margin: -6px 0 0; font-weight: 700; }
.fish-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fish-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.fish-stats div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--sd-line); }
.fish-stats dt { font-size: .84rem; font-weight: 800; color: var(--sd-text-2); }
.fish-stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: var(--sd-tracking); line-height: 1.1; }
@media (max-width: 480px) { .fish-stats { grid-template-columns: 1fr 1fr; } }

.badge-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.badge-shelf__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.badge-shelf__medal {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(160deg, #FFF2C2, #FFE08A 45%, #C98A0B);
    box-shadow: 0 10px 22px -10px #C98A0B;
}
.badge-shelf__icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: radial-gradient(circle at 35% 30%, #ffffff55, transparent 50%), linear-gradient(160deg, #FFE08A, #C98A0B);
    font-size: 2rem;
    line-height: 1;
}
.badge-shelf__name { font-size: .81rem; font-weight: 800; line-height: 1.2; }
.badge-shelf__item small { font-size: .72rem; color: var(--sd-text-3); font-weight: 700; }

.chart-card { margin-bottom: var(--sd-sp-6); }
.chart { width: 100%; height: auto; max-height: 260px; font-family: var(--sd-font); }
.chart__axis { stroke: var(--sd-line); stroke-width: 2; }
.chart__bar { fill: #B8E3E6; }
.chart__bar--current { fill: var(--sd-teal-600); }
.chart__bar--xp { fill: #F2A81D; }
.chart__bar--food { fill: var(--sd-teal-600); }
.chart__bar--muted { opacity: .3; }
.chart__value { font-size: 12px; font-weight: 800; fill: var(--sd-text); text-anchor: middle; }
.chart__label { font-size: 12px; font-weight: 700; fill: var(--sd-text-2); text-anchor: middle; }
.chart-card__sub { margin: var(--sd-sp-6) 0 var(--sd-sp-3); font-size: 1.06rem; }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.breakdown li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 40px; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; }
.breakdown b { text-align: right; }
.breakdown__bar { width: 100%; height: 10px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; max-height: 460px; overflow-y: auto; }
.timeline__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sd-line-soft); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__body { display: grid; gap: 2px; min-width: 0; font-size: .9rem; line-height: 1.4; }
.timeline__body strong { font-weight: 800; }
.timeline__body small { font-size: .78rem; font-weight: 700; color: var(--sd-text-2); }

/* 6h) Raporlar */
.report-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--sd-sp-6); }
.report-nav__arrows { display: flex; gap: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--sd-line); border-radius: var(--sd-r-md); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--sd-line-soft); text-align: left; white-space: nowrap; }
.table thead th { position: sticky; top: 0; background: var(--sd-foam-50); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sd-text-2); }
.table tbody th { font-weight: 800; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--sd-foam-50); }
.table__row--quiet { opacity: .55; }
.report-note { margin: var(--sd-sp-3) 0 0; font-size: .82rem; }

/* 6i) Bildirimler */
.notifications { position: relative; }
.notifications__toggle { position: relative; width: 44px; height: 44px; border: 1px solid var(--sd-line); background: #fff; color: var(--sd-text); font-size: 22px; }
.app-bar__help { width: 44px; height: 44px; border: 1px solid var(--sd-line); background: #fff; color: var(--sd-text); font-size: 22px; text-decoration: none; }
.notifications__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    border: 2px solid #fff;
    background: var(--sd-coral-500);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 18px;
}
.notifications__count[hidden] { display: none; }
.notifications__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 400;
    width: min(420px, calc(100vw - 2 * var(--sd-gutter)));
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-r-lg);
    background: #fff;
    box-shadow: var(--sd-sh-3);
}
.notifications__panel[hidden] { display: none; }
.notifications__title { margin: 0; padding: 10px 12px; font-weight: 800; font-size: 1.125rem; }
.notifications__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.notifications__item {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 12px 28px 12px 12px;
    border-radius: 12px;
    color: inherit;
    font-weight: 500;
    font-size: .9rem;
    line-height: 1.35;
    text-decoration: none;
}
.notifications__item:hover { background: var(--sd-foam-50); color: inherit; text-decoration: none; }
.notifications__item--unread { background: var(--sd-aqua-50); }
.notifications__item--unread::after { content: ""; position: absolute; right: 12px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--sd-teal-600); }
.notifications__item strong { font-weight: 800; }
.notifications__item span { color: var(--sd-text-2); }
.notifications__item small { color: var(--sd-text-2); font-size: .78rem; font-weight: 700; }
.notifications__empty { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; text-align: center; color: var(--sd-text-2); font-size: .9rem; }
.notifications__empty b { color: var(--sd-text); font-size: 1.06rem; }

/* Animasyonlar (yalnızca transform/opacity) -------------------------------- */
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}
@keyframes bob-flipped {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(-2deg); }
    50%      { transform: scaleX(-1) translateY(-8px) rotate(2deg); }
}

/* 7) Hareket tercihleri --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------ panel: günün notu + görüş / istek bildir */
.daily {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sd-sp-5);
    margin-bottom: var(--sd-sp-6);
    padding: 22px 24px;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(120% 140% at 0% 0%, #13406B 0%, #0B2545 55%, #071A33 100%);
    box-shadow: 0 24px 50px -28px rgba(7, 26, 51, .7);
    color: #fff;
    isolation: isolate;
}
/* İnce dekor: sağ üstte yumuşak turkuaz ışık ve dalga çizgisi */
.daily::before { content: ""; position: absolute; top: -60%; right: -10%; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 209, 217, .28), transparent 65%); }
.daily::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: -1; height: 3px; background: linear-gradient(90deg, #FFC857, #4FD1D9 45%, transparent); opacity: .85; }
.daily__icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 18px; background: linear-gradient(150deg, #FFE08A, #F2A81D 65%, #A86E00); color: #3D2A00; font-size: 32px; box-shadow: 0 10px 24px -10px rgba(242, 168, 29, .8); }
.daily__body { flex: 1; min-width: 0; }
.daily__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; color: #FFD66B; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.daily__eyebrow i { font-size: 15px; }
.daily__title { margin: 0; color: #fff; font-size: 1.3rem; line-height: 1.25; }
.daily__text { margin: 4px 0 0; max-width: 760px; color: #C9DCEB; font-weight: 600; line-height: 1.5; }
.daily__btn { flex: none; background: #fff; color: var(--sd-navy-800); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.daily__btn:hover { background: #FFE9A8; color: var(--sd-navy-900); text-decoration: none; }
.daily__btn i { color: var(--sd-teal-600); }
@media (max-width: 760px) {
    .daily { flex-wrap: wrap; padding: 18px; }
    .daily__icon { width: 48px; height: 48px; font-size: 26px; }
    .daily__body { flex-basis: calc(100% - 70px); }
    .daily__btn { width: 100%; justify-content: center; }
}

.feedback__kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback__kind { position: relative; }
.feedback__kind input { position: absolute; opacity: 0; pointer-events: none; }
.feedback__kind span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--sd-line); border-radius: 999px; background: #fff; color: var(--sd-text); font-weight: 800; font-size: .92rem; cursor: pointer; }
.feedback__kind span:hover { border-color: var(--sd-teal-600); }
.feedback__kind input:checked + span { border-color: var(--sd-teal-600); background: var(--sd-teal-600); color: #fff; }
.feedback__kind input:focus-visible + span { outline: 3px solid rgba(11, 122, 134, .35); outline-offset: 2px; }
.feedback__meta { display: flex; justify-content: space-between; gap: 12px; }
.feedback__meta [data-feedback-count] { font-variant-numeric: tabular-nums; }
.feedback__meta .is-low { color: var(--sd-absent-ink); font-weight: 800; }
.feedback__from { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sd-mist); color: var(--sd-text-2); font-size: .88rem; }
.feedback__from i { color: var(--sd-teal-600); font-size: 20px; flex: none; }
.feedback__from b { color: var(--sd-text); }
.feedback__done { display: grid; justify-items: center; gap: 8px; padding: 12px 0 4px; text-align: center; }
.feedback__done[hidden] { display: none; }
.feedback__done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E3F6EC; color: #1F9D62; font-size: 38px; }
.feedback__done h3 { margin: 4px 0 0; font-size: 1.4rem; }
.feedback__done p { margin: 0 0 8px; max-width: 380px; color: var(--sd-text-2); }

/* ==========================================================================
   Panel görünümü (2026-10): tanıtım sayfasıyla aynı dil — gece laciverti üst bant, cam üst çubuk,
   yumuşak kartlar. Sayfa başlığı bandın üstünde beyaz; içerik kartları bandın üstüne biner.
   ph:fill:cloud-sun ph:fill:waves
   ========================================================================== */
.app-page { background: #F1F6FA; }
.app-page .app-main { position: relative; isolation: isolate; }
/* Koyu bant sayfa başlığını (.page-head) izler: başlık uzadıkça (sınıf sayfasındaki düğmeler, sarılan satırlar)
   bant da uzar. Bant başlığın arkasında tam genişlikte durur, üstünde sekmeler ve uyarılar da kalır;
   alt kenarı yumuşak bir dalgayla açık zemine geçer. */
.app-page .app-main { overflow-x: clip; }
.app-page .page-head { position: relative; isolation: auto; }
.app-page .page-head::before {
    content: "";
    position: absolute;
    top: -260px;
    bottom: -44px;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(40% 120% at 12% 0%, rgba(79, 209, 217, .28), transparent 70%),
        radial-gradient(35% 110% at 88% 10%, rgba(142, 108, 240, .26), transparent 70%),
        radial-gradient(30% 90% at 55% 0%, rgba(255, 154, 139, .14), transparent 70%),
        linear-gradient(180deg, #050F22 0%, #0B2545 100%);
    pointer-events: none;
}
.app-page .page-head::after {
    content: "";
    position: absolute;
    bottom: -45px;
    left: 50%;
    z-index: -1;
    width: 104vw;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #F1F6FA;
    pointer-events: none;
}
.app-page .app-main > .container { position: relative; isolation: isolate; }
.app-page .page-head + * { position: relative; }

/* Üst çubuk: koyu cam, bantla birleşik */
.app-page .app-bar { background: rgba(5, 15, 34, .92); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-page .app-bar .brand__word { color: #fff; }
.app-page .app-nav__link { color: #B9CEE0; }
.app-page .app-nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-page .app-nav__link[aria-current="page"] { background: rgba(79, 209, 217, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(79, 209, 217, .35); }
.app-page .app-nav__link[aria-current="page"] i { color: #8FE8EE; }
.app-page .app-bar__name { color: #fff; }
.app-page .app-bar__name:hover { color: #8FE8EE; }
.app-page .avatar { background: linear-gradient(150deg, #FFD66B, #F2A81D); color: #3D2A00; }
.app-page .app-bar__logout { color: #B9CEE0; }
.app-page .app-bar__logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-page .notifications__toggle { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; }
.app-page .notifications__toggle:hover { background: rgba(255, 255, 255, .14); }
.app-page .app-bar__help { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; }
.app-page .app-bar__help:hover { background: rgba(255, 255, 255, .14); }

/* Sayfa başlığı bandın üstünde */
.app-page .page-head__title { color: #fff; letter-spacing: -0.03em; }
.app-page .page-head__lead, .app-page .page-head__meta { color: #B9CEE0; }
.app-page .page-head__meta .is-accent { color: #8FE8EE; }
.app-page .page-head .btn--secondary { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.app-page .page-head .btn--secondary:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.app-page .page-head .btn--secondary i { color: #8FE8EE; }
.app-page .page-head .btn--primary { background: linear-gradient(180deg, #FFD66B, #F2A81D); color: #3D2A00; box-shadow: 0 10px 24px -10px rgba(242, 168, 29, .8); }
.app-page .page-head .btn--primary:hover { filter: brightness(1.05); color: #3D2A00; }
.app-page .page-head .btn--primary i { color: #3D2A00; }
.app-page .page-head__icon { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.app-page .page-head a:not(.btn) { color: #8FE8EE; }
.app-page .app-main > .container > .alert:first-child { position: relative; z-index: 1; }
/* Sınıflar arası geçiş sekmeleri de bandın üstünde */
.app-page .class-switcher { border-bottom-color: rgba(255, 255, 255, .12); }
.app-page .class-switcher__item { color: #B9CEE0; }
.app-page .class-switcher__item:hover { color: #fff; }
.app-page .class-switcher__item[aria-current="page"] { border-bottom-color: #FFC857; color: #fff; }
.app-page .class-switcher__item--add { color: #8FE8EE; }

/* Kartlar: daha yuvarlak, yumuşak gölge */
.app-page .card { border-radius: 22px; border-color: #E1EAF1; box-shadow: 0 1px 2px rgba(11, 37, 69, .04), 0 18px 40px -30px rgba(11, 37, 69, .35); }
.app-page .section-title { letter-spacing: -0.02em; }

/* İstatistik kutuları: renkli ikon, hafif kabarma */
.app-page .stat { position: relative; overflow: hidden; border-radius: 20px; border-color: #E1EAF1; box-shadow: 0 18px 40px -32px rgba(11, 37, 69, .4); transition: transform .25s var(--sd-ease), box-shadow .25s; }
/* Tona göre üstte ince renk çizgisi */
.app-page .stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #4FD1D9, #0B7A86); opacity: .85; }
.app-page .stat:has(.tone-gold)::before { background: linear-gradient(90deg, #FFD66B, #F2A81D); }
.app-page .stat:has(.tone-blue)::before { background: linear-gradient(90deg, #8FB8FF, #1E6FD9); }
.app-page .stat:has(.tone-rose)::before { background: linear-gradient(90deg, #FF9AB0, #D2546E); }
.app-page .stat:has(.tone-violet)::before { background: linear-gradient(90deg, #C9B8FF, #6C4FE0); }
.app-page .stat:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(11, 37, 69, .5); }
.app-page .stat__icon { width: 44px; height: 44px; border-radius: 14px; }
.app-page .stat__value { font-weight: 800; letter-spacing: -0.03em; }

/* Sınıf kartları: dünyaya göre sahne, dünya rozeti */
.app-page .class-card { border-radius: 22px; border-color: #E1EAF1; box-shadow: 0 22px 44px -32px rgba(11, 37, 69, .5); }
.app-page .class-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -30px rgba(11, 37, 69, .6); }
.app-page .class-card__scene { height: 190px; }
.class-card__scene--sky { background-image: url("../images/themes/gokyuzu-gunesli.webp"); background-color: #6CB4E8; background-position: center 30%; }
.class-card__scene--sky .scene__fish { width: 15%; }
.class-card__world { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(5, 15, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: .8rem; }
.class-card__world i { font-size: 16px; color: #8FE8EE; }
.class-card__scene--sky .class-card__world i { color: #FFC857; }
.app-page .class-card__open { border-radius: 12px; background: linear-gradient(150deg, #4FD1D9, #0B7A86); color: #fff; }
.app-page .class-card--add { border-color: #C9D6E0; background: rgba(255, 255, 255, .6); }
.app-page .class-card--add:hover { border-color: #4FD1D9; background: #fff; }

/* Günün notu bandın renkleriyle uyumlu (zaten koyu) — gölgesi biraz daha belirgin */
.app-page .daily { box-shadow: 0 30px 60px -34px rgba(7, 26, 51, .8); }


/* ------------------------------------------------------------ büyük ekranlar
   Geniş monitörde (2K, 4K, akıllı tahta) içerik dar bir sütunda küçük kalmasın: sayfa kapsayıcıları
   orantılı büyür. Tam genişlikteki arka planlar etkilenmez; akvaryum ekranı bu sınıfları kullanmaz. */
@media (min-width: 1800px) { .container, .lp-wrap, .auth-main { zoom: 1.15; } }
@media (min-width: 2200px) { .container, .lp-wrap, .auth-main { zoom: 1.3; } }
@media (min-width: 2800px) { .container, .lp-wrap, .auth-main { zoom: 1.5; } }

/* ------------------------------------------------------------ panel: özet paneli, ikonlar, etkinlik akışı */
/* İkon kutuları: yumuşak renk zemin + dolu (fill) ikon. metric__icon--{ton} etkinlik akışında da kullanılır */
.metric__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; font-size: 22px; }
.metric__icon--teal   { background: #DDF4F5; color: #0A7480; }
.metric__icon--aqua   { background: #DCF6F8; color: #0E97A3; }
.metric__icon--blue   { background: #E2EDFF; color: #2563D9; }
.metric__icon--orange { background: #FFEADB; color: #E0631D; }
.metric__icon--gold   { background: #FFF2CF; color: #C08400; }
.metric__icon--rose   { background: #FFE4EA; color: #D23F63; }
.metric__icon--violet { background: #ECE6FF; color: #6A48E0; }
.metric__icon--green  { background: #DDF5E8; color: #1C8F59; }
.metric__icon--navy   { background: #E5ECF5; color: #23466F; }

.overview {
    display: grid;
    grid-template-columns: 3fr 4fr;
    margin-bottom: var(--sd-sp-8);
    overflow: hidden;
    border: 1px solid #E1EAF1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 37, 69, .04), 0 24px 48px -36px rgba(11, 37, 69, .45);
}
.overview__group { padding: 20px 22px 22px; }
.overview__group + .overview__group { border-left: 1px solid #EDF2F6; background: linear-gradient(180deg, #FBFDFE, #fff); }
.overview__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 14px; color: #566A82; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.overview__label span { color: #9AACBF; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.overview__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.metric { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 16px; transition: background .2s; }
.metric:hover { background: #F4F8FB; }
.metric__body { display: grid; min-width: 0; }
.metric__value { color: var(--sd-text); font-size: 1.65rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.metric__label { color: #566A82; font-weight: 700; font-size: .84rem; line-height: 1.25; }
.metric--warn { background: #FFF6E5; }
.metric--warn .metric__value { color: #B25E00; }
@media (max-width: 900px) {
    .overview { grid-template-columns: 1fr; }
    .overview__group + .overview__group { border-left: 0; border-top: 1px solid #EDF2F6; }
}

/* Bölüm başlıkları */
.app-page .section-head .section-title, .app-page .activity .section-title { font-size: 1.35rem; font-weight: 800; }
.app-page .section-head a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; color: var(--sd-teal-650); font-weight: 800; text-decoration: none; }
.app-page .section-head a:hover { background: #E3F4F5; }

/* Etkinlik akışı */
.app-page .activity { padding: 20px 20px 10px; }
.activity__head { align-items: center; }
.activity__live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E3F6EC; color: #13734A; font-weight: 800; font-size: .74rem; }
.activity__live i { width: 7px; height: 7px; border-radius: 50%; background: #1FB36B; box-shadow: 0 0 0 3px rgba(31, 179, 107, .2); }
.app-page .activity__list { max-height: 560px; margin-right: -8px; padding-right: 8px; overflow-y: auto; scrollbar-width: thin; }
.app-page .activity__item { align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom-color: #EEF3F7; }
.app-page .activity__icon { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
.activity__body { display: grid; gap: 3px; min-width: 0; }
.app-page .activity__text { color: var(--sd-text); font-weight: 600; font-size: .88rem; line-height: 1.45; }
.activity__times { display: inline-block; margin-left: 2px; padding: 0 7px; border-radius: 999px; background: #EEF3F7; color: #4A5F7A; font-size: .74rem; font-weight: 800; vertical-align: 1px; }
.app-page .activity__meta { display: flex; align-items: center; gap: 6px; color: #5D6F86; font-size: .76rem; font-weight: 700; }
.activity__class { padding: 1px 7px; border-radius: 6px; background: #EEF3F7; color: #4A5F7A; }

/* Sınıf kartı alt kısmı */
.class-card__meta { display: inline-flex; align-items: center; gap: 5px; }
.class-card__meta i { color: #5D6F86; font-size: 15px; }
.app-page .class-card__open { gap: 7px; height: 40px; padding: 0 12px 0 14px; font-size: .86rem; box-shadow: 0 8px 18px -10px rgba(11, 122, 134, .8); }
.class-card__arrow { font-size: 14px; transition: transform .2s; }
.class-card:hover .class-card__arrow { transform: translateX(3px); }
.app-page .class-card--add { min-height: 0; padding: 28px 16px; }
@media (min-width: 640px) { .app-page .grid--cards .class-card--add { min-height: 100%; } }
.app-page .class-card--add .empty__icon { border-radius: 14px; background: #E3F4F5; }

/* Rapor özeti: ödüller (5) ve katılım (3) tek panelde */
.overview--report { grid-template-columns: 1.6fr 1fr; }
.overview--report .overview__items { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.overview--report .overview__group + .overview__group .overview__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview--report .metric { flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 1100px) { .overview--report { grid-template-columns: 1fr; } .overview--report .overview__group + .overview__group { border-left: 0; border-top: 1px solid #EDF2F6; } }

/* ------------------------------------------------------------ yeni logo (2026-10)
   Renkli gezegen işareti + "kudolings"; koyu zeminde "kudo" beyaz, "lings" altın; açık zeminde ikisi de lacivert. */
.brand { gap: 10px; }
/* Kudoling işareti (2026-10-12): karakter ve başındaki yıldız seçilsin diye gezegenden biraz büyük */
.brand__mark { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(5, 15, 34, .25)); }
.brand--lg .brand__mark { width: 62px; height: 62px; }
.brand__word { color: #0F2A4A; letter-spacing: -0.04em; }
.brand__accent { color: #0F2A4A; }
.brand--dark .brand__word { color: #fff; }
.brand--dark .brand__accent, .brand--disc.brand--dark .brand__accent { color: #FFC857; }
@media (max-width: 480px) { .brand__mark, .brand--lg .brand__mark { width: 40px; height: 40px; } }

/* Hızlı öğrenci kaydı: "Akvaryuma bırak" ad alanına girilince açılır (class-page.js .is-open).
   Kapalıyken sütun daralır (grid 0fr), alanlar boşluğu doldurur; açılırken düğme yumuşakça kayarak belirir. */
@media (min-width: 860px) {
    .quick-add__row { grid-template-columns: minmax(0, 2fr) 120px minmax(0, 1.2fr) 0px; column-gap: 0; transition: grid-template-columns .3s var(--sd-ease); }
    .quick-add__row > .field { margin-right: 10px; }
    .quick-add__row > .field:nth-child(3) { margin-right: 0; }
    .quick-add__form.is-open .quick-add__row { grid-template-columns: minmax(0, 2fr) 120px minmax(0, 1.2fr) 210px; }
    .quick-add__go .btn { width: 100%; }
    .quick-add__form.is-open .quick-add__row > .field:nth-child(3) { margin-right: 10px; }
}
.quick-add__go { min-width: 0; overflow: hidden; }
.quick-add__go .btn { width: max-content; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .25s, transform .3s var(--sd-ease), visibility 0s .3s; }
.quick-add__form.is-open .quick-add__go .btn { opacity: 1; visibility: visible; transform: none; transition: opacity .25s .05s, transform .3s var(--sd-ease), visibility 0s; }
@media (max-width: 859px) {
    .quick-add__go { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--sd-ease); }
    .quick-add__go > .btn { min-height: 0; width: 100%; }
    .quick-add__form.is-open .quick-add__go { grid-template-rows: 1fr; }
    .quick-add__form.is-open .quick-add__go > .btn { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .quick-add__row, .quick-add__go, .quick-add__go .btn { transition: none; } }

/* Parola tekrarı: eşleşince yeşil, eşleşmeyince kırmızı çerçeve (app.js) */
.field--match .input { border-color: #1F9D62; box-shadow: 0 0 0 3px rgba(31, 157, 98, .12); }
.field--mismatch .input { border-color: #D2546E; box-shadow: 0 0 0 3px rgba(210, 84, 110, .12); }

/* ------------------------------------------------------------ sınıf sayfası: "Akvaryumu aç" başlatma kartı */
.launch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 128px;
    margin: 0 0 var(--sd-sp-6);
    padding: 22px 26px;
    overflow: hidden;
    border-radius: 24px;
    background: #0C5E91 url("../images/themes/klasik-okyanus.webp") center 45% / cover no-repeat;
    box-shadow: 0 28px 54px -30px rgba(5, 15, 34, .85), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform .3s var(--sd-ease), box-shadow .3s;
}
.launch--sky { background-image: url("../images/themes/gokyuzu-gunesli.webp"); background-color: #3D8FD1; }
.launch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 15, 34, .86) 0%, rgba(5, 15, 34, .55) 45%, rgba(5, 15, 34, .1) 100%); }
.launch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%); transform: translateX(-100%); animation: launch-shine 4.5s ease-in-out 1s infinite; }
.launch:hover { transform: translateY(-3px); box-shadow: 0 34px 60px -28px rgba(5, 15, 34, .9); color: #fff; text-decoration: none; }
.launch__icon { position: relative; display: grid; place-items: center; width: 66px; height: 66px; flex: none; border-radius: 50%; background: linear-gradient(150deg, #FFE08A, #F2A81D); color: #3D2A00; font-size: 30px; box-shadow: 0 12px 26px -10px rgba(242, 168, 29, .9); }
.launch__icon::after { content: ""; position: absolute; inset: -7px; border: 2px solid rgba(255, 214, 107, .7); border-radius: 50%; animation: launch-pulse 2.2s ease-out infinite; }
.launch__icon i { margin-left: 4px; }
.launch__text { display: grid; gap: 3px; min-width: 0; }
.launch__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #9BE7EC; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.launch--sky .launch__eyebrow { color: #FFE3A3; }
.launch__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.launch__sub { color: #D2E1EE; font-weight: 700; font-size: .92rem; }
.launch__go { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 14px 22px; border-radius: 14px; background: #fff; color: #0B2545; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); transition: background .2s; }
.launch:hover .launch__go { background: #FFE9A8; }
.launch__go i { transition: transform .2s; }
.launch:hover .launch__go i { transform: translateX(4px); }
.launch__crew { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.launch__c { position: absolute; width: 74px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: bob 3.4s ease-in-out infinite; }
.launch__c--1 { right: 32%; top: 14%; }
.launch__c--2 { right: 22%; bottom: 10%; width: 60px; animation-delay: -1.2s; }
.launch__c--3 { right: 40%; bottom: 14%; width: 54px; animation-delay: -2.3s; }
@keyframes launch-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes launch-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 760px) {
    .launch { flex-wrap: wrap; padding: 18px; }
    .launch__icon { width: 54px; height: 54px; font-size: 24px; }
    .launch__go { width: 100%; justify-content: center; margin-left: 0; }
    .launch__c { display: none; }
}
@media (prefers-reduced-motion: reduce) { .launch::after, .launch__icon::after, .launch__c { animation: none; } }

/* Pencereler kısa ekranlarda: başlık ve düğmeler sabit kalır, arası kayar (ör. toplu öğrenci ekleme) */
.dialog { max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
.dialog__head { position: sticky; top: -28px; z-index: 2; margin: -28px -28px 0; padding: 28px 28px 12px; background: #fff; }
.dialog__foot { position: sticky; bottom: -28px; z-index: 2; margin: var(--sd-sp-2) -28px -28px; padding: 14px 28px 28px; background: #fff; box-shadow: 0 -12px 18px -14px rgba(11, 37, 69, .25); }
.bulk-result[hidden] { display: none; }
@media (max-height: 820px) {
    .dialog { padding: 22px; }
    .dialog__head { top: -22px; margin: -22px -22px 0; padding: 22px 22px 10px; }
    .dialog__head h2 { font-size: 1.35rem; }
    .dialog__foot { bottom: -22px; margin: var(--sd-sp-2) -22px -22px; padding: 12px 22px 22px; }
    .dialog .input--area { min-height: 0; height: 120px; }
    .dialog .species-picker { max-height: min(260px, 26vh); }
    .dialog .example { padding: 8px 12px; font-size: .8rem; }
}
@media (max-width: 560px) {
    .dialog { padding: 18px; }
    .dialog__head { top: -18px; margin: -18px -18px 0; padding: 18px 18px 10px; }
    .dialog__foot { bottom: -18px; margin: var(--sd-sp-2) -18px -18px; padding: 12px 18px 18px; }
}

/* Yönetimden gelen görüş yanıtı (layouts/app.php [data-feedback-reply]) */
.fbr .dialog__head h2 { font-size: 1.35rem; }
.fbr__meta { margin: 6px 0 14px; color: var(--sd-text-2); font-weight: 700; font-size: .9rem; }
.fbr__quote { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid var(--sd-line); border-radius: 10px; background: var(--sd-foam-50); }
.fbr__quote figcaption { margin-bottom: 4px; color: var(--sd-text-3); font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.fbr__quote blockquote { display: -webkit-box; margin: 0; overflow: hidden; color: var(--sd-text-2); font-weight: 600; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.fbr__reply { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #E8F7F8, #F3FBF7); }
.fbr__avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #0B2545; }
.fbr__reply p { margin: 0; color: var(--sd-text); font-weight: 600; font-size: 1.02rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Premium: tür seçicideki taç, menüdeki kalan süre, kayıttaki davet karşılaması */
.species-option__lock--premium { background: linear-gradient(150deg, #FFE08A, #F2A81D); color: #3D2A00; }
.species-option--premium:not(.species-option--locked) { box-shadow: inset 0 0 0 2px rgba(242, 168, 29, .45); }
.app-nav__link--premium i { color: #E8A317; }
.app-nav__badge { flex: none; margin-left: 2px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.35; background: linear-gradient(150deg, #FFE08A, #F2A81D); color: #3D2A00; font-size: .74rem; font-weight: 800; }
.invite-hello { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(140deg, #2B1B5A, #5B3CC4); color: #fff; font-weight: 600; line-height: 1.4; }
.invite-hello strong { color: #FFE08A; }
.invite-hello__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 214, 107, .2); color: #FFD66B; font-size: 24px; }

/* Profil resmi */
.avatar-card { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: var(--sd-sp-5, 24px); }
.avatar-card__pic { display: grid; place-items: center; width: 112px; height: 112px; flex: none; overflow: hidden; border-radius: 50%; background: linear-gradient(150deg, #4FD1D9, #0B7A86 60%, #0B2545); box-shadow: 0 0 0 4px #fff, 0 12px 26px -12px rgba(11, 37, 69, .5); }
.avatar-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.avatar-card__initials { color: #fff; font-size: 2.4rem; font-weight: 800; }
.avatar-card__body { flex: 1 1 260px; min-width: 0; }
.avatar-card__body .section-title { margin-bottom: 4px; }
.avatar-card__hint { margin: 0 0 12px; color: var(--sd-text-2); font-weight: 600; font-size: .9rem; }
.avatar-card__error { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: #B0304F; font-weight: 700; }
.avatar-card__error[hidden] { display: none; }
.avatar-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-card__actions label.btn { cursor: pointer; }
.avatar-card__actions label.is-busy { opacity: .7; pointer-events: none; }
.avatar-card__actions input[type="file"]:focus-visible + label { outline: 3px solid var(--sd-aqua-300); outline-offset: 2px; }
/* Profil: verimi indir ve hesabımı sil (UK GDPR) */
.data-card, .danger-card { margin-bottom: var(--sd-sp-6); }
.data-card p, .danger-card p { margin: 0 0 10px; color: var(--sd-text-2); font-weight: 600; }
.data-card__list, .danger-card__list { margin: 0 0 16px; padding-left: 1.2em; color: var(--sd-text-2); font-size: .92rem; line-height: 1.55; }
.data-card__form, .danger-card__form { max-width: 460px; }
.danger-card { border: 1.5px solid var(--sd-absent-bg); }
.danger-card .section-title, .danger-card .section-title i { color: var(--sd-absent-ink); }
.danger-card__details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.danger-card__details > summary::-webkit-details-marker { display: none; }
.danger-card__details[open] > summary { margin-bottom: 16px; }
.danger-card__form .check { margin-bottom: 4px; }
.check--error { border-color: var(--sd-absent); }
/* Üst çubuktaki profil resmi */
.avatar--img { padding: 0; overflow: hidden; background: #fff; }
.avatar--img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Yönetim duyurusu (views/partials/announcements.php): sade beyaz kart, solda tür rengi, kapatılabilir */
.ann { display: grid; gap: 10px; margin-bottom: var(--sd-sp-5, 22px); }
.ann__item { --ann: #0B7A86; --ann-2: #19A7B3; --ann-soft: #E6F5F6; --ann-light: #7FE3EA; --ann-deep: rgba(10, 92, 104, .95);
    position: relative; display: flex; gap: 14px; overflow: hidden; padding: 16px 52px 16px 16px; border: 1px solid #E1EAF1; border-radius: 18px;
    background: linear-gradient(100deg, var(--ann-soft), #fff 46%); box-shadow: 0 14px 30px -22px rgba(11, 37, 69, .6);
    transition: height .3s ease, opacity .25s ease, margin .3s ease, padding .3s ease; }
.ann__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--ann-2), var(--ann)); }
/* Açılış penceresi duyurusu (display = pencere): ortada, arkası karartılmış; içinde aynı kart, biraz daha geniş */
.ann-pop { width: min(600px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.ann-pop::backdrop { background: rgba(5, 20, 40, .58); backdrop-filter: blur(3px); }
.ann-pop .ann { margin: 0; }
.ann-pop .ann__item { padding: 26px 58px 26px 24px; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(5, 20, 40, .7); }
.ann-pop .ann__title { font-size: 1.35rem; }
.ann-pop .ann__text { font-size: 1.02rem; }
@media (prefers-reduced-motion: no-preference) { .ann-pop[open] .ann__item { animation: ann-pop-in .32s cubic-bezier(.2, .9, .3, 1.2); } }
@keyframes ann-pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
/* Kampanya duyurusu: Kapat'a basınca altta dolan 5 sn çubuğu (announcements.js closeLater) */
.ann__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(11, 37, 69, .08); }
.ann__timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--ann-2), var(--ann)); transform: scaleX(0); transform-origin: left; transition-property: transform; transition-timing-function: linear; }
@media (prefers-reduced-motion: reduce) { .ann__timer i { transition-duration: 0s !important; transform: scaleX(1); } }
.ann__item--yenilik { --ann: #5B3FD0; --ann-2: #8B6CFF; --ann-soft: #F1EDFF; --ann-light: #CBBDFF; --ann-deep: rgba(62, 40, 150, .95); }
.ann__item--onemli { --ann: #C2410C; --ann-2: #F07A2E; --ann-soft: #FFF1E6; --ann-light: #FFC29A; --ann-deep: rgba(130, 44, 10, .95); }
.ann__item.is-closing { opacity: 0; padding-top: 0; padding-bottom: 0; }
.ann__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(150deg, var(--ann-2), var(--ann));
    color: #fff; font-size: 21px; box-shadow: 0 10px 20px -10px var(--ann); }
.ann__body { min-width: 0; flex: 1; }
.ann__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 3px; color: #566A82; font-size: .78rem; font-weight: 600; }
.ann__meta b { color: var(--ann); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ann__title { margin: 0; color: #0B2545; font-size: 1.08rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.ann__text { margin: 4px 0 0; color: #3E5470; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ann__covers { display: flex; align-items: center; margin: 12px 0 0; padding: 0 0 0 4px; list-style: none; }
.ann__covers li { flex: 0 1 104px; min-width: 52px; aspect-ratio: 16 / 9; margin-left: -10px; overflow: hidden; border: 2px solid #fff; border-radius: 10px;
    background: #0B2545; box-shadow: 0 8px 16px -10px rgba(11, 37, 69, .8); transition: transform .2s ease; }
.ann__covers li:first-child { margin-left: -4px; }
.ann__covers li:hover { position: relative; z-index: 1; transform: translateY(-3px) scale(1.04); }
.ann__covers img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ann__covers .ann__more { display: grid; place-items: center; flex: none; min-width: 54px; aspect-ratio: auto; height: 46px; padding: 0 12px; border-radius: 999px; background: var(--ann); color: #fff; font-weight: 800; font-size: .86rem; }
.ann__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.ann__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; color: #0B2545;
    font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); transition: transform .15s ease, background .15s ease; }
.ann__btn i { color: var(--ann); font-size: 18px; }
.ann__btn:hover { background: #FFE9A8; transform: translateY(-1px); }
.ann__link { display: inline-flex; align-items: center; gap: 6px; color: var(--ann); font-weight: 800; font-size: .92rem; text-decoration: none; }
.ann__link:hover { text-decoration: underline; }
.ann__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px;
    background: transparent; color: #5D6F86; font-size: 16px; cursor: pointer; }
.ann__close:hover { background: rgba(11, 37, 69, .06); color: #0B2545; }
.ann__close:focus-visible, .ann__link:focus-visible, .ann__btn:focus-visible { outline: 3px solid var(--sd-gold-400, #F7C548); outline-offset: 2px; }

/* Akvaryumda: alt ortada koyu cam kart (Günün notu ile aynı aile), türün renginde ışık; tahtayı kapatmaz */
.ann--aquarium { position: fixed; left: 50%; bottom: 18px; transition: bottom .3s ease; z-index: 60; width: min(580px, calc(100vw - 32px)); margin: 0; transform: translateX(-50%);
    animation: ann-in .55s cubic-bezier(.2, 1.2, .4, 1) .8s both; }
.ann--aquarium .ann__item { gap: 16px; padding: 18px 54px 18px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px;
    background: radial-gradient(120% 150% at 0% 0%, var(--ann-deep), rgba(7, 26, 51, .95) 62%);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85), 0 0 0 6px rgba(255, 255, 255, .05); color: #fff; }
.ann--aquarium .ann__item::before { display: none; }
/* Girişte kartın üstünden bir kez geçen ışık */
.ann--aquarium .ann__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%);
    transform: translateX(-100%); animation: ann-shine 1.4s ease 1.3s 1 both; pointer-events: none; }
.ann--aquarium .ann__icon { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; box-shadow: 0 12px 24px -12px var(--ann-2), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ann--aquarium .ann__meta { color: #9FB6CC; }
.ann--aquarium .ann__meta b { color: var(--ann-light); }
.ann--aquarium .ann__title { color: #fff; font-size: 1.18rem; }
.ann--aquarium .ann__text { color: #C9DCEB; font-size: .92rem; line-height: 1.5; }
.ann--aquarium .ann__covers li { border-color: rgba(255, 255, 255, .85); }
.ann--aquarium .ann__covers .ann__more { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }
.ann--aquarium .ann__link { color: var(--ann-light); }
.ann--aquarium .ann__close { color: #fff; background: rgba(255, 255, 255, .1); width: 36px; height: 36px; border-radius: 12px; }
.ann--aquarium .ann__close:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.aq--game ~ .ann--aquarium, .aq--game .ann--aquarium { display: none; }
/* Öğrenci listesi açıkken kart, listenin sağında kalan sahnenin ortasına kayar (sağ sütundaki düğmelere de değmez) */
@media (min-width: 901px) {
    .aq:not(.aq--drawer-closed) .ann--aquarium { left: calc(50% + (var(--aq-drawer-w, 420px) + var(--aq-gap, 12px)) / 2);
        width: min(560px, calc(100vw - var(--aq-drawer-w, 420px) - 420px)); }
}
@keyframes ann-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ann-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ann--aquarium, .ann--aquarium .ann__item::after { animation: none; } .ann--aquarium .ann__item::after { display: none; } .ann__item, .ann__covers li, .ann__btn { transition: none; } }
@media (max-width: 560px) {
    .ann__item, .ann--aquarium .ann__item { padding: 14px 46px 14px 14px; gap: 12px; }
    .ann__icon, .ann--aquarium .ann__icon { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
    .ann__covers li { flex-basis: 72px; }
    .ann__covers .ann__more { height: 34px; min-width: 44px; }
}

/* Paylaşım daveti (partials/share-prompt): üstte balıklı küçük sahne, altta kanal düğmeleri */
.shp { padding: 0; overflow: hidden; }
.shp__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .85); }
.shp__scene { position: relative; height: 150px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #7FE3EA 0%, #1BA6B4 45%, #0B6B86 100%); }
.shp__scene::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -30px; height: 60px; border-radius: 50%; background: #fff; }
.shp__fish { position: absolute; height: auto; filter: drop-shadow(0 8px 10px rgba(4, 40, 60, .3)); animation: shp-swim 3.6s ease-in-out infinite; }
.shp__fish--a { left: 14%; top: 34px; width: 120px; }
.shp__fish--b { left: 44%; top: 18px; width: 104px; animation-delay: -1.2s; animation-duration: 4.2s; }
.shp__fish--c { right: 12%; top: 46px; width: 82px; animation-delay: -2.1s; animation-duration: 3.2s; }
.shp__bubble { position: absolute; bottom: 20px; width: 10px; height: 10px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%;
    animation: shp-rise 4s ease-in infinite; }
.shp__bubble--a { left: 30%; }
.shp__bubble--b { left: 62%; width: 7px; height: 7px; animation-delay: -1.5s; }
.shp__bubble--c { left: 82%; width: 12px; height: 12px; animation-delay: -2.8s; }
@keyframes shp-swim { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(8px, -7px) rotate(2deg); } }
@keyframes shp-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.shp__body { display: grid; gap: 14px; padding: 6px 28px 24px; text-align: center; }
.shp__body h2 { margin: 0; color: var(--sd-navy-800, #0B2545); font-size: 1.6rem; letter-spacing: -.02em; }
.shp__body > p { margin: 0; color: #3E5470; font-size: 1.02rem; line-height: 1.55; }
.shp__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.shp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 10px; border: 0; border-radius: 14px;
    color: #fff; font: inherit; font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 20px -12px rgba(11, 37, 69, .6); transition: transform .15s ease, filter .15s ease; }
.shp__btn i { font-size: 22px; }
.shp__btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }
.shp__btn:focus-visible { outline: 3px solid var(--sd-gold-400, #F7C548); outline-offset: 2px; }
.shp__btn--wa { background: #1FAF55; }
.shp__btn--ig { background: linear-gradient(45deg, #F9A23A 0%, #E1306C 50%, #8A3AB9 100%); }
.shp__btn--fb { background: #1877F2; }
.shp__gift { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF6DC;
    color: #7A5300; font-weight: 700; font-size: .88rem; line-height: 1.45; text-align: left; }
.shp__gift i { flex: none; margin-top: 1px; font-size: 18px; color: #D99A00; }
.shp__later { justify-self: center; padding: 6px 12px; border: 0; background: transparent; color: #566A82; font: inherit; font-weight: 700; cursor: pointer; }
.shp__later:hover { color: #0B2545; text-decoration: underline; }
@media (max-width: 480px) {
    .shp__body { padding: 4px 18px 20px; }
    .shp__buttons { grid-template-columns: 1fr; }
    .shp__fish--a { left: 6%; } .shp__fish--c { right: 4%; }
}
@media (prefers-reduced-motion: reduce) { .shp__fish, .shp__bubble { animation: none; } .shp__bubble { display: none; } }
.shp__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }

/* Sınıf sayfası: öğretmen balığı anahtarı */
.tf-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border: 1px solid var(--sd-line, #E1EAF1);
    border-radius: 12px; background: #fff; color: var(--sd-text, #0B2545); font-weight: 800; font-size: .9rem; cursor: pointer; user-select: none; }
.tf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tf-toggle__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #C9D6E2; transition: background-color .15s; }
.tf-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.tf-toggle input:checked + .tf-toggle__track { background: #0B7A86; }
.tf-toggle input:checked + .tf-toggle__track::after { transform: translateX(16px); }
.tf-toggle input:focus-visible + .tf-toggle__track { outline: 3px solid var(--sd-gold-400, #F7C548); outline-offset: 2px; }
.tf-toggle input:disabled + .tf-toggle__track { opacity: .6; }
.tf-toggle__text { display: inline-flex; align-items: center; gap: 5px; }
.tf-toggle__text i { color: #E9A21B; }

/* ============================================================================
 * Kâşif: /ogretmen/kesfet (views/teacher/explore.php) ve sınıf sayfasındaki kart
 * ========================================================================== */
.xp-head__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--sd-teal-700); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.xp-head__kicker i { font-size: 18px; color: #0B7A86; }

.xp-own { margin-bottom: 22px; padding: 16px 18px; border: 1px solid #E1EAF1; border-radius: 20px; background: #fff; box-shadow: 0 18px 36px -30px rgba(11, 37, 69, .45); }
.xp-own__title { margin: 0 0 10px; font-size: .95rem; font-weight: 800; color: var(--sd-text-2); }
.xp-own__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.xp-own__item a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #DCE7EF; border-radius: 14px; background: #F7FBFD; color: var(--sd-text); text-decoration: none; transition: border-color .15s, background-color .15s; }
.xp-own__item a:hover { border-color: #4FD1D9; background: #fff; text-decoration: none; }
.xp-own__item strong { font-weight: 800; }
.xp-own__off { display: inline-flex; align-items: center; gap: 5px; color: #5D6F86; font-weight: 700; font-size: .85rem; }
.xp-own__hint { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--sd-text-2); font-weight: 600; font-size: .9rem; }
.xp-own__hint i { flex: none; margin-top: 2px; color: #1E6FD9; }

.xp-stat { display: inline-flex; align-items: center; gap: 4px; color: #4A5B70; font-weight: 800; font-size: .88rem; }
.xp-stat i { font-size: 15px; color: #5D6F86; }
.xp-stat--like i { color: #F0435E; }
.xp-stat--like.is-on { color: #C21F3D; }

.xp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.xp-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #E8F0F6; }
.xp-seg__item { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; color: #4A5B70; font-weight: 800; font-size: .9rem; text-decoration: none; transition: background-color .15s, color .15s; }
.xp-seg__item i { font-size: 16px; }
.xp-seg__item:hover { color: var(--sd-text); background: rgba(255, 255, 255, .6); text-decoration: none; }
.xp-seg__item[aria-current="page"] { background: #fff; color: var(--sd-teal-700); box-shadow: 0 4px 10px -6px rgba(11, 37, 69, .4); }
.xp-seg__item[aria-current="page"] i { color: #0B7A86; }

.xp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E1EAF1; border-radius: 22px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 22px 44px -32px rgba(11, 37, 69, .5); transition: transform .2s, box-shadow .2s; }
.xp-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -30px rgba(11, 37, 69, .6); color: inherit; text-decoration: none; }
.xp-card__scene { height: 180px; }
.xp-card__scene--sky { background-color: #6CB4E8; }
.xp-card__scene--sky .scene__fish { width: 15%; }
.xp-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.xp-card__rank { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; background: linear-gradient(150deg, #FFE08A, #F2A81D); color: #3D2A00; font-weight: 800; font-size: .85rem; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.xp-card__rank--2 { background: linear-gradient(150deg, #F1F5F9, #B8C6D4); color: #26364A; }
.xp-card__rank--3 { background: linear-gradient(150deg, #F7C9A1, #C9824A); color: #3D1F05; }
.xp-card__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.xp-card__info { flex: 1; min-width: 0; }
.xp-card__title { margin: 0; overflow: hidden; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.xp-card__teacher { margin: 1px 0 6px; overflow: hidden; color: var(--sd-text-2); font-weight: 700; font-size: .86rem; white-space: nowrap; text-overflow: ellipsis; }
.xp-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.xp-card__go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: linear-gradient(150deg, #4FD1D9, #0B7A86); color: #fff; font-weight: 800; font-size: .88rem; box-shadow: 0 8px 18px -10px rgba(11, 122, 134, .8); }
.xp-empty { padding: 48px 16px; text-align: center; }
.xp-pager { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

.xp-class { display: grid; gap: 16px; padding: 22px; scroll-margin-top: 90px; }
.xp-class__head { display: flex; align-items: flex-start; gap: 14px; }
.xp-class__head .section-title { margin: 0; }
.xp-class__head p { margin: 2px 0 0; }
.xp-class__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, #4FD1D9, #0B7A86); color: #fff; font-size: 24px; }
.xp-class__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-tile { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px 14px; border-radius: 16px; background: #F3F8FB; }
.xp-tile i { grid-row: span 2; font-size: 26px; color: #1E6FD9; }
.xp-tile b { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.xp-tile span { color: var(--sd-text-2); font-weight: 700; font-size: .84rem; }
.xp-tile--like i { color: #F0435E; }
.xp-tile--gift i { color: #E8A317; }
.xp-class__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xp-class__links { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.xp-class__note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--sd-text-2); font-weight: 600; font-size: .86rem; }
.xp-class__note i { color: #1F9D62; font-size: 17px; }
@media (max-width: 640px) {
    .xp-class__stats { grid-template-columns: 1fr; }
    .xp-class__links { margin-left: 0; }
    .xp-bar { flex-direction: column; align-items: stretch; }
    .xp-seg { overflow-x: auto; }
}

/* Tür seçici: premium karakter setinin başlığı */
.species-picker__set { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #3B2391; font-weight: 800; font-size: .9rem; }
.species-picker__set i { color: #E8A317; }

/* Kipli pencerenin içindeki bildirim alanı (api.js toastRegion): pencerenin üstünde, ekranın altında */
.toast-region--modal { position: fixed; z-index: 2147483000; }

/* Yasal onaylar (kayıt formları: partials/legal-consent.php) ve yasal metin biçimi (pencere + views/legal/page.php) */
.lc { display: grid; gap: 10px; margin: 4px 0 0; padding: 14px 14px 12px; border: 1px solid var(--sd-line); border-radius: var(--sd-r-sm, 12px); background: var(--sd-foam-50); }
.lc__legend { padding: 0 6px; font-weight: 800; font-size: .9rem; }
.lc__row { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.lc__row input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sd-teal-650); }
.lc__row small { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #E8EEF3; color: var(--sd-text-2, #5B6B7F); font-weight: 700; font-size: .75rem; }
.lc__row--error span { color: #B42318; }
.lc__error { margin: -4px 0 0 28px; }
.lc__open { padding: 0; border: 0; background: none; color: var(--sd-teal-650); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lc-dialog { width: min(760px, calc(100vw - 2 * var(--sd-gutter))); }
.lc-dialog__body { max-height: min(62vh, 640px); overflow-y: auto; margin: 6px 0 10px; padding-right: 6px; }
.legal-text { color: var(--sd-text); font-size: .95rem; line-height: 1.6; }
.legal-text h2 { margin: 1.4em 0 .4em; font-size: 1.1rem; }
.legal-text h3 { margin: 1em 0 .3em; font-size: 1rem; }
.legal-text p, .legal-text ul { margin: 0 0 .8em; }
.legal-text ul { padding-left: 1.3em; }
.legal-text li { margin-bottom: .3em; }
.legal-text h2.lg-part { margin-top: 2em; padding-top: 1em; border-top: 2px solid var(--sd-line); font-size: 1.3rem; }

/* ------------------------------------------------------------ velileri davet et (sınıf sayfası, panel, sınıf kartı) */
.pi-count { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: .78rem; font-weight: 800; }
.pi-progress { display: grid; gap: 6px; }
.pi-progress p { margin: 0; font-weight: 600; }
.pi-progress__bar { height: 10px; overflow: hidden; border-radius: 999px; background: #E6EEF4; }
.pi-progress__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5FD3B3, #1F9D55); transition: width .6s var(--sd-ease, ease); }
.pi-way { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--sd-line, #E1EAF1); border-radius: 16px; background: #fff; }
.pi-way h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; color: var(--sd-navy-800, #0B2545); }
.pi-way h3 i { color: #1F9D55; }
.pi-way p { margin: 0; }
.pi-msg { min-height: 96px; resize: vertical; font-size: .9rem; line-height: 1.45; }
.pi-way form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pi-tip { display: flex; align-items: flex-start; gap: 6px; margin: 0; }

.pj-requests { border-color: #F1D9A0; background: linear-gradient(135deg, #FFF8E6, #FFFDF6); scroll-margin-top: 90px; }
.pj-requests > p { margin: 4px 0 12px; }
.pj-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pj-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sd-line, #E1EAF1); border-radius: 14px; background: #fff; }
.pj-item__who { display: grid; flex: 1; min-width: 180px; line-height: 1.25; }
.pj-item__who small { color: var(--sd-text-2); font-weight: 600; }

.pv-meter { display: grid; gap: 10px; margin-top: var(--sd-sp-5, 24px); }
.pv-meter__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.pv-meter__head .section-title { margin: 0; }
.pv-meter > p { margin: 0; }
.pv-meter__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pv-meter__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--sd-line, #E1EAF1); }
.pv-meter__list li b { min-width: 80px; }
.pv-meter__list li .btn { margin-left: auto; }
.class-card__parents { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.pj-requests--done { border-color: var(--sd-line, #E1EAF1); background: #fff; }
.pj-recent__title { margin: 14px 0 6px; color: var(--sd-text-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.pj-recent { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pj-recent li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; }
.pj-recent .ph-check-circle { color: #1F9D55; }
.pj-recent .ph-x-circle { color: #C2410C; }
.app-nav__badge--alert { background: #E5484D; color: #fff; }

/* Sınıfı düzenle → okul tatilleri (Term dates and holidays; HolidayController) */
.term-dates { max-width: 780px; margin-top: var(--sd-sp-8); }
.term-dates__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 6px; }
.term-dates__list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid #EDF2F6; }
.term-dates__item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid #EDF2F6; }
.term-dates__name { flex: 1; font-weight: 700; min-width: 0; }
.term-dates__when { color: #4A5B70; white-space: nowrap; }
.term-dates__tag { font-size: .78rem; font-weight: 700; color: #0A6E78; background: #DDF6F7; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.term-dates__add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; }
.term-dates__add .field { margin: 0; }
@media (max-width: 640px) {
    .term-dates__add { grid-template-columns: 1fr 1fr; }
    .term-dates__add .field:first-child, .term-dates__add .btn { grid-column: 1 / -1; }
    .term-dates__item { flex-wrap: wrap; gap: 2px 12px; }
    .term-dates__name { flex-basis: 100%; }
}

/* Yasal taslaklarda avukata/sonraya kalan yer tutucular (views/legal/_*.php; kayıt penceresinde de görünür) */
.legal-text .lg-note { background: #FFF3BF; color: #6B4E00; border-radius: 4px; padding: 0 4px; font-size: .92em; }

/* House points (App\Domain\Houses): renk sınıfları — .house--{renk} kapsayıcıda --house değişkenini verir */
.house--red { --house: #E5484D; }
.house--blue { --house: #3E7BFA; }
.house--green { --house: #2FA36B; }
.house--yellow { --house: #F2B705; }
.house--purple { --house: #8E5BD9; }
.house--orange { --house: #F07A2E; }
.house--teal { --house: #14A3A3; }
.house--pink { --house: #E2549A; }
[class*="house--"] { --house-soft: color-mix(in srgb, var(--house) 14%, #fff); }
.house-dot { display: inline-block; width: .8em; height: .8em; flex: none; border-radius: 50%; background: var(--house, #C5D3DF); vertical-align: -.05em; margin-right: .4em; box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--house, #C5D3DF) 40%, transparent); }

/* Sıralama listesi (partials/house-standings.php) */
.hs-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.hs-row { display: grid; grid-template-columns: 30px minmax(90px, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: 10px; }
.hs-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #EEF3F7; font-weight: 800; font-size: .9rem; color: #4A5B70; }
.hs-row--top .hs-rank { background: #FFF1C2; color: #9A6A00; }
.hs-name { font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.hs-name small { font-weight: 600; }
.hs-bar, .hpa__bar { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border: 0; border-radius: 999px; background: #EEF3F7; overflow: hidden; }
.hs-bar::-webkit-progress-bar, .hpa__bar::-webkit-progress-bar { background: #EEF3F7; border-radius: 999px; }
.hs-bar::-webkit-progress-value, .hpa__bar::-webkit-progress-value { background: var(--house); border-radius: 999px; transition: width .6s var(--sd-ease, ease); }
.hs-bar::-moz-progress-bar, .hpa__bar::-moz-progress-bar { background: var(--house); border-radius: 999px; }
.hs-points { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hs-row { grid-template-columns: 30px 1fr auto; } .hs-bar { grid-column: 2 / -1; grid-row: 2; } }

/* Ev düzenleyici ve yerleştirme (partials/house-editor.php, house-assign.php) */
.he-form { display: grid; gap: 10px; }
.he-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px; align-items: center; gap: 10px; }
.he-row .house-dot { width: 1.1em; height: 1.1em; margin: 0; }
.he-form .btn { justify-self: start; }
.ha-form { display: grid; gap: 14px; }
.ha-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 18px; }
.ha-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 48%); align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #EDF2F6; }
.ha-row label { font-weight: 600; display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ha-row--none .house-dot { background: transparent; box-shadow: inset 0 0 0 2px #C5D3DF; }
.ha-row .input { padding-top: 6px; padding-bottom: 6px; }
.ha-form > .btn { justify-self: start; }

/* Ev kurulumu ve dengeli dağıtım satırı (okul paneli + sınıfı düzenle) */
.hp-custom { width: 100%; margin-top: 10px; }
.hp-custom summary { cursor: pointer; font-weight: 700; color: #0B7A86; margin-bottom: 12px; }
.hp-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.hp-balance p, .hp-balance form { margin: 0; }
#houses .ha-form { margin-top: 6px; }

/* Veli → çocuk sayfası: evi ve katkısı (views/parent/child.php) */
.pv-house { border-top: 4px solid var(--house); }
.pv-house__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 4px; font-size: 1.5rem; font-weight: 800; color: var(--sd-navy-800, #0B2545); }
.pv-house__name small { font-size: .9rem; font-weight: 600; }
.pv-house__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pv-house__stats div { display: grid; padding: 10px 14px; border-radius: 14px; background: #F5F8FB; }
.pv-house__stats b { font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--sd-navy-800, #0B2545); }
.pv-house__stats span { font-size: .85rem; font-weight: 600; color: var(--sd-text-2); }

/* Kudoling karakteri: kayıt sayfası ve boş sınıf ekranı */
.signup-kudo { display: block; width: 104px; height: 104px; margin: -8px auto 4px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(11, 37, 69, .14)); }
.empty__img--kudo { width: 120px; height: 120px; }

/* Deneme sınıfı şeridi (views/partials/demo-bar.php, DemoService) */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 10px 14px; border-radius: 14px;
    background: #FFF4D6; color: #5A4300; font-weight: 600; font-size: .92rem; }
.demo-bar > i { font-size: 1.3rem; color: #B7791F; }
.demo-bar > span { flex: 1 1 260px; }
.demo-bar form { margin: 0; }
.demo-bar--board { position: absolute; left: 50%; bottom: 18px; z-index: 120; margin: 0; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
@media (max-width: 900px) { .demo-bar--board { bottom: 100px; } }

/* /demo sayfası */
.demo-page__list { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.demo-page__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--sd-text-2); font-weight: 600; line-height: 1.45; }
.demo-page__list i { flex: none; margin-top: 2px; color: var(--sd-teal-600); }
