/* Ads Manager კურსი — Figma-ს დიზაინი (ღია ფონი, მუქი მწვანე, ლაიმი) */
:root {
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --ink: #1C1E21;
  --muted: #65676B;
  --soft: #65676B;
  --line: #DADDE1;
  --line-2: #CED0D4;
  --green: #0866FF;
  --green-2: #0866FF;
  --lime: #E7F0FF;
  --lime-soft: #EBF3FF;
  --on-green: #D6E4FF;
  --r: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- განლაგება ---------- */
.app { max-width: 520px; margin: 0 auto; padding: 0 20px calc(96px + env(safe-area-inset-bottom)); }
.view { display: none; flex-direction: column; gap: 20px; padding-top: 18px; }
body[data-view="topics"] #viewTopics, body[data-view="course"] #viewCourse,
body[data-view="lesson"] #viewLesson,
body[data-view="topics"] #viewTopics { display: flex; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.top-t { font-size: 22px; font-weight: 700; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #DADDE1; background: var(--surface);
  display: grid; place-items: center; color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; }
.counter { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }

.hero { font-size: 23px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.lead { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- პროგრესი ---------- */
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-row strong { color: var(--ink); font-weight: 600; }
.bar { height: 6px; border-radius: 999px; background: #E4E6EB; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s; }

.access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--lime-soft); font-size: 13px; }

/* ---------- ღილაკები ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #0056D6; }
.btn.primary.is-done { background: var(--lime); color: var(--ink); }
.btn.outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); min-height: 46px; font-size: 14px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 13px; background: var(--green); color: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- ვიდეოების სია ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.sec-h h2 { font-size: 18px; font-weight: 700; }
.sec-h span { font-size: 13px; color: var(--muted); }
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stage-h { padding: 12px 2px 2px; font-size: 14px; font-weight: 700; }
.stage-h span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--green-2); }
.lesson { display: flex; align-items: center; gap: 14px; padding: 6px; border-radius: 14px; text-decoration: none; }
.lesson:hover { background: #E4E6EB; }
.lesson.active { background: var(--lime-soft); }
.thumb { flex: 0 0 96px; height: 68px; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--green); color: #fff; }
.thumb.light { background: var(--lime); color: var(--ink); }
.thumb b { font-size: 11px; font-weight: 700; line-height: 1.2; }
.thumb-row { display: flex; align-items: center; justify-content: space-between; }
.thumb .pb { width: 22px; height: 22px; border-radius: 999px; background: var(--lime); display: grid; place-items: center; }
.thumb.light .pb { background: var(--ink); }
.thumb .pb svg { width: 10px; height: 10px; fill: var(--ink); stroke: none; }
.thumb.light .pb svg { fill: var(--lime); }
.thumb .dur { font-size: 10px; font-weight: 600; background: rgba(0,0,0,.28); color: #fff; padding: 1px 5px; border-radius: 4px; }
.thumb.light .dur { background: rgba(28,43,34,.85); }
.l-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l-num { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.l-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.l-st { font-size: 12px; color: var(--soft); }
.l-st.done { color: var(--green-2); }
.l-st.now { color: var(--ink); font-weight: 600; }

/* ---------- ფლეერი ---------- */
.player { background: var(--green); border-radius: 18px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.eyebrow.light { color: var(--on-green); }
.player-t { font-size: 26px; line-height: 1.25; font-weight: 700; white-space: pre-line; }
.player-row { display: flex; align-items: center; gap: 10px; }
.chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.grow { flex: 1; }
.play { width: 52px; height: 52px; border-radius: 999px; background: var(--lime); display: grid; place-items: center; }
.play svg { width: 20px; height: 20px; fill: var(--ink); stroke: none; margin-left: 2px; }
.play[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.player-line { height: 3px; border-radius: 999px; background: rgba(255,255,255,.22); }
.player-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #E4E9DE; }

.lesson-head { display: flex; flex-direction: column; gap: 6px; }
.lesson-head h1 { font-size: 25px; line-height: 1.3; font-weight: 700; }
.lesson-head p { margin: 0; font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- ჩანართები ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit;
  font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--green); }
.tab-panel { display: flex; flex-direction: column; gap: 10px; }
.panel-h { font-size: 15px; font-weight: 700; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chapters li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #1C1E21; }
.chapters svg { color: var(--green-2); stroke-width: 2.4; width: 16px; height: 16px; margin-top: 3px; }
.chapters .t { flex: 1; }
.chapters .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
textarea { font: inherit; font-size: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); resize: vertical; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { font-size: 13px; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.related a:hover { border-color: var(--green); }

.next-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; }
.next-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.next-tx strong { font-size: 16px; }
.eyebrow.muted { color: var(--muted); }
.foot { margin: 0; text-align: center; font-size: 12px; color: var(--soft); }

/* ---------- თემები ---------- */
.topics { display: flex; flex-direction: column; gap: 12px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.topic h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.topic .links { display: flex; flex-direction: column; gap: 4px; }
.topic a { font-size: 13px; text-decoration: none; padding: 8px 10px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; }
.topic a:hover { background: var(--lime-soft); }
.topic .where { font-size: 11.5px; font-weight: 600; color: var(--green-2); }

/* ---------- ქვედა მენიუ ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tabbar a { min-height: 52px; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; font-size: 12px; }
.tabbar .ti { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.tabbar a.on { color: var(--ink); font-weight: 600; }
.tabbar a.on .ti { background: var(--lime); }

/* ---------- კომპიუტერი: სია მარცხნივ, ვიდეო მარჯვნივ ---------- */
@media (min-width: 980px) {
  .app { max-width: 1180px; padding: 0 32px 48px; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 48px; align-items: start; }
  #viewCourse { display: flex !important; grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 24px 6px 24px 0; }
  #viewLesson, #viewTopics { grid-column: 2; grid-row: 1; padding-top: 24px; max-width: 640px; }
  body[data-view="course"] #viewLesson { display: flex; }
  .tabbar { position: static; grid-column: 2; grid-row: 2; background: transparent; border: 0; padding: 0; max-width: 640px; }
  .tabbar a[data-nav="course"] { display: none; }
  .tabbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
  .player-t { font-size: 30px; }
  .lesson-head h1 { font-size: 30px; }
}
.chips .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ბოქლომი ვიდეოს ესკიზზე (წუთების ნაცვლად) */
.thumb .pb svg.lock { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.thumb.light .pb svg.lock { stroke: var(--lime); }
.thumb-row { gap: 6px; justify-content: flex-start; }
.lock-t { font-size: 8.5px; line-height: 1.15; font-weight: 600; opacity: .9; }
.thumb { justify-content: center; }
.thumb-row { flex-direction: column; align-items: flex-start; gap: 5px; }
.thumb .pb { width: 24px; height: 24px; }
.lock-t { font-size: 9px; }

/* Ads Manager პალიტრა: ფლეერი ლურჯზე თეთრი ელემენტებით */
.player { background: linear-gradient(135deg, #0866FF, #0050CC); }
.play { background: #fff; }
.play svg { fill: #0866FF; }
.chip { background: rgba(255,255,255,.18); color: #fff; }
.player-foot { color: #E7F0FF; }
.thumb { background: #1C2B4A; }
.thumb .pb { background: #fff; }
.thumb .pb svg.lock { stroke: #1C2B4A; }
.thumb.light { background: #E7F0FF; color: #1C1E21; }
.thumb.light .pb { background: #0866FF; }
.thumb.light .pb svg.lock { stroke: #fff; }
.tabbar a.on { color: #0866FF; }
.tabbar a.on .ti { background: #E7F0FF; }
.btn.primary.is-done { background: #E7F0FF; color: #0866FF; }
.access { background: #E7F0FF; }

/* ===== v5: ეტაპების ფერები + მეტი კონტრასტი ===== */
:root { --bg: #E9EBEE; --line: #CED0D4; --muted: #4B4F56; --soft: #5A5E66; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: #0866FF; color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-tx { display: flex; flex-direction: column; min-width: 0; }
.brand-tx strong { font-size: 17px; line-height: 1.25; }
.brand-tx small { font-size: 12px; color: var(--muted); }
.hero { font-size: 21px; }
.icon-btn { border-color: var(--line); }

.lessons { gap: 14px; }
.stage { --sc: #0866FF; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(16,24,40,.06); }
.stage-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--sc); color: #fff; }
.stage-n { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.22); display: grid; place-items: center;
  font-weight: 700; font-size: 15px; flex: none; }
.stage-tx { display: flex; flex-direction: column; min-width: 0; }
.stage-tx small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.stage-tx strong { font-size: 15px; line-height: 1.3; }
.stage-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lesson:hover { background: #F0F2F5; }
.lesson.active { background: #EAF1FF; box-shadow: inset 0 0 0 1.5px var(--sc); }

.thumb, .thumb.light { background: var(--sc); color: #fff; }
.thumb .pb, .thumb.light .pb { background: #fff; }
.thumb .pb svg.lock, .thumb.light .pb svg.lock { stroke: var(--sc); }
.l-title { color: var(--ink); }
.l-st.done { color: #0F7B3F; font-weight: 600; }

.player { --sc: #0866FF; background: var(--sc); }
.play svg { fill: var(--sc); }
.btn.primary { background: #0866FF; }
.access { background: #fff; border: 1px solid var(--line); }
.next-card, .topic, textarea { border-color: var(--line); }
.tabbar { border-top-color: var(--line); }
.stage .stage-h span { color: #fff; letter-spacing: normal; font-size: inherit; }
.stage .stage-h .stage-n { display: grid; font-size: 15px; }
.stage .stage-h .stage-tx { display: flex; }
.stage .stage-h strong { color: #fff; }

/* ===== შეძენის ღილაკი და ფორმა ===== */
.btn.buy { min-height: 44px; padding: 0 16px; font-size: 14px; background: #0866FF; color: #fff; box-shadow: 0 2px 8px rgba(8,102,255,.3); }
.btn.buy:hover { background: #0056D6; }
.btn.small-buy { min-height: 40px; padding: 0 14px; font-size: 13px; }
#viewLesson .top { gap: 10px; }
#viewLesson .top .counter { margin-left: auto; }
.access .btn.small { background: #0866FF; }
.dlg { border: 0; padding: 0; background: transparent; width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.dlg::backdrop { background: rgba(15,23,42,.55); }
.dlg-card { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.dlg-top { display: flex; align-items: center; justify-content: space-between; }
.dlg-top h2 { font-size: 20px; }
.dlg-lead { margin: 0; font-size: 14px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); min-width: 0; }
.field input:focus { outline: 2px solid #0866FF; outline-offset: 1px; border-color: transparent; }
.pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pick legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.opt-in strong { display: block; font-size: 15px; }
.opt-in small { font-size: 12px; color: var(--muted); }
.opt input:checked + .opt-in { border-color: #0866FF; background: #EAF1FF; }
.opt input:focus-visible + .opt-in { outline: 2px solid #0866FF; outline-offset: 2px; }
.opt-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.opt-ic.wa { background: #1A8F4E; }
.opt-ic.tg { background: #2481CC; }
.note { margin: 0; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #F0F2F5; }
.hp { position: absolute; left: -9999px; }
.err { margin: 0; font-size: 13px; color: #B42318; font-weight: 600; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.dlg-card.done { align-items: center; text-align: center; }
.done-ic { width: 60px; height: 60px; border-radius: 999px; background: #E7F6EC; color: #0F7B3F; display: grid; place-items: center; }
.done-ic svg { width: 28px; height: 28px; stroke-width: 2.6; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } .brand-tx small { display: none; } }
.btn.buy { white-space: nowrap; flex: none; } .top { gap: 10px; } .brand { flex: 1; }

/* ================================================================
   v12 — მუქი დიზაინი: შავი ფონი, ნათება, გრადიენტები, ანიმაციები
   ================================================================ */
:root {
  --bg: #07080C; --surface: #11131A; --surface-2: #171A23; --ink: #F3F5F9; --muted: #A3ABBA; --soft: #8B93A3;
  --line: #222734; --line-2: #2E3443; --accent: #3B82F6; --accent-2: #8B5CF6;
  color-scheme: dark;
}
body { background: var(--bg); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% -5%, rgba(59,130,246,.28), transparent 70%),
    radial-gradient(50% 35% at 95% 10%, rgba(139,92,246,.22), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(14,165,233,.12), transparent 70%); }
a { color: inherit; }

/* სათაური */
.brand-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px rgba(99,102,241,.45); }
.brand-tx small, .lead, .progress-row, .sec-h span, .l-num, .l-st, .counter, .eyebrow, .eyebrow.muted, .dlg-lead, .opt-in small, .foot { color: var(--muted); }
.hero { font-size: 26px; line-height: 1.3;
  background: linear-gradient(100deg, #FFFFFF 10%, #BFD3FF 55%, #C4B5FD 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress-row strong { color: var(--ink); }
.bar { background: #1C202B; }
.bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(99,102,241,.7); }

/* ღილაკები */
.btn.primary, .btn.buy, .access .btn.small {
  background: linear-gradient(135deg, #3B82F6, #6366F1 55%, #8B5CF6); color: #fff; border: 0;
  box-shadow: 0 8px 24px rgba(79,70,229,.45), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn.primary:hover, .btn.buy:hover, .access .btn.small:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(79,70,229,.6); }
.btn.outline { background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid var(--line-2); }
.btn.outline:hover { background: rgba(255,255,255,.08); }
.btn.primary.is-done { background: rgba(34,197,94,.15); color: #4ADE80; box-shadow: none; }
.icon-btn { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--ink); }

/* ბანერი */
.access { background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(139,92,246,.12)); border: 1px solid rgba(129,140,248,.3); color: #DCE4F5; backdrop-filter: blur(8px); }

/* ეტაპები */
.stage { background: rgba(17,19,26,.78); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(10px); position: relative; }
.stage-h { background: linear-gradient(120deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #000)); position: relative; overflow: hidden; }
.stage-h::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.22), transparent 55%); pointer-events: none; }
.stage .stage-h .stage-n { background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.lesson { transition: background .2s, transform .2s; }
.lesson:hover { background: rgba(255,255,255,.04); transform: translateX(2px); }
.lesson.active { background: color-mix(in srgb, var(--sc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 70%, transparent); }
.l-title { color: var(--ink); }
.l-st.done { color: #4ADE80; }
.l-st.now { color: #93C5FD; }
.thumb, .thumb.light { background: linear-gradient(140deg, color-mix(in srgb, var(--sc) 85%, #fff 15%), color-mix(in srgb, var(--sc) 60%, #000)); color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--sc) 35%, transparent); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 45%); pointer-events: none; }

/* ფლეერი */
.player { background: linear-gradient(140deg, color-mix(in srgb, var(--sc) 90%, #fff 10%), color-mix(in srgb, var(--sc) 45%, #000) 75%);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--sc) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.15); position: relative; overflow: hidden; }
.player::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); pointer-events: none; }
.player > * { position: relative; }
.play { box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2.4s ease-out infinite; }
.chip { background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.lesson-head h1 { color: var(--ink); }
.lesson-head p { color: var(--muted); }

/* ჩანართები, ბარათები */
.tabs { border-bottom-color: var(--line); }
.tabs button { color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: #818CF8; }
.chapters li { color: #D5DBE6; }
.chapters svg { color: #818CF8; }
.next-card, .topic, textarea, .related a { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.next-card:hover, .related a:hover { border-color: #818CF8; }
.topic a { background: rgba(255,255,255,.04); }
.topic a:hover { background: rgba(129,140,248,.14); }
.topic .where { color: #93C5FD; }

/* ქვედა მენიუ */
.tabbar { background: rgba(10,11,16,.82); border-top-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar a { color: var(--muted); }
.tabbar a.on { color: #fff; }
.tabbar a.on .ti { background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(139,92,246,.35)); }

/* ფორმა */
.dlg::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.dlg-card { background: linear-gradient(180deg, #151826, #0E1018); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(129,140,248,.08); }
.field input { background: #0B0D13; border-color: var(--line-2); color: var(--ink); }
.field input::placeholder { color: #5E6677; }
.opt-in { background: #0B0D13; border-color: var(--line-2); }
.opt input:checked + .opt-in { border-color: #818CF8; background: rgba(99,102,241,.14); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.note { background: rgba(255,255,255,.05); color: #D5DBE6; }
.err { color: #FCA5A5; }
.done-ic { background: rgba(34,197,94,.15); color: #4ADE80; }

/* ანიმაციები */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.view > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.view > *:nth-child(2) { animation-delay: .06s; } .view > *:nth-child(3) { animation-delay: .12s; }
.view > *:nth-child(4) { animation-delay: .18s; } .view > *:nth-child(5) { animation-delay: .24s; } .view > *:nth-child(n+6) { animation-delay: .3s; }
.stage { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.stage:nth-child(1) { animation-delay: .25s; } .stage:nth-child(2) { animation-delay: .32s; } .stage:nth-child(3) { animation-delay: .39s; }
.stage:nth-child(4) { animation-delay: .46s; } .stage:nth-child(5) { animation-delay: .53s; } .stage:nth-child(6) { animation-delay: .6s; }
.dlg[open] .dlg-card { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ფასის ბარათი */
.price-card { text-align: center; align-items: stretch; }
.price-big { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin-top: 4px;
  background: linear-gradient(100deg, #FFFFFF, #BFD3FF 50%, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-big .amt { font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.price-big .cur { font-size: 32px; font-weight: 700; margin-top: 8px; }
.price-sub { margin: 0; font-size: 13px; color: var(--muted); }
.incl { list-style: none; margin: 6px 0 4px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; text-align: left; }
.incl li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #D5DBE6; }
.incl svg { color: #4ADE80; width: 16px; height: 16px; stroke-width: 2.6; }
.dlg[open] .price-card .price-big { animation: rise .45s .08s cubic-bezier(.2,.7,.2,1) both; }

/* v14: შინაარსი არასდროს რჩება უჩინარი — ანიმაცია მხოლოდ მოძრაობაა, დაყოვნების გარეშე */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.view > *, .stage, .dlg[open] .dlg-card, .dlg[open] .price-card .price-big { opacity: 1 !important; animation-delay: 0s !important; animation-fill-mode: none !important; }

/* აქციის ზოლი და ფასი */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(239,68,68,.22), rgba(249,115,22,.18)); border: 1px solid rgba(248,113,113,.45); font-size: 14px; }
.promo s, .price-old s { color: #A3ABBA; }
.promo b { color: #FDE68A; }
.promo-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; padding: 4px 10px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #FCA5A5; letter-spacing: .04em; flex: none; }
.promo.ended { background: rgba(255,255,255,.05); border-color: var(--line); }
.promo.ended .promo-timer { color: var(--muted); }
.price-old { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 600; }
.price-old .badge { font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #EF4444, #F97316); padding: 3px 8px; border-radius: 999px; }
.price-timer { margin: 0; font-size: 14px; color: #FCA5A5; }
.price-timer b { font-variant-numeric: tabular-nums; }
.price-timer.ended { color: var(--muted); }
