:root, [data-theme="dark"] {
  --arena-width: 22.5cm;
  --bg-primary: #0b0f19; --bg-secondary: #111827; --bg-card: #1e293b; --bg-surface: #0f172a;
  --text-primary: #f8fafc; --text-secondary: #94a3b8; --text-muted: #64748b;
  --accent: #06b6d4; --accent-hover: #0891b2; --accent-soft: rgba(6, 182, 212, 0.14);
  --secondary: #6366f1; --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  --border: #334155; --shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.6);
}
[data-theme="light"] {
  --bg-primary: #e2e8f0; --bg-secondary: #ffffff; --bg-card: #f1f5f9; --bg-surface: #ffffff;
  --text-primary: #0f172a; --text-secondary: #475569; --text-muted: #64748b;
  --accent: #0284c7; --accent-hover: #0369a1; --accent-soft: rgba(2, 132, 199, 0.12);
  --secondary: #4f46e5; --success: #059669; --warning: #d97706; --danger: #dc2626;
  --border: #cbd5e1; --shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.12);
}
[data-theme="sepia"] {
  --bg-primary: #e6dac3; --bg-secondary: #f4ecd8; --bg-card: #e8dcc2; --bg-surface: #fbf6e9;
  --text-primary: #2c221e; --text-secondary: #5c4b43; --text-muted: #847065;
  --accent: #b45309; --accent-hover: #92400e; --accent-soft: rgba(180, 83, 9, 0.14);
  --secondary: #7c2d12; --success: #15803d; --warning: #b45309; --danger: #b91c1c;
  --border: #cbbba0; --shadow: 0 14px 32px -6px rgba(44, 34, 30, 0.18);
}
[data-theme="forest"] {
  --bg-primary: #071712; --bg-secondary: #0d261e; --bg-card: #13352b; --bg-surface: #091d17;
  --text-primary: #ecfdf5; --text-secondary: #a7f3d0; --text-muted: #6ee7b7;
  --accent: #10b981; --accent-hover: #059669; --accent-soft: rgba(16, 185, 129, 0.16);
  --secondary: #14b8a6; --success: #22c55e; --warning: #eab308; --danger: #f87171;
  --border: #1f4d3f; --shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   TEMADAN BAĞIMSIZ ALIŞTIRMA EKRANI RENKLERİ (data-arena-color)
   ========================================================= */
html[data-arena-color="white"] .arena-card,
html[data-arena-color="white"] .arena-body {
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #cbd5e1;
  color: #0f172a;
}

html[data-arena-color="cream"] .arena-card,
html[data-arena-color="cream"] .arena-body {
  --bg-secondary: #fdf8e7;
  --bg-surface: #fffdf5;
  --bg-card: #f5eedc;
  --text-primary: #2c221e;
  --text-secondary: #5c4b43;
  --text-muted: #847065;
  --border: #dccbb1;
  color: #2c221e;
}

html[data-arena-color="sepia"] .arena-card,
html[data-arena-color="sepia"] .arena-body {
  --bg-secondary: #ebdcb9;
  --bg-surface: #f4e8c8;
  --bg-card: #e2d1a7;
  --text-primary: #261c14;
  --text-secondary: #4e3d30;
  --text-muted: #786352;
  --border: #c5b185;
  color: #261c14;
}

html[data-arena-color="mint"] .arena-card,
html[data-arena-color="mint"] .arena-body {
  --bg-secondary: #dcfce7;
  --bg-surface: #f0fdf4;
  --bg-card: #bbf7d0;
  --text-primary: #064e3b;
  --text-secondary: #065f46;
  --text-muted: #047857;
  --border: #86efac;
  color: #064e3b;
}

html[data-arena-color="sky"] .arena-card,
html[data-arena-color="sky"] .arena-body {
  --bg-secondary: #e0f2fe;
  --bg-surface: #f0f9ff;
  --bg-card: #bae6fd;
  --text-primary: #0c4a6e;
  --text-secondary: #075985;
  --text-muted: #0369a1;
  --border: #7dd3fc;
  color: #0c4a6e;
}

html[data-arena-color="slate"] .arena-card,
html[data-arena-color="slate"] .arena-body {
  --bg-secondary: #1e293b;
  --bg-surface: #0f172a;
  --bg-card: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #475569;
  color: #f8fafc;
}

html[data-arena-color="night"] .arena-card,
html[data-arena-color="night"] .arena-body {
  --bg-secondary: #050811;
  --bg-surface: #090d16;
  --bg-card: #111827;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  color: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary); color: var(--text-primary);
  min-height: 100vh; display: flex; flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden; user-select: none; -webkit-user-select: none;
}
input, textarea, select { user-select: text !important; -webkit-user-select: text !important; }

/* OTURUM DURUMLARINA GÖRE GÖRÜNÜRLÜK KURALLARI */
body[data-auth="guest"] .auth-only-el,
body[data-auth="guest"] #trainingPageView,
body[data-auth="guest"] #leftSidebarShell,
body[data-auth="guest"] #rightSidebarShell,
body[data-auth="guest"] #sidebarToggleBtn,
body[data-auth="guest"] #rightSidebarToggleBtn,
body[data-auth="guest"] #topBannerToggleBtn,
body[data-auth="guest"] #mobileBottomNav {
  display: none !important; visibility: hidden !important; pointer-events: none !important;
}

body[data-auth="guest-test"] #homePageView,
body[data-auth="guest-test"] .auth-only-el,
body[data-auth="guest-test"] #leftSidebarShell,
body[data-auth="guest-test"] #rightSidebarShell,
body[data-auth="guest-test"] #sidebarToggleBtn,
body[data-auth="guest-test"] #rightSidebarToggleBtn,
body[data-auth="guest-test"] #topBannerToggleBtn,
body[data-auth="guest-test"] #mobileBottomNav {
  display: none !important; visibility: hidden !important; pointer-events: none !important;
}
body[data-auth="guest-test"] #backToHomeFromGuestTestBtn {
  display: inline-flex !important;
}
body[data-auth="guest-test"] { height: 100vh; overflow: hidden; }

body[data-auth="authenticated"] #homePageView,
body[data-auth="authenticated"] .guest-only-el {
  display: none !important; visibility: hidden !important; pointer-events: none !important;
}
body[data-auth="authenticated"] { height: 100vh; overflow: hidden; }

.security-lock-overlay {
  position: fixed; inset: 0; background: rgba(11, 15, 25, 0.98); z-index: 99999;
  display: none; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: #f8fafc;
}
.security-lock-overlay.active { display: flex !important; }
.security-lock-box { max-width: 460px; background: #1e293b; border: 2px solid #ef4444; border-radius: 16px; padding: 2rem 1.5rem; }
.security-lock-box h2 { color: #ef4444; margin-bottom: 0.6rem; }
.security-lock-box p { font-size: 0.88rem; color: #cbd5e1; line-height: 1.5; }

/* TOPBAR */
.topbar {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 0 1rem; height: 60px; min-height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  position: sticky; top: 0; z-index: 80; white-space: nowrap;
}
.brand-wrap { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.brand-logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: var(--bg-card); border: 1px solid var(--border); flex-shrink: 0; }
.brand-title h1 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.top-controls { display: flex; align-items: center; gap: 0.38rem; flex-wrap: nowrap; margin-left: auto; white-space: nowrap; }
.stat-pill { background: var(--bg-card); border: 1px solid var(--border); padding: 0.32rem 0.58rem; border-radius: 9px; font-size: 0.74rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; flex-shrink: 0; }
.stat-pill span.val { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

.btn {
  background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
  padding: 0.42rem 0.8rem; border-radius: 9px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.38rem; transition: all 0.15s ease; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* GOOGLE, MICROSOFT VE FACEBOOK GİRİŞ BUTONLARI */
.social-auth-group { display: flex; flex-direction: column; gap: 0.45rem; width: 100%; }
.btn-social {
  width: 100%; padding: 0.58rem 1rem; border-radius: 10px; font-size: 0.84rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); transition: all 0.15s ease;
}
.btn-social:hover { transform: translateY(-1px); }
.btn-google { background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; }
.btn-google:hover { border-color: var(--accent); background: #f8fafc; }
.btn-microsoft { background: #2f2f2f; color: #ffffff; border: 1px solid #404040; }
.btn-microsoft:hover { background: #1f1f1f; border-color: #05a6f0; }
.btn-facebook { background: #1877F2; color: #ffffff; border: 1px solid #166fe5; }
.btn-facebook:hover { background: #1565c0; border-color: #ffffff; }

.auth-divider { display: flex; align-items: center; text-align: center; color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin: 0.15rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 0.6rem; }

/* E-POSTA DOĞRULAMA KODU (OTP) KUTUSU */
.otp-code-input {
  width: 100%;
  padding: 0.75rem 1rem !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.35em;
  text-align: center;
  border-radius: 12px !important;
  border: 2px solid var(--accent) !important;
  background: var(--bg-surface) !important;
  color: var(--accent) !important;
}
.verify-code-info-banner {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* GÖRÜNÜM AYARLARI TOGGLE SWITCH VE ALIŞTIRMA EKRANI RENK SEÇİCİ */
.toggle-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.5rem 0.65rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.toggle-switch-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

.arena-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}
.arena-color-btn {
  border: 2px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.48rem 0.35rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.arena-color-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.arena-color-btn.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ANA SAYFA & KUTU ANİMASYONLARI */
.home-page-view { flex: 1; padding: 1.5rem 1.75rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.hizligo-hero {
  width: 100%; max-width: 1180px; background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border); border-radius: 22px; padding: 2.4rem 2.2rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.hizligo-hero::before {
  content: ""; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--accent-soft); filter: blur(40px); pointer-events: none;
}
.hizligo-hero-content h2 { font-size: 2.1rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.text-gradient { background: linear-gradient(90deg, var(--accent), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hizligo-hero-content p { font-size: 0.96rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.4rem; }
.hero-cta-group { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-main-btn { padding: 0.75rem 1.3rem; font-size: 0.92rem; font-weight: 800; border-radius: 12px; box-shadow: 0 10px 24px rgba(2, 132, 199, 0.25); }
.hero-sec-btn { padding: 0.75rem 1.1rem; font-size: 0.88rem; font-weight: 700; border-radius: 12px; }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.hizligo-hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }

.hero-stat-box {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.15rem 1rem; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-stat-box:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 24px rgba(2, 132, 199, 0.16); }
.h-stat-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.h-stat-num { font-size: 1.35rem; font-weight: 900; color: var(--accent); }
.h-stat-lbl { font-size: 0.76rem; font-weight: 700; color: var(--text-secondary); margin-top: 0.15rem; }

.hizligo-section { width: 100%; max-width: 1180px; display: flex; flex-direction: column; gap: 1.25rem; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto; }
.section-head span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.section-head h3 { font-size: 1.5rem; font-weight: 900; margin-top: 0.2rem; margin-bottom: 0.35rem; }
.section-head p { font-size: 0.88rem; color: var(--text-secondary); }
.features-grid-4, .steps-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.feature-card, .step-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.35rem 1.15rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover, .step-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 28px rgba(2, 132, 199, 0.18); }
.f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.feature-card h4, .step-card h4 { font-size: 0.96rem; font-weight: 800; }
.feature-card p, .step-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }

/* FİYATLANDIRMA VE SATIN ALMA SEÇENEKLERİ (1.900 TL) */
.pricing-showcase-layout { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 1.35rem; align-items: stretch; }
.pricing-main-card {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 2px solid var(--accent); border-radius: 20px; padding: 1.65rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; position: relative;
}
.pricing-popular-ribbon {
  display: inline-flex; align-self: flex-start; background: var(--accent); color: #ffffff;
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.05em; padding: 0.28rem 0.75rem; border-radius: 999px;
}
.pricing-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.pricing-card-top h4 { font-size: 1.3rem; font-weight: 900; margin-bottom: 0.25rem; }
.pricing-card-top p { font-size: 0.82rem; color: var(--text-secondary); }
.pricing-amount-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem 1.15rem; text-align: right; min-width: 170px; }
.old-price-txt { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; font-weight: 700; }
.current-price-txt { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1.1; }
.current-price-txt small { font-size: 1.15rem; }
.vat-note-txt { font-size: 0.68rem; color: var(--success); font-weight: 800; }
.pricing-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1rem; }
.p-feat-item { font-size: 0.83rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.4rem; }
.pricing-action-row { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.5rem; }
.pricing-cta-btn { flex: 1; justify-content: center; padding: 0.8rem 1rem; font-size: 0.9rem; font-weight: 800; border-radius: 12px; }
.pricing-options-side { display: flex; flex-direction: column; gap: 1rem; }
.payment-option-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 0.55rem; }
.pay-opt-head { display: flex; align-items: center; gap: 0.7rem; }
.pay-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.pay-opt-head h5 { font-size: 0.92rem; font-weight: 800; }
.pay-opt-head small { font-size: 0.72rem; color: var(--text-secondary); }
.installment-mini-table { display: flex; flex-direction: column; gap: 0.28rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.78rem; }
.inst-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border); padding-bottom: 0.2rem; }
.inst-row:last-child { border-bottom: none; padding-bottom: 0; }
.inst-row strong { color: var(--accent); }

.checkout-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; background: var(--bg-surface); padding: 0.35rem; border-radius: 10px; border: 1px solid var(--border); }
.checkout-tab-btn { border: none; background: transparent; color: var(--text-secondary); padding: 0.55rem; border-radius: 8px; font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: all 0.15s ease; }
.checkout-tab-btn.active { background: var(--accent); color: #ffffff; }
.iban-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; }

/* VİDEO STÜDYOSU */
.video-studio-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 1.35rem; box-shadow: var(--shadow); align-items: stretch;
}
.video-playlist-panel { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.playlist-header { padding: 0.85rem 1.1rem; background: var(--bg-surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 800; }
.playlist-count { background: var(--accent-soft); color: var(--accent); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; }
.playlist-items-container { display: flex; flex-direction: column; justify-content: space-between; gap: 0.4rem; padding: 0.75rem; flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.playlist-items-container::-webkit-scrollbar { display: none; width: 0; height: 0; }
.playlist-item-btn { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0.65rem 0.85rem; border-radius: 11px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); text-align: left; cursor: pointer; transition: all 0.16s ease; }
.playlist-item-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.playlist-item-btn.active { background: var(--accent); border-color: var(--accent); color: #ffffff; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28); }
.playlist-item-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.playlist-thumb { width: 44px; height: 44px; border-radius: 9px; background-size: cover; background-position: center; border: 1px solid var(--border); flex-shrink: 0; }
.playlist-item-info { display: flex; flex-direction: column; gap: 0.12rem; }
.playlist-lesson-no { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; opacity: 0.85; }
.playlist-lesson-title { font-size: 0.83rem; font-weight: 800; line-height: 1.25; }
.playlist-play-icon { font-size: 1rem; font-weight: 900; flex-shrink: 0; }

.video-vertical-player-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; gap: 0.75rem; overflow: hidden; }
.vertical-player-header { display: flex; align-items: center; justify-content: center; gap: 0.55rem; text-align: center; flex-wrap: wrap; }
.v-order-badge { background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 800; padding: 0.22rem 0.58rem; border-radius: 7px; }
.vertical-player-header h4 { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }
.vertical-phone-frame { width: 100%; max-width: 315px; aspect-ratio: 9 / 16; background: #0b0f19; border: 6px solid #1e293b; border-radius: 26px; overflow: hidden !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); position: relative; display: flex; align-items: center; justify-content: center; }
.vertical-video-container { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden !important; scrollbar-width: none; -ms-overflow-style: none; }
.vertical-video-container::-webkit-scrollbar { display: none !important; width: 0 !important; }
.vertical-video-container video, .vertical-video-container iframe { width: calc(100% + 18px); height: 100%; margin-right: -18px; border: 0; display: block; object-fit: cover; overflow: hidden !important; }
.video-poster-cover { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #0f172a; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.video-poster-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,25,0.25) 0%, rgba(11,15,25,0.75) 100%); }
.video-play-circle { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); transition: transform 0.15s ease, background-color 0.15s ease; }
.video-poster-cover:hover .video-play-circle { transform: scale(1.1); background: var(--accent-hover); }
.embed-shield-top { position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 15; background: transparent; }
.embed-shield-bottom-right { position: absolute; bottom: 0; right: 34px; width: 125px; height: 46px; z-index: 15; background: transparent; }

/* SIKÇA SORULAN SORULAR */
.faq-accordion-list { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; }
.faq-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: border-color 0.18s ease; }
.faq-item.open { border-color: var(--accent); }
.faq-question-btn { width: 100%; background: transparent; border: none; padding: 1rem 1.25rem; text-align: left; font-size: 0.94rem; font-weight: 800; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: background-color 0.15s ease; }
.faq-question-btn:hover { background: var(--accent-soft); }
.faq-arrow { font-size: 0.8rem; color: var(--accent); transition: transform 0.22s ease; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer-box { display: none; padding: 0 1.25rem 1.1rem 1.25rem; font-size: 0.86rem; line-height: 1.65; color: var(--text-secondary); border-top: 1px dashed var(--border); padding-top: 0.85rem; }
.faq-item.open .faq-answer-box { display: block; }

/* ANA SAYFA FOOTER */
.home-bottom-developer { width: 100%; max-width: 1180px; margin-top: 0.5rem; padding: 1.1rem 1.25rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; box-shadow: var(--shadow); }
.legal-links-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.65rem; font-size: 0.78rem; color: var(--text-muted); padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); width: 100%; }
.legal-link-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: color 0.15s ease; }
.legal-link-btn:hover { color: var(--accent); text-decoration: underline; }
.home-dev-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.home-dev-text-col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.home-bottom-dev-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; }
.home-bottom-dev-text { font-size: 0.94rem; color: var(--text-secondary); font-weight: 600; }
.home-bottom-dev-text strong { color: var(--accent); font-weight: 800; }
.home-bottom-copyright { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }

/* YASAL METİNLER MODALI & KAYIT ONAY KUTULARI */
.legal-foreground-overlay {
  z-index: 260 !important;
}
.legal-modal-content { max-height: 390px; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.15rem; margin-top: 0.65rem; font-size: 0.82rem; line-height: 1.68; color: var(--text-secondary); user-select: text !important; }
.legal-modal-content h4 { color: var(--text-primary); font-size: 0.9rem; font-weight: 800; margin: 0.85rem 0 0.3rem 0; }
.legal-modal-content h4:first-child { margin-top: 0; }
.legal-modal-content p, .legal-modal-content ul { margin-bottom: 0.55rem; }
.legal-modal-content ul { padding-left: 1.2rem; }

.legal-consent-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.legal-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  cursor: pointer;
}
.legal-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.legal-check-row a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}
.legal-check-row a:hover {
  color: var(--accent-hover);
}

/* =========================================================
   ANTRENMAN SAYFASI, ÜST BANNER DÜĞMESİ & 14 EGZERSİZ YAN MENÜSÜ
   ========================================================= */
.app-layout {
  display: flex; align-items: stretch; flex: 1;
  height: calc(100vh - 60px); min-height: calc(100vh - 60px); max-height: calc(100vh - 60px);
  position: relative; overflow: hidden;
}

.sidebar-shell { position: relative; width: 350px; height: 100%; flex-shrink: 0; margin: 0; padding: 0; transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1); z-index: 45; }
.app-layout.sidebar-hidden .sidebar-shell { margin-left: -350px; }
.sidebar-toggle-btn { position: absolute; right: -34px; top: 50%; transform: translateY(-50%); width: 34px; height: 64px; border-radius: 0 12px 12px 0; background: var(--bg-secondary); border: 1px solid var(--border); border-left: none; color: var(--accent); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 60; }
.sidebar-toggle-btn:hover { background: var(--accent); color: #fff; }

.right-sidebar-shell { position: relative; width: 260px; height: 100%; flex-shrink: 0; margin: 0; padding: 0; transition: margin-right 0.28s cubic-bezier(0.4, 0, 0.2, 1); z-index: 45; }
.app-layout.right-sidebar-hidden .right-sidebar-shell { margin-right: -260px; }
.right-sidebar-toggle-btn { position: absolute; left: -34px; top: 50%; transform: translateY(-50%); width: 34px; height: 64px; border-radius: 12px 0 0 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-right: none; color: var(--accent); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 60; }
.right-sidebar-toggle-btn:hover { background: var(--accent); color: #fff; }

/* ÜST AŞAMA BİLGİSİNİ (STAGE BANNER) GİZLE / GÖSTER DÜĞMESİ */
.top-banner-toggle-btn {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 22px;
  border-radius: 0 0 11px 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  z-index: 65;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.top-banner-toggle-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 0.35rem 0.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.35rem; height: 100%; width: 100%; overflow: hidden; }
.right-sidebar { background: var(--bg-secondary); border-left: 1px solid var(--border); padding: 0.32rem 0.65rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.22rem; height: 100%; width: 100%; overflow: hidden; }

.stage-list-header { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.1rem 0 0.25rem 0; border-bottom: 1px solid var(--border); font-size: 0.74rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; flex-shrink: 0; }
.stages-container { display: flex; flex-direction: column; gap: 0.36rem; overflow-y: auto; padding-right: 0.25rem; flex: 1; }
.dev-badge-box { display: flex; align-items: center; gap: 0.65rem; background: var(--bg-card); border: 1px solid var(--border); padding: 0.3rem 0.75rem; border-radius: 10px; height: 54px; flex-shrink: 0; margin: 0; cursor: pointer; }
.dev-logo-img { height: 36px; width: 36px; object-fit: contain; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border); flex-shrink: 0; }
.dev-info-lines { display: flex; flex-direction: column; justify-content: center; line-height: 1.18; }
.dev-info-lines .dev-label { font-size: 0.58rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.dev-info-lines .dev-name { font-size: 0.84rem; font-weight: 800; color: var(--accent); }
.dev-info-lines .dev-copy { font-size: 0.62rem; color: var(--text-secondary); font-weight: 600; margin-top: 1px; }

.right-exercise-list { display: flex; flex-direction: column; justify-content: space-between; gap: 0.16rem; flex: 1; overflow-y: auto; }
.right-ex-btn { display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 25px; padding: 0.18rem 0.58rem; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); font-size: 0.73rem; font-weight: 700; cursor: pointer; text-align: left; }
.right-ex-btn:hover { border-color: var(--accent); }
.right-ex-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.right-ex-btn.done { border-left: 4px solid var(--success); }

.workspace {
  flex: 1; height: 100%; padding: 2.15rem 1rem 0.45rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 0.5rem; overflow-y: auto;
}

.stage-banner {
  width: 100%;
  max-width: var(--arena-width, 22.5cm);
  min-width: min(var(--arena-width, 22.5cm), 100%);
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem 1rem; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem; flex-shrink: 0; overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.32s ease, margin 0.32s ease, border-width 0.32s ease, max-width 0.15s ease, min-width 0.15s ease;
}

.stage-banner.banner-hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-24px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: -0.5rem !important;
  margin-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none !important;
}

.stage-banner-info h2 { font-size: 0.98rem; font-weight: 800; margin-bottom: 0.1rem; }
.stage-banner-info p { font-size: 0.73rem; color: var(--text-secondary); }
.locked-params { display: flex; gap: 0.32rem; flex-wrap: wrap; }
.param-lock-badge { background: var(--bg-card); border: 1px solid var(--border); padding: 0.2rem 0.5rem; border-radius: 7px; font-size: 0.68rem; font-weight: 700; color: var(--accent); }

.manual-controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.45rem; width: 100%; margin-top: 0.25rem; padding-top: 0.45rem; border-top: 1px solid var(--border); }
.manual-ctrl-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.manual-ctrl-box label { font-size: 0.68rem; font-weight: 700; color: var(--text-secondary); display: flex; justify-content: space-between; align-items: center; }
.manual-ctrl-box label span.m-val { color: var(--accent); font-weight: 800; }
.manual-ctrl-box input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }

.book-viewport { width: 100%; flex: 1; display: flex; justify-content: center; align-items: stretch; perspective: 1800px; min-height: 0; }

.arena-card {
  width: 100%;
  max-width: var(--arena-width, 22.5cm);
  min-width: min(var(--arena-width, 22.5cm), 100%);
  height: 100%; min-height: 440px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: 6px 16px 16px 6px; padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow), inset 14px 0 24px -12px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; gap: 0.6rem;
  transform-origin: left center; transform-style: preserve-3d; backface-visibility: hidden;
  position: relative; overflow: hidden;
  transition: max-width 0.15s ease, min-width 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

@keyframes pageTurnFlip {
  0% { transform: rotateY(0deg) scale(1); opacity: 1; }
  45% { transform: rotateY(-82deg) scale(0.96); opacity: 0.25; }
  55% { transform: rotateY(75deg) scale(0.96); opacity: 0.25; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
.arena-card.turning-page { animation: pageTurnFlip 0.58s cubic-bezier(0.45, 0.05, 0.55, 0.95); }

.page-footer-num { font-size: 0.73rem; color: var(--text-secondary); padding-top: 0.3rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.page-footer-num .footer-inst { color: var(--text-secondary); font-weight: 500; text-align: left; flex: 1; }
.page-footer-num .footer-pg { color: var(--text-muted); font-weight: 700; white-space: nowrap; }

.arena-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.45rem; flex-shrink: 0; }
.arena-header h3 { font-size: 0.94rem; font-weight: 800; }

.arena-body {
  flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.8rem 1rem 2.5rem 1rem; overflow: hidden; min-height: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* DURAKLATILDI (PAUSE) GÖSTERGESİ */
.pause-badge-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 40;
  pointer-events: none;
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.pause-badge-indicator.visible {
  display: inline-flex;
}

/* 10. TAKİSTOSKOP VE 12. ANLAM ANTRENMANI ORTALANMIŞ KOMPAKT YAPI */
.arena-center-stack {
  width: 100%;
  max-width: 620px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

/* 4. METNİN SATIR BAŞI VE SATIR SONUNA SEKME (DÜZ METİN, KELİMELER ARASINDA BOŞLUK YOK) */
.line-jump-plain-box {
  text-align: justify;
  word-spacing: normal;
  letter-spacing: normal;
  line-height: 2.05;
}
.lj-plain-word {
  display: inline;
  padding: 2px 1px;
  margin: 0;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 0.06s ease, color 0.06s ease, box-shadow 0.06s ease;
}
.lj-plain-word.active-jump {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--accent);
}

/* VURGULU İKİLİ VE ÜÇLÜ BLOK OKUMA STİLLERİ */
.block-word-group {
  display: inline;
  padding: 2px 3px;
  margin: 0;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.06s ease, color 0.06s ease;
}
.block-word-group.active-block-emphasis {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--accent);
}

/* 5 SORULUK ANLAMA TESTİ STİLLERİ */
.quiz-container { width: 100%; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding-right: 0.35rem; }
.quiz-question-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; text-align: left; }
.quiz-question-card h4 { font-size: 0.88rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-primary); }
.quiz-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
.quiz-opt-label { display: flex; align-items: center; gap: 0.45rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.quiz-opt-label:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt-label input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }

.center-circle-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%; background: var(--accent); color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45); transition: transform 0.18s ease, background-color 0.18s ease; z-index: 35;
}
.center-circle-btn:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--accent-hover); }

.bottom-center-timer {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); padding: 0.28rem 0.8rem;
  border-radius: 999px; font-size: 0.76rem; font-weight: 700; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.35rem; z-index: 30; white-space: nowrap;
}
.bottom-center-timer .val { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

.theme-group { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.theme-btn { border: none; background: transparent; color: var(--text-secondary); padding: 0.55rem 0.35rem; font-size: 0.78rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.theme-btn.active { background: var(--accent); color: #fff; }

.top-auth-wrap { position: relative; display: flex; align-items: center; gap: 0.45rem; }
.user-profile-pill { display: flex; align-items: center; gap: 0.55rem; background: var(--bg-card); border: 1px solid var(--accent); padding: 0.25rem 0.75rem 0.25rem 0.32rem; border-radius: 999px; cursor: pointer; }
.gender-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.gender-avatar.male { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #ffffff; border: 2px solid #60a5fa; }
.gender-avatar.female { background: linear-gradient(135deg, #831843, #ec4899); color: #ffffff; border: 2px solid #f472b6; }
.user-name-txt { font-size: 0.84rem; font-weight: 800; color: var(--text-primary); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 315px; max-height: calc(100vh - 75px);
  overflow-y: auto; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.85rem; box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 0.5rem; z-index: 100;
}
.user-dropdown-menu.open { display: flex; }

.goal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem; }
.goal-card h3 { font-size: 0.76rem; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.45rem; display: flex; justify-content: space-between; align-items: center; }
.goal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.45rem; }
.goal-metric-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem; text-align: center; }
.goal-metric-item .lbl { font-size: 0.64rem; color: var(--text-muted); }
.goal-metric-item .num { font-size: 0.86rem; font-weight: 800; color: var(--accent); }
.progress-bar-outer { width: 100%; height: 8px; background: var(--bg-surface); border-radius: 999px; overflow: hidden; margin: 0.35rem 0; }
.progress-bar-inner { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); width: 0%; transition: width 0.35s ease; }

/* =========================================================
   SOL AĞAÇTA YUMUŞAK (PASTEL/GRADYAN) RENK GEÇİŞLERİ
   ========================================================= */
.stage-item {
  display: flex; align-items: center; justify-content: space-between; padding: 0.52rem 0.72rem;
  border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; text-align: left; color: var(--text-primary); width: 100%; gap: 0.5rem;
  flex-shrink: 0; transition: all 0.2s ease;
}
.stage-item:hover:not(.locked) { border-color: var(--accent); transform: translateX(2px); }

/* SOL AĞAÇ SINIFLANDIRMA GRUP BAŞLIKLARI */
.stage-class-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.44rem 0.68rem;
  margin-top: 0.42rem;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}
.stage-class-group-header .scg-range {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
}
.stage-class-group-header.header-slow { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; color: #065f46; }
.stage-class-group-header.header-tr_avg { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); border-color: #99f6e4; color: #115e59; }
.stage-class-group-header.header-normal { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; color: #075985; }
.stage-class-group-header.header-fast { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-color: #c7d2fe; color: #3730a3; }
.stage-class-group-header.header-pro { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; color: #5b21b6; }

/* 5 SINIF İÇİN KOYULAŞMAYAN, ÇOK YUMUŞAK PASTEL RENK GEÇİŞLERİ */
.stage-item.tier-slow {
  background: linear-gradient(135deg, #f7fee7, #ecfdf5);
  border-color: #bbf7d0;
  color: #14532d;
}
.stage-item.tier-slow .stage-meta { color: #15803d; }
.stage-item.tier-slow .stage-status-badge { background: rgba(255,255,255,0.85); color: #166534; }

.stage-item.tier-tr_avg {
  background: linear-gradient(135deg, #f0fdfa, #dcfce7);
  border-color: #99f6e4;
  color: #134e4a;
}
.stage-item.tier-tr_avg .stage-meta { color: #0f766e; }
.stage-item.tier-tr_avg .stage-status-badge { background: rgba(255,255,255,0.85); color: #115e59; }

.stage-item.tier-normal {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #bae6fd;
  color: #0c4a6e;
}
.stage-item.tier-normal .stage-meta { color: #0369a1; }
.stage-item.tier-normal .stage-status-badge { background: rgba(255,255,255,0.85); color: #075985; }

.stage-item.tier-fast {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-color: #c7d2fe;
  color: #1e3a8a;
}
.stage-item.tier-fast .stage-meta { color: #3730a3; }
.stage-item.tier-fast .stage-status-badge { background: rgba(255,255,255,0.85); color: #1e40af; }

.stage-item.tier-pro {
  background: linear-gradient(135deg, #f5f3ff, #fae8ff);
  border-color: #e9d5ff;
  color: #4c1d95;
}
.stage-item.tier-pro .stage-meta { color: #6b21a8; }
.stage-item.tier-pro .stage-status-badge { background: rgba(255,255,255,0.88); color: #581c87; }

/* SINIF SONU TAMAMLAMA (BARAJ) TESTİ DÜĞMESİ */
.stage-item.class-test-mode {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px dashed #f59e0b;
  color: #78350f;
  margin-bottom: 0.25rem;
}
.stage-item.class-test-mode .stage-meta { color: #b45309; font-weight: 600; }
.stage-item.class-test-mode .stage-status-badge { background: rgba(255,255,255,0.9); color: #b45309; }
.stage-item.class-test-mode.completed {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #10b981;
  color: #065f46;
}
.stage-item.class-test-mode.completed .stage-meta { color: #047857; }
.stage-item.class-test-mode.completed .stage-status-badge { color: #047857; }
.stage-item.text-mgr-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(99, 102, 241, 0.16));
  border-color: var(--accent);
}

.stage-item.active {
  box-shadow: 0 0 0 3px var(--warning), 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  border-color: var(--warning) !important;
}
.stage-item.completed { border-left: 5px solid var(--success) !important; }
.stage-item.locked { opacity: 0.48; cursor: not-allowed; filter: grayscale(0.25); }

.stage-item.maintain-mode { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15)); border-color: var(--success); }
.stage-item.manual-mode { background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.18)); border-color: var(--secondary); }
.stage-item.test-mode { background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18)); border-color: var(--accent); }
.stage-item.cert-btn { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2)); border-color: var(--warning); }
.stage-item.progress-btn { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2)); border-color: var(--accent); }
.stage-item.profile-btn { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(2, 132, 199, 0.2)); border-color: var(--secondary); }
.stage-item.goal-btn { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(2, 132, 199, 0.18)); border-color: var(--success); }
.stage-item.appearance-btn { background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(99, 102, 241, 0.18)); border-color: var(--accent); }
.stage-item.palming-btn { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.18)); border-color: var(--warning); }
.stage-item.db-btn { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2)); border-color: var(--danger); }
.stage-left { display: flex; flex-direction: column; gap: 0.12rem; }
.stage-title { font-size: 0.82rem; font-weight: 700; }
.stage-meta { font-size: 0.68rem; color: var(--text-secondary); }
.stage-status-badge { font-size: 0.67rem; padding: 0.16rem 0.48rem; border-radius: 6px; font-weight: 700; background: var(--bg-surface); color: var(--text-secondary); white-space: nowrap; }

.reading-box { width: 100%; line-height: 1.85; font-size: 1.04rem; color: var(--text-primary); padding: 1.1rem 1.35rem; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); flex: 1; overflow-y: auto; text-align: justify; word-spacing: normal; letter-spacing: normal; }
.schulte-grid { display: grid; gap: 6px; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; position: relative; }
.schulte-cell { background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 800; cursor: pointer; color: var(--text-primary); }
.schulte-cell:hover { border-color: var(--accent); }
.schulte-cell.correct-flash { background: rgba(16, 185, 129, 0.3); border-color: var(--success); }
.schulte-center-dot { width: 11px; height: 11px; background: var(--danger); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 8px var(--danger); z-index: 5; }

.tachi-flash-box {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 1.2rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  width: 100%;
  background: var(--bg-card);
  word-spacing: normal;
  letter-spacing: normal;
}
.tachi-input { width: 100%; max-width: 420px; padding: 0.7rem 1rem; font-size: 1.05rem; font-weight: 700; text-align: center; border-radius: 10px; border: 2px solid var(--accent); background: var(--bg-card); color: var(--text-primary); outline: none; }
.tachi-results-log { width: 100%; max-width: 480px; max-height: 115px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.tachi-log-item { display: flex; justify-content: space-between; align-items: center; padding: 0.18rem 0.35rem; border-radius: 5px; background: var(--bg-surface); }

.rsvp-stage { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); padding: 0.7rem; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); width: 100%; text-align: center; margin-bottom: 0.5rem; flex-shrink: 0; }
.guided-text-area { width: 100%; flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.4rem; line-height: 1.95; font-size: 1.02rem; color: var(--text-primary); overflow-y: auto; position: relative; word-spacing: normal; letter-spacing: normal; }
.guided-word { display: inline; padding: 2px 0; border-radius: 4px; font-weight: 500; }
.guided-word.active-chunk { background-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--accent); }

.classification-info-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.8rem; margin-bottom: 0.75rem; }
.class-pills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.45rem; }
.class-pill-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.55rem; font-size: 0.72rem; }
.class-pill-item.active-class { border-color: var(--accent); background: var(--accent-soft); }
.sync-section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem; }
.db-summary-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }

.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 58px; background: var(--bg-secondary); border-top: 1px solid var(--border); display: none; grid-template-columns: repeat(5, 1fr); z-index: 90; }
.m-nav-btn { background: transparent; border: none; color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 1.05rem; cursor: pointer; }
.m-nav-btn small { font-size: 0.64rem; font-weight: 700; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 120; padding: 1rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; max-width: 480px; width: 100%; padding: 1.4rem; text-align: center; box-shadow: var(--shadow); }
.modal-box.cert-modal-box { max-width: 860px; }
.modal-box.progress-modal-box { max-width: 760px; text-align: left; }
.progress-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0.85rem 0; }
.p-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem; text-align: center; }
.p-stat-card .lbl { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
.p-stat-card .val { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.history-table-wrap { max-height: 160px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-surface); margin-top: 0.5rem; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.history-table th, .history-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border); text-align: left; }
.history-table th { background: var(--bg-card); color: var(--text-secondary); position: sticky; top: 0; }

.auth-form { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.85rem; text-align: left; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.auth-field label { display: block; font-size: 0.74rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.22rem; }
.auth-field input[type="text"], .auth-field input[type="email"], .auth-field input[type="password"], .auth-field input[type="date"] { width: 100%; padding: 0.52rem 0.75rem; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-size: 0.86rem; outline: none; }
.auth-field input:focus { border-color: var(--accent); }
.remember-me-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0; font-size: 0.8rem; color: var(--text-secondary); }
.remember-me-row label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-weight: 600; color: var(--text-primary); }
.gender-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gender-option { background: var(--bg-card); border: 2px solid var(--border); border-radius: 10px; padding: 0.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; font-size: 0.84rem; }
.gender-option.selected-male { border-color: #3b82f6; background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.gender-option.selected-female { border-color: #ec4899; background: rgba(236, 72, 153, 0.16); color: #f472b6; }
.reg-avatar-preview { width: 62px; height: 62px; border-radius: 50%; margin: 0.25rem auto 0.15rem; display: flex; align-items: center; justify-content: center; }
#certCanvas { width: 100%; max-width: 780px; height: auto; border-radius: 10px; border: 2px solid var(--border); margin: 0.75rem auto; display: block; }
input[type="number"], select { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); padding: 0.38rem 0.55rem; border-radius: 7px; font-size: 0.8rem; }

@media (max-width: 980px) {
  .hizligo-hero { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; }
  .features-grid-4, .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .video-studio-layout, .pricing-showcase-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body[data-auth="authenticated"] .mobile-bottom-nav { display: grid; }
  .workspace { padding: 2.1rem 0.5rem 4.2rem; }
  .sidebar-shell { position: fixed; top: 60px; left: 0; bottom: 58px; height: auto; width: 310px; z-index: 85; }
  .app-layout.sidebar-hidden .sidebar-shell { margin-left: -310px; }
  .right-sidebar-shell { position: fixed; top: 60px; right: 0; bottom: 58px; height: auto; width: 255px; z-index: 85; }
  .app-layout.right-sidebar-hidden .right-sidebar-shell { margin-right: -255px; }
  .quiz-options-grid, .pricing-features-grid { grid-template-columns: 1fr; }
  .arena-color-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-page-view { padding: 1rem 0.85rem 5rem; }
  .hizligo-hero-content h2 { font-size: 1.55rem; }
  .features-grid-4, .steps-grid-4 { grid-template-columns: 1fr; }
  .progress-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .arena-card { padding: 0.6rem 0.75rem; min-height: 380px; }
  .reading-box, .guided-text-area { padding: 0.75rem 0.85rem; font-size: 0.94rem; }
  .tachi-flash-box { font-size: 1.35rem; min-height: 60px; }
  .rsvp-stage { font-size: 1.25rem; }
}
@page { size: A4 landscape; margin: 0mm; }
