/* ==========================================================================
   LinguDay — arayüz stilleri
   Renkler: mor (ana), turkuaz ve amber (yalnızca vurgu).
   Ermenice yazı tipi: Noto Sans/Serif Armenian (SIL OFL 1.1, assets/fonts/OFL.txt)
   ========================================================================== */

/* Yazı tipleri: unicode-range sayesinde yalnızca Ermeni harfleri içeren sayfalarda yüklenir. */
@font-face {
    font-family: "LD Armenian Sans";
    src: url("../fonts/NotoSansArmenian.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
    font-family: "LD Armenian Serif";
    src: url("../fonts/NotoSerifArmenian.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0530-058F, U+FB13-FB17;
}

:root {
    --purple: #6D28D9;
    --purple-deep: #4C1D95;
    --purple-50: #F5F3FF;
    --purple-100: #EDE9FE;
    --purple-200: #DDD6FE;
    --teal: #14B8A6;
    --teal-50: #F0FDFA;
    --teal-700: #0F766E;
    --amber: #FBBF24;
    --amber-50: #FFFBEB;
    --amber-800: #92400E;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --danger: #DC2626;
    --danger-50: #FEF2F2;

    --font-ui: "LD Armenian Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Armenian", sans-serif;
    --font-armn: "LD Armenian Sans", "Noto Sans Armenian", "Arial Unicode MS", sans-serif;
    --font-armn-serif: "LD Armenian Serif", "Noto Serif Armenian", "LD Armenian Sans", serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(30, 41, 59, .06);
    --shadow: 0 1px 2px rgba(30, 41, 59, .05), 0 8px 24px -12px rgba(30, 41, 59, .12);
    --focus: 0 0 0 3px rgba(109, 40, 217, .28);

    --sidebar-w: 248px;
    --panel-w: 300px;
    --topbar-h: 60px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--purple-deep); }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

.visually-hidden {
    position: absolute !important;
    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: 12px; top: -48px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--purple-deep);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Öğrenilen dildeki metin (lang_attrs): soldan sağa, okunaklı ve yeterince büyük.
   Yazı tipi yazı sistemine göre seçilir; yeni bir yazı sistemi için .script-xxxx eklenir. */
.tl {
    direction: ltr;
    unicode-bidi: isolate;
    letter-spacing: .01em;
}
.script-armn { font-family: var(--font-armn); }
/* Kiril (Rusça): sistem yazı tipleri; Ermenice yazı tipinde Kiril harfi yok. */
.script-cyrl { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.hero-art .script-cyrl, .auth-letters .script-cyrl, .soon-letters .script-cyrl, .lang-card-native.script-cyrl { font-family: Georgia, "Times New Roman", "Noto Serif", serif; }
/* Süsleme amaçlı büyük harfler tırnaklı yazı tipiyle */
.hero-art .script-armn, .auth-letters .script-armn, .soon-letters .script-armn, .lang-card-native.script-armn { font-family: var(--font-armn-serif); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* --------------------------------------------------------------------------
   Marka
   -------------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: none; border-radius: 11px; }
.brand--compact { font-size: 1.05rem; gap: 8px; }
.brand--compact .brand-mark { width: 30px; height: 30px; }
.brand--light, .brand--light:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Düğmeler
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }

.btn-secondary { background: var(--purple-50); color: var(--purple-deep); border-color: var(--purple-100); }
.btn-secondary:hover { background: var(--purple-100); color: var(--purple-deep); }

.btn-light { background: #fff; color: var(--purple-deep); }
.btn-light:hover { background: var(--purple-50); color: var(--purple-deep); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
}
.icon-btn:hover { background: var(--purple-50); color: var(--purple); }
.icon-btn .icon { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Uygulama yerleşimi (masaüstü: menü | içerik | kelimeler)
   -------------------------------------------------------------------------- */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--panel-w);
    grid-template-areas: "side main words";
    min-height: 100vh;
}
.shell--no-panel {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-areas: "side main";
}

.topbar { display: none; }

.sidebar {
    grid-area: side;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 16px 18px;
    background: var(--card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar-close { display: none; }

.lang-pill {
    display: grid;
    gap: 1px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    color: var(--text);
    text-decoration: none;
}
.lang-pill:hover { border-color: var(--purple-200); color: var(--text); }
.lang-pill-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lang-pill-name { font-weight: 650; color: var(--purple-deep); }
.lang-pill-native { font-size: .9rem; color: var(--muted); }

.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-weight: 550;
    font-size: .95rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.nav-link .icon { flex: none; width: 20px; height: 20px; }
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.is-active {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .6);
}
.nav-link--logout:hover { background: var(--danger-50); color: var(--danger); }

.sidebar-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; }
.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--purple-deep);
    font-weight: 700;
}
.sidebar-user-text { display: grid; min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-email { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main {
    grid-area: main;
    min-width: 0;
    padding: 32px clamp(20px, 3vw, 40px) 48px;
}
.main:focus { outline: none; }
.main-content { max-width: 920px; margin: 0 auto; display: grid; gap: 22px; }

.wordpanel {
    grid-area: words;
    min-width: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 26px 18px;
    background: var(--card);
    border-left: 1px solid var(--border);
}
.wordpanel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.wordpanel-title { font-size: 1.05rem; }

.scrim { display: none; }

/* --------------------------------------------------------------------------
   Kartlar ve içerik blokları
   -------------------------------------------------------------------------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    margin-bottom: 12px;
}
.card-title .icon { color: var(--purple); }

.page-head { display: grid; gap: 6px; }
.page-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.page-lead { color: var(--muted); max-width: 60ch; }
.page-note { font-size: .9rem; }

.empty {
    display: grid;
    justify-items: start;
    gap: 14px;
    color: var(--muted);
}
.card.empty { justify-items: center; text-align: center; padding: 36px 22px; }
.empty--compact { padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: .92rem; }

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

/* Ana sayfa karşılama alanı */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(251, 191, 36, .22) 0%, rgba(251, 191, 36, 0) 42%),
        linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
    box-shadow: 0 18px 40px -24px rgba(76, 29, 149, .8);
}
.hero-text { display: grid; gap: 12px; max-width: 40rem; min-width: 0; position: relative; z-index: 1; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--amber); }
.hero-title { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 750; letter-spacing: -0.02em; }
.hero-lead { color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-art {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-armn-serif);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    color: rgba(255, 255, 255, .14);
    user-select: none;
}
.hero-art span:nth-child(2) { color: rgba(251, 191, 36, .55); }

/* Sayaçlar */
.stat-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.stat { display: grid; gap: 8px; align-content: start; }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.stat-value { display: flex; align-items: baseline; gap: 6px; font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.stat-of { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.stat-foot { font-size: .85rem; color: var(--muted); }
.stat--main .stat-value { color: var(--purple-deep); }

.progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--purple-100);
    overflow: hidden;
}
.progress::-webkit-progress-bar { background: var(--purple-100); border-radius: 999px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--purple), var(--teal)); border-radius: 999px; transition: width .3s ease; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--purple), var(--teal)); border-radius: 999px; }

/* Son çalışılan içerik */
.last-item {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}
.last-item:hover { border-color: var(--purple-200); background: var(--purple-50); color: var(--text); }
.last-item-type { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.last-item-label { font-size: 1.35rem; font-weight: 650; }
.last-item-date { font-size: .85rem; color: var(--muted); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: .88rem;
    font-weight: 550;
    text-decoration: none;
}
.chip:hover { border-color: var(--purple-200); background: var(--purple-50); color: var(--purple-deep); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--success { background: var(--teal-50); border-color: rgba(20, 184, 166, .35); color: var(--teal-700); }

/* Dil seçimi */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lang-card { display: grid; gap: 10px; }
.lang-card.is-active { border-color: var(--purple-200); box-shadow: 0 0 0 3px var(--purple-50), var(--shadow-sm); }
.lang-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lang-card-native { font-family: var(--font-armn-serif); font-size: clamp(1.5rem, 6vw, 1.9rem); color: var(--purple); line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.lang-card-name { font-size: 1.2rem; }

/* Hesap ayarları */
.settings { display: grid; gap: 18px; }
.info-list { display: grid; gap: 0; margin: 0 0 12px; }
.info-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: .9rem; }
.info-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Sağ panel: bugünün kelimeleri
   -------------------------------------------------------------------------- */
.wordpanel-date { font-size: .82rem; color: var(--muted); }
.wordpanel-count {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--purple-50);
    color: var(--purple-deep);
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.wordpanel-progress { height: 6px; margin-bottom: 14px; }

.word-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.word-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.word-item:hover { background: var(--bg); color: var(--text); }
.word-item-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.word-item-text { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-item-state { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); }
.word-item-check { width: 14px; height: 14px; opacity: 0; }
.word-item.is-learned .word-item-state { background: var(--teal); border-color: var(--teal); color: #fff; }
.word-item.is-learned .word-item-check { opacity: 1; }
.word-item.is-learned .word-item-num { background: var(--teal-50); color: var(--teal-700); }
.word-item.is-selected { background: var(--purple-50); border-color: var(--purple-200); }
.word-item.is-selected .word-item-num { background: var(--purple); color: #fff; }

/* --------------------------------------------------------------------------
   Kelime ayrıntısı
   -------------------------------------------------------------------------- */
.word-detail { display: grid; gap: 16px; }
.word-crumb { font-size: .88rem; font-weight: 600; color: var(--muted); }
.word-card {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 24px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(251, 191, 36, .14) 0%, rgba(251, 191, 36, 0) 50%),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.word-target {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--purple-deep);
    overflow-wrap: anywhere;
}
.word-target:focus { outline: none; box-shadow: none; }
.word-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.word-fact { padding: 14px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.word-fact dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.word-fact dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 650; overflow-wrap: anywhere; }
.word-pron { color: var(--teal-700); }

.section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.word-section p { line-height: 1.6; }
.example { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--amber); }
.example-target { font-size: 1.35rem; font-weight: 550; }
.example-pron { color: var(--teal-700); font-weight: 550; }
.example-native { color: var(--muted); }

.learn-box {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--purple-200);
    background: var(--purple-50);
}
.learn-box form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.learn-box.is-learned { border-style: solid; border-color: rgba(20, 184, 166, .4); background: var(--teal-50); }
.btn-learn { min-width: 170px; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: #fff; color: var(--text); }
.learn-status { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--teal-700); }
.learn-status .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal); color: #fff; }
.learn-hint { font-size: .8rem; color: var(--muted); }

.word-nav { display: flex; justify-content: space-between; gap: 12px; }
.word-nav-link {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
}
.word-nav-link:hover { border-color: var(--purple-200); color: var(--text); }
.word-nav-link--next { text-align: right; margin-left: auto; }
.word-nav-dir { font-size: .78rem; font-weight: 600; color: var(--muted); }
.word-nav-link .tl { font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content-note { font-size: .8rem; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--border); }

.empty-title { font-size: 1.1rem; font-weight: 650; color: var(--text); }

/* İlerleme ekranı */
.stat-grid--four { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.history { display: grid; gap: 16px; margin-top: 14px; }
.history-day { padding-top: 14px; border-top: 1px solid var(--border); }
.history-day:first-child { padding-top: 0; border-top: 0; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.history-date { font-size: .95rem; }
.chip-list--tight { margin-top: 10px; gap: 6px; }
.chip--word { gap: 6px; font-size: 1rem; }
.chip--word .icon { width: 14px; height: 14px; }
.chip--word.is-learned { background: var(--teal-50); border-color: rgba(20, 184, 166, .35); color: var(--teal-700); }

/* --------------------------------------------------------------------------
   Günlük konuşmalar
   -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.tab:hover { border-color: var(--purple-200); color: var(--purple-deep); }
.tab.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }
.tab-count { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); font-variant-numeric: tabular-nums; }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }

.dialogue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dialogue-card {
    height: 100%;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.dialogue-card:hover { border-color: var(--purple-200); color: var(--text); transform: translateY(-1px); }
.dialogue-card.is-completed { border-color: rgba(20, 184, 166, .35); }
.dialogue-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dialogue-card-title { font-size: 1.1rem; font-weight: 700; }
.dialogue-card-desc { color: var(--muted); font-size: .92rem; }
.dialogue-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.chip--static { min-height: 28px; padding: 3px 10px; font-size: .78rem; background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-deep); }

.dialogue { display: grid; gap: 18px; }
.dialogue-head { display: grid; gap: 6px; }
.dialogue-participants { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.dialogue-participants .icon { width: 16px; height: 16px; }

.dialogue-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.line { display: grid; gap: 4px; max-width: min(560px, 88%); }
.line--start { justify-self: start; }
.line--end { justify-self: end; text-align: right; }
.line-speaker { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 0 6px; }
.line-bubble {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}
.line--start .line-bubble { border-top-left-radius: 6px; background: var(--purple-50); border-color: var(--purple-100); }
.line--end .line-bubble { border-top-right-radius: 6px; }
.line-target { font-size: 1.3rem; font-weight: 550; line-height: 1.4; }
.line-pron { color: var(--teal-700); font-weight: 550; }
.line-native { color: var(--text); }
.line-note {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--amber-50);
    color: var(--amber-800);
    font-size: .85rem;
    text-align: left;
}

.learn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-actions form { display: contents; }

.done-list { list-style: none; margin: 0; padding: 0; display: grid; }
.done-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.done-list li:last-child { border-bottom: 0; }
.done-list a { font-weight: 600; }

.fact-help { margin-left: 6px; font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Okunuş rehberi */
.guide-notes { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.6; }
.guide-notes .tl { font-size: 1.1em; }
.table-wrap { overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.guide-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.guide-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-table td.tl { font-size: 1.25rem; white-space: nowrap; }
.guide-table td.tl.script-latn { font-size: 1.05rem; white-space: normal; }
.guide-table td:first-child { white-space: nowrap; }

/* Fetch ile içerik yüklenirken */
.main-content.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

/* --------------------------------------------------------------------------
   Formlar
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.settings .form { max-width: 440px; }
.settings .form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: #CBD5E1; }
.field input:focus { outline: none; border-color: var(--purple); box-shadow: var(--focus); }
.field.has-error input { border-color: var(--danger); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.field-hint { font-size: .82rem; color: var(--muted); }
.field-error { font-size: .85rem; color: var(--danger); font-weight: 550; }
.link-small { font-size: .85rem; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.password-toggle {
    position: absolute;
    top: 50%; right: 4px;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.password-toggle:hover { color: var(--purple); background: var(--purple-50); }
.password-toggle[aria-pressed="true"] { color: var(--purple); }
.no-js .password-toggle { display: none; }

/* --------------------------------------------------------------------------
   Bildirimler
   -------------------------------------------------------------------------- */
.flash-stack { display: grid; gap: 10px; }
.flash-stack:empty { display: none; }
.main .flash-stack { max-width: 920px; margin: 0 auto 18px; }
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 16px;
    border-radius: 12px;
    border: 1px solid;
    font-size: .93rem;
    font-weight: 500;
}
.alert-text { flex: 1; padding-top: 2px; }
.alert-close {
    flex: none;
    display: grid; place-items: center;
    width: 28px; height: 28px;
    padding: 0;
    border: 0; border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: .7;
    cursor: pointer;
}
.alert-close:hover { opacity: 1; background: rgba(0, 0, 0, .05); }
.alert-close .icon { width: 16px; height: 16px; }
.alert--success { background: var(--teal-50); border-color: rgba(20, 184, 166, .35); color: var(--teal-700); }
.alert--error { background: var(--danger-50); border-color: rgba(220, 38, 38, .3); color: #991B1B; }
.alert--info { background: var(--amber-50); border-color: rgba(251, 191, 36, .5); color: var(--amber-800); }

.toast-region {
    position: fixed;
    left: 50%; bottom: 20px;
    transform: translateX(-50%);
    z-index: 60;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100% - 32px));
    pointer-events: none;
}
.toast-region .alert { pointer-events: auto; box-shadow: var(--shadow); }

/* --------------------------------------------------------------------------
   Giriş / kayıt sayfaları
   -------------------------------------------------------------------------- */
.auth-body { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 40px clamp(28px, 4vw, 56px);
    color: #fff;
    background:
        radial-gradient(90% 70% at 100% 100%, rgba(20, 184, 166, .25) 0%, rgba(20, 184, 166, 0) 60%),
        radial-gradient(80% 60% at 0% 0%, rgba(251, 191, 36, .18) 0%, rgba(251, 191, 36, 0) 55%),
        linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.auth-letters {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 6px 22px;
    font-family: var(--font-armn-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    color: rgba(255, 255, 255, .2);
    user-select: none;
}
.auth-letters span:nth-child(2), .auth-letters span:nth-child(6) { color: rgba(251, 191, 36, .7); }
.auth-tagline { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 750; letter-spacing: -0.02em; max-width: 18ch; }
.auth-sub { color: rgba(255, 255, 255, .8); max-width: 34ch; margin-top: -16px; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 20px; }
.locale-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.locale-switch-item { padding: 5px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.locale-switch-item:hover { color: var(--purple); }
.locale-switch-item.is-active { background: var(--purple-50, #F3EEFF); color: var(--purple-deep); }
.auth-mobile-brand { display: none; }
.auth-card {
    width: min(420px, 100%);
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 36px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.auth-title { font-size: 1.6rem; }
.auth-lead { color: var(--muted); margin-top: -10px; }
.auth-switch { text-align: center; color: var(--muted); font-size: .93rem; }

.error-code { font-size: 3rem; font-weight: 800; color: var(--purple); line-height: 1; }
.error-detail {
    max-height: 240px;
    overflow: auto;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg);
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   Yapım aşamasında sayfası
   -------------------------------------------------------------------------- */
.soon-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(70% 60% at 100% 100%, rgba(20, 184, 166, .22) 0%, rgba(20, 184, 166, 0) 60%),
        radial-gradient(60% 50% at 0% 0%, rgba(251, 191, 36, .2) 0%, rgba(251, 191, 36, 0) 55%),
        linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
    color: #fff;
}
.soon { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.soon-card { width: min(560px, 100%); display: grid; gap: 18px; justify-items: start; }
.soon-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; }
.soon-brand .brand-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.soon-letters { display: flex; gap: 18px; font-family: var(--font-armn-serif); font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; color: rgba(255, 255, 255, .22); user-select: none; margin: 10px 0 4px; }
.soon-letters span:nth-child(2) { color: rgba(251, 191, 36, .75); }
.soon-badge { padding: 5px 12px; border-radius: 999px; background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .5); color: var(--amber); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.soon-title { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.soon-text { color: rgba(255, 255, 255, .85); font-size: 1.05rem; line-height: 1.65; max-width: 44ch; }
.soon-hello { justify-self: stretch; margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   Duyarlı yerleşim
   -------------------------------------------------------------------------- */

/* Tablet: kelime paneli içeriğin üstünde yatay şerit */
@media (max-width: 1179px) {
    .shell {
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
        grid-template-areas: "side words" "side main";
        grid-template-rows: auto 1fr;
    }
    .sidebar { grid-row: 1 / span 2; }
    .wordpanel {
        position: static;
        height: auto;
        padding: 16px clamp(20px, 3vw, 40px);
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }
    .wordpanel > * { max-width: 920px; margin-left: auto; margin-right: auto; }
    .wordpanel-head { margin-bottom: 10px; }
    .hero-art { font-size: 3.5rem; }

    /* Kelime listesi yatay kaydırılabilir şerit olur */
    .wordpanel-progress { margin-bottom: 10px; }
    .word-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .word-list li { flex: none; scroll-snap-align: start; }
    .word-item { border-color: var(--border); background: var(--card); padding: 6px 10px; min-height: 44px; }
    .word-item-text { font-size: 1.05rem; max-width: 12rem; }
    .stat-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobil: menü çekmece olur, üst çubuk görünür */
@media (max-width: 899px) {
    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 6px;
        height: var(--topbar-h);
        padding: 0 10px;
        background: rgba(255, 255, 255, .94);
        border-bottom: 1px solid var(--border);
        -webkit-backdrop-filter: saturate(150%) blur(8px);
        backdrop-filter: saturate(150%) blur(8px);
    }
    .topbar-lang {
        margin-left: auto;
        padding: 4px 10px;
        border-radius: 999px;
        background: var(--purple-50);
        color: var(--purple-deep);
        font-size: .8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .shell, .shell--no-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "words" "main";
        grid-template-rows: auto 1fr;
        min-height: calc(100vh - var(--topbar-h));
    }
    .shell--no-panel { grid-template-areas: "main"; grid-template-rows: 1fr; }

    .sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        z-index: 50;
        width: min(300px, 86vw);
        height: 100%;
        transform: translateX(-102%);
        transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(30, 41, 59, .25);
        visibility: hidden;
    }
    .sidebar.is-open { transform: translateX(0); visibility: visible; }
    .sidebar-close { display: inline-flex; }

    .scrim {
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(30, 41, 59, .45);
    }
    .scrim:not([hidden]) { display: block; }

    .main { padding: 20px 16px 40px; }
    .wordpanel { padding: 14px 16px; }

    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat--main { grid-column: 1 / -1; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .hero-art { display: none; }
    .hero-actions .btn { flex: 1 1 auto; }
    .info-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .word-facts { grid-template-columns: minmax(0, 1fr); }
    .learn-box form { width: 100%; }
    .btn-learn { width: 100%; }
    .stat-grid--four .stat--main { grid-column: auto; }
    .line { max-width: 94%; }
    .tabs { flex-wrap: nowrap; }
    .main { scroll-margin-top: var(--topbar-h); }
    .line-target { font-size: 1.15rem; }

    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
    .auth-panel { justify-content: flex-start; padding-top: 28px; }
    .auth-mobile-brand { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   V2: Becerilerim, listeler, yönetim paneli
   -------------------------------------------------------------------------- */
.field select, .board-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    font-size: 1rem;
    color: var(--text);
}
.field select:focus, .board-filter select:focus { outline: none; border-color: var(--purple); box-shadow: var(--focus); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.badge--danger { background: var(--danger-50); border-color: rgba(220, 38, 38, .3); color: #991B1B; }
.eyebrow--dark { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); }
.eyebrow--dark .icon { width: 16px; height: 16px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lang-card-stats { color: var(--teal-700); font-weight: 600; }
.nowrap { white-space: nowrap; }

/* Haftalık çalışma grafiği (yükseklikler data-height ile; satır içi stil CSP nedeniyle kullanılmaz) */
.week-chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.week-day { display: grid; gap: 6px; justify-items: center; text-align: center; }
.week-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: 44px;
    height: 0;
    min-height: 4px;
    border-radius: 8px;
    background: var(--purple-200);
    overflow: hidden;
}
.week-chart { min-height: 150px; }
.week-day .week-bar[data-height="0"] { background: var(--border); }
.week-bar[data-height="10"] { height: 12px; }  .week-bar[data-height="20"] { height: 24px; }
.week-bar[data-height="30"] { height: 36px; }  .week-bar[data-height="40"] { height: 48px; }
.week-bar[data-height="50"] { height: 60px; }  .week-bar[data-height="60"] { height: 72px; }
.week-bar[data-height="70"] { height: 84px; }  .week-bar[data-height="80"] { height: 96px; }
.week-bar[data-height="90"] { height: 108px; } .week-bar[data-height="100"] { height: 120px; }
.week-bar-words { display: block; width: 100%; background: var(--teal); }
.week-bar-words[data-share="10"] { height: 10%; }  .week-bar-words[data-share="20"] { height: 20%; }
.week-bar-words[data-share="30"] { height: 30%; }  .week-bar-words[data-share="40"] { height: 40%; }
.week-bar-words[data-share="50"] { height: 50%; }  .week-bar-words[data-share="60"] { height: 60%; }
.week-bar-words[data-share="70"] { height: 70%; }  .week-bar-words[data-share="80"] { height: 80%; }
.week-bar-words[data-share="90"] { height: 90%; }  .week-bar-words[data-share="100"] { height: 100%; }
.week-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.week-day.is-today .week-label { color: var(--purple); }
.week-value { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.week-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.legend-dot--words { background: var(--teal); }
.legend-dot--lessons { background: var(--purple-200); }

/* Arama ve sıralama çubuğu */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; }
.filter-search { position: relative; flex: 1 1 260px; }
.filter-search input { padding-left: 42px; }
.filter-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.filter-sort { flex: 0 1 190px; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.segmented-item { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.segmented-item .icon { width: 16px; height: 16px; }
.segmented-item:hover { color: var(--purple-deep); }
.segmented-item.is-active { background: var(--purple); color: #fff; }

/* Öğrenilen kelimeler listesi */
.learned-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.learned-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.learned-main { display: grid; gap: 2px; min-width: 0; }
.learned-word { font-size: 1.35rem; font-weight: 600; color: var(--purple-deep); text-decoration: none; overflow-wrap: anywhere; }
.learned-word:hover { color: var(--purple); text-decoration: underline; }
.learned-pron { color: var(--teal-700); font-weight: 550; font-size: .92rem; }
.learned-meaning { font-weight: 600; overflow-wrap: anywhere; }
.learned-date { white-space: nowrap; }
.learned-list--review .learned-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.learned-reveal summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px dashed var(--purple-200);
    color: var(--purple-deep);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    list-style: none;
}
.learned-reveal summary::-webkit-details-marker { display: none; }
.learned-reveal summary:focus-visible { outline: none; box-shadow: var(--focus); }
.learned-reveal[open] summary { display: none; }
.learned-reveal .learned-meaning { display: inline-block; padding: 6px 0; }
.review-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.review-hint { padding: 12px 16px; border-radius: var(--radius); background: var(--amber-50); color: var(--amber-800); font-weight: 550; flex: 1 1 280px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Yönetim tablosu */
.table-card { padding: 0; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--purple-50); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.is-disabled td { color: var(--muted); }
.table-card .data-table th:first-child, .table-card .data-table td:first-child { padding-left: 20px; }
.table-user { display: grid; gap: 1px; text-decoration: none; margin-bottom: 4px; }
.table-user-name { font-weight: 650; color: var(--text); }
.table-user-email { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.table-user:hover .table-user-name { color: var(--purple); text-decoration: underline; }
.settings .data-table { font-size: .9rem; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.form--inline .field { flex: 1 1 200px; }
.form--inline .btn { align-self: flex-start; margin-top: 27px; }

@media (max-width: 899px) {
    .learned-item { grid-template-columns: minmax(0, 1fr); padding: 14px; }
    .learned-list--review .learned-item { grid-template-columns: minmax(0, 1fr); }
    .week-value { display: none; }
    .week-chart { gap: 6px; }
    .filter-sort { flex: 1 1 140px; }
    .form--inline .btn { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   V2.1: İçerik paneli
   -------------------------------------------------------------------------- */
.pair-card { display: grid; gap: 16px; }
.pair-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pair-title { font-size: 1.15rem; }
.pair-stats { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 12px; }
.pair-stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); display: grid; gap: 4px; align-content: start; }
.pair-stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pair-stat-value { font-size: 1.8rem; font-weight: 750; color: var(--purple-deep); line-height: 1.1; }
.pair-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.pair-toggle p { flex: 1 1 280px; }
.review-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.status-dot--expert_verified { background: var(--teal); }
.status-dot--ai_reviewed { background: var(--amber); }
.status-dot--ai_generated { background: #CBD5E1; }
.status-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.status-pill--expert_verified { background: var(--teal-50); color: var(--teal-700); border-color: rgba(20, 184, 166, .35); }
.status-pill--ai_reviewed { background: var(--amber-50); color: var(--amber-800); border-color: rgba(251, 191, 36, .45); }
.status-pill--ai_generated { background: var(--bg); color: var(--muted); border-color: var(--border); }
.table-word { font-size: 1.15rem; font-weight: 600; color: var(--purple-deep); }
.data-table .badge { margin: 2px 0 0 4px; }

.content-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: 1 / -1; }
.form-grid--four .span-2 { grid-column: span 2; }
.form-grid--four .span-3 { grid-column: span 3; }
.form-grid:not(.form-grid--four) .span-2 { grid-column: 1 / -1; }
.field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--purple); box-shadow: var(--focus); }
.field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field input.input-target { font-size: 1.2rem; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions-nav { display: inline-flex; gap: 8px; margin-left: auto; }
.link-btn { background: none; border: 0; padding: 0 2px; font: inherit; font-weight: 650; color: var(--purple); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--purple-deep); }
.suggest { color: var(--teal-700); }
.content-alert { align-items: flex-start; }
.problem-list { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }

.line-editor { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.line-edit { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); display: grid; gap: 10px; }
.line-edit--new { border-style: dashed; background: #fff; }
.line-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-edit-num { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--purple); }

.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.history-list > li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.history-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.history-meta { font-size: .9rem; }
.history-changes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; }
.history-field { display: inline-block; min-width: 130px; color: var(--muted); font-weight: 600; }
.history-changes del { color: #991B1B; background: var(--danger-50); text-decoration: line-through; padding: 0 3px; border-radius: 4px; overflow-wrap: anywhere; }
.history-changes ins { color: var(--teal-700); background: var(--teal-50); text-decoration: none; padding: 0 3px; border-radius: 4px; overflow-wrap: anywhere; }

@media (max-width: 899px) {
    .pair-stats { grid-template-columns: 1fr 1fr; }
    .pair-stat--wide { grid-column: 1 / -1; }
    .form-grid, .form-grid--four { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2, .form-grid--four .span-2, .form-grid--four .span-3 { grid-column: auto; }
    .form-actions-nav { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   V2.2: Alfabe
   -------------------------------------------------------------------------- */
.letter-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.letter-item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.letter-item:hover { background: var(--bg); color: var(--text); }
.letter-item-glyph { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.letter-item-lower { margin-left: 3px; font-size: .95em; color: var(--muted); font-weight: 500; }
.letter-item-sound { font-size: .72rem; font-weight: 700; color: var(--teal-700); }
.letter-item.is-learned { background: var(--teal-50); border-color: rgba(20, 184, 166, .35); }
.letter-item.is-learned::after {
    content: "";
    position: absolute;
    top: 5px; right: 5px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
}
.letter-item.is-selected { background: var(--purple-50); border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.letter-big { font-family: var(--font-armn-serif); font-size: clamp(4rem, 12vw, 6.5rem); font-weight: 600; line-height: 1; color: var(--purple-deep); letter-spacing: .02em; }
.letter-big:focus { outline: none; }
.letter-big-lower { color: var(--purple); font-weight: 500; }
.letter-detail mark { background: var(--amber-50); color: var(--purple-deep); border-bottom: 3px solid var(--amber); padding: 0 1px; border-radius: 3px; }

.stat-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Alfabesi olmayan dillerde beş kart: üstte üç, altta iki geniş kart. */
.lang-card-about { margin: 0; color: var(--muted); }
.stat-grid--five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-grid--five > * { grid-column: span 2; }
.stat-grid--five > :nth-child(n+4) { grid-column: span 3; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--amber-50); border: 1px solid rgba(251, 191, 36, .45); color: var(--amber-800); font-weight: 600; }
.learned-badge { justify-self: start; margin-top: 2px; }

/* --------------------------------------------------------------------------
   V2.2: Testler
   -------------------------------------------------------------------------- */
.test-setup { display: grid; gap: 18px; }
.choice-group { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice-group legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.choice-group--inline { grid-template-columns: repeat(auto-fit, minmax(110px, max-content)); }
.choice {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.choice input { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; accent-color: var(--purple); margin: 0; }
.choice:hover { border-color: var(--purple-200); }
.choice:has(input:checked) { border-color: var(--purple); background: var(--purple-50); box-shadow: 0 0 0 1px var(--purple); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.choice--small { padding: 10px 14px 10px 40px; }
.choice-title { font-weight: 650; }
.choice-sub { font-size: .82rem; color: var(--muted); }

.test-question { display: grid; gap: 16px; }
.test-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.test-counter { font-size: .88rem; font-weight: 700; color: var(--purple); font-variant-numeric: tabular-nums; }
.test-card { text-align: center; justify-items: center; }
.test-ask { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.test-prompt { font-size: clamp(1.6rem, 6vw, 3.4rem); font-weight: 600; line-height: 1.2; color: var(--purple-deep); overflow-wrap: anywhere; }
.test-prompt:focus { outline: none; }
.test-prompt--letter { font-family: var(--font-armn-serif); font-size: clamp(3.5rem, 10vw, 5.5rem); }
.test-prompt--native { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.test-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.option-btn:hover:not(:disabled) { border-color: var(--purple); background: var(--purple-50); }
.option-btn:active:not(:disabled) { transform: scale(.99); }
.option-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.option-btn:disabled { cursor: default; }
.option-key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bg); color: var(--muted); font-size: .82rem; font-weight: 800; }
.option-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option-text.tl { font-size: 1.3rem; }
.option-btn.is-chosen { border-color: var(--purple); }
.option-btn.is-correct { border-color: var(--teal); background: var(--teal-50); color: var(--teal-700); }
.option-btn.is-correct .option-key { background: var(--teal); color: #fff; }
.option-btn.is-wrong { border-color: var(--danger); background: var(--danger-50); color: #991B1B; }
.option-btn.is-wrong .option-key { background: var(--danger); color: #fff; }
.test-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.test-feedback[hidden] { display: none; }
.test-feedback.is-correct { border-color: rgba(20, 184, 166, .45); background: var(--teal-50); }
.test-feedback.is-wrong { border-color: rgba(220, 38, 38, .3); background: var(--danger-50); }
.test-feedback-text { font-weight: 650; }
.test-leave { text-align: center; }

.grade-pill { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-weight: 750; font-size: .78rem; margin-right: 6px; }
.grade-pill--excellent { background: var(--teal-50); color: var(--teal-700); }
.grade-pill--very_good { background: var(--purple-50); color: var(--purple-deep); }
.grade-pill--good { background: var(--amber-50); color: var(--amber-800); }
.grade-pill--practice { background: var(--danger-50); color: #991B1B; }

.result-card { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.score-ring {
    --p: 0%;
    --ring: var(--purple);
    flex: none;
    display: grid;
    place-items: center;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--ring) var(--p), var(--purple-100) 0);
}
.score-ring::before { content: ""; grid-area: 1 / 1; width: 118px; height: 118px; border-radius: 50%; background: #fff; }
.score-value { grid-area: 1 / 1; position: relative; font-size: 2.1rem; font-weight: 800; color: var(--purple-deep); font-variant-numeric: tabular-nums; }
.result-card--excellent .score-ring { --ring: var(--teal); }
.result-card--good .score-ring { --ring: var(--amber); }
.result-card--practice .score-ring { --ring: var(--danger); }
.score-ring[data-score="0"] { --p: 0%; }
.score-ring[data-score="5"] { --p: 5%; }
.score-ring[data-score="10"] { --p: 10%; }
.score-ring[data-score="15"] { --p: 15%; }
.score-ring[data-score="20"] { --p: 20%; }
.score-ring[data-score="25"] { --p: 25%; }
.score-ring[data-score="30"] { --p: 30%; }
.score-ring[data-score="35"] { --p: 35%; }
.score-ring[data-score="40"] { --p: 40%; }
.score-ring[data-score="45"] { --p: 45%; }
.score-ring[data-score="50"] { --p: 50%; }
.score-ring[data-score="55"] { --p: 55%; }
.score-ring[data-score="60"] { --p: 60%; }
.score-ring[data-score="65"] { --p: 65%; }
.score-ring[data-score="70"] { --p: 70%; }
.score-ring[data-score="75"] { --p: 75%; }
.score-ring[data-score="80"] { --p: 80%; }
.score-ring[data-score="85"] { --p: 85%; }
.score-ring[data-score="90"] { --p: 90%; }
.score-ring[data-score="95"] { --p: 95%; }
.score-ring[data-score="100"] { --p: 100%; }
.result-text { flex: 1 1 260px; display: grid; gap: 4px; }
.result-grade { font-size: 1.6rem; font-weight: 800; color: var(--purple-deep); }
.result-sub { font-weight: 650; }
.section-title { font-size: 1.15rem; }
.reminders { display: grid; gap: 12px; }
.reminder { display: grid; gap: 12px; border-left: 4px solid var(--danger); }
.reminder-head { display: flex; align-items: center; gap: 12px; }
.reminder-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--danger-50); color: #991B1B; font-weight: 800; font-size: .82rem; }
.reminder-prompt { font-size: 1.35rem; font-weight: 650; color: var(--purple-deep); }
.reminder-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.reminder-answers > div { padding: 10px 12px; border-radius: 12px; }
.reminder-answers dt { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.reminder-answers dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.reminder-answers .is-wrong { background: var(--danger-50); color: #991B1B; }
.reminder-answers .is-right { background: var(--teal-50); color: var(--teal-700); }
.reminder-detail { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed var(--border); }
.reminder-word { font-size: 1.2rem; font-weight: 650; color: var(--purple-deep); }
.reminder-example { font-size: .95rem; }
.all-answers summary { cursor: pointer; font-weight: 700; }
.answer-list { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.answer-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.answer-prompt { font-weight: 650; }
.answer-arrow { color: var(--muted); }
.answer-icon { width: 16px; height: 16px; }
.answer-list .is-right .answer-icon { color: var(--teal-700); }
.answer-list .is-wrong .answer-icon { color: var(--danger); }

@media (max-width: 1179px) {
    .stat-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid--six .stat--main { grid-column: auto; }
    .stat-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid--five > *, .stat-grid--five > :nth-child(n+4) { grid-column: auto; }
    .stat-grid--five > :first-child { grid-column: 1 / -1; }
    .letter-grid { display: flex; overflow-x: auto; padding-bottom: 6px; gap: 6px; -webkit-overflow-scrolling: touch; }
    .letter-grid li { flex: none; width: 64px; }
}
@media (max-width: 899px) {
    .test-options { grid-template-columns: minmax(0, 1fr); }
    .reminder-answers { grid-template-columns: minmax(0, 1fr); }
    .score-ring { width: 120px; height: 120px; }
    .score-ring::before { width: 92px; height: 92px; }
}

/* Menü JavaScript olmadan da kullanılabilsin: mobilde çekmece yerine üstte liste */
@media (max-width: 899px) {
    .no-js .sidebar {
        position: static;
        width: auto;
        height: auto;
        transform: none;
        visibility: visible;
        box-shadow: none;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .no-js .topbar .icon-btn, .no-js .sidebar-close { display: none; }
    .no-js .sidebar { grid-row: auto; }
    .no-js .shell { grid-template-areas: "side" "words" "main"; grid-template-rows: auto auto 1fr; }
    .no-js .shell--no-panel { grid-template-areas: "side" "main"; grid-template-rows: auto 1fr; }
}

@media (max-width: 359px) {
    .stat-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .btn { width: 100%; }
}

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

/* --------------------------------------------------------------------------
   Seslendirme (V2.8)
   -------------------------------------------------------------------------- */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.card-head .card-title { margin-bottom: 0; }
.card-link { font-size: .9rem; font-weight: 600; }
.badge--warn { background: var(--amber-50); border-color: rgba(251, 191, 36, .5); color: var(--amber-800); }
.section-heading { font-size: 1.15rem; margin-top: 6px; }
.check-inline { font-weight: 500; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; gap: 6px; }
.btn-small .icon { width: 16px; height: 16px; }
.btn-danger-text { color: var(--danger); }
.btn-danger-text:hover { background: var(--danger-50); color: var(--danger); border-color: rgba(220, 38, 38, .3); }

.audio-lang { display: grid; gap: 12px; }
.audio-lang .card-head { margin-bottom: 0; }
.audio-lang-native { font-weight: 500; color: var(--muted); font-size: .95rem; }
.audio-stats { font-size: .88rem; }
.audio-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-preview input { flex: 1 1 220px; min-width: 0; }
.audio-generate { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-status { font-size: .9rem; color: var(--muted); min-height: 1.2em; margin: 0; }
.audio-status.is-error { color: var(--danger); }
.audio-status.is-ok { color: var(--teal-700); }
.audio-failed { font-size: .85rem; color: var(--danger); padding-left: 18px; margin: 0; }

.audio-section { display: grid; gap: 10px; }
.audio-section .card-head { margin-bottom: 0; }
.audio-rows { display: grid; gap: 10px; }
.audio-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); min-width: 0; }
.audio-row.is-stale { border-color: rgba(251, 191, 36, .7); }
.audio-row.is-busy { opacity: .6; pointer-events: none; }
.audio-row-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.audio-row-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.audio-row-text { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.audio-row-spoken { color: var(--muted); font-size: .9em; overflow-wrap: anywhere; min-width: 0; }
.audio-respell { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.audio-respell-title { margin: 0 0 8px; font-size: 1rem; }
.audio-respell textarea { width: 100%; font-family: inherit; }
.audio-spoken span { font-weight: 600; }
.audio-row-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.audio-row-body audio { height: 36px; max-width: 100%; }
.audio-badge { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.audio-badge--warn { color: var(--amber-800); background: var(--amber-50); border-color: rgba(251, 191, 36, .5); }
.audio-none { font-size: .88rem; color: var(--muted); }
.audio-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.audio-row-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.audio-file { position: relative; overflow: hidden; }
.audio-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.js .audio-upload [data-audio-upload-submit] { display: none; }
[data-audio-record].is-recording { background: var(--danger-50); color: var(--danger); border-color: rgba(220, 38, 38, .3); }

/* Kullanıcı tarafı: dinle düğmesi */
.play-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    border: 1px solid var(--purple-100); background: var(--purple-50); color: var(--purple-deep);
    cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.play-btn:hover { background: var(--purple-100); }
.play-btn .icon { width: 20px; height: 20px; }
.play-btn.is-playing { background: var(--purple); border-color: var(--purple); color: #fff; }
.play-btn--sm { width: 32px; height: 32px; }
.play-btn--sm .icon { width: 16px; height: 16px; }
.with-play { display: flex; align-items: center; gap: 12px; min-width: 0; }
.with-play > :not(.play-btn) { min-width: 0; }
.dialogue-play { margin: 0; }

/* hidden özniteliği, display tanımlı bileşenlerde de (ör. .btn) gizlesin */
[hidden] { display: none !important; }
.audio-preview.field { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.audio-preview.field input { width: auto; }

/* --------------------------------------------------------------------------
   Yasal metinler, site altı, e-posta doğrulama (V2.9)
   -------------------------------------------------------------------------- */
.site-footer { max-width: 920px; margin: 32px auto 0; padding: 18px 0 6px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer-links a { color: var(--muted); text-decoration: none; }
.site-footer-links a:hover { color: var(--purple-deep); text-decoration: underline; }
.site-footer-copy { margin: 0; }
.auth-panel .site-footer { width: min(440px, 100%); margin-top: 0; border-top: 0; justify-items: center; text-align: center; }
.auth-panel .site-footer-links { justify-content: center; }

.page-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.page-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--card); }
.locale-switch--inline { margin: 0; }
.page-shell { width: min(820px, 100%); margin: 0 auto; padding: 28px 20px 8px; display: grid; gap: 18px; flex: 1; align-content: start; }
.page-body .site-footer { width: min(820px, calc(100% - 40px)); margin: 24px auto 24px; }

.legal-doc { display: grid; gap: 16px; }
.legal-note { margin: 0; }
.legal-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 32px); line-height: 1.65; overflow-wrap: anywhere; }
.legal-body h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 10px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 4px; }
.legal-body .legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .92rem; }
.legal-body .legal-table th, .legal-body .legal-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.legal-body .legal-table th { background: var(--bg); width: 34%; }

.legal-accept { display: grid; gap: 14px; }
.legal-accept-list { margin: 0; padding-left: 20px; }
.legal-logout { margin: 0; }

.check-consent { align-items: flex-start; font-weight: 500; font-size: .92rem; line-height: 1.45; }
.check-consent input { margin-top: 3px; flex: none; }
.consent-field { gap: 10px; }

.verify-banner { max-width: 920px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
    padding: 10px 14px; border-radius: 12px; background: var(--amber-50); border: 1px solid rgba(251, 191, 36, .5); color: var(--amber-800); font-size: .92rem; }
.verify-banner-text { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.verify-banner-text .icon { width: 18px; height: 18px; flex: none; }
.verify-banner form { margin: 0; }

.soon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .85rem; }
.soon-links a { color: rgba(255, 255, 255, .75); }
.inline-form { display: inline-flex; margin: 0 0 0 8px; vertical-align: middle; }
.stack { display: grid; gap: 10px; }
.consent-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
@media (max-width: 599px) {
    .legal-body .legal-table, .legal-body .legal-table tbody, .legal-body .legal-table tr { display: block; width: 100%; }
    .legal-body .legal-table th, .legal-body .legal-table td { display: block; width: 100%; }
    .legal-body .legal-table th { border-bottom: 0; }
    .legal-body .legal-table tr + tr th { margin-top: 6px; }
}

/* --------------------------------------------------------------------------
   Üyelik ve Premium (V3.0)
   -------------------------------------------------------------------------- */
.stat-grid--even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-link { text-decoration: none; color: inherit; transition: border-color .15s ease; }
.stat-link:hover { border-color: var(--purple-200); }
.plain-list { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.price-input { width: 110px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: .95rem; }
.price-table td, .price-table th { vertical-align: middle; }
.membership-actions { display: grid; gap: 10px; margin: 12px 0 18px; }
.membership-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.membership-inline form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

.premium-head { text-align: left; }
.premium-status { display: grid; gap: 4px; border-left: 4px solid var(--border); }
.premium-status--premium, .premium-status--trial { border-left-color: var(--teal); }
.premium-status-title { font-weight: 700; margin: 0; }
.premium-status p { margin: 0; }
.compare-table td, .compare-table th { white-space: normal; }
.compare-table thead th { text-transform: none; font-size: .85rem; letter-spacing: 0; }
.compare-pro { color: var(--purple-deep); font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price-card { position: relative; display: grid; gap: 6px; align-content: start; }
.price-card.is-featured { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-100); }
.price-badge { position: absolute; top: -11px; right: 14px; }
.price-name { font-size: 1rem; margin: 0; }
.price-amount { font-size: 1.7rem; font-weight: 750; color: var(--purple-deep); margin: 0; }
.price-sub { font-size: .85rem; margin: 0 0 6px; min-height: 2.4em; }
.premium-notes { display: grid; gap: 6px; }
.premium-locked { display: grid; gap: 12px; justify-items: start; }
.premium-locked-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--purple-50); color: var(--purple); }
.premium-locked-icon .icon { width: 24px; height: 24px; }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--purple-deep); background: var(--purple-50); border: 1px solid var(--purple-100); border-radius: 999px; padding: 2px 8px; }
.lock-badge .icon { width: 12px; height: 12px; }
.tests-quota { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.tests-quota p { margin: 0; }
.word-panel-more { padding: 12px 4px 0; display: grid; gap: 6px; }
.word-panel-more form { margin: 0; }
.word-panel-more .btn { width: 100%; }
.sidebar-membership { display: block; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; font-size: .82rem; font-weight: 600; text-decoration: none;
    background: var(--teal-50); color: var(--teal-700); border: 1px solid rgba(20, 184, 166, .3); }
.sidebar-membership--free { background: var(--purple-50); color: var(--purple-deep); border-color: var(--purple-100); }
@media (max-width: 899px) {
    .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .price-grid, .stat-grid--even { grid-template-columns: minmax(0, 1fr); }
}
.page-shell > *, .main-content > * { min-width: 0; }
.compare-table tbody th, .price-table tbody th { text-transform: none; letter-spacing: 0; font-size: .9rem; white-space: normal; color: inherit; background: transparent; font-weight: 600; }
@media (max-width: 520px) {
    .compare-table th, .compare-table td { padding: 10px 8px; font-size: .85rem; }
    .price-input { width: 84px; }
}

/* ---------- V3.1: satın alma ---------- */
.page-kicker { margin: 0 0 4px; font-size: .85rem; font-weight: 600; }
.page-kicker a { color: var(--muted); text-decoration: none; }
.page-kicker a:hover { color: var(--purple-deep); text-decoration: underline; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.checkout-total { font-size: 1.25rem; font-weight: 800; color: var(--purple-deep); }
.billing-type { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.billing-type-option { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; background: var(--card); }
.billing-type-option:has(input:checked) { border-color: var(--purple); background: var(--purple-50, #F5F3FF); color: var(--purple-deep); }
.contract-box { max-height: 320px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg, #F8FAFC); font-size: .9rem; margin-bottom: 16px; overflow-wrap: anywhere; }
.contract-box h2 { font-size: 1.05rem; }
.contract-box h3 { font-size: .95rem; }
.consent-list { display: grid; gap: 10px; }
.check-consent.has-error { color: #991B1B; }
.checkout-actions { margin-top: 8px; }
.paytr-frame-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.paytr-frame { display: block; width: 100%; min-height: 720px; border: 0; }
.checkout-result { text-align: center; }
.checkout-result .form-actions { justify-content: center; }
.checkout-result-icon .icon { width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.checkout-result--pending .card-title::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid var(--border); border-top-color: var(--purple); border-radius: 50%; animation: ld-spin .8s linear infinite; vertical-align: middle; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.payment-row-meta { font-size: .8rem; color: var(--muted); }
.payments-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.payments-summary .stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.payments-summary .stat strong { display: block; font-size: 1.2rem; }
.settings-secret-hint { font-size: .8rem; color: var(--muted); }
.code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; padding: 2px 6px; border-radius: 6px; background: var(--bg, #F1F5F9); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .checkout-result--pending .card-title::after { animation: none; } }
.page-head--row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.page-head--row > div { min-width: 0; flex: 1 1 280px; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--purple-200); }
.plain-list.numbered { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.settings > * { min-width: 0; }
.data-table .code-inline { white-space: nowrap; }
.checkout-form .form-grid + .form-grid { margin-top: 16px; }
.checkout-result .card-title { justify-content: center; }
.checkout-result-icon { display: flex; justify-content: center; margin: 0 0 8px; }
.checkout-form { display: grid; gap: 18px; }
.checkout-form > .card { margin: 0; }

/* ---------- V3.1 görsel revizyon: önceki/sonraki çubuğu, şerit düğmeleri ---------- */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.step-nav-counter { flex: 1 1 auto; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); min-width: 0; }
.step-nav-btn { min-height: 42px; padding: 8px 16px; white-space: nowrap; }
.step-nav-btn.is-disabled { opacity: .4; pointer-events: none; }
.step-nav-more { margin: 0; }
.btn-more { background: var(--amber); color: #3B2A03; border-color: var(--amber); font-weight: 700; }
.btn-more:hover { background: #F59E0B; color: #3B2A03; }
.btn-more .icon { width: 16px; height: 16px; }
.strip { position: relative; }
.strip-btn { display: none; }
.letter-big-row { gap: 18px; }
.play-btn--lg { width: 56px; height: 56px; flex: none; }
.play-btn--lg .icon { width: 26px; height: 26px; }
@media (max-width: 1179px) {
    .strip.is-scrollable { display: flex; align-items: center; gap: 6px; }
    .strip.is-scrollable [data-strip-list] { flex: 1 1 auto; min-width: 0; }
    .strip-btn { display: inline-grid; place-items: center; flex: none; width: 34px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
        background: var(--card); color: var(--purple-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0 3px; }
    .strip-btn[hidden] { display: none; }
    .strip-btn:hover:not(:disabled) { border-color: var(--purple-200); background: var(--purple-50); }
    .strip-btn:disabled { opacity: .35; cursor: default; }
    .word-panel-more { display: none; }
    .shell--panel-wide-only { grid-template-areas: "side main"; grid-template-rows: 1fr; }
    .shell--panel-wide-only .wordpanel { display: none; }
}
@media (max-width: 899px) {
    .shell--panel-wide-only { grid-template-areas: "main"; grid-template-rows: 1fr; }
    /* V3.2: mobilde önceki–sonraki çubuğu ekranın en altında sabit, mor zeminli */
    .step-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--purple);
        box-shadow: 0 -8px 24px -12px rgba(76, 29, 149, .55); }
    .step-nav-spacer { display: block; height: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .step-nav-btn { padding: 8px 12px; }
    .step-nav .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
    .step-nav .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
    .step-nav .btn-secondary { background: #fff; color: var(--purple-deep); border-color: #fff; }
    .step-nav .btn-secondary:hover { background: var(--purple-50); color: var(--purple-deep); }
    .step-nav .step-nav-btn.is-disabled { opacity: .45; }
    .step-nav .step-nav-counter { color: #fff; }
    .play-btn--lg { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
    .step-nav-counter { font-size: .78rem; }
    .step-nav { gap: 6px; }
    .step-nav-btn { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 899px) {
    .no-js .shell--panel-wide-only { grid-template-areas: "side" "main"; grid-template-rows: auto 1fr; }
}
@media (max-width: 899px) { .step-nav-label { display: none; } .step-nav-counter { font-size: .95rem; } }

.step-nav-spacer { display: none; }

/* --------------------------------------------------------------------------
   V3.2: kelime / harf şeridinin altında "Tümünü genişlet"
   -------------------------------------------------------------------------- */
.strip-expand { display: none; }
@media (max-width: 1179px) {
    .strip-expand { display: inline-flex; align-items: center; gap: 6px; margin: 8px auto 0; padding: 6px 12px; border: 0; border-radius: 999px;
        background: transparent; color: var(--purple); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
    .strip-expand:hover { background: var(--purple-50); color: var(--purple-deep); }
    .strip-expand-arrow { display: inline-block; transition: transform .2s ease; }
    .strip-expand[aria-expanded="true"] .strip-expand-arrow { transform: rotate(180deg); }
    .wordpanel > .strip-expand { display: flex; width: max-content; }
    .strip.is-expanded { display: block; }
    .strip.is-expanded .strip-btn { display: none; }
    .strip.is-expanded .word-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); overflow: visible; gap: 6px; padding-bottom: 0; }
    .strip.is-expanded .word-item-text { max-width: none; }
    .strip.is-expanded .letter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); overflow: visible; padding-bottom: 0; }
    .strip.is-expanded .letter-grid li { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .strip-expand-arrow { transition: none; } }

/* --------------------------------------------------------------------------
   V3.2: üye profilleri ve avatar
   -------------------------------------------------------------------------- */
.avatar { overflow: hidden; }
img.avatar { object-fit: cover; background: var(--purple-50); padding: 0; }
.avatar--sm { width: 36px; height: 36px; font-size: .95rem; }
.avatar--md { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar--lg { width: 88px; height: 88px; font-size: 2rem; }
.avatar--xl { width: 112px; height: 112px; font-size: 2.6rem; box-shadow: 0 0 0 4px #fff, 0 10px 24px -14px rgba(76, 29, 149, .6); }
a.sidebar-user { text-decoration: none; color: var(--text); border-radius: var(--radius-sm); }
a.sidebar-user:hover, a.sidebar-user.is-active { background: var(--purple-50); color: var(--purple-deep); }
.photo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 18px; }
.photo-row .info-list { flex: 1 1 260px; }
.photo-actions { display: grid; gap: 8px; justify-items: start; }
.photo-actions form { margin: 0; }
.photo-pick { cursor: pointer; }
.photo-pick:focus-within { box-shadow: var(--focus); }
.field-static { margin: 0; font-weight: 600; }
.field-label, .gender-field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 6px; }
.gender-field { border: 0; margin: 0; padding: 0; }
.choice--avatar { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 42px; }
.choice--avatar input { top: 50%; transform: translateY(-50%); }
.choice-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.verify-banner--profile { background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-deep); }
.member-card { display: grid; gap: 14px; }
.member-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.member-head-text { display: grid; gap: 6px; min-width: 0; }
.member-name { margin: 0; overflow-wrap: anywhere; }
.member-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); font-size: .9rem; }
.member-meta span { display: inline-flex; align-items: center; gap: 6px; }
.member-meta .icon { width: 16px; height: 16px; }
.member-bio { margin: 0; white-space: normal; overflow-wrap: anywhere; font-size: 1.02rem; }
.member-notice { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--purple-50); color: var(--purple-deep); font-size: .9rem; }
.member-notice .icon { width: 18px; height: 18px; flex: none; }
.member-notice--warn { background: var(--amber-50); color: var(--amber-800); }
.member-langs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.member-lang { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.member-lang-name { font-weight: 700; color: var(--purple-deep); flex: 1 1 140px; }
.member-lang-stat { color: var(--muted); font-size: .9rem; }
.member-lang-stat strong { color: var(--text); font-size: 1.05rem; }
.member-streak { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.member-streak .icon { width: 18px; height: 18px; color: var(--amber-800); }
@media (max-width: 520px) {
    .member-head { gap: 14px; }
    .avatar--xl { width: 88px; height: 88px; font-size: 2rem; }
}
.no-js .strip-expand { display: none !important; }

/* V3.2: beş arayüz diliyle dil düğmesi dar ekranda taşmasın */
.locale-switch { flex-wrap: wrap; justify-content: center; max-width: 100%; }
@media (max-width: 520px) { .locale-switch { border-radius: 18px; } .locale-switch-item { padding: 5px 10px; } }

/* --------------------------------------------------------------------------
   V3.2.1: mesajlaşma
   -------------------------------------------------------------------------- */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff;
    font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.tab .nav-badge { margin-left: 4px; display: inline-block; }
.topbar-msg { position: relative; margin-left: 4px; }
.topbar-lang + .topbar-msg { margin-left: 4px; }
.topbar .brand + .topbar-msg { margin-left: auto; }
.nav-badge--dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: .66rem; padding: 0 4px; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .empty { padding: 32px 22px; text-align: center; }
.convo-list { list-style: none; margin: 0; padding: 0; }
.convo-list li + li { border-top: 1px solid var(--border); }
.convo { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text); text-decoration: none; min-width: 0; }
.convo:hover { background: var(--purple-50); }
.convo-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.convo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.convo-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-time { color: var(--muted); font-size: .8rem; flex: none; }
.convo-snippet { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.is-unread .convo-name, .convo.is-unread .convo-snippet { color: var(--text); font-weight: 700; }
.convo-you { color: var(--muted); font-weight: 400; }
.convo-snippet .badge { margin-right: 4px; }
.blocked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thread-person { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.thread-name { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.request-card { background: var(--purple-50); border-color: var(--purple-100); }
.request-card p { margin: 0 0 6px; }
.thread-card { display: grid; gap: 14px; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: min(60vh, 640px); overflow-y: auto; padding-right: 4px; }
.msg { display: grid; gap: 3px; max-width: min(80%, 560px); }
.msg--mine { justify-self: end; justify-items: end; }
.msg--theirs { justify-self: start; justify-items: start; }
.msg-bubble { padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg--mine .msg-bubble { background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }
.msg--theirs .msg-bubble { background: #F1F5F9; color: var(--text); border-bottom-left-radius: 5px; }
.msg-removed { opacity: .75; }
.msg-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.msg-report summary { cursor: pointer; color: var(--muted); list-style: none; }
.msg-report summary::-webkit-details-marker { display: none; }
.msg-report summary:hover { color: var(--danger); }
.msg-report[open] summary { color: var(--danger); }
.msg-report-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
    font-size: .88rem; color: var(--text); max-width: 340px; }
.msg-report-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.msg-report-form legend { font-weight: 650; margin-bottom: 4px; }
.msg-report-note { display: grid; gap: 4px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; align-items: end; border-top: 1px solid var(--border); padding-top: 14px; }
.composer textarea { resize: vertical; min-height: 46px; }
.composer .field-error, .composer-hint { grid-column: 1 / -1; margin: 0; }
.composer--new { border-top: 0; padding-top: 0; grid-template-columns: minmax(0, 1fr); }
.thread-actions { justify-content: flex-end; }
.member-actions { margin-top: 2px; }
.badge--premium { background: var(--amber); color: #3B2A03; margin-left: 4px; }
.report-card { display: grid; gap: 8px; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-note { margin: 0; font-style: italic; color: var(--muted); }
.report-context { margin: 0; padding: 10px 14px; list-style: none; display: grid; gap: 6px; background: #F8FAFC; border-radius: var(--radius-sm); }
.report-context li { overflow-wrap: anywhere; }
.report-context li.is-reported { background: var(--danger-50); margin: 0 -8px; padding: 4px 8px; border-radius: 6px; }
@media (max-width: 520px) {
    .msg { max-width: 88%; }
    .composer { grid-template-columns: auto minmax(0, 1fr); }
    .composer textarea { grid-column: 1 / -1; }
    .composer > .btn-primary { justify-self: end; grid-column: -2 / -1; }
    .convo { padding: 12px 14px; }
}
.composer textarea, .msg-report-form textarea, #kelimeler textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
    font: inherit; font-size: 1rem; color: var(--text); line-height: 1.45; }
.composer textarea:focus, .msg-report-form textarea:focus, #kelimeler textarea:focus { outline: none; border-color: var(--purple); box-shadow: var(--focus); }
.composer.has-error textarea, .composer textarea[aria-invalid="true"] { border-color: var(--danger); }

/* ---------- V3.2.2: duyurular ---------- */
.team-avatar { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; }
.team-avatar-mark { width: 48px; height: 48px; }
.unread-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.announcement { display: grid; gap: 12px; }
.announcement-head { display: flex; align-items: center; gap: 12px; }
.announcement-title { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.announcement-body { line-height: 1.6; overflow-wrap: anywhere; }
.announcement-body a { color: var(--purple-deep); }
.card-title--pad { padding: 18px 18px 0; }

/* ---------- V3.3: puanlar ve başarı listesi ---------- */
.stat--points .stat-value { color: var(--purple-deep); }
.member-points { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.member-points .icon { color: #D97706; }
.board-me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board-me-stat { display: grid; gap: 4px; }
.board-me-value { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; color: var(--purple-deep); }
.board-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.board-controls .tabs { margin: 0; }
.board-filter select { width: auto; min-width: 220px; min-height: 42px; font-weight: 600; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.board-row + .board-row { border-top: 1px solid var(--border); }
.board-row.is-me { background: var(--purple-50); }
.board-rank { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-row--1 .board-rank { background: #FDE68A; color: #92400E; }
.board-row--2 .board-rank { background: #E5E7EB; color: #374151; }
.board-row--3 .board-rank { background: #FED7AA; color: #9A3412; }
.board-person { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; color: var(--text); text-decoration: none; }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board-points { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.board-me-line { padding: 12px 18px; border-top: 1px dashed var(--border); margin: 0; font-weight: 600; }
.partner-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.partner-card { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; text-align: center; }
.partner-card:hover { border-color: var(--purple); }
.partner-name { font-weight: 600; }
.board-how { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.board-how strong { display: inline-block; min-width: 42px; color: var(--purple-deep); }
@media (max-width: 600px) {
    .board-me-value { font-size: 1.3rem; }
    .board-row { padding: 10px 12px; gap: 10px; }
    .board-filter, .board-filter select { width: 100%; }
}

/* ---------- V3.4: mesajlarda resim ---------- */
.msg-bubble--image { padding: 4px; display: grid; gap: 6px; }
.msg-bubble--image .msg-text { padding: 2px 9px 5px; }
.msg-image-link { display: block; border-radius: 12px; overflow: hidden; line-height: 0; }
.msg-image { display: block; max-width: min(100%, 340px); max-height: 360px; width: auto; height: auto; object-fit: cover; background: #E2E8F0; }
.composer-attach { min-height: 46px; padding: 0 12px; cursor: pointer; }
.composer-attach .icon { width: 22px; height: 22px; }
.composer-attach:focus-within { box-shadow: var(--focus); }
.composer-file { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.composer-file [data-image-name] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--purple-deep); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- V3.4: yönetim — mesaj denetimi ---------- */
.mod-filter .filter-search { flex: 1 1 220px; }
.mod-filter .check-inline { white-space: nowrap; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mod-item { display: grid; gap: 10px; padding: 14px 16px; }
.mod-item.is-removed { background: #FAFAFA; border-style: dashed; }
.mod-item.is-removed .mod-text, .mod-item.is-removed .mod-image img { opacity: .55; }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mod-person { font-weight: 700; color: var(--text); text-decoration: none; }
.mod-person:hover { color: var(--purple-deep); text-decoration: underline; }
.mod-arrow { color: var(--muted); }
.mod-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.mod-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; flex: 1 1 240px; }
.mod-image { display: block; line-height: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #F1F5F9; }
.mod-image img { display: block; width: 160px; height: 120px; object-fit: cover; }
.mod-image--sm { display: inline-block; vertical-align: middle; margin-right: 6px; }
.mod-image--sm img { width: 72px; height: 54px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mod-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mod-person-card { display: grid; gap: 4px; }
.mod-person-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.mod-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mod-msg { max-width: min(80%, 620px); display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #F1F5F9; justify-self: start; }
.mod-msg--b { background: var(--purple-50); justify-self: end; }
.mod-msg.is-highlight { box-shadow: 0 0 0 3px var(--warning, #F59E0B); }
.mod-msg.is-removed { opacity: .6; border: 1px dashed var(--border); }
.mod-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mod-msg-action { justify-self: end; font-size: .85rem; }
@media (max-width: 600px) {
    .mod-msg { max-width: 94%; }
    .mod-image img { width: 120px; height: 90px; }
}

/* ---------- V3.4: yönetici menüsü başlığı ---------- */
.nav-heading { margin: 18px 12px 6px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-list--admin .nav-link { font-size: .95rem; }

/* ---------- V3.4: sistem durumu ---------- */
.sys-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border-left: 5px solid var(--success, #16A34A); }
.sys-summary--warn { border-left-color: #F59E0B; }
.sys-summary--fail { border-left-color: var(--danger); }
.sys-list { list-style: none; margin: 0; padding: 0; }
.sys-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--border); }
.sys-mark { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.sys-mark .icon { width: 16px; height: 16px; }
.sys-item--ok .sys-mark { background: #DCFCE7; color: #166534; }
.sys-item--warn .sys-mark { background: #FEF3C7; color: #92400E; }
.sys-item--fail .sys-mark { background: var(--danger-50); color: #991B1B; }
.sys-item--info .sys-mark { background: #E0F2FE; color: #075985; }
.sys-text { display: grid; gap: 2px; overflow-wrap: anywhere; }
.mod-msg .mod-image { justify-self: start; }
.mod-msg--b .mod-image { justify-self: end; }
.mod-msg .mod-image img { width: auto; max-width: 260px; height: auto; max-height: 220px; }

/* ---------- V3.5: maskot, bayrak, çok alfabeli süs harfleri ---------- */
.mascot { display: block; width: 160px; height: auto; }
.mascot--xs { width: 56px; }
.mascot--sm { width: 96px; }
.mascot--md { width: 150px; }
.mascot--lg { width: 240px; }
.mascot--aside { width: 150px; margin-top: auto; align-self: flex-end; }
.flag { display: inline-block; flex: 0 0 auto; width: 30px; height: 20px; border-radius: 4px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); vertical-align: middle; }
.flag svg { width: 100%; height: 100%; display: block; }
.flag--lg { width: 54px; height: 36px; border-radius: 7px; }
.flag--sm { width: 21px; height: 14px; border-radius: 3px; }
.script-hani { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Serif CJK SC", "Source Han Sans SC", sans-serif; }
.auth-letters .script-latn, .glyph.script-latn { font-family: Georgia, "Times New Roman", "Noto Serif", serif; }
.auth-letters .script-cyrl, .glyph.script-cyrl { font-family: Georgia, "Times New Roman", "Noto Serif", serif; }
.auth-letters .script-armn, .glyph.script-armn { font-family: var(--font-armn-serif); }
.auth-letters .script-hani { font-weight: 300; font-size: .82em; }

/* ==========================================================================
   V3.5: tanıtım sayfaları (ana sayfa ve dil sayfaları)
   ========================================================================== */
.landing-body { background: #fff; }
.lnd-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.lnd-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.lnd-top-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.lnd-links { display: flex; gap: 22px; margin-left: 12px; }
.lnd-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.lnd-links a:hover { color: var(--purple); }
.lnd-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lnd-lang { position: relative; }
.lnd-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text); }
.lnd-lang summary::-webkit-details-marker { display: none; }
.lnd-lang summary .icon { width: 18px; height: 18px; color: var(--purple); }
.lnd-lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.lnd-lang-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.lnd-lang-menu a:hover, .lnd-lang-menu a.is-active { background: var(--purple-50); color: var(--purple-deep); }

.lnd-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
    radial-gradient(60% 70% at 85% 30%, rgba(251, 191, 36, .22) 0%, rgba(251, 191, 36, 0) 60%),
    radial-gradient(70% 80% at 10% 0%, rgba(109, 40, 217, .12) 0%, rgba(109, 40, 217, 0) 60%), var(--purple-50); }
.lnd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.lnd-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--purple-deep); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-sm); }
.lnd-slogan { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.07; letter-spacing: -.03em; color: var(--purple-deep); font-weight: 850; }
.lnd-lead { margin: 18px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #475569; max-width: 56ch; }
.lnd-stats { margin: 12px 0 0; font-weight: 700; color: var(--purple-deep); }
.lnd-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lnd-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.lnd-note .icon { width: 18px; height: 18px; color: var(--teal-700); }
.lnd-crumb { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.lnd-crumb a { color: var(--purple); }

.lnd-hero-art { position: relative; min-height: 360px; display: grid; place-items: end center; }
.mascot--hero { width: min(300px, 80%); position: relative; z-index: 2; filter: drop-shadow(0 18px 24px rgba(76, 29, 149, .18)); }
.lnd-bubble { position: absolute; z-index: 3; top: 6%; left: 0; max-width: 230px; margin: 0; padding: 12px 16px; background: #fff; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow); font-weight: 650; color: var(--purple-deep); font-size: .95rem; line-height: 1.35; }
.lnd-glyphs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lnd-glyph { position: absolute; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; color: var(--purple); opacity: .16; font-weight: 700; }
.lnd-glyph--1 { top: 2%; right: 4%; color: var(--purple); opacity: .22; }
.lnd-glyph--2 { top: 30%; right: -2%; color: #D97706; opacity: .45; }
.lnd-glyph--3 { top: 56%; right: 8%; }
.lnd-glyph--4 { top: 8%; left: 44%; opacity: .2; }
.lnd-glyph--5 { bottom: 4%; left: 2%; color: #D97706; opacity: .4; }
.lnd-glyph--6 { top: 44%; left: 0; }
.lnd-glyph--7 { bottom: 18%; right: 30%; opacity: .12; }
.lnd-glyph--8 { top: 64%; left: 22%; color: var(--teal-700); opacity: .22; }
.lnd-hero-art--page { place-items: center; }
.flag--hero { position: absolute; top: 8%; right: 8%; width: 96px; height: 64px; border-radius: 12px; transform: rotate(8deg); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .4); z-index: 1; }

.lnd-section { padding: 64px 0; }
.lnd-section + .lnd-section { padding-top: 24px; }
.lnd-h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.lnd-h3 { margin: 0 0 6px; font-size: 1.25rem; }
.lnd-sub { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 64ch; }

.lnd-lang-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lnd-lang-card { height: 100%; display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.lnd-lang-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--purple-200); }
.lnd-lang-card .flag { margin-bottom: 8px; }
.lnd-lang-name { font-size: 1.2rem; font-weight: 800; }
.lnd-lang-native { color: var(--muted); font-size: 1.05rem; }
.lnd-lang-stats { font-size: .9rem; color: var(--muted); }
.lnd-lang-cta { margin-top: 6px; color: var(--purple); font-weight: 700; }
.lnd-lang-grid--compact .lnd-lang-card { padding: 16px; }

.lnd-results { background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; }
.lnd-section.lnd-results { padding: 64px 0; margin-top: 40px; }
.lnd-results .lnd-h2 { color: #fff; }
.lnd-results .lnd-sub { color: rgba(255, 255, 255, .8); }
.lnd-results-row { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lnd-result { display: grid; gap: 2px; padding: 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.lnd-result-label { font-weight: 600; color: rgba(255, 255, 255, .78); }
.lnd-result-value { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-weight: 850; letter-spacing: -.02em; }
.lnd-result--year .lnd-result-value { color: var(--amber); }
.lnd-result-unit { color: rgba(255, 255, 255, .78); }
.lnd-result-bar { margin-top: 12px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.lnd-result-fill { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.lnd-fill--day { width: 4%; }
.lnd-fill--week { width: 12%; }
.lnd-fill--month { width: 34%; }
.lnd-fill--year { width: 100%; }
.lnd-results-note { margin: 20px 0 0; max-width: 72ch; color: rgba(255, 255, 255, .85); }

.lnd-features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lnd-feature { padding: 20px; border-radius: var(--radius-lg); background: var(--purple-50); border: 1px solid var(--purple-100); }
.lnd-feature h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.lnd-feature p { margin: 0; color: #475569; font-size: .95rem; }
.lnd-feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.lnd-feature-icon .icon { width: 22px; height: 22px; }

.lnd-demo { padding: 28px; border-radius: 26px; background: #fff; border: 2px solid var(--purple-100); box-shadow: 0 20px 40px -28px rgba(76, 29, 149, .45); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.lnd-demo-head { grid-column: 1 / -1; }
.lnd-demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lnd-demo-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 650; cursor: pointer; color: var(--text); }
.lnd-demo-tab[aria-selected="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.lnd-demo-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lnd-demo-word { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "w p" "r p" "m p"; gap: 0 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--purple-50); }
.lnd-demo-target { grid-area: w; font-size: 1.5rem; font-weight: 700; color: var(--purple-deep); }
.lnd-demo-pron { grid-area: r; color: var(--muted); }
.lnd-demo-mean { grid-area: m; font-weight: 600; }
.lnd-demo-word .play-btn { grid-area: p; }
.lnd-quiz { padding: 20px; border-radius: 18px; background: var(--amber-50); border: 1px solid #FDE68A; }
.lnd-quiz-q { margin: 0 0 14px; font-size: 1.15rem; font-weight: 700; }
.lnd-quiz-q .tl { color: var(--purple-deep); font-size: 1.3rem; }
.lnd-quiz-options { display: grid; gap: 8px; }
.lnd-quiz-option { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: left; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.lnd-quiz-option:hover:not(:disabled) { border-color: var(--purple); }
.lnd-quiz-option.is-right { background: #DCFCE7; border-color: #22C55E; }
.lnd-quiz-option.is-wrong { background: var(--danger-50); border-color: var(--danger); }
.lnd-quiz-result { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.lnd-quiz-result.is-right { color: #15803D; }
.lnd-quiz-result.is-wrong { color: #B91C1C; }
.lnd-quiz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.lnd-steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.lnd-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.lnd-steps li { display: flex; gap: 16px; align-items: flex-start; }
.lnd-steps h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.lnd-steps p { margin: 0; color: var(--muted); }
.lnd-step-n { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--purple-deep); font-weight: 850; }
.lnd-steps-mascot { width: 200px; }

.lnd-premium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; align-items: start; padding: 28px; border-radius: var(--radius-lg); border: 1px dashed var(--purple-200); background: #FCFBFF; }
.lnd-premium .lnd-h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lnd-premium-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: var(--amber-50); color: var(--amber-800); font-weight: 700; font-size: .85rem; }
.lnd-premium-badge .icon { width: 16px; height: 16px; }
.lnd-premium-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lnd-premium-list li { display: flex; gap: 8px; align-items: flex-start; }
.lnd-premium-list .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--purple); }
.lnd-premium-trial { margin: 0; grid-column: 1 / -1; color: var(--muted); }
.lnd-premium .btn { justify-self: start; }

.lnd-faq-wrap { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.lnd-faq-head { position: sticky; top: 90px; display: grid; gap: 18px; }
.lnd-faq { display: grid; gap: 10px; }
.lnd-faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 0 18px; }
.lnd-faq-item[open] { border-color: var(--purple-200); background: #FCFBFF; }
.lnd-faq-item summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative; }
.lnd-faq-item summary::-webkit-details-marker { display: none; }
.lnd-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--purple); font-weight: 700; }
.lnd-faq-item[open] summary::after { content: "–"; }
.lnd-faq-item h3 { margin: 0; font-size: 1.05rem; }
.lnd-faq-item p { margin: 0 0 16px; color: #475569; }

.lnd-final { margin-top: 32px; padding: 48px 0; background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; }
.lnd-final-inner { display: flex; align-items: center; gap: 32px; }
.lnd-final .lnd-h2 { color: #fff; }
.lnd-final p { color: rgba(255, 255, 255, .85); margin: 8px 0 18px; }

.lnd-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.lnd-table { width: 100%; border-collapse: collapse; }
.lnd-table th { text-align: left; padding: 12px 16px; background: var(--purple-50); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lnd-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.lnd-word { font-size: 1.25rem; font-weight: 700; color: var(--purple-deep); }
.lnd-pron { color: var(--muted); }
.lnd-play { width: 1%; }
.lnd-alphabet { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lnd-letter { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.lnd-letter-glyph { font-size: 1.9rem; line-height: 1.1; color: var(--purple-deep); font-weight: 700; }
.lnd-letter-name { font-weight: 650; }
.lnd-letter-sound { color: var(--muted); font-size: .9rem; }
.lnd-letter .play-btn { position: absolute; top: 10px; right: 10px; }
.lnd-topics { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lnd-topic { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.lnd-topic .icon { width: 20px; height: 20px; color: var(--purple); }
.lnd-topic-name { font-weight: 650; }
.lnd-topic-count { color: var(--muted); font-size: .9rem; margin-right: auto; }
.lnd-topic .badge .icon { width: 12px; height: 12px; color: inherit; }
.lnd-plan { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--amber-50); border: 1px solid #FDE68A; }
.lnd-plan p { margin: 0; color: #475569; }

.lnd-footer { padding: 48px 0 24px; background: #1E1B4B; color: rgba(255, 255, 255, .78); }
.lnd-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.lnd-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lnd-footer a:hover { color: #fff; text-decoration: underline; }
.lnd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lnd-footer li a { display: inline-flex; align-items: center; gap: 8px; }
.lnd-footer-title { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.lnd-footer-about p { margin: 12px 0; max-width: 40ch; }
.lnd-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 960px) {
    .lnd-links { display: none; }
    .lnd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lnd-hero-art { min-height: 300px; order: -1; }
    .lnd-hero--page .lnd-hero-art { order: 0; min-height: 260px; }
    .lnd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lnd-results-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lnd-demo { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .lnd-faq-wrap { grid-template-columns: minmax(0, 1fr); }
    .lnd-faq-head { position: static; display: flex; align-items: center; justify-content: space-between; }
    .lnd-faq-head .mascot { width: 90px; }
    .lnd-premium { grid-template-columns: minmax(0, 1fr); }
    .lnd-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .lnd-steps-mascot { display: none; }
    .lnd-steps-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .lnd-top-inner { gap: 8px; }
    .lnd-top .brand span { display: none; }
    .lnd-lang summary span { display: none; }
    .lnd-lang summary { padding: 7px 9px; }
    .lnd-actions .btn-small { padding: 6px 10px; }
    .lnd-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .lnd-lang-card { padding: 14px; }
    .lnd-lang-name { font-size: 1.05rem; }
    .lnd-lang-stats { font-size: .8rem; }
    .lnd-hero { padding: 24px 0 40px; }
    .lnd-hero-art { min-height: 250px; }
    .mascot--hero { width: 190px; }
    .lnd-bubble { max-width: 170px; font-size: .85rem; top: 2%; }
    .lnd-features { grid-template-columns: minmax(0, 1fr); }
    .lnd-section { padding: 44px 0; }
    .lnd-final-inner { flex-direction: column; text-align: center; }
    .lnd-cta-row .btn { flex: 1 1 100%; }
    .flag--hero { width: 70px; height: 46px; }
}

.auth-intended { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--purple-50); color: var(--purple-deep); font-weight: 600; font-size: .92rem; }
.lnd-lang-name { overflow-wrap: anywhere; hyphens: auto; }
.lnd-topics { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lnd-topic { flex-wrap: wrap; }
.lnd-topic-name { flex: 1 1 auto; }
.lnd-topic-count { margin-right: 0; }
.lnd-table-wrap { position: relative; }
@media (max-width: 560px) {
    .lnd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .lnd-table, .lnd-table tbody { display: block; }
    .lnd-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "w p" "r p" "m p"; padding: 12px 14px; border-top: 1px solid var(--border); }
    .lnd-table tr:first-child { border-top: 0; }
    .lnd-table td { padding: 0; border: 0; }
    .lnd-table td:nth-child(1) { grid-area: w; }
    .lnd-table td:nth-child(2) { grid-area: r; }
    .lnd-table td:nth-child(3) { grid-area: m; font-weight: 600; }
    .lnd-table td:nth-child(4) { grid-area: p; align-self: center; width: auto; }
}

.error-mascot { margin: 0 auto 4px; }
.soon-mascot { margin: 0 auto; width: 130px; }
.empty-mascot { margin: 0 auto 8px; }
.soon-letters .script-latn, .soon-letters .script-cyrl { font-family: Georgia, "Times New Roman", "Noto Serif", serif; }

.hero-art .hero-mascot { width: clamp(110px, 12vw, 150px); flex: 0 0 auto; filter: drop-shadow(0 10px 18px rgba(30, 10, 70, .35)); }
@media (max-width: 560px) { .hero-art .hero-mascot { width: 92px; } }
