/* Arapça Öğren — Mısır Lehçesi Portalı
   Tasarım dili: lacivert (Nil gecesi) + altın (papirüs) + turkuaz vurgu; açık/koyu tema. */
:root {
  --bg: #F4F2EC;
  --bg2: #ECE8DE;
  --surface: #FFFFFF;
  --surface2: #FAF8F3;
  --ink: #101B2D;
  --ink2: #2B3A52;
  --muted: #667085;
  --line: #E4DED1;
  --navy: #12284A;
  --navy2: #1D3D6E;
  --gold: #C8962E;
  --gold2: #E9C46A;
  --gold-soft: #FBF1DA;
  --teal: #0E9384;
  --teal-soft: #DDF4F1;
  --red: #D14343;
  --red-soft: #FDE7E7;
  --green: #12A150;
  --green-soft: #E3F6EA;
  --shadow: 0 1px 2px rgba(16, 27, 45, .05), 0 8px 24px rgba(16, 27, 45, .06);
  --shadow-lg: 0 20px 50px rgba(16, 27, 45, .14);
  --r: 18px;
  --r-sm: 12px;
  --side: 268px;
  --ar-font: 'Noto Naskh Arabic', 'Amiri', 'Segoe UI', Tahoma, serif;
  --ui-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1424; --bg2: #0F1B30; --surface: #13213A; --surface2: #172843; --ink: #EEF2F8; --ink2: #C9D3E3;
    --muted: #8D9AB0; --line: #22355A; --gold-soft: #2B2617; --teal-soft: #0F2E30; --red-soft: #3A1C22; --green-soft: #12301F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1424; --bg2: #0F1B30; --surface: #13213A; --surface2: #172843; --ink: #EEF2F8; --ink2: #C9D3E3;
  --muted: #8D9AB0; --line: #22355A; --gold-soft: #2B2617; --teal-soft: #0F2E30; --red-soft: #3A1C22; --green-soft: #12301F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ui-font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.ar { font-family: var(--ar-font); direction: rtl; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Yerleşim / Layout ── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--navy) 0%, #0D1E38 100%); color: #DCE5F3; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 2px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand b { display: block; font-size: 17px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.nav-h { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #7F93B5; font-weight: 800; margin: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #C6D2E6; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(233,196,106,.18), rgba(233,196,106,.04)); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold2); }
.nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); color: #B8C6DD; padding: 2px 8px; border-radius: 99px; }
.side-card { margin-top: auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; font-size: 12.5px; color: #AFC0DA; }
.side-card b { color: #fff; font-size: 22px; display: block; letter-spacing: -.02em; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .mbrand { display: none; }
.gsearch { flex: 1; max-width: 640px; position: relative; }
.gsearch input { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 92px 0 42px; outline: none; transition: border-color .15s, box-shadow .15s; }
.gsearch input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.gsearch > svg { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.gsearch kbd { position: absolute; right: 10px; top: 10px; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--muted); background: var(--surface2); }
.gs-pop { position: absolute; left: 0; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; }
.gs-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.gs-item:hover, .gs-item.act { background: var(--surface2); }
.gs-item .ar { font-size: 20px; grid-row: span 2; align-self: center; text-align: right; }
.gs-item small { color: var(--muted); }
.gs-more { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--teal); text-decoration: none; }
.tbtn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.tbtn:hover { border-color: var(--gold); color: var(--gold); }
.tbtn.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.sec-h .btn.playing { background: var(--teal); color: #fff; border-color: var(--teal); }
.content { padding: 28px; width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; }
.bnav { display: none; }

/* ── Ortak bileşenler / Shared components ── */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.ph h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
.ph p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--teal); text-decoration: none; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .1s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy2); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.ok { background: var(--green); color: #fff; }
.btn.no { background: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { font-size: 11px; opacity: .65; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lv { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); flex-shrink: 0; }
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn.on { color: var(--gold); background: var(--gold-soft); border-color: var(--gold); }
.icon-btn.on svg { fill: currentColor; }
.icon-btn.play { color: var(--teal); }
.icon-btn.playing { background: var(--teal); color: #fff; border-color: var(--teal); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty b { display: block; font-size: 40px; margin-bottom: 8px; }
.note { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: var(--ink2); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade { animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Kelime kartı / Entry card ── */
.entry { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: border-color .15s, transform .15s; }
.entry:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.entry .top-row { display: flex; align-items: center; gap: 8px; }
.entry .top-row .tag { margin-right: auto; }
.entry .ar { font-size: 26px; line-height: 1.5; text-align: right; color: var(--ink); }
.entry .fr { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; color: var(--teal); font-weight: 600; }
.entry .ok { font-weight: 800; color: var(--navy2); }
:root[data-theme="dark"] .entry .ok { color: var(--gold2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entry .ok { color: var(--gold2); } }
.entry .tr { background: var(--surface2); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.entry .meta { font-size: 12.5px; color: var(--muted); }
.entry .ex { border-left: 3px solid var(--gold); padding: 4px 0 4px 10px; font-size: 13px; color: var(--ink2); }
.entry .ex .ar { font-size: 18px; text-align: left; direction: rtl; }
.read-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.read-row small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.more-wrap { text-align: center; margin: 22px 0 6px; }

/* ── Ana sayfa / Home ── */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 34px 30px; color: #fff; background: radial-gradient(1200px 400px at 110% -20%, rgba(233,196,106,.35), transparent 60%), radial-gradient(800px 300px at -10% 120%, rgba(14,147,132,.35), transparent 60%), linear-gradient(135deg, #12284A, #1B3B6B); box-shadow: var(--shadow-lg); }
.hero::after { content: "مصر"; position: absolute; right: 26px; bottom: -40px; font-family: var(--ar-font); font-size: 190px; line-height: 1; opacity: .07; pointer-events: none; }
.hero h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.02em; }
.hero p { margin: 0 0 20px; color: #C9D6EA; max-width: 60ch; }
.hero-tr { display: flex; gap: 10px; max-width: 720px; position: relative; z-index: 1; }
.hero-tr input { flex: 1; height: 54px; border-radius: 14px; border: 0; padding: 0 18px; font-size: 16px; color: #101B2D; outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.hero-tr .btn { height: 54px; padding: 0 22px; border-radius: 14px; }
.hero-out { position: relative; z-index: 1; max-width: 720px; margin-top: 12px; background: rgba(255,255,255,.96); color: #101B2D; border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-out .ho-main { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.hero-out .ar { font-size: 30px; line-height: 1.4; text-align: right; }
.hero-out .tw { font-size: 22px; font-weight: 800; }
.hero-out .ok { font-weight: 800; color: #1D3D6E; }
.hero-out .ho-act { display: flex; gap: 8px; align-items: center; }
.hero-out .ho-note { width: 100%; color: #667085; }
.hero-out .ho-note a { color: #0E9384; font-weight: 700; }
.hero-hints { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.hero-hints button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.hero-hints button:hover { background: rgba(255,255,255,.2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
.stat { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.sec-h h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.sec-h a { color: var(--teal); font-weight: 700; text-decoration: none; font-size: 14px; }
.mod { display: flex; gap: 14px; padding: 18px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.mod .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mod b { display: block; font-size: 15.5px; }
.mod small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.day { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.day .ar { font-size: 38px; text-align: right; line-height: 1.4; }

/* ── Çeviri / Translator ── */
.tr-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; overflow: hidden; }
.tr-pane { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.tr-pane + .tr-swap + .tr-pane { background: var(--surface2); border-left: 1px solid var(--line); }
.tr-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tr-head .lang { color: var(--ink); }
.tr-swap { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); padding: 0 8px; }
.tr-swap button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.tr-swap button:hover { border-color: var(--gold); color: var(--gold); }
.tr-in { flex: 1; resize: none; border: 0; outline: none; background: transparent; font-size: 20px; line-height: 1.5; min-height: 140px; }
.tr-in.ar { font-size: 26px; }
.tr-out-main .ar { font-size: 32px; line-height: 1.5; }
.tr-out-main .ok { font-size: 17px; font-weight: 800; color: var(--navy2); }
.tr-out-main .fr { font-family: ui-monospace, Menlo, monospace; color: var(--teal); }
.tr-src { font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.tr-src .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tr-src.mt .dot { background: var(--gold); }
.gloss { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; }
.gl { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.gl .ar { font-size: 20px; }
.gl small { font-size: 11px; color: var(--muted); }
.gl.miss { border-style: dashed; opacity: .7; }
.alt-list { display: flex; flex-direction: column; gap: 8px; }
.alt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 14px; }
.alt .ar { font-size: 20px; text-align: right; }

/* ── Kelime kartları / Flashcards ── */
.deck { padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; cursor: pointer; }
.deck:hover { border-color: var(--gold); }
.deck .em { font-size: 30px; }
.bar { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }
.fc-wrap { max-width: 560px; margin: 0 auto; }
.fc { perspective: 1400px; height: 360px; cursor: pointer; }
.fc-in { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.fc.flip .fc-in { transform: rotateY(180deg); }
.fc-f, .fc-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px; text-align: center; }
.fc-f { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.fc-b { transform: rotateY(180deg); background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #fff; box-shadow: var(--shadow-lg); }
.fc-f .em { font-size: 64px; line-height: 1; }
.fc-f .w { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.fc-b .ar { font-size: 50px; line-height: 1.4; }
.fc-b .ok { font-size: 20px; font-weight: 800; color: var(--gold2); }
.fc-b .fr { font-family: ui-monospace, Menlo, monospace; color: #9FE3D9; }
.fc-b .tr { color: #C9D6EA; }
.fc-hint { font-size: 12.5px; color: var(--muted); }
.fc-b .fc-hint { color: #9FB2D0; }
.fc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.fc-act .btn { height: 52px; font-size: 15px; }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.boxes { display: flex; gap: 8px; }
.boxes span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }

/* ── Alfabe / Alphabet ── */
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; direction: rtl; }
.letter { padding: 14px 10px; text-align: center; text-decoration: none; direction: ltr; transition: transform .15s, border-color .15s; }
.letter:hover { transform: translateY(-2px); border-color: var(--gold); }
.letter .ar { font-size: 46px; line-height: 1.2; display: block; color: var(--navy2); }
:root[data-theme="dark"] .letter .ar { color: var(--gold2); }
.letter b { display: block; font-size: 14px; }
.letter small { color: var(--muted); font-size: 12px; }
.forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.forms div { text-align: center; padding: 12px 6px; background: var(--surface2); border-radius: 12px; }
.forms .ar { font-size: 40px; display: block; }
.forms small { color: var(--muted); font-size: 11.5px; direction: ltr; display: block; }
.big-letter { font-size: 120px; line-height: 1.1; color: var(--navy2); text-align: center; }

/* ── Konuşma / Conversation ── */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.bub { max-width: 82%; border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.bub.a { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.b { align-self: flex-end; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); border-bottom-right-radius: 4px; }
.bub .who { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bub .ar { font-size: 22px; text-align: right; }
.bub .ok { font-weight: 700; color: var(--navy2); font-size: 14px; }
.bub .tr { font-size: 13.5px; color: var(--ink2); }
.bub .icon-btn { position: absolute; top: 8px; width: 30px; height: 30px; }
.bub.a .icon-btn { right: -40px; }
.bub.b .icon-btn { left: -40px; }
.tips { margin: 0; padding-left: 20px; }
.tips li { margin: 6px 0; }

/* ── Gramer / Grammar ── */
.lesson h3 { margin: 18px 0 8px; font-size: 16px; }
.lesson p { margin: 8px 0; color: var(--ink2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; background: var(--surface2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.ar { font-size: 20px; text-align: right; white-space: nowrap; }
.tip { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 10px 14px; border-radius: 0 12px 12px 0; margin: 12px 0; }
.ex-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ex-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; background: var(--surface2); border-radius: 12px; }
.ex-item .ar { font-size: 21px; text-align: right; }
.ex-item .icon-btn { grid-row: span 3; align-self: center; }
.pron { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Alıştırma & Test / Exercises & Quiz ── */
.q { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.q .qn { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.q .qt { font-size: 17px; font-weight: 700; }
.q .qt .ar { font-size: 24px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; font-weight: 600; min-height: 50px; transition: border-color .15s, background .15s; }
.opt:hover:not(:disabled) { border-color: var(--gold); }
.opt.ar { text-align: right; font-size: 22px; }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt:disabled { cursor: default; }
.ans-in { display: flex; gap: 10px; }
.ans-in input { flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; font-size: 16px; }
.ans-in input:focus { border-color: var(--gold); }
.fb { font-size: 14px; font-weight: 700; border-radius: 10px; padding: 9px 12px; }
.fb.right { background: var(--green-soft); color: var(--green); }
.fb.wrong { background: var(--red-soft); color: var(--red); }
.fb .ar { font-size: 20px; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; min-height: 48px; font-weight: 600; }
.match button.sel { border-color: var(--gold); background: var(--gold-soft); }
.match button.done { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.match button.bad { border-color: var(--red); background: var(--red-soft); }
.order-pool, .order-ans { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 8px; border-radius: 12px; border: 1.5px dashed var(--line); direction: rtl; }
.order-pool button, .order-ans button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 12px; font-size: 20px; font-family: var(--ar-font); }
.score { text-align: center; padding: 30px; }
.score b { font-size: 54px; letter-spacing: -.03em; display: block; }
.prog { height: 6px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .3s; }

/* ── Altbilgi / Footer ── */
.foot { margin-top: 40px; background: var(--navy); color: #B8C6DD; padding: 34px 28px 20px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 26px; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; }
.foot a { color: #B8C6DD; text-decoration: none; display: block; margin: 6px 0; font-size: 14px; }
.foot a:hover { color: var(--gold2); }
.foot p { font-size: 13.5px; margin: 6px 0; }
.foot-b { max-width: 1240px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #8295B5; }

.foot-logo { height: 72px; width: auto; display: block; margin: 0 0 12px; }
.foot-logos { max-width: 1240px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 34px; }
.foot .fico { width: 48px; height: 48px; margin: 0; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.foot .fico:hover { transform: translateY(-3px) scale(1.08); }
.foot .fico svg { width: 38px; height: 38px; display: block; }
.foot .fico img { width: 48px; height: 48px; object-fit: contain; display: block; }
.foot .fico-w { width: auto; }
.foot .fico-w img { width: auto; height: 38px; }
@media (max-width: 720px) { .foot-logos { gap: 22px 26px; } }

/* ── Duyarlı / Responsive ── */
@media (max-width: 1100px) {
  .g4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 290px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(5, 12, 24, .5); z-index: 55; }
  .top { padding: 10px 14px; }
  .top .mbrand { display: flex; }
  .gsearch kbd { display: none; }
  .gsearch input { padding-right: 14px; }
  .content { padding: 18px 16px 96px; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero h1 { font-size: 24px; }
  .hero-tr { flex-direction: column; }
  .hero-tr input { flex: none; height: 50px; }
  .hero-tr .btn { height: 48px; }
  .hero::after { font-size: 120px; }
  .ph h1 { font-size: 23px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ic { width: 36px; height: 36px; }
  .stat b { font-size: 18px; }
  .tr-box { grid-template-columns: 1fr; }
  .tr-swap { border-left: 0; border-top: 1px solid var(--line); padding: 6px; }
  .tr-pane + .tr-swap + .tr-pane { border-left: 0; border-top: 1px solid var(--line); }
  .tr-swap button { transform: rotate(90deg); }
  .opts { grid-template-columns: 1fr; }
  .fc { height: 320px; }
  .bub { max-width: 88%; }
  .bub.a .icon-btn, .bub.b .icon-btn { position: static; align-self: flex-start; margin-top: 4px; }
  .forms { grid-template-columns: repeat(2, 1fr); }
  .foot { padding-bottom: 96px; }
  .foot-in { grid-template-columns: 1fr; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16,27,45,.08); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 4px 0; }
  .bnav a.on { color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═══ Canlı tema: günün sözü, renkli menü, puan sistemi, animasyonlar / Vivid theme ═══ */
:root { --v1: #7C5CFF; --v2: #FF5DA2; --v3: #FFB020; --v4: #22C55E; --v5: #2EC4F1; --v6: #FF5D73; }
body { background: radial-gradient(900px 500px at 100% -10%, rgba(124, 92, 255, .08), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(46, 196, 241, .08), transparent 60%), var(--bg); background-attachment: fixed; }

/* Günün sözü / Saying of the day */
.quote { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 22px 18px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(120deg, #FF7A45, #FF5DA2 45%, #7C5CFF); background-size: 200% 200%; animation: gradShift 12s ease infinite; box-shadow: 0 14px 34px rgba(255, 93, 162, .28); }
.quote::before { content: "❝"; position: absolute; right: 18px; top: -18px; font-size: 140px; opacity: .14; line-height: 1; font-family: Georgia, serif; }
.q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.q-badge { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.q-date { font-size: 12.5px; opacity: .9; font-weight: 600; }
.q-nav { margin-left: auto; display: flex; gap: 6px; }
.q-nav .icon-btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; font-size: 20px; font-weight: 800; width: 32px; height: 32px; }
.q-nav .icon-btn:hover { background: rgba(255,255,255,.32); color: #fff; }
.q-body { display: flex; align-items: center; gap: 14px; margin-top: 10px; position: relative; }
.q-ar { flex: 1; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.45; text-align: right; text-shadow: 0 2px 10px rgba(0,0,0,.15); }
.q-side .icon-btn.q-play { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #FF5DA2; border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.q-side .icon-btn.q-play svg { width: 24px; height: 24px; }
.q-side .icon-btn.q-play.playing { animation: pulse 1s ease infinite; background: #fff; color: #7C5CFF; }
.q-ok { font-weight: 800; font-size: 16px; opacity: .95; margin-top: 2px; }
.q-tr { font-size: 17px; font-weight: 700; margin-top: 4px; }
.q-mean { font-size: 14px; opacity: .92; margin-top: 4px; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Hero: hareketli degrade ve uçuşan harfler / Animated gradient and floating letters */
.hero { background: linear-gradient(125deg, #12284A, #1D3D6E 35%, #0E9384 75%, #12284A); background-size: 220% 220%; animation: gradShift 16s ease infinite; }
.hero-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-float span { position: absolute; font-family: var(--ar-font); color: rgba(255,255,255,.09); font-size: 64px; animation: floatUp 14s linear infinite; }
.hero-float span:nth-child(1) { left: 62%; animation-delay: 0s; } .hero-float span:nth-child(2) { left: 74%; animation-delay: -3s; font-size: 48px; }
.hero-float span:nth-child(3) { left: 86%; animation-delay: -6s; } .hero-float span:nth-child(4) { left: 55%; animation-delay: -9s; font-size: 44px; }
.hero-float span:nth-child(5) { left: 93%; animation-delay: -11s; font-size: 52px; } .hero-float span:nth-child(6) { left: 68%; animation-delay: -7s; font-size: 40px; }
@keyframes floatUp { from { transform: translateY(260px) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(-120px) rotate(8deg); opacity: 0; } }
.hero h1, .hero p, .hero-tr, .hero-hints, .hero-out { position: relative; z-index: 1; }
.hero-hints button { transition: transform .15s, background .15s; }
.hero-hints button:hover { transform: translateY(-2px); }

/* Renkli istatistik kartları / Vivid stat tiles */
.stat.vivid { border: 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 10px 24px color-mix(in srgb, var(--g1) 30%, transparent); transition: transform .18s; }
.stat.vivid:hover { transform: translateY(-3px); }
.stat.vivid small { color: rgba(255,255,255,.9); }
.stat.vivid .ic { background: rgba(255,255,255,.2); font-size: 24px; }
.stat.vivid .flame { animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.ringbox { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.ringbox span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.ring circle:last-child { transition: stroke-dashoffset .8s ease; }

/* Renkli modül kartları / Vivid module cards */
.mod.vivid-mod { position: relative; overflow: hidden; animation: fade .35s ease both; border-top: 4px solid var(--mc); }
.mod.vivid-mod .ic { background: linear-gradient(135deg, var(--mc), color-mix(in srgb, var(--mc) 55%, #fff)); font-size: 26px; box-shadow: 0 8px 18px color-mix(in srgb, var(--mc) 35%, transparent); transition: transform .25s; }
.mod.vivid-mod:hover .ic { transform: rotate(-8deg) scale(1.1); }
.mod.vivid-mod .go { margin-left: auto; align-self: center; color: var(--mc); opacity: 0; transform: translateX(-6px); transition: .2s; }
.mod.vivid-mod:hover .go { opacity: 1; transform: none; }
.mod.vivid-mod::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 12%, transparent); }

/* Renkli menü / Colourful sidebar */
.nav a .ni { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--nc) 18%, transparent); color: var(--nc); transition: transform .2s, background .2s; }
.nav a .ni svg { width: 18px; height: 18px; }
.nav a:hover .ni { transform: scale(1.1) rotate(-6deg); }
.nav a.on .ni { background: var(--nc); color: #0D1E38; }
.nav a.on::before { background: var(--nc); }
.bnav a.on svg { color: #FF5DA2; }

/* Seviye kartı / Level card */
.side-card .lvl { display: flex; align-items: center; gap: 10px; }
.side-card .lvl b { font-size: 15px; display: block; color: #fff; }
.side-card .lvl small { display: block; color: #9FB2D0; font-size: 11.5px; }
.lvl-b { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; color: #fff; background: linear-gradient(135deg, #FFB020, #FF5DA2); box-shadow: 0 6px 14px rgba(255, 93, 162, .35); }
.xpbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 10px 0 8px; }
.xpbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFB020, #FF5DA2, #7C5CFF); transition: width .6s ease; }
.side-mini { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #C6D2E6; }

/* XP balonu ve konfeti / XP pop and confetti */
.xp-pop { position: fixed; right: 24px; bottom: 90px; z-index: 120; background: linear-gradient(135deg, #FFB020, #FF5DA2); color: #fff; font-weight: 900; padding: 8px 14px; border-radius: 99px; box-shadow: 0 10px 24px rgba(255, 93, 162, .4); animation: xpUp 1.1s ease forwards; pointer-events: none; }
@keyframes xpUp { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
.confetti { position: fixed; inset: 0; z-index: 150; pointer-events: none; }

/* Canlı düğmeler ve kartlar / Lively buttons and cards */
.btn.gold { background: linear-gradient(135deg, #FFB020, #FF7A45); box-shadow: 0 8px 18px rgba(255, 122, 69, .3); }
.btn.pri { background: linear-gradient(135deg, #12284A, #2B4F8C); }
.btn.ok { background: linear-gradient(135deg, #22C55E, #16A34A); }
.btn.no { background: linear-gradient(135deg, #FF5D73, #E11D48); }
.btn:hover { transform: translateY(-1px); }
.icon-btn.play { color: #fff; background: linear-gradient(135deg, #2EC4F1, #0E9384); border: 0; }
.icon-btn.play:hover { color: #fff; filter: brightness(1.08); transform: scale(1.06); }
.icon-btn.playing { animation: pulse 1s ease infinite; }
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.day.pop { animation: popIn .35s ease; }
@keyframes popIn { 0% { transform: scale(.96); opacity: .4; } 60% { transform: scale(1.02); } 100% { transform: none; opacity: 1; } }
.chip.on { background: linear-gradient(135deg, #7C5CFF, #FF5DA2); border-color: transparent; }
.fc-b { background: linear-gradient(160deg, #12284A, #7C5CFF); }
.opt.right { animation: popIn .3s ease; }
.opt.wrong { animation: shake .35s ease; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.prog i { background: linear-gradient(90deg, #22C55E, #2EC4F1, #7C5CFF); }
@media (max-width: 860px) {
  .quote { padding: 14px 16px; border-radius: 18px; }
  .q-tr { font-size: 15.5px; }
  .xp-pop { right: 12px; bottom: 84px; }
}

/* ═══ Üyelik ve yönetim / Membership and admin ═══ */
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #2EC4F1, #7C5CFF); font-size: 14px; }
.avatar.adm { background: linear-gradient(135deg, #FFB020, #F97316); }
.avatar.big { width: 58px; height: 58px; font-size: 26px; flex-shrink: 0; }
#acctBtn { text-decoration: none; }
.lockb { margin-left: auto; font-size: 12px; opacity: .8; }
.auth-card { max-width: 460px; margin: 10px auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 12px; padding: 4px; }
.auth-tabs button { border: 0; background: none; padding: 10px; border-radius: 9px; font-weight: 800; color: var(--muted); }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.google { width: 100%; height: 48px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.auth-form input, .auth-form select, .auth-form textarea { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 15px; outline: none; }
.auth-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { border-color: var(--gold); }
.auth-form .btn { height: 46px; }
.auth-form label.chk { flex-direction: row; align-items: center; gap: 8px; }
.auth-form label.chk input { height: 18px; width: 18px; }
.linkbtn { border: 0; background: none; color: var(--teal); font-weight: 700; padding: 4px; align-self: center; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }
.pill { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; color: var(--pc); background: color-mix(in srgb, var(--pc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); }
.urow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.uact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lock-ic { font-size: 54px; }
.perks { text-align: left; display: inline-block; margin: 6px auto 16px; padding-left: 20px; }
.perks li { margin: 6px 0; }
.ann { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; font-weight: 700; color: #fff; animation: fade .3s ease; }
.ann span { font-size: 22px; line-height: 1; }
.ann.info { background: linear-gradient(135deg, #2EC4F1, #3B82F6); }
.ann.ok { background: linear-gradient(135deg, #22C55E, #0E9384); }
.ann.warn { background: linear-gradient(135deg, #FFB020, #F97316); }

/* ═══ Sayfa gezinme şeridi ve yukarı çık / Page navigation strip and back-to-top ═══ */
.pnav { display: flex; align-items: center; gap: 8px; padding: 12px 28px 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.pn-b { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink2); font-weight: 700; font-size: 13px; text-decoration: none; transition: .15s; }
.pn-b svg.i { width: 17px; height: 17px; }
.pn-b:hover:not(:disabled) { border-color: #7C5CFF; color: #7C5CFF; transform: translateY(-1px); }
.pn-b:disabled { opacity: .4; cursor: default; }
.pn-b.home { background: linear-gradient(135deg, #FFB020, #FF7A45); color: #fff; border-color: transparent; }
.pn-b.home:hover { color: #fff; filter: brightness(1.05); }
.pn-t { margin-left: auto; font-weight: 800; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.content { padding-top: 16px; }
.totop { position: fixed; right: 22px; bottom: 26px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(135deg, #7C5CFF, #FF5DA2); box-shadow: 0 10px 24px rgba(124, 92, 255, .4); display: flex; align-items: center; justify-content: center; animation: fade .2s ease; }
.totop:hover { transform: translateY(-2px); }
.totop[hidden] { display: none; }
.xp-pop { bottom: 92px; }
@media (max-width: 860px) {
  .pnav { padding: 10px 16px 0; gap: 6px; }
  .pn-b { height: 34px; padding: 0 10px; }
  .pn-b span { display: none; }
  .pn-b.home span { display: inline; }
  .pn-t { max-width: 45%; }
  .totop { right: 14px; bottom: 82px; width: 44px; height: 44px; }
  .xp-pop { bottom: 136px; }
}
/* Profil fotoğrafı / Profile photo */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-edit { position: relative; cursor: pointer; flex-shrink: 0; }
.av-cam { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--card, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.18); display: grid; place-items: center; font-size: 13px; }
.av-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.av-acts label.btn { cursor: pointer; }

/* ═══════════════ KURUMSAL TEMA (NSCS): lacivert + turuncu, sade ve profesyonel ═══════════════
   Gökkuşağı renkleri kaldırıldı; tek vurgu rengi turuncu (#EA580C), yardımcı renk lacivert. Durum renkleri (yeşil/kırmızı) anlamlı kalır. */
:root {
  --bg: #F3F5F9; --bg2: #E9EDF4; --surface: #FFFFFF; --surface2: #F8FAFC;
  --ink: #0E1B33; --ink2: #2A3B58; --muted: #64748B; --line: #DCE3EE;
  --navy: #0F2A56; --navy2: #1B3F7A;
  --gold: #EA580C; --gold2: #FB923C; --gold-soft: #FFF1E6;
  --teal: #2B5C9E; --teal-soft: #E4EDF9;
  --shadow: 0 1px 2px rgba(15, 42, 86, .06), 0 10px 28px rgba(15, 42, 86, .07);
  --shadow-lg: 0 24px 56px rgba(15, 42, 86, .16);
}
:root[data-theme="dark"], :root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0A1426; --bg2: #0E1B33; --surface: #12203A; --surface2: #172847; --line: #223559; --gold-soft: #2E2013; --teal-soft: #14263F; } }
:root[data-theme="dark"] { --bg: #0A1426; --bg2: #0E1B33; --surface: #12203A; --surface2: #172847; --line: #223559; --gold-soft: #2E2013; --teal-soft: #14263F; }
.side { background: linear-gradient(180deg, #0F2A56 0%, #0A1B3A 100%); }
.nav a { --nc: #FB923C !important; }
.nav a.on { background: linear-gradient(90deg, rgba(251,146,60,.20), rgba(251,146,60,.04)); box-shadow: inset 3px 0 0 #EA580C; }
.brand img { box-shadow: none; }
.brand small { color: #FDBA74; }
.hero { background: radial-gradient(900px 320px at 100% -10%, rgba(234,88,12,.38), transparent 60%), linear-gradient(125deg, #0A1B3A, #0F2A56 45%, #1B3F7A); background-size: 100% 100%; animation: none; }
.stat.vivid { --g1: #0F2A56 !important; --g2: #1B3F7A !important; background: linear-gradient(135deg, #0F2A56, #1B3F7A); box-shadow: 0 10px 24px rgba(15, 42, 86, .22); border-bottom: 3px solid #EA580C; }
.stat.vivid:nth-child(even) { background: linear-gradient(135deg, #1B3F7A, #2B5C9E); }
.mod.vivid-mod .ic { --mc: #0F2A56 !important; background: linear-gradient(135deg, #0F2A56, #1B3F7A); box-shadow: 0 8px 18px rgba(15, 42, 86, .25); }
.mod.vivid-mod:hover .ic { background: linear-gradient(135deg, #EA580C, #FB923C); box-shadow: 0 8px 18px rgba(234, 88, 12, .35); }
.lvl-b, .btn.gold, .pn-b.home { background: linear-gradient(135deg, #EA580C, #FB923C); box-shadow: 0 8px 18px rgba(234, 88, 12, .28); }
.xpbar i, .prog i { background: linear-gradient(90deg, #EA580C, #FB923C); }
.xp-pop { background: linear-gradient(135deg, #EA580C, #FB923C); box-shadow: 0 10px 24px rgba(234, 88, 12, .3); }
.btn.pri { background: linear-gradient(135deg, #0F2A56, #1B3F7A); }
.icon-btn.play { background: linear-gradient(135deg, #1B3F7A, #2B5C9E); }
.chip.on { background: linear-gradient(135deg, #0F2A56, #1B3F7A); }
.fc-b { background: linear-gradient(160deg, #0F2A56, #1B3F7A); }
.avatar { background: linear-gradient(135deg, #1B3F7A, #2B5C9E); }
.avatar.adm { background: linear-gradient(135deg, #EA580C, #FB923C); }
.ann.info { background: linear-gradient(135deg, #1B3F7A, #2B5C9E); }
.ann.ok { background: linear-gradient(135deg, #15803D, #22A55A); }
.ann.warn { background: linear-gradient(135deg, #EA580C, #FB923C); }
.totop { background: linear-gradient(135deg, #EA580C, #FB923C); box-shadow: 0 10px 24px rgba(234, 88, 12, .35); }
.foot { background: #0A1B3A; }
.foot a:hover { color: #FDBA74; }
/* hareket: sade ve hızlı */
.card, .mod, .stat, .fc, .btn, .chip { transition: transform .22s ease, box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
.card:hover, .mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, #EA580C 35%, var(--line)); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.top { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
#view > * { animation: kurumsalIn .45s ease both; }
@keyframes kurumsalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid #EA580C; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #view > *, .card, .mod { animation: none !important; transition: none !important; } }
/* Marka alanı: büyük logo üstte, ad altta */
.side .brand { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 6px 14px; }
.side .brand img { width: 55px; height: 55px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.side .brand b { font-size: 19px; }
.side .brand small { font-size: 10px; margin-top: 2px; }
@media (max-width: 900px) { .side .brand img { width: 48px; height: 48px; } }
.quote { background: linear-gradient(125deg, #1B3F7A, #0F2A56 70%) !important; border-left: 4px solid #EA580C; box-shadow: 0 10px 26px rgba(15,42,86,.22); }
.quote .pill, .quote .tag { background: rgba(255,255,255,.14); }
.q-side .icon-btn.q-play { color: #EA580C; }
.q-side .icon-btn.q-play.playing { color: #0F2A56; }
.bnav a.on svg { color: #EA580C; }
.pn-b:hover:not(:disabled) { border-color: #EA580C; color: #EA580C; }
:root { --v1: #1B3F7A; --v2: #EA580C; --v3: #FB923C; --v5: #2B5C9E; --v6: #E11D48; }

/* Yasal metin penceresi */
.lg-ov { position: fixed; inset: 0; z-index: 200; background: rgba(6, 14, 30, .78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 18px; }
.lg-ov.on { display: flex; animation: kurumsalIn .25s ease both; }
.lg-box { position: relative; background: var(--surface); color: var(--ink); width: min(720px, 100%); max-height: 86vh; overflow: auto; border-radius: 18px; padding: 28px 28px 22px; box-shadow: var(--shadow-lg); border-top: 4px solid #EA580C; }
.lg-box h3 { margin: 0 40px 12px 0; font-size: 21px; color: var(--navy); }
:root[data-theme="dark"] .lg-box h3 { color: #fff; }
.lg-body h4 { margin: 18px 0 4px; font-size: 14px; color: var(--ink); }
.lg-body p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; color: var(--ink2); }
.lg-body a { color: #EA580C; font-weight: 700; }
.lg-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.lg-x:hover { background: #EA580C; color: #fff; border-color: #EA580C; }
.lg-foot { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .lg-box { padding: 22px 18px 18px; border-radius: 16px; } }

/* Ortak Kelimeler sayfası */
.ort-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 4px 0 14px; font-size: 13px; color: var(--ink2); }
.ort-legend span { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.ort-legend i, .ort-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.ort-dot { margin: 0 2px 0 0; }
.ort-c { border-left: 4px solid var(--tc, #1B3F7A); }
.ort-tg { color: var(--tc) !important; display: inline-flex; align-items: center; gap: 6px; }
.ort-tg .ort-dot { margin-top: 0; }
.ort-rules { margin-bottom: 4px; }
.ort-rules summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.ort-rules summary::-webkit-details-marker { display: none; }
.ort-rules summary small { color: var(--muted); font-size: 12.5px; }
.ort-rules h3 { margin: 18px 0 6px; font-size: 15px; color: var(--navy); }
:root[data-theme="dark"] .ort-rules h3 { color: #fff; }
.ort-tbl > div { display: grid; grid-template-columns: 90px 110px 1fr 1.3fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.ort-tbl .ort-th { font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ort-sh > div { grid-template-columns: 150px 1fr 1.4fr; align-items: start; }
.ort-n { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
@media (max-width: 720px) { .ort-legend { grid-template-columns: 1fr; } .ort-tbl > div { grid-template-columns: 70px 90px 1fr; } .ort-tbl > div > span:nth-child(4) { grid-column: 1 / -1; color: var(--muted); } .ort-tbl .ort-th span:nth-child(4) { display: none; } .ort-sh > div { grid-template-columns: 1fr; gap: 3px; } }

/* Cümle Kur */
.ck-card { display: flex; flex-direction: column; gap: 18px; }
.ck-sec > b { display: block; margin-bottom: 8px; color: var(--navy); font-size: 14px; }
:root[data-theme="dark"] .ck-sec > b { color: #fff; }
.ck-in { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.ck-mini { margin-top: 8px; }
.ck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ck-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ck-grid select { width: 100%; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.ck-out { margin-top: 16px; border-left: 4px solid #EA580C; }
.ck-ar { font-size: 32px; line-height: 1.5; }
.ck-tr { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ck-pcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ck-pc { flex-direction: column; align-items: center; cursor: pointer; }
.ck-pc .ar { font-size: 18px; }
.ck-pc small { font-size: 11px; color: var(--muted); }
.ck-err { color: #E11D48; font-weight: 700; }
.ck-note { font-size: 12.5px; color: var(--muted); margin: 12px 4px; }
@media (max-width: 720px) { .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ck-ar { font-size: 26px; } }
.tr-none p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0 12px; }

/* Google Translate tarzı çeviri kutusu (ana sayfa en üstte + Çeviri sayfası) */
.tr-box.gt { display: block; padding: 0; overflow: hidden; border-radius: 20px; }
.gt-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); }
.gt-l { padding: 14px 22px; font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--navy2); border-bottom: 3px solid #EA580C; display: flex; align-items: center; }
.gt-l.gt-r { justify-content: flex-start; }
:root[data-theme="dark"] .gt-l { color: #fff; }
.gt-swap { align-self: center; margin: 6px 10px; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.gt-swap:hover { border-color: #EA580C; color: #EA580C; }
.gt-panes { display: grid; grid-template-columns: 1fr 1fr; }
.gt .tr-pane { padding: 18px 22px; min-height: 230px; }
.gt .gt-out { background: var(--surface2); border-left: 1px solid var(--line); }
.gt .tr-in { font-size: 24px; min-height: 150px; }
.gt .tr-in.ar { font-size: 28px; }
.gt-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: auto; }
.gt-home { margin-bottom: 18px; }
.gt-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gt-title h2 { margin: 0; font-size: 20px; color: var(--navy); }
:root[data-theme="dark"] .gt-title h2 { color: #fff; }
.gt-hints { margin-top: 12px; }
.gt-hints button { background: var(--surface); border: 1px solid var(--line); color: var(--ink2); }
.gt-hints button:hover { background: var(--gold-soft); border-color: #EA580C; }
@media (max-width: 720px) {
  .gt-panes { grid-template-columns: 1fr; }
  .gt .gt-out { border-left: 0; border-top: 1px solid var(--line); }
  .gt-l { padding: 12px 14px; font-size: 14px; }
  .gt .tr-pane { min-height: 150px; padding: 14px 16px; }
  .gt .tr-in { min-height: 100px; font-size: 20px; }
  .gt-swap { transform: none; }
}
.gt .tr-in:focus, .gt .tr-in:focus-visible { outline: none; box-shadow: none; }
/* Günün sözü: sayfanın en altında, küçük */
.quote.q-small { padding: 10px 16px; border-radius: 14px; margin: 22px 0 6px; box-shadow: none; border-left-width: 3px; }
.quote.q-small::before { display: none; }
.quote.q-small .q-head { gap: 8px; }
.quote.q-small .q-badge { font-size: 11px; padding: 2px 9px; }
.quote.q-small .q-date { font-size: 11.5px; }
.quote.q-small .q-body { margin-top: 6px; gap: 10px; }
.quote.q-small .q-ar { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.4; }
.quote.q-small .q-side .icon-btn.q-play { width: 34px; height: 34px; }
.quote.q-small .q-side .icon-btn.q-play svg { width: 16px; height: 16px; }
.quote.q-small .q-ok { font-size: 12.5px; }
.quote.q-small .q-tr { font-size: 13.5px; margin-top: 2px; }
.quote.q-small .q-mean { font-size: 12.5px; margin-top: 2px; }
.quote.q-small .q-nav .icon-btn { width: 28px; height: 28px; font-size: 16px; }
/* Çeviri kutusu: daha alçak */
.gt .tr-pane { min-height: 130px; padding: 12px 20px; }
.gt .tr-in { min-height: 70px; font-size: 22px; }
.gt .tr-in.ar { font-size: 24px; }
.gt-l { padding: 10px 20px; }
.gt-swap { width: 36px; height: 36px; margin: 4px 8px; }
.gt .tr-out-main .ar { font-size: 26px; line-height: 1.35; }
@media (max-width: 720px) { .gt .tr-pane { min-height: 90px; padding: 10px 14px; } .gt .tr-in { min-height: 56px; font-size: 19px; } }

/* Yapay zekâ çevirisi */
.tr-src.ai .dot { background: #1B3F7A; }
.ai-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ai-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; padding-top: 6px; }
.ai-dot { width: 12px; height: 12px; border-radius: 50%; background: #EA580C; animation: pulse 1s ease infinite; }
/* Aynı sayfanın yeniden çizimi (üyelik/eşitleme): animasyon oynatma, titreme olmasın */
#view.rerender, #view.rerender * { animation: none !important; }

/* Çeviri kutusunda hareket efekti yok */
.gt-home, .gt-home *, .tr-box.gt, .tr-box.gt *, .gt-hints, .gt-hints * { animation: none !important; transition: none !important; }
.tr-box.gt:hover, .gt-hints button:hover, .gt-swap:hover, .gt .icon-btn:hover { transform: none !important; }
.ai-dot { animation: none !important; }
.gt-btns { display: flex; gap: 8px; }
.gt .icon-btn#trMic.rec { background: #E11D48; border-color: #E11D48; color: #fff; }
.brand { cursor: pointer; }
.brand:active { opacity: .8; }
.brand:focus-visible { outline: 2px solid #EA580C; outline-offset: 4px; border-radius: 8px; }

.foot-home { display: inline-block; text-decoration: none; color: inherit; cursor: pointer; }
.foot-home:hover .foot-logo { opacity: .85; }
.foot-name:hover { color: #FDBA74; }
