:root {
  --bg: #fbf6ec;
  --surface: #fff;
  --surface-2: #f6efe2;
  --ink: #1a2238;
  --muted: #5a6175;
  --line: #eadfcd;
  --navy: #1b2a4a;
  --navy-2: #24365c;
  --brand: #d9480f;
  --brand-strong: #ad3608;
  --brand-soft: #ffe8dc;
  --gold: #ffc83d;
  --gold-soft: #fff3cf;
  --teal: #0b7a6f;
  --teal-soft: #d9f3ef;
  --blue-soft: #e4ebff;
  --amber: #8a5200;
  --amber-soft: #fff1d6;
  --danger: #b3261e;
  --danger-soft: #fde9e7;
  --success: #17693c;
  --success-soft: #e0f4e7;
  --stage: #16203a;
  --radius: 18px;
  --shadow: 0 2px 4px rgb(27 42 74 / 6%), 0 12px 32px rgb(27 42 74 / 10%);
  --display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
}

h2 {
  margin: 36px 0 14px;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* --- Simgeler: metni JavaScript değiştirse de korunur --- */

[data-icon]::before {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  content: '';
  background: currentcolor;
  mask: var(--icon) center / contain no-repeat;
}

[data-icon='mic'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2M12 19v3'/%3E%3C/svg%3E"); }
[data-icon='mic-off'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M3 3l18 18'/%3E%3C/svg%3E"); }
[data-icon='hand'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.500V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.800 0-4.500-.860-5.990-2.340l-3.600-3.600a2 2 0 0 1 2.830-2.820L7 15'/%3E%3C/svg%3E"); }
[data-icon='record'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3C/svg%3E"); }
[data-icon='volume'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5ZM16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E"); }
[data-icon='exit'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
[data-icon='pen'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 21 1-5L16 4a2.800 2.800 0 0 1 4 4L8 20l-5 1ZM14 6l4 4'/%3E%3C/svg%3E"); }
[data-icon='arrow'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M9 5h10v10'/%3E%3C/svg%3E"); }
[data-icon='marker'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-6.500 8-12a8 8 0 0 0-16 0c0 5.500 8 12 8 12Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
[data-icon='text'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6V4h14v2M12 4v16M9 20h6'/%3E%3C/svg%3E"); }
[data-icon='trash'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 15h10l1-15M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
[data-icon='upload'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E"); }
[data-icon='back'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
[data-icon='calendar'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E"); }
[data-icon='lock'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
[data-icon='play'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 4 13 8-13 8V4Z'/%3E%3C/svg%3E"); }
[data-icon='message'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.600 7.100L4 20l1.100-4.600A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E"); }
[data-icon='test'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l2 2 4-4'/%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E"); }
[data-icon='chart'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M8 17v-5M13 17V7M18 17v-8'/%3E%3C/svg%3E"); }
[data-icon='bank'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.500 9a2.500 2.500 0 1 1 3.700 2.200c-.800.400-1.200 1-1.200 1.800M12 17h.010'/%3E%3C/svg%3E"); }
[data-icon='settings'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E"); }

/* --- Üst bar --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgb(27 42 74 / 5%);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  max-width: 1160px;
  padding: 12px 20px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  background: linear-gradient(#1a1a1a 0 33.3%, #d9301f 33.3% 66.6%, var(--gold) 66.6%);
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--surface-2);
}

.site-nav a.active {
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.user-menu form {
  margin: 0;
}

.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
}

.user-name {
  font-weight: 600;
  line-height: 1.15;
}

.user-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

/* --- Sayfa başlığı bandı --- */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.page-hero::after {
  position: absolute;
  top: -90px;
  right: max(-40px, calc(50% - 680px));
  width: 300px;
  height: 300px;
  content: '';
  background: var(--brand);
  border-radius: 50%;
  box-shadow: -120px 130px 0 -60px var(--gold);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  padding: 34px 20px 38px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 24ch;
  margin: 0;
}

.page-hero p {
  max-width: 58ch;
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: #d3daea;
}

.page-hero .eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  padding: 28px 20px 64px;
  margin: 0 auto;
}

/* --- Düğmeler --- */

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid #d8cdb9;
  border-radius: 999px;
  transition: background-color 120ms, border-color 120ms, transform 120ms;
}

button:hover,
.button:hover {
  background: var(--surface-2);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button.primary,
.button.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

button.primary:hover,
.button.primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

button.large,
.button.large {
  min-height: 52px;
  padding: 12px 26px;
  font-size: 1.05rem;
}

button.quiet,
.button.quiet {
  font-weight: 500;
  background: transparent;
  border-color: transparent;
}

button.quiet:hover,
.button.quiet:hover {
  background: var(--surface-2);
}

button.danger-quiet {
  font-weight: 500;
  color: var(--danger);
  background: transparent;
  border-color: transparent;
}

button.danger-quiet:hover {
  background: var(--danger-soft);
}

.button.on-dark {
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 45%);
}

.button.on-dark:hover {
  background: rgb(255 255 255 / 12%);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

form.inline {
  display: inline;
}

/* --- Formlar --- */

input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'],
input[type='file'],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid #d8cdb9;
  border-radius: 12px;
}

label {
  font-weight: 600;
}

.form-card p {
  margin: 0 0 16px;
}

.form-card label {
  display: block;
  margin-bottom: 4px;
}

.helptext {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.errorlist {
  padding: 0;
  margin: 0 0 8px;
  color: var(--danger);
  list-style: none;
}

.message {
  padding: 12px 16px;
  margin: 0 0 18px;
  background: var(--surface);
  border-left: 5px solid var(--brand);
  border-radius: 10px;
}

.message.error {
  background: var(--danger-soft);
  border-color: var(--danger);
}

.message.success {
  background: var(--success-soft);
  border-color: var(--success);
}

.muted {
  color: var(--muted);
}

/* --- Kartlar --- */

.card {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.narrow-card {
  max-width: 440px;
  padding: 30px;
  margin: 32px auto;
}

.form-card {
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-strong);
}

/* --- Giriş sayfası --- */

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 880px;
  margin: 16px auto;
  overflow: hidden;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-side {
  padding: 36px;
  color: #fff;
  background: var(--navy);
}

.auth-side h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.8rem;
}

.auth-side em {
  color: var(--gold);
}

.auth-side p {
  color: #d3daea;
}

.auth-side .steps {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.auth-side .steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.auth-side .steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 10px;
}

.auth-form {
  padding: 36px;
}

.auth-form h1 {
  font-size: 1.9rem;
}

.auth-form p {
  margin: 0 0 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 4px;
}

.auth-form button {
  width: 100%;
}

.quick-login {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff4d6;
  border: 1px dashed var(--gold);
  border-radius: 10px;
}

.quick-login select {
  width: 100%;
  margin-bottom: 12px;
}

.auth-form .quick-login-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* --- Tanıtım sayfası: üst bölüm --- */

.home-hero {
  color: #fff;
  background: var(--navy);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  padding: 64px 20px 72px;
  margin: 0 auto;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  line-height: 1.08;
}

.home-hero h1 em {
  font-weight: 400;
  color: var(--gold);
}

.home-hero p {
  max-width: 50ch;
  margin: 18px 0 26px;
  font-size: 1.15rem;
  color: #d3daea;
}

.hero-mock {
  position: relative;
  padding: 44px 26px 34px 0;
}

.mock-window {
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #e0342b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(224 52 43 / 20%);
}

.mock-slide {
  padding: 18px 20px 46px;
  background: var(--bg);
}

.mock-bar [data-icon] {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.mock-video {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mock-video:last-child {
  border-bottom: 0;
}

.mock-video b {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-video > span:last-child {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.mock-word {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mock-word:last-child {
  border-bottom: 0;
}

.mock-word strong {
  padding: 2px 0;
  font-size: 0.88rem;
  text-align: center;
  border-radius: 999px;
}

.mock-word .der { color: #1b4bb3; background: var(--blue-soft); }
.mock-word .die { color: var(--brand-strong); background: var(--brand-soft); }
.mock-word .das { color: var(--teal); background: var(--teal-soft); }

.mock-word b {
  font-family: var(--display);
  font-size: 1.2rem;
}

.mock-word span {
  font-size: 0.9rem;
  color: var(--muted);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}

.float-card strong {
  display: block;
  line-height: 1.2;
}

.float-card small {
  color: var(--muted);
}

.float-hand {
  top: 0;
  right: 0;
  background: var(--gold-soft);
}

.float-hand [data-icon] {
  display: inline-flex;
  font-size: 1.2rem;
  color: var(--amber);
}

.float-score {
  bottom: 0;
  left: 26px;
}

.float-score .score-mini {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

/* --- Tanıtım sayfası: bölümler --- */

.band {
  padding: 56px 0;
}

.band-inner {
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}

.band h2,
.section-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.band-lead {
  max-width: 60ch;
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: var(--muted);
}

.band-gold {
  background: var(--gold-soft);
}

.band-cta {
  color: #fff;
  background: var(--brand);
}

.band-cta .band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.band-cta h2 {
  margin: 0;
}

.band-cta .button {
  color: var(--brand-strong);
  background: #fff;
  border-color: #fff;
}

.band-cta .button:hover {
  background: var(--brand-soft);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-list li::before {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  content: counter(step);
  background: var(--gold);
  border-radius: 50%;
}

.step-list strong {
  display: block;
  font-size: 1.08rem;
}

.step-list span {
  color: var(--muted);
}

/* --- Kutucuklar --- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 140ms;
}

a.tile:hover {
  transform: translateY(-3px);
}

.tile strong {
  display: block;
  margin-top: 12px;
  font-size: 1.1rem;
}

.tile span.tile-text {
  display: block;
  margin-top: 3px;
  font-size: 0.94rem;
  color: var(--muted);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 14px;
}

.tile:nth-child(4n + 2) .tile-icon {
  color: var(--teal);
  background: var(--teal-soft);
}

.tile:nth-child(4n + 3) .tile-icon {
  color: var(--amber);
  background: var(--gold-soft);
}

.tile:nth-child(4n) .tile-icon {
  color: #1b4bb3;
  background: var(--blue-soft);
}

/* --- Panel: sıradaki ders ve sayılar --- */

.spotlight {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  margin: -54px 0 18px;
  background: var(--surface);
  border-left: 8px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spotlight h2 {
  margin: 3px 0 4px;
  font-family: var(--display);
  font-size: 1.65rem;
}

.spotlight p {
  margin: 0;
  color: var(--muted);
}

.spotlight .eyebrow {
  color: var(--brand-strong);
}

.has-spotlight .page-hero-inner {
  padding-bottom: 84px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat {
  padding: 16px 20px;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
}

.stat span {
  font-size: 0.92rem;
}

.stat:nth-child(3n + 1) { background: var(--brand-soft); }
.stat:nth-child(3n + 2) { background: var(--teal-soft); }
.stat:nth-child(3n) { background: var(--gold-soft); }

/* --- Kurs ve ders kartları --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 140ms;
}

.lesson-card:hover {
  transform: translateY(-3px);
}

.cover {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 118px;
  padding: 16px 20px;
  color: #fff;
  background: var(--navy);
}

.lesson-card:nth-child(3n + 2) .cover {
  background: var(--brand);
}

.lesson-card:nth-child(3n) .cover {
  color: var(--navy);
  background: var(--gold);
}

.cover-word {
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.1;
}

.cover-date strong {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
}

.cover-note {
  font-size: 0.9rem;
  font-weight: 600;
}

.cover-play {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
  color: var(--navy);
  background: #fff;
  border-radius: 50%;
}

.lesson-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.lesson-body h2,
.lesson-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.lesson-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.lesson-body .eyebrow {
  color: var(--brand-strong);
}

.lesson-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.lesson-foot form {
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.tag-list li,
.tag {
  padding: 3px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.video-grid video {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  background: #000;
  border-radius: 12px;
}

/* --- Kurs kartı: kartın tamamı tıklanır, "Yakında" kartı sönük --- */

.course-card {
  position: relative;
}

.cover-level {
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 700;
}

.course-card .card-link {
  color: inherit;
  text-decoration: none;
}

.course-card .card-link::after {
  position: absolute;
  inset: 0;
  content: '';
}

.course-card .lesson-foot .button {
  position: relative;
  z-index: 1;
}

.course-card:has(.card-link):hover h3 {
  color: var(--brand-strong);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.lesson-body .course-meta {
  color: var(--ink);
}

.course-meta [data-icon] {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.price-tag {
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.course-card.is-soon {
  opacity: 0.72;
}

.course-card.is-soon:hover {
  transform: none;
}

.course-card.is-soon .lesson-body .course-meta {
  font-weight: 500;
  color: var(--muted);
}

.soon-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
}

.page-hero .hero-meta {
  font-weight: 600;
  color: var(--gold);
}

/* --- Kurs sayfası: konular (tıklanınca videoları açılır) ve videolar --- */

.page-hero .hero-owned {
  color: #fff;
}

/* Kurs sayfasında ince bant: ad ve bilgiler tek satırda, süs daireleri küçük */
.page-hero.is-compact .page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 22px;
  padding: 16px 20px 18px;
}

.page-hero.is-compact h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
}

.page-hero.is-compact p {
  margin: 0;
}

.page-hero.is-compact .hero-description {
  flex-basis: 100%;
}

.page-hero.is-compact::after {
  top: -70px;
  width: 170px;
  height: 170px;
  box-shadow: -70px 70px 0 -35px var(--gold);
}

/* T düzeni: üstte sabit bar (Konular | Videolar, kurs raporu, Kartlar/Liste),
   altında konular solda, videolar sağda; iki sütun ayrı ayrı kayar.
   --header-h ve --bar-h yükseklikleri video_view.js ölçer. Dar ekranda alt alta. */
.course-workspace {
  --side: 270px;
  --gap: 28px;
}

.course-workspace.after-buy-box {
  margin-top: 36px;
}

.course-bar {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 5;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: 12px 0;
  margin-top: -12px;
  background: var(--bg, #fbf6ec);
  border-bottom: 1px solid var(--line);
}

.course-bar .section-title {
  margin: 0;
}

.course-bar-videos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.course-bar-videos .actions {
  margin-left: auto;
}

.course-report {
  font-size: 0.95rem;
}

/* Alt kısım ekranın barın altında kalan yüksekliği kadardır; sütunlar bunun içinde kayar */
.course-layout {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gap);
  height: calc(100vh - var(--header-h, 64px) - var(--bar-h, 70px));
  min-height: 360px;
  padding-top: 14px;
}

.topic-column,
.video-column {
  min-height: 0;
  overflow-y: auto;
}

.topic-column {
  padding: 4px 6px 6px 4px;
}

/* Kartın gölgesi ve seçili çerçevesi kenarda kesilmesin */
.video-column {
  padding: 4px 8px 16px 6px;
}

/* Sağda konu başlığı videolar kayarken üstte kalır */
.video-column .module-head {
  position: sticky;
  top: -4px;
  z-index: 3;
  padding: 6px 0 8px;
  margin: 0 0 8px;
  background: var(--bg, #fbf6ec);
}

.video-column .video-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  .course-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-bar-topics {
    display: none;
  }

  /* Telefonda bar ince olsun: başlık ve Kartlar/Liste bir satırda, rapor altında */
  .course-bar {
    padding: 6px 0;
  }

  .course-bar .section-title {
    font-size: 1.35rem;
  }

  .course-bar-videos {
    gap: 2px 10px;
  }

  .course-bar-videos .actions {
    order: 2;
  }

  .course-bar-videos .course-report {
    order: 3;
    flex-basis: 100%;
    font-size: 0.82rem;
  }

  .course-bar .view-switch button {
    min-height: 30px;
    padding: 3px 12px;
  }

  .course-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  /* Telefonda yalnızca bar sabit kalır, sayfa normal kayar */
  .course-layout {
    height: auto;
    min-height: 0;
  }

  .topic-column,
  .video-column {
    overflow: visible;
  }

  .video-column .module-head {
    position: static;
  }

  .topic-column .topic-summary {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .topic-column .topic-button {
    padding: 9px 12px;
    font-size: 0.92rem;
  }
}

.topic-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.topic-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px 16px;
  font: inherit;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.topic-button:hover {
  border-color: var(--brand-soft);
}

.topic-button[aria-expanded='true'] {
  border-color: var(--brand);
}

.topic-button.is-empty {
  cursor: default;
  opacity: 0.7;
}

.topic-button .muted {
  font-weight: 500;
}

.topic-done {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}

.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 10px 0 12px;
  font-size: 1.3rem;
  scroll-margin-top: 90px;
}

.module-videos {
  scroll-margin-top: 90px;
}

.module-head .muted {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 999px;
}

.view-switch button {
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
}

.view-switch button[aria-pressed='true'] {
  color: #fff;
  background: var(--navy);
}

/* Video kartı: zemin hep beyaz, izleme durumunu köşedeki ikon anlatır.
   Fare üzerindeyken kart hafifçe yukarı kalkar, tıklanan video mercan rengi çerçeve alır. */
.video-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow 150ms, transform 150ms;
}

.video-card[data-custom-player]:hover {
  box-shadow: 0 4px 8px rgb(27 42 74 / 8%), 0 18px 40px rgb(27 42 74 / 16%);
  transform: translateY(-3px);
}

/* Durum ikonu: boş gri daire / izlenen kadar dolan turuncu daire / yeşil tik */
.watch-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #c9c2b4;
  border-radius: 50%;
}

.is-partial .watch-icon,
.watch-icon.is-partial {
  background: conic-gradient(#e8590c calc(var(--p, 50) * 1%), transparent 0);
  border-color: #e8590c;
}

.is-done .watch-icon,
.watch-icon.is-done {
  background: var(--success);
  border-color: var(--success);
}

.is-done .watch-icon::after,
.watch-icon.is-done::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  content: '';
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Konu düğmesinde sağ üst köşede konunun durumu (videolardaki ikonun aynısı) */
.topic-button {
  position: relative;
}

.topic-button .watch-icon {
  position: absolute;
  top: 12px;
  right: 12px;
}

.topic-button:has(.watch-icon) {
  padding-right: 42px;
}

/* Konu raporu: izlenen ve kalan süre */
.watch-report {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.watch-report b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.module-head .watch-report {
  font-family: system-ui, sans-serif;
}

.video-card.is-selected,
.video-card.is-selected:hover {
  box-shadow: 0 0 0 3px var(--brand), var(--shadow);
}

.video-frame {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}

.video-grid .video-frame video {
  margin: 0;
  border-radius: 0;
}

.video-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.video-number {
  flex-shrink: 0;
  min-width: 1.8em;
  padding: 2px 6px;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-strong);
  text-align: center;
  background: var(--brand-soft);
  border-radius: 8px;
}

.video-length {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.video-title {
  flex: 1;
}

.watch-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Deneme kartı (ilk 3 video): üstte numara, süre, durum; altta tam genişlikte video adı */
.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 24px;
}

.video-meta .watch-label:empty {
  display: none;
}

.video-name {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.as-list .video-card .video-meta {
  grid-row: 1;
  align-self: end;
}

.as-list .video-card .video-name {
  grid-row: 2;
  align-self: start;
  margin-top: 2px;
}

.watch-label:empty {
  display: none;
}

.is-partial .watch-label {
  color: var(--amber);
}

.is-done .watch-label {
  color: var(--success);
}

.video-card form {
  margin: 8px 0 0;
}

.video-card .status-badge {
  align-self: flex-start;
  margin-top: 8px;
}

/* Liste görünümü: küçük oynatıcı solda, bilgiler sağda, alt alta */
.as-list .video-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.as-list .video-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr auto auto;
  gap: 4px 18px;
  align-items: center;
  padding: 12px;
}

.as-list .video-card > :not(.video-frame, .video-locked) {
  grid-column: 2;
}

.as-list .video-card .video-frame,
.as-list .video-card .video-locked {
  grid-row: 1 / span 3;
  align-self: start;
  margin: 0;
}

.as-list .video-card .video-info {
  grid-row: 1;
  align-self: center;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .as-list .video-card {
    grid-template-columns: 120px 1fr;
    gap: 4px 12px;
  }
}

/* Video bitince: sıradaki videonun adı, geri sayım, "Şimdi oynat" ve "İptal" */
.next-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: #fff;
  text-align: center;
  background: rgb(16 24 44 / 82%);
}

.next-label {
  font-size: 0.85rem;
  color: #d3daea;
}

.next-count {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  margin-left: 4px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
}

.next-title {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.3;
}

.next-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.next-actions button {
  min-height: 34px;
  padding: 4px 14px;
  font-size: 0.9rem;
}

.next-actions .next-cancel {
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 50%);
}

.next-actions .next-cancel:hover {
  background: rgb(255 255 255 / 15%);
}

.video-frame:fullscreen .next-title {
  font-size: 1.6rem;
}

/* --- Kendi oynatıcımız: kalın kırmızı ilerleme çubuğu, ortaya dokununca oynat/durdur --- */

.video-frame.has-player {
  outline: none;
}

.video-frame.has-player video {
  cursor: pointer;
}

.video-frame:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.video-frame:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-big-play {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: 50%;
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: rgb(0 0 0 / 35%);
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.player-big-play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  fill: currentColor;
}

.player-big-play:hover {
  background: #e00000;
}

.video-frame.is-paused .player-big-play {
  display: grid;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 10px 0;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(transparent, rgb(0 0 0 / 70%));
  opacity: 0;
  transition: opacity 200ms;
}

.video-frame.is-paused .player-controls,
.video-frame.controls-visible .player-controls,
.video-frame:focus-within .player-controls {
  opacity: 1;
}

/* Hiç izlenmemiş videoda, oynatılana kadar yalnızca ortadaki düğme görünür */
.video-card.is-new .video-frame.not-started .player-controls {
  display: none;
}

/* Oynatılmadığında da kırmızı ilerleme görünsün: çubuk her zaman altta durur */
.video-frame.has-player:not(.is-paused):not(.controls-visible) .player-controls {
  opacity: 1;
  background: none;
}

.video-frame.has-player:not(.is-paused):not(.controls-visible) .player-row,
.video-frame.has-player:not(.is-paused):not(.controls-visible) .player-seek-knob {
  visibility: hidden;
}

.player-seek {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 20px;
  padding-bottom: 10px;
  cursor: pointer;
  touch-action: none;
}

.player-seek-track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgb(255 255 255 / 30%);
  border-radius: 2px;
  transition: height 120ms;
}

.player-seek:hover .player-seek-track {
  height: 7px;
}

.player-seek-buffer,
.player-seek-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
}

.player-seek-buffer {
  background: rgb(255 255 255 / 45%);
}

.player-seek-fill {
  background: #e00000;
}

.player-seek-knob {
  position: absolute;
  bottom: 12px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  background: #e00000;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.player-row,
.player-seek {
  pointer-events: auto;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-spacer {
  flex: 1;
}

.player-time {
  margin-left: 4px;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.player-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.player-button:hover {
  background: rgb(255 255 255 / 15%);
}

.player-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.video-frame:fullscreen .player-controls {
  padding: 30px 24px 10px;
}

.video-frame:fullscreen .player-seek-track {
  height: 5px;
}

.as-list .player-time {
  font-size: 0.78rem;
}

.live-announcement {
  border-left: 6px solid var(--brand);
}

/* --- Kilitli video, satın alma kutusu ve kasa --- */

.video-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.95rem;
  background: var(--navy);
  border-radius: 12px;
  opacity: 0.85;
}

.video-locked [data-icon] {
  width: 30px;
  height: 30px;
}

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 22px 26px;
  margin-bottom: 8px;
  background: #fff4d6;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.buy-box h2 {
  margin: 0 0 4px;
}

.buy-box p {
  margin: 0;
}

.buy-box-action {
  display: flex;
  align-items: center;
  gap: 18px;
}

.price {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.checkout {
  max-width: 560px;
  margin: 0 auto;
}

.checkout-table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.checkout-table td {
  padding: 14px 0;
  border-bottom: 1px solid #eadfca;
  vertical-align: top;
}

.checkout-table td strong,
.checkout-table td .muted {
  display: block;
}

.checkout-table .price {
  text-align: right;
}

.checkout-total td {
  font-weight: 700;
  border-bottom: none;
}

.checkout-note {
  padding: 10px 14px;
  font-size: 0.9rem;
  background: var(--amber-soft);
  border-radius: 10px;
}

.checkout form button {
  width: 100%;
  margin-bottom: 12px;
}

/* --- Satır kartları --- */

.row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.row-card-body {
  flex: 1;
  min-width: 200px;
}

.row-card-body h2,
.row-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.row-card-body p {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.exam-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: var(--gold-soft);
  border-radius: 14px;
}

.exam-banner form {
  margin: 0;
}

.module-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

/* --- Tablolar --- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy-2);
}

tr.struggling {
  background: var(--danger-soft);
}

.mark-cell {
  text-align: center;
  white-space: nowrap;
}

td.mark-right {
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
}

td.mark-wrong {
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-soft);
}

td.mark-none {
  color: var(--muted);
}

/* --- Test çözme --- */

.question {
  padding: 22px 24px;
  margin: 0 0 14px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.question legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.08rem;
  font-weight: 600;
}

.question legend + * {
  clear: both;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-top: 8px;
  font-weight: 400;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.option:hover {
  background: var(--surface-2);
}

.option:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.option input {
  accent-color: var(--brand);
}

.score-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  margin: 0 0 22px;
  background: var(--gold-soft);
  border-radius: var(--radius);
}

.score-number {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.result-item {
  padding: 15px 20px;
  margin-bottom: 10px;
  background: var(--surface);
  border-left: 6px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-right {
  border-left-color: var(--success);
}

.result-wrong {
  border-left-color: var(--danger);
}

.result-right strong {
  color: var(--success);
}

.result-wrong strong {
  color: var(--danger);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}

.check-row small {
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  font-weight: 600;
  text-decoration: none;
}

/* --- Gruplar ve başvurular --- */

.date-block {
  flex: none;
  width: 62px;
  padding: 7px 0;
  line-height: 1.1;
  color: var(--navy);
  text-align: center;
  background: var(--gold-soft);
  border-radius: 12px;
}

.date-block strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
}

.date-block span {
  font-size: 0.8rem;
}

.status-badge {
  padding: 5px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
}

.status-badge.approved {
  color: var(--success);
  background: var(--success-soft);
}

.status-badge.pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-badge.rejected {
  color: var(--danger);
  background: var(--danger-soft);
}

.pending-row {
  border-left: 6px solid var(--gold);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 36px 0 14px;
}

.section-head .section-title {
  margin: 0;
}

.section-title {
  margin: 36px 0 14px;
}

.count {
  padding: 0 10px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
}

.topic-list li {
  padding: 6px 14px;
  font-size: 0.95rem;
}

.locked-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.locked-note p {
  margin: 0;
  color: var(--muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.filter-pills a {
  padding: 7px 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(27 42 74 / 10%);
}

.filter-pills a.active {
  font-weight: 600;
  color: #fff;
  background: var(--navy);
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
}

/* --- Alt bilgi --- */

.site-footer {
  color: #d3daea;
  background: var(--navy);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1160px;
  padding: 26px 20px;
  margin: 0 auto;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 20px 48px;
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-side {
    order: 2;
  }
}

@media (max-width: 640px) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .spotlight {
    padding: 20px;
  }

  .spotlight .button {
    width: 100%;
  }

  .page-hero::after {
    opacity: 0.35;
  }
}

/* --- Videolarda arama (sabit barda); video_search.js --- */
.video-search {
  position: relative;
  flex: 1 1 200px;
  max-width: 300px;
}

.video-search input {
  width: 100%;
  min-height: 36px;
  padding: 6px 32px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 0.95rem;
}

.video-search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}

/* Tarayıcının kendi temizleme çarpısı yerine bizimki */
.video-search input::-webkit-search-cancel-button {
  display: none;
}

.video-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.video-search-clear:hover {
  background: var(--surface-2);
}

.search-status {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--gold-soft);
  font-size: 0.95rem;
}

.video-card.is-search-hidden {
  display: none;
}

.search-hits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.search-hits-summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-strong);
}

.search-hit {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.search-hit:hover {
  background: var(--brand-soft);
}

.search-hit mark {
  padding: 0 2px;
  border-radius: 3px;
  background: var(--gold);
  color: inherit;
}

.search-hit-time {
  font-weight: 700;
  color: var(--brand-strong);
  font-variant-numeric: tabular-nums;
}

/* Aramada sonucu olmayan konular soluk; olanlarda kaç video bulunduğu yazar */
.is-searching .topic-button.no-hits {
  opacity: 0.45;
}

.topic-hits {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-strong);
}

@media (max-width: 860px) {
  .video-search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
  }

  .video-search input {
    min-height: 32px;
  }
}

/* Erişim kodları: üretme ekranı, kasada kod alanı */
.code-form ul { list-style: none; padding: 0; margin: 0.3rem 0 0; display: grid; gap: 0.3rem; }
.code-form ul label { font-weight: normal; display: flex; gap: 0.5rem; align-items: center; }
.code-table td { vertical-align: top; }
.code-table tr.is-new { background: #fff4d6; }
.access-code { font-size: 1.05rem; letter-spacing: 0.08em; font-weight: 700; color: #1b2a4a; white-space: nowrap; }
.checkout-code { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(27, 42, 74, 0.12); }
.checkout-code label { display: block; margin-bottom: 0.4rem; }
.checkout-code-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.checkout-code-row input { flex: 1 1 10rem; text-transform: uppercase; letter-spacing: 0.06em; }
.checkout .checkout-code-row button { width: auto; }
.form-error { color: #b42318; margin: 0.4rem 0 0; }
.code-hint { margin: 0 0 1rem; }

/* Kurs listesi: mavi bantta kod ipucu; açık (satın alınmış / kodla açılmış) kurs kartı */
/* Kod yazısı: bandın sağ üstünde, menüdeki "Çıkış yap" hizasında; süs dairesinin üstünde okunsun
   diye lacivert zeminli. Dar ekranda başlığın altına iner. */
.page-hero .hero-code-hint {
  position: absolute; top: 12px; right: 20px; z-index: 2;
  max-width: none; margin: 0; padding: 0.35rem 0.85rem;
  font-size: 0.95rem; color: #fff; text-align: right;
  background: rgba(27, 42, 74, 0.9); border-radius: 999px;
}
.page-hero .hero-code-hint a { color: #ffc83d; font-weight: 700; }
@media (max-width: 760px) {
  .page-hero .hero-code-hint { position: static; display: inline-block; margin-top: 8px; text-align: left; }
}
.course-card.is-owned { box-shadow: 0 0 0 3px #2f9e44; }
.owned-badge { display: inline-flex; gap: 0.35rem; align-items: center; margin: 0.2rem 0 0.4rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; background: #e6f4ea; color: #1e6b34; font-weight: 700; font-size: 0.9rem; }
.version-tag { font-size: 0.8rem; font-weight: 600; color: #d9480f; margin-left: 0.3rem; }
/* Ana sayfa ve Kurslar: ince, aynı yükseklikte mavi bant */
.page-hero.is-uniform .page-hero-inner { padding: 14px 20px 16px; }
.page-hero.is-uniform h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.page-hero.is-uniform p { margin-top: 4px; }
.page-hero.is-uniform .eyebrow { margin-bottom: 2px; }
.page-hero.is-uniform::after {
  top: -70px; width: 170px; height: 170px;
  box-shadow: -70px 70px 0 -35px var(--gold);
}
/* iPhone/iPad: videoya uzun basınca çıkan menü (kaydet/paylaş) açılmasın */
video { -webkit-touch-callout: none; }
