/*
 * Öğrenci alanı — kayıt, giriş, Kurslarım, profil
 * Ana sitenin marka dilini (navy + gold) korur.
 */

:root {
  --navy: #1f2d3d;
  --navy-2: #2c3e50;
  --navy-3: #34495e;
  --gold: #f39c12;
  --gold-2: #e67e22;
  --green: #27ae60;
  --red: #d64545;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e6e9ee;
  --text: #2b3440;
  --text-muted: #5b6572;
  --text-soft: #8a93a0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 30, 45, 0.06);
  --shadow: 0 10px 30px rgba(20, 30, 45, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 30, 45, 0.16);
  --gold-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  --navy-gradient: linear-gradient(135deg, #1f2d3d 0%, #2c3e50 55%, #34495e 100%);

  --font: "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Ortak parçalar ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.4px;
}
.brand-word small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}
.brand--dark { color: var(--navy); }
.brand--dark .brand-word small { color: var(--gold-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 50px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 126, 34, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(230, 126, 34, 0.42); }
.btn-dark { background: var(--navy-2); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy-2);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.hint { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.sub-checkout { display: grid; gap: 22px; }
.sub-legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 6px 0 18px;
}
.sub-legal input { margin-top: 3px; }
.sub-legal a { color: var(--navy-2); font-weight: 700; }
.sub-iyzico-form { min-height: 280px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert i { margin-top: 3px; }
.alert-err { background: #fdecec; border: 1px solid #f7c7c7; color: #a32020; }
.alert-ok { background: #eafaf0; border: 1px solid #bfe9d0; color: #1a7f42; }
.alert-info { background: #eef5fd; border: 1px solid #cfe0f5; color: #1e5a99; }
.alert a { text-decoration: underline; word-break: break-all; }

/* ---------- Form alanları ---------- */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.field .optional { color: var(--text-soft); font-weight: 500; }

.input-wrap { position: relative; }
.input-wrap > i.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 15px;
  pointer-events: none;
}
.input-wrap > i.field-icon ~ input { padding-left: 42px; }

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.16);
}
.field input:disabled, .field input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
.field .hint { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 15px;
  border-radius: 8px;
}
.pw-toggle:hover { color: var(--navy-2); background: var(--surface-2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.form-foot a { color: var(--gold-2); font-weight: 700; }
.form-foot a:hover { text-decoration: underline; }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 20px;
  line-height: 1.55;
}
.check-line input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold-2); flex-shrink: 0; }
.check-line a { color: var(--gold-2); font-weight: 600; text-decoration: underline; }

.forgot-line { text-align: right; margin: -6px 0 18px; }
.forgot-line a { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.forgot-line a:hover { color: var(--gold-2); }

/* ---------- Auth düzeni: ortalanmış tek kart ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

/* Üst bar — solda marka, sağda karşıt aksiyon */
.auth-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.auth-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.auth-top-links { display: flex; align-items: center; gap: 8px; }
.auth-top-links a {
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--navy-2);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.auth-top-links a:hover { background: var(--surface-2); }
.auth-top-links a.is-cta {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(230, 126, 34, 0.28);
}
.auth-top-links a.is-cta:hover { box-shadow: 0 10px 24px rgba(230, 126, 34, 0.38); }

/* Başlık bloğu — açık zeminli üst şerit */
.auth-hero {
  background: linear-gradient(180deg, #f4f7fb 0%, #f7f9fc 100%);
  text-align: center;
  padding: 62px 20px 132px;
}
.auth-hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--navy);
  margin-bottom: 14px;
}
.auth-hero p { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* Kart, başlık şeridinin üzerine biner */
.auth-shell {
  width: 100%;
  max-width: 460px;
  margin: -108px auto 0;
  padding: 0 20px 72px;
  position: relative;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}
.auth-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 22px;
  text-align: center;
}
.auth-card > form { margin: 0; }

.auth-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  margin: -8px 0 20px;
}
.verify-code-input {
  width: 100%;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-align: center;
  color: var(--navy);
}
.verify-code-input:focus {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-color: transparent;
}
.verify-code-inline {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--navy);
}
.verify-resend { margin-top: 10px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-soft);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { text-transform: uppercase; }

/* ---------- Sosyal giriş ---------- */

.social-auth { display: grid; gap: 10px; }

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #1f2d3d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-social:hover {
  border-color: #b9c2cd;
  box-shadow: 0 6px 18px rgba(31, 45, 61, .10);
  transform: translateY(-1px);
}
.btn-social:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
.btn-social .social-icon { flex-shrink: 0; }

.btn-social.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.social-setup-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
  background: rgba(31, 45, 61, .04);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}
.social-setup-note code {
  font-size: 11.5px;
  background: rgba(31, 45, 61, .08);
  padding: 1px 5px;
  border-radius: 4px;
}

.auth-note {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  text-align: center;
  margin-top: 16px;
}
.auth-note a { color: var(--gold-2); font-weight: 600; text-decoration: underline; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 600;
  justify-content: center;
  width: 100%;
}
.auth-back:hover { color: var(--gold-2); }

@media (max-width: 640px) {
  .auth-top-inner { height: 64px; padding: 0 16px; }
  .auth-top-links a { padding: 9px 15px; font-size: 13.5px; }
  .auth-hero { padding: 44px 18px 116px; }
  .auth-shell { padding: 0 16px 56px; }
  .auth-card { padding: 26px 20px; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Uygulama kabuğu (Kurslarım / profil) ---------- */

.app-bar {
  background: rgba(31, 45, 61, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a {
  color: #cfd6de;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 15px;
  border-radius: 9px;
  transition: color 0.18s, background 0.18s;
}
.app-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.app-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(230, 126, 34, 0.35);
}
.app-user-meta { line-height: 1.3; }
.app-user-meta b { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.app-user-meta span { font-size: 12px; color: #97a3b1; }
.app-logout {
  color: #97a3b1;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}
.app-logout:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 780px) {
  .app-bar-inner { height: auto; padding: 14px 18px; flex-wrap: wrap; }
  .app-nav { order: 3; width: 100%; overflow-x: auto; }
  .app-user-meta { display: none; }
}

.app-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Panel: kırıntı yolu + başlık + iki kolon ---------- */

.panel-page { padding: 30px 0 70px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-muted); font-weight: 600; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs b { color: var(--navy-2); font-weight: 700; }

.panel-title {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.panel-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.panel-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}
.panel-main { min-width: 0; }

/* Sol menü kartı */
.panel-side { position: sticky; top: 94px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.avatar-lg { width: 54px; height: 54px; font-size: 19px; }
.side-user-meta { min-width: 0; line-height: 1.35; }
.side-user-meta b {
  display: block;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 800;
}
.side-user-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-group { padding: 8px 0; border-bottom: 1px solid var(--border); }
.side-group:last-child { border-bottom: none; }
.side-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-2);
  border-left: 3px solid transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.side-nav a:hover { background: rgba(31, 45, 61, 0.045); color: var(--navy); }
.side-nav a.active {
  background: rgba(31, 45, 61, 0.06);
  border-left-color: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.side-nav a.is-exit { color: var(--text-muted); }
.side-nav a.is-exit:hover { color: #c0392b; background: rgba(192, 57, 43, 0.06); }

@media (max-width: 900px) {
  .panel-shell { grid-template-columns: 1fr; gap: 22px; }
  .panel-side { position: static; }
  .side-group { padding: 6px 0; }
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.section-bar h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.section-bar p { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.count-chip {
  display: inline-block;
  min-width: 24px;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(31, 45, 61, 0.07);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---------- Kurs kartları ---------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.course-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  cursor: pointer;
}
.course-badge { pointer-events: none; }
.course-card .course-inst a,
.course-card .course-actions {
  position: relative;
  z-index: 2;
}
.course-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-gradient);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-media .ph { color: rgba(255, 255, 255, 0.5); font-size: 34px; }
.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.course-badge.paid { background: rgba(39, 174, 96, 0.9); color: #fff; }
.course-badge.pending { background: rgba(243, 156, 18, 0.92); color: #fff; }

.course-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--navy-2);
  line-height: 1.35;
  margin-bottom: 6px;
}
.course-inst { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.course-inst a { color: var(--gold-2); font-weight: 600; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta i { color: var(--gold-2); }

.progress { margin-top: auto; }
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.progress-bar {
  height: 8px;
  border-radius: 50px;
  background: #eef1f5;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
}
.progress-fill.done { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }

.course-actions { margin-top: 16px; display: flex; gap: 10px; }
.course-actions .btn { flex: 1; }

.pending-note {
  margin-top: 14px;
  background: #fff8ec;
  border: 1px solid #f7dfb8;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: #8a5a10;
  line-height: 1.5;
}

/* ---------- Boş durum ---------- */

.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty .ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: rgba(243, 156, 18, 0.12);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-size: 30px;
}
.empty h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.empty p { color: var(--text-muted); max-width: 460px; margin: 0 auto 26px; font-size: 15px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Yayına alınmamış bölüm bilgilendirmesi ---------- */

.soon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.soon-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: rgba(31, 45, 61, 0.06);
  color: var(--navy-2);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.soon h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.soon p { color: var(--text-muted); max-width: 470px; margin: 0 auto; font-size: 14.8px; line-height: 1.65; }
.soon-eta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px !important;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(243, 156, 18, 0.12);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
}
.soon-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- Panel kartları (profil) ---------- */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}
.panel .panel-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.panel-meta { list-style: none; font-size: 14px; }
.panel-meta li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.panel-meta li:last-child { border-bottom: none; }
.panel-meta span { color: var(--text-soft); }
.panel-meta b { color: var(--navy-2); font-weight: 700; text-align: right; }

.cart-list { display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.cart-media img,
.cart-ph {
  width: 88px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.cart-meta b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.cart-meta span { font-size: 13px; color: var(--text-soft); }
.cart-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.cart-actions {
  grid-column: 2 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-text {
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-text:hover { color: var(--red); }
@media (min-width: 720px) {
  .cart-row { grid-template-columns: 88px minmax(0, 1fr) auto auto; }
  .cart-actions { grid-column: auto; justify-content: flex-end; }
}

.order-list { display: grid; gap: 16px; }
.order-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 30, 45, 0.06);
  padding: 16px 18px 8px;
}
.order-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #5b6572;
  margin-bottom: 10px;
}
.order-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.order-method {
  display: block;
  font-size: 15px;
  color: #2b3440;
  margin-bottom: 4px;
}
.order-price {
  font-size: 20px;
  font-weight: 800;
  color: #1f4f8a;
}
.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.order-badge.ok { background: #e7f8ee; color: #1b7a3d; }
.order-badge.ref { background: #fdecec; color: #b42318; }
.order-badge.fail { background: #fdecec; color: #b42318; }
.order-badge.cancel { background: #eef1f4; color: #5b6572; }
.order-badge.wait { background: #fff6e5; color: #9a6700; }
.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 14.5px;
  color: #2b3440;
}
.order-item i { color: #8a93a0; }
.order-more {
  border-top: 1px solid #eef2f6;
  margin-top: 6px;
}
.order-more summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #5b6572;
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-more summary::-webkit-details-marker { display: none; }
.order-more[open] summary i { transform: rotate(180deg); }
.order-more summary i { transition: transform 0.15s ease; font-size: 12px; }
.order-more ul { list-style: none; padding-bottom: 12px; }
.order-more li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
}
.order-more span { color: #8a93a0; }
.order-more b { color: #2b3440; font-weight: 700; text-align: right; word-break: break-all; }

/* ---------- LMS oynatıcı ---------- */

body.page-player {
  background: #121820;
  color: #e8edf3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.btn-ghost {
  background: transparent;
  color: #e8edf3;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.player-top {
  background: #1a2330;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
.player-top-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  min-height: 58px;
}
.player-back {
  font-size: 13.5px;
  font-weight: 700;
  color: #c5ced8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.player-back:hover { color: #fff; }
.player-top-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.player-top-title b {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-top-title span {
  font-size: 12px;
  color: #8a93a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 156, 18, 0.18);
  color: #f39c12;
}
.player-user { font-size: 13px; font-weight: 600; color: #c5ced8; }

.player-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: 0;
}
.player-rail {
  background: #161e28;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 58px);
  max-height: calc(100vh - 58px);
}
.player-rail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.player-rail-head strong { font-size: 15px; color: #fff; }
.player-rail-head span { font-size: 12px; color: #8a93a0; }
.player-rail-close {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #c5ced8;
  cursor: pointer;
  font-size: 16px;
}
.player-sections { overflow: auto; padding: 8px 0 24px; }
.player-rail-empty { padding: 18px 16px; color: #8a93a0; font-size: 13.5px; }
.player-sec { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.player-sec summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #e8edf3;
  font-size: 13.5px;
  font-weight: 700;
}
.player-sec summary::-webkit-details-marker { display: none; }
.player-sec summary small { color: #8a93a0; font-weight: 600; }
.player-sec ul { list-style: none; padding: 0 8px 10px; }
.player-lec {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  color: #c5ced8;
  font-size: 13px;
}
.player-lec i { margin-top: 3px; color: #8a93a0; width: 14px; }
.player-lec-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-lec-body b { font-weight: 650; color: #e8edf3; }
.player-lec-body small { color: #8a93a0; font-weight: 600; }
.player-lec:hover { background: rgba(255, 255, 255, 0.05); }
.player-lec.is-active {
  background: rgba(243, 156, 18, 0.14);
  color: #fff;
}
.player-lec.is-active i { color: #f39c12; }
.player-lec.is-done i { color: #2ecc71; }
.player-lec.is-locked { opacity: 0.72; }
.player-lec.is-locked i { color: #6a7380; }

.player-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #0e141c;
}
.player-media { position: relative; }
.player-fs-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  bottom: auto;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.player-fs-btn:hover { background: rgba(0, 0, 0, 0.78); }
.player-media:fullscreen,
.player-media:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-media:fullscreen .player-video-wrap,
.player-media:-webkit-full-screen .player-video-wrap {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  aspect-ratio: auto;
}
.player-media:fullscreen video,
.player-media:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-height: 100vh;
}
.player-seek-hud {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.player-seek-hud.is-on { opacity: 1; }
.player-toggle-rail {
  display: none;
  margin: 10px 14px 0;
  align-self: flex-start;
  background: #1a2330;
  color: #e8edf3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  gap: 8px;
}
.player-video-wrap {
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 820px);
  display: grid;
  place-items: center;
}
.player-video-wrap video {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 820px);
  background: #000;
}
.player-lock {
  text-align: center;
  padding: 40px 24px;
  color: #c5ced8;
}
.player-lock i { font-size: 36px; color: #f39c12; margin-bottom: 14px; }
.player-lock h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.player-lock p { max-width: 420px; margin: 0 auto 18px; color: #8a93a0; }
.player-info {
  padding: 22px 24px 40px;
  max-width: 920px;
}
.player-info h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}
.player-inst { margin-top: 6px; color: #8a93a0; font-size: 14px; }
.player-mark-done {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #c5ced8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.player-mark-done:hover { color: #fff; border-color: #2ecc71; }
.player-desc { margin-top: 16px; color: #c5ced8; font-size: 14.5px; line-height: 1.7; }
.player-res { margin-top: 22px; }
.player-res h2 { font-size: 15px; color: #fff; margin-bottom: 10px; }
.player-res ul { list-style: none; display: grid; gap: 8px; }
.player-res a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f39c12;
  font-weight: 700;
  font-size: 14px;
}
.player-res a:hover { text-decoration: underline; }
.player-empty { padding: 48px 20px; }

@media (max-width: 900px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-toggle-rail { display: inline-flex; }
  .player-rail {
    position: fixed;
    inset: 58px auto 0 0;
    width: min(92vw, 360px);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.35);
  }
  .player-rail.is-open { transform: none; }
  .player-rail-close { display: inline-flex; }
  .player-top-inner { grid-template-columns: auto minmax(0, 1fr); }
  .player-top-actions { display: none; }
  .player-user { display: none; }
}

