/* Sürücü Akademisi — public site + auth shell (W1.1 / W2) */
:root {
  --bg-deep: #070f1c;
  --bg-mid: #0f172a;
  --bg-elevated: rgba(15, 28, 49, 0.55);
  --border: rgba(148, 163, 184, 0.2);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.12);
  --text: #e8f0fa;
  --text-muted: #94a3b8;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --max: 960px;
  /* Fluid page gutters (avoid 100vw/92vw overflow). Desktop keeps generous sides. */
  --page-pad: 24px;
  --touch-min: 44px;
  --page-measure: min(var(--max), calc(100% - (2 * var(--page-pad))));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

/* Shared media safety — do not override feature iframes that set explicit heights */
img,
svg {
  max-width: 100%;
  height: auto;
}

video,
iframe {
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% -20%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  pointer-events: none;
}

/* Public homepage atmosphere (index only — not hub pages) */
body.page-landing:not(.page-cikmis-sorular) main {
  position: relative;
  isolation: isolate;
}

body.page-landing:not(.page-cikmis-sorular) main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.86) 0%, rgba(2, 8, 23, 0.78) 100%),
    radial-gradient(circle at 78% 12%, rgba(34, 211, 238, 0.1), transparent 42%),
    url("../page-backgrounds/home-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.42;
}

body.page-landing:not(.page-cikmis-sorular) main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body.page-landing:not(.page-cikmis-sorular) main::before {
    position: absolute;
    min-height: 100%;
  }
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--page-measure);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 15, 28, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.page-landing .site-header--landing {
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 32px rgba(7, 15, 28, 0.6);
}

.page-landing .header-inner--landing {
  padding: 20px 0;
}

.page-landing .header-inner--public {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
}

.page-landing .header-landing-brand {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.page-landing .header-landing-brand .brand--lockup {
  justify-content: center;
}

.page-landing .header-landing-brand .brand-text {
  align-items: center;
  text-align: center;
}

.header-public-actions {
  flex-shrink: 0;
}

.header-public-actions--left {
  grid-column: 1;
  justify-self: start;
}

.page-landing .header-public-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: max-content;
  max-width: 100%;
}

.btn-public-course {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: rgba(232, 240, 250, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(
    165deg,
    rgba(10, 22, 42, 0.96) 0%,
    rgba(12, 30, 52, 0.88) 48%,
    rgba(8, 16, 30, 0.94) 100%
  );
  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.24),
    0 0 26px rgba(34, 211, 238, 0.14),
    0 4px 18px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn-public-course:hover {
  color: #f8fafc;
  text-decoration: none;
  border-color: rgba(56, 221, 255, 0.78);
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.36),
    0 0 32px rgba(34, 211, 238, 0.22),
    0 0 48px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-public-course__text {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15em 0.35em;
  max-width: 100%;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn-public-course__accent {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-public-course__accent--student {
  color: #22d3ee;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.btn-public-course__accent--org {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.btn-public-course__sep {
  color: rgba(148, 163, 184, 0.75);
  font-weight: 500;
  padding: 0 0.05em;
}

@media (min-width: 769px) {
  .page-landing .header-public-actions--left {
    min-width: max-content;
  }
}

.header-public-actions--right {
  grid-column: 3;
  justify-self: end;
}

.btn-public-login,
.btn-public-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-public-login {
  color: #0f172a;
  background: linear-gradient(135deg, #16ff7a 0%, #00d66f 48%, #00b85c 100%);
  border: 1px solid rgba(22, 255, 122, 0.75);
  box-shadow:
    0 0 18px rgba(22, 255, 122, 0.45),
    0 0 36px rgba(0, 214, 111, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.btn-public-login:hover {
  color: #0a1628;
  text-decoration: none;
  background: linear-gradient(135deg, #2dff8a 0%, #16ff7a 45%, #00d66f 100%);
  border-color: rgba(110, 255, 170, 0.9);
  box-shadow:
    0 0 26px rgba(22, 255, 122, 0.55),
    0 0 48px rgba(0, 214, 111, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-public-register {
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 0 16px rgba(251, 191, 36, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-public-register:hover {
  color: #0f172a;
  text-decoration: none;
  box-shadow:
    0 0 22px rgba(251, 191, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-public--soon {
  cursor: default;
  opacity: 0.95;
}

.btn-public--soon:hover {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--cyan);
  text-decoration: none;
}

.page-landing .brand--lockup:hover {
  color: var(--text);
}

.page-landing .brand--lockup:hover .brand-name {
  color: var(--cyan);
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  flex-shrink: 0;
}

.page-landing .brand--lockup {
  gap: 18px;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.page-landing .brand-logo-img {
  width: 110px;
  height: 110px;
  border-radius: 16px;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-landing .brand-name {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f0f9ff 0%, var(--cyan) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.18));
}


.nav-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan-dim);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.btn-primary:hover {
  background: rgba(34, 211, 238, 0.2);
}

.btn-gold {
  background: var(--gold-dim);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--gold);
}

.btn-gold:hover {
  background: rgba(251, 191, 36, 0.2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Landing hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero--premium {
  position: relative;
  padding: 88px 0 56px;
  overflow: hidden;
}

.hero--premium.hero--compact {
  padding: 20px 0 12px;
}

.hero--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(251, 191, 36, 0.08), transparent 50%);
  pointer-events: none;
}

.hero--premium .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero--premium .hero-inner {
  max-width: 720px;
}

.hero-inner--product {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero-copy {
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero--compact .hero-eyebrow {
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero--premium h1 {
  font-size: clamp(2.15rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero--compact h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}

.hero--premium .hero-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(232, 240, 250, 0.95);
}

.hero-meta {
  margin: 0 0 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-slogan {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  font-weight: 600;
  line-height: 1.35;
  background: linear-gradient(120deg, #e0f2fe 0%, var(--cyan) 55%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.12));
}

.hero-tagline {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero--compact .hero-cta {
  gap: 10px;
}

.hero-cta--balanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.hero-cta--balanced .btn-hero-equal {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  min-height: 44px;
}

.hero--premium .btn-hero {
  padding: 12px 22px;
  font-size: 0.92rem;
}

.hero--compact .btn-hero {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-compact {
  padding: 32px 0;
}

.section-label {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading {
  margin: 0 0 24px;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.section-heading--left {
  text-align: left;
  margin-bottom: 14px;
}

.section-note {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* Modules */
.module-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.module-pill {
  padding: 14px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-landing .section-modules {
  padding-top: 16px;
  padding-bottom: 36px;
}

.page-landing .section-modules .section-heading {
  margin-bottom: 18px;
}

/* Public portal modules (W1.2+) */
.content-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.content-module-card {
  --card-accent: var(--cyan);
  --card-glow: rgba(34, 211, 238, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.75), rgba(7, 15, 28, 0.5));
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  border-radius: calc(var(--radius) + 2px);
  scroll-margin-top: 88px;
  box-shadow: 0 4px 24px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-module-card:hover {
  box-shadow: 0 8px 36px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content-module-card--cyan {
  --card-accent: #22d3ee;
  --card-glow: rgba(34, 211, 238, 0.28);
}

.content-module-card--green {
  --card-accent: #34d399;
  --card-glow: rgba(52, 211, 153, 0.25);
}

.content-module-card--orange {
  --card-accent: #fb923c;
  --card-glow: rgba(251, 146, 60, 0.25);
}

.content-module-card--purple {
  --card-accent: #a78bfa;
  --card-glow: rgba(167, 139, 250, 0.25);
}

.content-module-card--rose {
  --card-accent: #f472b6;
  --card-glow: rgba(244, 114, 182, 0.25);
}

.content-module-card--gold {
  --card-accent: #fbbf24;
  --card-glow: rgba(251, 191, 36, 0.3);
}

.content-module-card--indigo {
  --card-accent: #818cf8;
  --card-glow: rgba(129, 140, 248, 0.28);
}

.content-module-card--sky {
  --card-accent: #38bdf8;
  --card-glow: rgba(56, 189, 248, 0.28);
}

.module-card-visual {
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-accent) 28%, transparent),
    rgba(7, 15, 28, 0.4)
  );
  border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--card-accent) 15%, transparent);
  position: relative;
  overflow: hidden;
  color: var(--card-accent);
}

.module-card-visual::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 35%, transparent), transparent 70%);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.module-icon {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px var(--card-glow));
}

.module-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-module-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-module-card h3 a {
  color: var(--card-accent);
  text-decoration: none;
}

.content-module-card h3 a:hover {
  filter: brightness(1.15);
  text-decoration: none;
}

.content-module-card h3 .module-card-title {
  color: var(--card-accent);
  display: block;
}

.content-module-card--gated {
  cursor: pointer;
}

.content-module-card--gated:focus {
  outline: 2px solid color-mix(in srgb, var(--card-accent) 65%, transparent);
  outline-offset: 3px;
}

.content-module-card--gated:focus:not(:focus-visible) {
  outline: none;
}

.content-module-card--gated:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--card-accent) 65%, transparent);
  outline-offset: 3px;
}

.content-module-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.94);
  line-height: 1.5;
  flex: 1;
}

.content-module-status {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 240, 250, 0.82);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 15, 28, 0.45);
}

.content-module-status--accent {
  color: var(--card-accent);
  border-color: color-mix(in srgb, var(--card-accent) 40%, transparent);
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
}

/* Module cover images — public landing + app home (data-module-key) */
.content-module-card[data-module-key] .module-card-visual {
  --module-cover-image: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.content-module-card[data-module-key="exams"] {
  --card-accent: #22d3ee;
  --card-glow: rgba(34, 211, 238, 0.34);
}

.content-module-card[data-module-key="exams"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/exams.webp');
}

.content-module-card[data-module-key="lessons"] {
  --card-accent: #2dd4bf;
  --card-glow: rgba(45, 212, 191, 0.32);
}

.content-module-card[data-module-key="lessons"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/books.webp');
}

.content-module-card[data-module-key="videos"] {
  --card-accent: #fbbf24;
  --card-glow: rgba(251, 191, 36, 0.34);
}

.content-module-card[data-module-key="videos"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/videos.webp');
}

.content-module-card[data-module-key="practical"] {
  --card-accent: #fb923c;
  --card-glow: rgba(251, 146, 60, 0.32);
}

.content-module-card[data-module-key="practical"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/practical.webp');
}

.content-module-card[data-module-key="duel"] {
  --card-accent: #e879f9;
  --card-glow: rgba(216, 70, 239, 0.32);
}

.content-module-card[data-module-key="duel"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/duel.webp');
}

.content-module-card[data-module-key="forum"] {
  --card-accent: #a78bfa;
  --card-glow: rgba(129, 140, 248, 0.3);
}

.content-module-card[data-module-key="forum"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/forum.webp');
}

.content-module-card[data-module-key="leagues"] {
  --card-accent: #818cf8;
  --card-glow: rgba(251, 191, 36, 0.22);
}

.content-module-card[data-module-key="leagues"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/leagues.webp');
}

.content-module-card[data-module-key="profile"] {
  --card-accent: #38bdf8;
  --card-glow: rgba(56, 189, 248, 0.32);
}

.content-module-card[data-module-key="profile"] .module-card-visual {
  --module-cover-image: url('../module-covers/home/profile.webp');
}

.content-module-card[data-module-key] .module-card-visual::before {
  content: none;
  display: none;
}

.content-module-card[data-module-key] .module-card-visual::after {
  content: "";
  display: block;
  position: relative;
  order: 2;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 132px;
  margin: 0;
  border-radius: 14px;
  background-image: var(--module-cover-image);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(2, 8, 23, 0.55);
  border: 1px solid color-mix(in srgb, var(--card-accent) 38%, transparent);
  box-shadow:
    0 4px 20px var(--card-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-module-card[data-module-key]:hover .module-card-visual::after {
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  box-shadow:
    0 6px 28px var(--card-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.content-module-card[data-module-key] .module-card-visual-title {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px 8px;
  margin: 0 0 8px;
  box-sizing: border-box;
  text-shadow:
    0 0 14px var(--card-glow),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.content-module-card[data-module-key]:hover .module-card-visual-title {
  text-shadow:
    0 0 20px var(--card-glow),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-landing .content-module-card[data-module-key]:hover .module-card-visual-title,
.page-app .content-module-card[data-module-key]:hover .module-card-visual-title {
  text-shadow:
    0 0 20px var(--card-glow),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-landing .content-module-card[data-module-key] .module-card-visual,
.page-app .content-module-card[data-module-key] .module-card-visual,
.page-app .content-module-card--app[data-module-key] .module-card-visual {
  min-height: auto;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.page-landing .content-module-card[data-module-key] .module-card-visual-title,
.page-app .content-module-card[data-module-key] .module-card-visual-title,
.page-app .content-module-card--app[data-module-key] .module-card-visual-title {
  margin: 0 0 8px;
}

.content-module-card[data-module-key] .module-card-emoji {
  opacity: 0.85;
  filter: drop-shadow(0 0 8px var(--card-glow)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

@media (max-width: 640px) {
  .content-module-card[data-module-key] .module-card-visual::after {
    min-height: 112px;
    border-radius: 12px;
  }

  .content-module-card[data-module-key] .module-card-visual-title {
    min-height: 34px;
    padding: 4px 6px 6px;
    margin-bottom: 6px;
  }
}

/* Public landing homepage — title in visual band */
.page-landing .content-module-card {
  gap: 10px;
}

.page-landing .module-card-visual {
  height: auto;
  min-height: 132px;
  box-sizing: border-box;
  padding: 14px 16px;
  align-items: center;
  justify-content: flex-start;
}

.page-landing .module-card-visual-title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--card-accent);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 16px var(--card-glow),
    0 1px 2px rgba(0, 0, 0, 0.55);
  transition: text-shadow 0.2s ease;
}

.page-landing .content-module-card:hover .module-card-visual-title {
  text-shadow:
    0 0 22px var(--card-glow),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.page-landing .module-card-emoji {
  flex-shrink: 0;
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--card-glow));
}

.page-landing .module-card-visual-title .module-card-title {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.page-landing .module-card-body {
  padding-top: 0;
}

.page-landing .content-module-card h3 {
  margin: 0;
}

@media (max-width: 640px) {
  .page-landing .module-card-visual {
    min-height: 118px;
    padding: 12px 14px;
  }

  .page-landing .module-card-visual-title {
    font-size: 1.06rem;
    gap: 10px;
  }

  .page-landing .module-card-emoji {
    font-size: 1.3rem;
  }
}

.premium-lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.premium-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.premium-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.premium-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.premium-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.premium-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ads-note-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-secondary {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-secondary a {
  color: var(--text-muted);
}

/* Panels */
.panel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.package-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

.package-card-featured {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(160deg, var(--bg-elevated), rgba(251, 191, 36, 0.06));
}

.package-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.package-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.package-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.contact-card {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-card .section-label {
  margin-bottom: 12px;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Auth / login shell (W2) — institution student portal */
.page-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-app-login {
  position: relative;
  overflow-x: hidden;
  background: #060d18;
  background: linear-gradient(165deg, #050a14 0%, #0a1628 42%, #071018 100%);
  --app-login-column: min(680px, calc(100% - (2 * var(--page-pad))));
}

.page-app-login::before,
.page-app-login::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-app-login::before {
  top: -120px;
  right: -80px;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
}

.page-app-login::after {
  bottom: -100px;
  left: -60px;
  width: min(480px, 85vw);
  height: min(480px, 85vw);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}

.page-app-login .app-login-header,
.page-app-login .app-login-main {
  position: relative;
  z-index: 1;
}

.page-app-login .app-login-header {
  display: flex;
  justify-content: center;
  padding: 20px 16px 8px;
}

.page-app-login .app-login-header__inner {
  width: var(--app-login-column);
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-app-login .app-login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-app-login .app-login-brand__logo {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  max-width: min(168px, 42vw);
  max-height: min(168px, 42vw);
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 8px 32px rgba(34, 211, 238, 0.35));
}

.page-app-login .app-login-brand__text {
  flex: 1 1 auto;
  min-width: 0;
}

.page-app-login .app-login-brand__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.25;
}

.page-app-login .app-login-brand__portal {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.92);
  line-height: 1.35;
}

.page-app-login .app-login-brand__tagline {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.95);
}

@media (min-width: 641px) {
  .page-app-login .app-login-brand__portal {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .page-app-login .app-login-brand__tagline {
    white-space: nowrap;
  }
}

.page-app-login .app-login-home-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95) 0%, rgba(103, 232, 249, 0.92) 42%, rgba(251, 191, 36, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 24px rgba(34, 211, 238, 0.35),
    0 0 40px rgba(251, 191, 36, 0.15),
    0 0 0 1px rgba(34, 211, 238, 0.25) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-app-login .app-login-home-pill:hover,
.page-app-login .app-login-home-pill:focus-visible {
  outline: none;
  color: #020617;
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 8px 32px rgba(34, 211, 238, 0.45),
    0 0 48px rgba(251, 191, 36, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.page-app-login .app-login-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 0 48px;
}

.page-app-login .app-login-wrap {
  width: var(--app-login-column);
  max-width: 100%;
  margin-inline: auto;
}

.page-app-login .app-login-card {
  padding: 32px 28px 28px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: linear-gradient(
    155deg,
    rgba(15, 28, 49, 0.72) 0%,
    rgba(8, 16, 30, 0.58) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 64px rgba(2, 8, 23, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(34, 211, 238, 0.06);
}

.page-app-login .app-login-card__hero {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-app-login .app-login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.2;
}

.page-app-login .app-login-card .login-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.page-app-login .app-login-step {
  margin-bottom: 22px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(7, 15, 28, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.page-app-login .app-login-step--submit {
  margin-bottom: 0;
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.page-app-login .auth-step-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.95);
}

.page-app-login .field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.92);
}

.page-app-login .app-login-field {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(6, 13, 24, 0.75);
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-app-login .app-login-field::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.page-app-login .app-login-field:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.page-app-login .app-login-field:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(6, 13, 24, 0.55);
}

.page-app-login .field-label-spaced {
  margin-top: 16px;
}

.page-app-login .tenant-load-status {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.95);
  min-height: 1.25em;
}

.page-app-login .tenant-load-status-error {
  color: #fca5a5;
}

.page-app-login .app-login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 20px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 45%, #fbbf24 120%);
  box-shadow:
    0 8px 28px rgba(34, 211, 238, 0.22),
    0 0 24px rgba(251, 191, 36, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.page-app-login .app-login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(34, 211, 238, 0.28),
    0 0 32px rgba(251, 191, 36, 0.16);
}

.page-app-login .app-login-submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.25),
    0 8px 28px rgba(34, 211, 238, 0.22);
}

.page-app-login .app-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.page-app-login .app-login-msg {
  margin: 14px 0 0;
  min-height: 1.35em;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fde68a;
}

.page-app-login .auth-msg-error {
  color: #fca5a5;
}

.page-app-login .auth-msg-success {
  color: #86efac;
}

.page-app-login .auth-msg:empty {
  display: none;
}

.page-app-login .app-login-backlinks {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-app-login .app-login-backlink {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(203, 213, 225, 0.9);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-app-login .app-login-backlink:hover,
.page-app-login .app-login-backlink:focus-visible {
  outline: none;
  color: #f8fafc;
  border-color: rgba(251, 191, 36, 0.35);
}

@media (max-width: 640px) {
  .page-app-login .app-login-header__inner {
    flex-direction: column;
    align-items: stretch;
    width: var(--app-login-column);
    max-width: 100%;
  }

  .page-app-login .app-login-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-app-login .app-login-brand__text {
    text-align: center;
  }

  .page-app-login .app-login-brand__portal,
  .page-app-login .app-login-brand__tagline {
    white-space: normal;
  }

  .page-app-login .app-login-brand__logo {
    width: 120px;
    height: 120px;
    max-width: min(120px, 34vw);
    max-height: min(120px, 34vw);
  }

  .page-app-login .app-login-home-pill {
    align-self: flex-start;
  }

  .page-app-login .app-login-card {
    padding: 24px 18px 22px;
    border-radius: 16px;
  }

  .page-app-login .app-login-step {
    padding: 14px 12px;
  }

  .page-app-login .app-login-backlinks {
    flex-direction: column;
    align-items: stretch;
  }

  .page-app-login .app-login-backlink {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .page-app-login .app-login-brand {
    flex-direction: column;
    align-items: center;
  }
}

/* Legacy auth class fallbacks (unused without page-app-login) */
.auth-top {
  padding: 20px 0 8px;
  text-align: center;
}

.auth-top-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-top a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 0 48px;
}

.auth-wrap {
  width: min(440px, calc(100% - (2 * var(--page-pad))));
}

.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 28px 24px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-card .login-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-step {
  margin-bottom: 20px;
}

.auth-step-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-input,
.field-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 15, 28, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.5);
}

.field-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.field-label-spaced {
  margin-top: 14px;
}

.tenant-load-status {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.tenant-load-status-error {
  color: #f87171;
}

.auth-msg {
  margin: 12px 0 0;
  min-height: 1.25em;
  font-size: 0.85rem;
  color: var(--gold);
}

.auth-msg-error {
  color: #f87171;
}

.auth-msg-success {
  color: #4ade80;
}

.auth-msg:empty {
  display: none;
}

.btn-block {
  width: 100%;
}

.module-preview {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.module-preview-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.module-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-preview-pill {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(7, 15, 28, 0.5);
  border: 1px dashed var(--border);
  border-radius: 999px;
  pointer-events: none;
  user-select: none;
}

.auth-footnote {
  margin: 20px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

.auth-backlinks {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.auth-backlinks a {
  color: var(--text-muted);
}

/* Panel entry gate (P1) */
.page-panel .site-header--panel {
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 32px rgba(7, 15, 28, 0.6);
}

.page-panel .header-inner--panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 12px 16px;
  padding: 20px 0;
}

.page-panel .btn-panel-home {
  justify-self: start;
  margin-left: 24px;
}

.page-panel .header-inner--panel-spacer {
  justify-self: start;
  display: block;
  width: 1px;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-panel .header-inner--panel .brand--lockup {
  justify-self: center;
}

.page-panel .brand--lockup {
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.page-panel .brand--lockup:hover {
  color: var(--text);
  text-decoration: none;
}

.page-panel .brand--lockup:hover .brand-name {
  filter: brightness(1.08);
}

.page-panel .brand-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 14px;
}

.page-panel .brand-text {
  align-items: center;
  text-align: center;
}

.page-panel .brand-name {
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f0f9ff 0%, var(--cyan) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.18));
}

.brand-tagline--panel {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(232, 240, 250, 0.75);
}

.panel-main {
  padding: 28px 0 48px;
}

.panel-entry {
  max-width: 880px;
  margin: 0 auto;
}

.panel-intro-card {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(12, 28, 48, 0.78) 100%) padding-box,
    linear-gradient(118deg, rgba(34, 211, 238, 0.55), rgba(52, 211, 153, 0.35), rgba(34, 211, 238, 0.5)) border-box;
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.12),
    0 0 48px rgba(52, 211, 153, 0.06),
    0 6px 24px rgba(7, 15, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.panel-intro {
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(240, 249, 255, 0.95);
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .panel-intro {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.panel-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.panel-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 28, 49, 0.85) 0%, rgba(7, 15, 28, 0.6) 100%);
  box-shadow:
    0 4px 24px rgba(7, 15, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-entry-card--student {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.1),
    0 4px 24px rgba(7, 15, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-entry-card--admin {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow:
    0 0 20px rgba(52, 211, 153, 0.08),
    0 4px 24px rgba(7, 15, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-entry-card-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.panel-entry-card-desc {
  margin: 0 0 18px;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.btn-panel-action {
  align-self: center;
  margin-top: auto;
  min-width: 168px;
  justify-content: center;
}

.btn-panel-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ecfdf5;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(6, 52, 42, 0.92) 0%, rgba(16, 120, 88, 0.55) 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 10px;
  box-shadow:
    0 0 16px rgba(52, 211, 153, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-panel-admin:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(74, 222, 128, 0.6);
  box-shadow:
    0 0 22px rgba(52, 211, 153, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel-features-heading {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.panel-features-sub {
  margin: 0 0 16px;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  width: min(920px, calc(100% - 32px));
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .panel-features-sub {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.panel-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.panel-module-card {
  --panel-card-accent: var(--cyan);
  --panel-card-glow: rgba(34, 211, 238, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, var(--panel-card-accent) 35%, transparent);
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.78), rgba(7, 15, 28, 0.52));
  box-shadow: 0 4px 22px var(--panel-card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  cursor: default;
}

.panel-module-card--cyan {
  --panel-card-accent: #22d3ee;
  --panel-card-glow: rgba(34, 211, 238, 0.26);
}

.panel-module-card--green {
  --panel-card-accent: #34d399;
  --panel-card-glow: rgba(52, 211, 153, 0.24);
}

.panel-module-card--orange {
  --panel-card-accent: #fb923c;
  --panel-card-glow: rgba(251, 146, 60, 0.24);
}

.panel-module-card--gold {
  --panel-card-accent: #fbbf24;
  --panel-card-glow: rgba(251, 191, 36, 0.28);
}

.panel-module-card--purple {
  --panel-card-accent: #a78bfa;
  --panel-card-glow: rgba(167, 139, 250, 0.24);
}

.panel-module-card--rose {
  --panel-card-accent: #f472b6;
  --panel-card-glow: rgba(244, 114, 182, 0.24);
}

.panel-module-visual {
  height: 72px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--panel-card-accent) 28%, transparent),
    rgba(7, 15, 28, 0.4)
  );
  border: 1px solid color-mix(in srgb, var(--panel-card-accent) 25%, transparent);
  color: var(--panel-card-accent);
  position: relative;
  overflow: hidden;
}

.panel-module-visual::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--panel-card-accent) 32%, transparent), transparent 70%);
  top: -36px;
  right: -28px;
  pointer-events: none;
}

.panel-module-icon {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px var(--panel-card-glow));
}

.panel-module-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.panel-module-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--panel-card-accent);
}

.panel-module-desc {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.9);
  flex: 1;
}

.panel-module-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 240, 250, 0.75);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 15, 28, 0.45);
}

.panel-module-badge--accent {
  color: var(--panel-card-accent);
  border-color: color-mix(in srgb, var(--panel-card-accent) 40%, transparent);
  background: color-mix(in srgb, var(--panel-card-accent) 12%, transparent);
}

.panel-features--advantages {
  margin-top: 28px;
  padding-top: 4px;
}

.panel-features--advantages .panel-features-heading {
  margin-bottom: 16px;
}

.panel-advantage-grid {
  grid-template-columns: repeat(3, 1fr);
}

.panel-public-link {
  margin: 32px 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.panel-public-link a {
  color: var(--text-muted);
}

.panel-public-link a:hover {
  color: var(--cyan);
}

/* Public user auth shells (P2.1 — static, no Firebase) */
.page-public-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-auth-shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 0 48px;
}

.public-auth-wrap {
  width: min(440px, calc(100% - (2 * var(--page-pad))));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-public-auth .public-auth-brand.brand--lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
  text-align: center;
  gap: 12px;
}

.public-auth-brand {
  justify-content: center;
  margin: 0 auto 24px;
  text-decoration: none;
  gap: 14px;
}

.public-auth-brand:hover {
  text-decoration: none;
}

.page-public-auth .brand-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.page-public-auth .brand-text {
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-public-auth .public-auth-brand .brand-tagline {
  text-align: center;
  width: 100%;
}

.page-public-auth .brand-name {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f0f9ff 0%, var(--cyan) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-auth-card {
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.9), rgba(7, 15, 28, 0.65));
  box-shadow:
    0 8px 32px rgba(7, 15, 28, 0.5),
    0 0 40px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.public-auth-sub {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.public-auth-form {
  margin: 0;
}

.public-auth-field {
  margin-bottom: 14px;
}

.public-auth-actions {
  margin-top: 8px;
}

.public-auth-actions .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.public-auth-links {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.public-auth-links a {
  color: var(--cyan);
}

.public-auth-note {
  margin: 20px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.public-auth-note--panel {
  margin-top: 8px;
}

.public-auth-note--panel a {
  color: var(--text-muted);
}

.public-auth-note--panel a:hover {
  color: var(--cyan);
}

.public-auth-msg {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted);
  min-height: 1.25em;
}

.public-auth-msg--error {
  color: #fca5a5;
}

.public-auth-msg--success {
  color: #6ee7b7;
}

.public-auth-msg:empty {
  display: none;
}

.public-auth-actions .btn[aria-busy="true"] {
  opacity: 0.85;
  cursor: wait;
}

/* Public üye girişi — premium login (scoped to uye-giris/) */
.page-public-auth.page-public-login {
  position: relative;
  overflow-x: hidden;
  background: #060d18;
  background: linear-gradient(165deg, #050a14 0%, #0a1628 42%, #071018 100%);
}

.page-public-auth.page-public-login::before,
.page-public-auth.page-public-login::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-public-auth.page-public-login::before {
  top: -100px;
  right: -60px;
  width: min(500px, 88vw);
  height: min(500px, 88vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 68%);
}

.page-public-auth.page-public-login::after {
  bottom: -80px;
  left: -50px;
  width: min(460px, 85vw);
  height: min(460px, 85vw);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}

.page-public-auth.page-public-login .public-login-shell,
.page-public-auth.page-public-login .public-login-wrap {
  position: relative;
  z-index: 1;
}

.page-public-auth.page-public-login .public-login-wrap {
  width: min(540px, calc(100% - (2 * var(--page-pad))));
}

.page-public-auth.page-public-login .public-login-brand {
  margin-bottom: 28px;
  gap: 16px;
}

.page-public-auth.page-public-login .public-login-logo {
  width: 168px;
  height: 168px;
  max-width: min(168px, 42vw);
  max-height: min(168px, 42vw);
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 8px 32px rgba(34, 211, 238, 0.35));
}

.page-public-auth.page-public-login .brand-name {
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
}

.page-public-auth.page-public-login .public-auth-brand .brand-tagline {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.95);
}

.page-public-auth.page-public-login .public-login-card {
  width: 100%;
  padding: 36px 32px 32px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(
    155deg,
    rgba(15, 28, 49, 0.75) 0%,
    rgba(8, 16, 30, 0.6) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 64px rgba(2, 8, 23, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(34, 211, 238, 0.08);
}

.page-public-auth.page-public-login .public-login-card__hero {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-public-auth.page-public-login .public-login-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.page-public-auth.page-public-login .public-auth-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
}

.page-public-auth.page-public-login .public-login-field {
  margin-bottom: 18px;
}

.page-public-auth.page-public-login .public-login-field .field-label {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.92);
}

.page-public-auth.page-public-login .public-login-input {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(6, 13, 24, 0.75);
  color: #f1f5f9;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-public-auth.page-public-login .public-login-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.page-public-auth.page-public-login .public-login-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.page-public-auth.page-public-login .public-login-actions {
  margin-top: 12px;
}

.page-public-auth.page-public-login .public-login-submit {
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 45%, #fbbf24 120%);
  box-shadow:
    0 8px 28px rgba(34, 211, 238, 0.22),
    0 0 24px rgba(251, 191, 36, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.page-public-auth.page-public-login .public-login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(34, 211, 238, 0.28),
    0 0 32px rgba(251, 191, 36, 0.16);
}

.page-public-auth.page-public-login .public-login-submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.25),
    0 8px 28px rgba(34, 211, 238, 0.22);
}

.page-public-auth.page-public-login .public-login-msg {
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.page-public-auth.page-public-login .public-login-links {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-public-auth.page-public-login .public-auth-links {
  margin: 0;
}

.page-public-auth.page-public-login .public-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-public-auth.page-public-login .public-login-link:hover,
.page-public-auth.page-public-login .public-login-link:focus-visible {
  outline: none;
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.page-public-auth.page-public-login .public-login-link--muted {
  color: rgba(203, 213, 225, 0.92);
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.2);
  font-weight: 500;
}

.page-public-auth.page-public-login .public-login-link--muted:hover,
.page-public-auth.page-public-login .public-login-link--muted:focus-visible {
  color: #f8fafc;
  border-color: rgba(251, 191, 36, 0.35);
}

.page-public-auth.page-public-login .public-login-panel-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 0.86rem;
  line-height: 1.5;
}

.page-public-auth.page-public-login .public-login-link--panel {
  display: inline;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
  box-shadow: none;
}

.page-public-auth.page-public-login .public-login-link--panel:hover,
.page-public-auth.page-public-login .public-login-link--panel:focus-visible {
  color: rgba(34, 211, 238, 0.95);
  text-decoration: underline;
  box-shadow: none;
}

@media (max-width: 640px) {
  .page-public-auth.page-public-login .public-login-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .page-public-auth.page-public-login .public-login-logo {
    width: 120px;
    height: 120px;
    max-width: min(120px, 34vw);
    max-height: min(120px, 34vw);
  }

  .page-public-auth.page-public-login .public-login-links {
    gap: 10px;
  }
}

[data-public-header][hidden] {
  display: none !important;
}

.header-public-stack--user {
  gap: 0;
}

.btn-public-greeting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  max-width: min(220px, 42vw);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: 8px;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
  user-select: none;
  color: #0f172a;
  background: linear-gradient(135deg, #16ff7a 0%, #00d66f 48%, #00b85c 100%);
  border: 1px solid rgba(22, 255, 122, 0.75);
  box-shadow:
    0 0 18px rgba(22, 255, 122, 0.45),
    0 0 36px rgba(0, 214, 111, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-public-greeting #public-header-name {
  font-weight: 700;
}

.btn-public-logout {
  font-family: inherit;
}

.btn-public-logout.btn-public-register {
  cursor: pointer;
}

.content-module-card--unlocked {
  cursor: pointer;
}

.page-landing--public-user .content-module-card--gated:focus {
  outline: 2px solid color-mix(in srgb, var(--card-accent) 65%, transparent);
  outline-offset: 3px;
}

.public-gate--soon .public-gate__dialog {
  text-align: center;
}

.public-gate--soon .public-gate__later {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .btn-public-greeting {
    min-width: 0;
    max-width: min(168px, 46vw);
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .btn-public-logout.btn-public-register {
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  .public-auth-shell {
    padding: 20px 0 40px;
  }

  .page-public-auth:not(.page-public-login) .brand-logo-img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 720px) {
  .panel-actions {
    grid-template-columns: 1fr;
  }

  .panel-module-grid {
    grid-template-columns: 1fr;
  }

  .panel-advantage-grid {
    grid-template-columns: 1fr;
  }

  .page-panel .brand-logo-img {
    width: 76px;
    height: 76px;
  }

  .page-panel .header-inner--panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 12px;
    padding: 16px 0;
  }

  .page-panel .header-inner--panel-spacer {
    display: none;
  }

  .page-panel .header-inner--panel .brand--lockup {
    grid-row: 1;
  }

  .page-panel .btn-panel-home {
    grid-row: 2;
    justify-self: center;
    margin-left: 0;
  }

  .panel-intro-card {
    padding: 14px 16px;
    width: auto;
    max-width: none;
  }

  .panel-intro {
    font-size: 0.98rem;
    line-height: 1.55;
    white-space: normal;
    text-wrap: balance;
  }

  .panel-features-sub {
    width: auto;
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.45;
    white-space: normal;
    text-wrap: balance;
  }

  .btn-panel-action {
    align-self: center;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Student app shell (W3) */
.page-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html.page-app--header-pending .page-app .app-header {
  visibility: hidden;
}

html.page-app--header-pending .page-app .app-header--premium {
  min-height: 110px;
}

.app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 15, 28, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-app .app-header--premium {
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 32px rgba(7, 15, 28, 0.6);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.page-app .app-header-inner--premium {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  padding: 18px 0;
  flex-wrap: nowrap;
}

.page-app .app-header-slot {
  flex-shrink: 0;
  min-width: 0;
}

.page-app .app-header-slot--left {
  grid-column: 1;
  justify-self: start;
}

.page-app .app-header-brand-center {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  max-width: min(100%, 520px);
}

.page-app .app-header-slot--right {
  grid-column: 3;
  justify-self: end;
}

.page-app .app-header-greeting {
  max-width: min(220px, 42vw);
}

.page-app .app-header-greeting #home-greeting-name {
  font-weight: 700;
}

.page-app .app-tenant-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.page-app .app-tenant-logo-wrap,
.page-cikmis-sorular--institution-student .hub-student-header .app-tenant-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 0;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
}

.page-app .app-tenant-logo-img,
.page-app #home-tenant-logo.tenant-logo,
.page-cikmis-sorular--institution-student .hub-tenant-logo-img,
.page-cikmis-sorular--institution-student #hub-tenant-logo.tenant-logo {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 0;
  object-fit: contain;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.page-app .app-tenant-monogram,
.page-cikmis-sorular--institution-student .hub-tenant-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  background: linear-gradient(145deg, var(--cyan-dim), var(--gold-dim));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.12);
}

.page-app .app-tenant-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
}

.page-app .app-tenant-brand-name,
.page-cikmis-sorular--institution-student .hub-tenant-brand-name {
  display: block;
  margin: 0;
  padding: 0;
  max-width: min(100%, 360px);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f0f9ff 0%, var(--cyan) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.18));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.page-app .app-header-logout {
  min-width: 108px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.tenant-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.tenant-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(7, 15, 28, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.12);
}

.tenant-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  background: linear-gradient(145deg, var(--cyan-dim), var(--gold-dim));
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.app-header-text {
  min-width: 0;
}

.app-header-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tenant-badge {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header-student {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  padding: 28px 0 48px;
}

.app-container {
  width: min(880px, calc(100% - (2 * var(--page-pad))));
}

.welcome-card h1 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.welcome-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.app-section {
  margin-top: 28px;
}

.app-section--modules {
  margin-top: 0;
}

.page-app .app-main {
  padding-top: 20px;
}

.app-modules-heading {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.page-app .content-module-grid {
  gap: 14px;
}

.page-app .content-module-card--app {
  cursor: pointer;
}

.page-app .content-module-card--app-interactive:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--card-accent) 65%, transparent);
  outline-offset: 3px;
}

/* App home — title in visual band (matches public landing) */
.page-app .content-module-card--app {
  gap: 10px;
}

.page-app .content-module-card--app .module-card-visual {
  height: auto;
  min-height: 132px;
  box-sizing: border-box;
  padding: 16px;
  align-items: center;
  justify-content: flex-start;
}

.page-app .content-module-card--app .module-card-visual-title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--card-accent);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 16px var(--card-glow),
    0 1px 2px rgba(0, 0, 0, 0.55);
  transition: text-shadow 0.2s ease;
}

.page-app .content-module-card--app:hover .module-card-visual-title {
  text-shadow:
    0 0 22px var(--card-glow),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.page-app .content-module-card--app .module-card-emoji {
  flex-shrink: 0;
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--card-glow));
}

.page-app .content-module-card--app .module-card-visual-title .module-card-title {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.page-app .content-module-card--app .module-card-body {
  padding-top: 0;
}

.page-app .content-module-card--app h3 {
  margin: 0;
}

@media (max-width: 640px) {
  .page-app .content-module-card--app .module-card-visual {
    min-height: 118px;
    padding: 12px 14px;
  }

  .page-app .content-module-card--app .module-card-visual-title {
    font-size: 1.06rem;
    gap: 10px;
  }

  .page-app .content-module-card--app .module-card-emoji {
    font-size: 1.3rem;
  }
}

.welcome-card p:empty {
  display: none;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 88px;
}

.module-card--disabled {
  opacity: 0.65;
  border-style: dashed;
  pointer-events: none;
  user-select: none;
}

.module-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.module-grid-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.app-backlinks {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 4px;
  }

  .nav-main.is-open {
    display: flex;
  }

  .header-actions {
    width: 100%;
  }

  .page-landing .header-inner--public {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }

  .page-landing .header-landing-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .page-landing .header-landing-brand .brand-text {
    align-items: center;
    text-align: center;
  }

  .header-public-actions--left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .header-public-actions--right {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .btn-public-login,
  .btn-public-register {
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .page-landing .header-public-stack {
    width: 100%;
    max-width: 100%;
    gap: 5px;
  }

  .btn-public-course {
    width: auto;
    max-width: 100%;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.62rem;
    line-height: 1.15;
  }

  .btn-public-course__text {
    gap: 0.12em 0.28em;
  }

  .page-landing .brand-logo-img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }

  .page-landing .brand--lockup {
    gap: 14px;
  }

  .hero-cta--balanced {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .module-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-module-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-app .content-module-grid {
    grid-template-columns: 1fr;
  }

  .app-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .page-app .app-header-inner--premium {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    padding: 14px 0;
  }

  .page-app .app-header-brand-center {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
  }

  .page-app .app-header-slot--left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .page-app .app-header-slot--right {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .page-app .app-tenant-brand {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .page-app .app-tenant-logo-wrap,
  .page-cikmis-sorular--institution-student .hub-student-header .app-tenant-logo-wrap {
    width: 76px;
    height: 76px;
  }

  .page-app .app-tenant-logo-img,
  .page-app #home-tenant-logo.tenant-logo,
  .page-cikmis-sorular--institution-student .hub-tenant-logo-img,
  .page-cikmis-sorular--institution-student #hub-tenant-logo.tenant-logo {
    width: 76px;
    height: 76px;
  }

  .page-app .app-tenant-monogram,
  .page-cikmis-sorular--institution-student .hub-tenant-monogram {
    width: 76px;
    height: 76px;
    font-size: 1.45rem;
  }

  .page-app .app-tenant-brand-name,
  .page-cikmis-sorular--institution-student .hub-tenant-brand-name {
    max-width: min(100%, 260px);
    white-space: normal;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-app .app-header-greeting {
    max-width: min(168px, 46vw);
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .page-app .app-header-logout {
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .app-header-brand-row {
    width: 100%;
  }

  .btn-logout {
    align-self: flex-end;
  }
}

@media (max-width: 400px) {
  .module-strip {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Public landing login gate modal (P2.2a) */
body.public-gate-open {
  overflow: hidden;
}

.public-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.public-gate[hidden] {
  display: none !important;
}

.public-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(6px);
}

.public-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 22, 40, 0.96) 0%, rgba(7, 15, 28, 0.9) 100%) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(251, 191, 36, 0.35), rgba(34, 211, 238, 0.45)) border-box;
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.14),
    0 0 56px rgba(251, 191, 36, 0.08),
    0 16px 48px rgba(7, 15, 28, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.public-gate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(15, 28, 49, 0.65);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.public-gate__close:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
}

.public-gate__title {
  margin: 0 32px 12px 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #f8fafc;
  text-wrap: balance;
}

.public-gate__body {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(232, 240, 250, 0.92);
}

.public-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.public-gate__actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.public-gate__later {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.public-gate__later:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

@media (min-width: 480px) {
  .public-gate__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .public-gate__actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
  }
}

/* P3.1 — Çıkmış sorular public exam hub */
.page-cikmis-sorular {
  --exam-hub-max: 1080px;
}

html.page-cikmis-sorular--header-pending #public-header-shell,
html.page-cikmis-sorular--header-pending #hub-student-header {
  visibility: hidden;
}

html.page-cikmis-sorular--header-pending .hub-header-container {
  min-height: 110px;
}

.page-cikmis-sorular--institution-student #public-header-shell {
  display: none !important;
}

.page-cikmis-sorular .hub-student-header[hidden] {
  display: none !important;
}

.page-cikmis-sorular--institution-student .hub-student-header {
  display: block;
}

.page-cikmis-sorular--institution-student .site-header--landing {
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 32px rgba(7, 15, 28, 0.6);
}

.page-cikmis-sorular--institution-student .hub-student-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  padding: 18px 0;
}

.page-cikmis-sorular--institution-student .hub-student-header .app-header-slot--left {
  grid-column: 1;
  justify-self: start;
}

.page-cikmis-sorular--institution-student .hub-student-header .app-header-brand-center {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  max-width: min(100%, 520px);
}

.page-cikmis-sorular--institution-student .hub-student-header .app-header-slot--right {
  grid-column: 3;
  justify-self: end;
}

.page-cikmis-sorular--institution-student .hub-header-greeting {
  max-width: min(220px, 42vw);
}

.page-cikmis-sorular--institution-student #hub-student-greeting-name {
  font-weight: 700;
}

.page-cikmis-sorular--institution-student .hub-tenant-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.page-cikmis-sorular--institution-student .hub-student-logout {
  min-width: 108px;
}

.page-cikmis-sorular .container {
  width: min(var(--exam-hub-max), calc(100% - (2 * var(--page-pad))));
}

.exam-hub-main {
  padding: 20px 0 40px;
}

/* Premium Ana Sayfa / home-return navigation button */
.sa-home-nav-btn,
.exam-hub-wrap .exam-hub-breadcrumb a[data-sa-portal-home],
.exam-hub-back a[data-sa-portal-home],
.page-panel .btn-panel-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 24px;
  font-size: clamp(15px, 2.8vw, 17px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: #e0f7ff;
  border-radius: 999px;
  border: 1.5px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(
    165deg,
    rgba(8, 18, 38, 0.92) 0%,
    rgba(12, 28, 52, 0.85) 50%,
    rgba(6, 14, 32, 0.94) 100%
  );
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.14) inset,
    0 4px 18px rgba(2, 6, 23, 0.45),
    0 0 22px rgba(34, 211, 238, 0.14);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
  cursor: pointer;
}

.sa-home-nav-btn:hover,
.exam-hub-wrap .exam-hub-breadcrumb a[data-sa-portal-home]:hover,
.exam-hub-back a[data-sa-portal-home]:hover,
.page-panel .btn-panel-home:hover {
  color: #f8fdff;
  text-decoration: none;
  border-color: rgba(56, 221, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.22) inset,
    0 6px 22px rgba(2, 6, 23, 0.5),
    0 0 28px rgba(34, 211, 238, 0.32),
    0 0 48px rgba(34, 211, 238, 0.16);
  transform: translateY(-1px);
}

.sa-home-nav-btn:active,
.exam-hub-wrap .exam-hub-breadcrumb a[data-sa-portal-home]:active,
.exam-hub-back a[data-sa-portal-home]:active,
.page-panel .btn-panel-home:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.18) inset,
    0 2px 10px rgba(2, 6, 23, 0.42),
    0 0 14px rgba(34, 211, 238, 0.2);
}

.sa-home-nav-btn:focus-visible,
.exam-hub-wrap .exam-hub-breadcrumb a[data-sa-portal-home]:focus-visible,
.exam-hub-back a[data-sa-portal-home]:focus-visible,
.page-panel .btn-panel-home:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.72);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .sa-home-nav-btn,
  .exam-hub-wrap .exam-hub-breadcrumb a[data-sa-portal-home],
  .exam-hub-back a[data-sa-portal-home],
  .page-panel .btn-panel-home {
    padding: 10px 18px;
    font-size: 15px;
  }
}

.exam-hub-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exam-hub-wrap .exam-hub-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(203, 213, 225, 0.92);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.exam-hub-wrap .exam-hub-breadcrumb a:not([data-sa-portal-home]) {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #94a3b8;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.exam-hub-wrap .exam-hub-breadcrumb a:not([data-sa-portal-home]):hover {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.35);
  text-decoration: none;
}

.exam-hub-wrap .exam-hub-breadcrumb a:not([data-sa-portal-home]):focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.exam-hub-wrap .exam-hub-breadcrumb__sep {
  margin: 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(148, 163, 184, 0.7);
  user-select: none;
}

.exam-hub-wrap .exam-hub-breadcrumb [aria-current="page"] {
  font-weight: 700;
  color: #f1f5f9;
}

@media (max-width: 640px) {
  .exam-hub-wrap .exam-hub-breadcrumb {
    font-size: 0.9rem;
    gap: 0.4rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .exam-hub-wrap .exam-hub-breadcrumb a:not([data-sa-portal-home]) {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.exam-hub-hero {
  margin: 0;
  padding: 0;
}

.exam-hub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-wrap: balance;
}

.exam-hub-hero__intro {
  margin: 0 0 12px;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(232, 240, 250, 0.94);
  max-width: 62ch;
}

.exam-hub-hero__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 28, 49, 0.45);
  max-width: 52ch;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 18px 20px;
  border-radius: calc(var(--radius) + 2px);
  border: 2px dashed color-mix(in srgb, var(--cyan) 45%, rgba(251, 191, 36, 0.35));
  background:
    linear-gradient(165deg, rgba(7, 15, 28, 0.92) 0%, rgba(12, 24, 44, 0.72) 100%);
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.1),
    0 0 48px rgba(251, 191, 36, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ad-slot__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.ad-slot__type {
  font-size: 0.9rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--cyan) 75%, var(--gold));
}

.ad-slot--top,
.ad-slot--bottom {
  min-height: 100px;
}

.ad-slot--inline {
  min-height: 76px;
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Public ad slot skeleton — static placeholders, no ad network integration
   -------------------------------------------------------------------------- */
.public-ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  margin: 1.75rem 0;
  padding: 1.125rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1.5px dashed color-mix(in srgb, var(--cyan) 28%, rgba(148, 163, 184, 0.35));
  background:
    linear-gradient(165deg, rgba(7, 15, 28, 0.88) 0%, rgba(12, 24, 44, 0.68) 100%);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: default;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
}

.public-ad-slot--horizontal {
  min-height: 120px;
}

.public-ad-slot--after-hero {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.public-ad-slot--after-content {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.public-ad-slot__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.public-ad-slot__placeholder {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.55);
}

@media (max-width: 640px) {
  .public-ad-slot,
  .public-ad-slot--horizontal {
    min-height: 100px;
    margin: 1.25rem 0;
    padding: 0.875rem 1rem;
  }

  .public-ad-slot--after-hero {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .public-ad-slot--after-content {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Public ad rail skeleton — wide responsive side zones, no ad network
   -------------------------------------------------------------------------- */
.public-ad-rail {
  --public-rail-gap: 36px;
  --public-rail-max-width: 300px;
  --public-rail-content-max: 960px;

  position: fixed;
  top: clamp(165px, 16vh, 240px);
  bottom: 48px;
  height: auto;
  width: min(
    var(--public-rail-max-width),
    calc((100vw - var(--public-rail-content-max)) / 2 - var(--public-rail-gap))
  );
  max-width: var(--public-rail-max-width);
  z-index: 50;
  display: none;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
}

body.page-app .public-ad-rail {
  --public-rail-content-max: 880px;
}

body.page-cikmis-sorular.page-landing:not(.page-profilim) .public-ad-rail {
  --public-rail-content-max: 1080px;
}

body.page-profilim .public-ad-rail {
  --public-rail-content-max: 1120px;
}

body.page-dersler-units .public-ad-rail,
body.page-dersler-read .public-ad-rail,
body.page-video-dersler-liste .public-ad-rail,
body.page-pratik-rehber-units .public-ad-rail,
body.page-pratik-rehber-read .public-ad-rail,
body.page-exam-list .public-ad-rail,
body.page-forum-post .public-ad-rail,
body.page-exam-runner .public-ad-rail {
  --public-rail-content-max: 1080px;
}

.public-ad-rail--left {
  left: auto;
  right: calc(50% + (var(--public-rail-content-max) / 2) + var(--public-rail-gap));
}

.public-ad-rail--right {
  right: auto;
  left: calc(50% + (var(--public-rail-content-max) / 2) + var(--public-rail-gap));
}

.public-ad-rail__stack {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 2.2vh, 30px);
  align-items: stretch;
}

.public-ad-rail__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 1rem 0.85rem;
  border-radius: 18px;
  border: 1.5px dashed color-mix(in srgb, var(--cyan) 28%, rgba(148, 163, 184, 0.35));
  background:
    linear-gradient(165deg, rgba(7, 15, 28, 0.88) 0%, rgba(12, 24, 44, 0.68) 100%);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  cursor: default;
  flex-shrink: 1;
  min-height: 0;
}

.public-ad-rail__slot--mini {
  flex: 1 1 0;
  min-height: clamp(120px, 15vh, 200px);
  border-radius: 16px;
  padding: 0.85rem 0.65rem;
}

.public-ad-rail__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
}

.public-ad-rail__placeholder {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.55);
}

@media (min-width: 1440px) {
  body.page-landing:not(.page-cikmis-sorular) .public-ad-rail,
  body.page-app .public-ad-rail {
    display: block;
  }
}

@media (min-width: 1600px) {
  body.page-cikmis-sorular.page-landing:not(.page-profilim):not(.page-exam-runner):not(.page-duel-game) .public-ad-rail,
  body.page-dersler-units .public-ad-rail,
  body.page-dersler-read .public-ad-rail,
  body.page-video-dersler-liste .public-ad-rail,
  body.page-pratik-rehber-units .public-ad-rail,
  body.page-pratik-rehber-read .public-ad-rail,
  body.page-exam-list .public-ad-rail,
  body.page-forum-post .public-ad-rail,
  body.page-exam-runner .public-ad-rail {
    display: block;
  }
}

@media (min-width: 1760px) {
  body.page-profilim .public-ad-rail {
    display: block;
  }
}

@media (max-width: 1439px) {
  .public-ad-rail {
    display: none !important;
  }
}

body.public-gate-open .public-ad-rail,
body.web-forum-rules-open .public-ad-rail,
body.forum-compose-open .public-ad-rail,
body.teacher-video-modal-open .public-ad-rail,
body.teacher-video-upsell-open .public-ad-rail,
body.exam-finish-gate-open .public-ad-rail {
  visibility: hidden;
}

body.page-duel-game .public-ad-rail {
  display: none !important;
}

/* Empty public ad placeholders are hidden until real AdSense/manual ad units are integrated. */
.public-ad-rail,
.public-ad-slot,
.ad-slot {
  display: none !important;
}

/* Optional local preview only — inactive unless <html class="sa-ads-preview"> is set. */
html.sa-ads-preview .public-ad-slot,
html.sa-ads-preview .ad-slot {
  display: flex !important;
}

html.sa-ads-preview .public-ad-rail {
  display: block !important;
}

.exam-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exam-category-card {
  --card-accent: var(--cyan);
  --card-glow: rgba(34, 211, 238, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.78), rgba(7, 15, 28, 0.52));
  border: 1px solid color-mix(in srgb, var(--card-accent) 38%, transparent);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 4px 24px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: default;
}

.exam-category-card--cyan {
  --card-accent: #22d3ee;
  --card-glow: rgba(34, 211, 238, 0.28);
}

.exam-category-card--green {
  --card-accent: #34d399;
  --card-glow: rgba(52, 211, 153, 0.25);
}

.exam-category-card--orange {
  --card-accent: #fb923c;
  --card-glow: rgba(251, 146, 60, 0.25);
}

.exam-category-card--purple {
  --card-accent: #a78bfa;
  --card-glow: rgba(167, 139, 250, 0.25);
}

.exam-category-card--rose {
  --card-accent: #f472b6;
  --card-glow: rgba(244, 114, 182, 0.25);
}

.exam-category-card--gold {
  --card-accent: #fbbf24;
  --card-glow: rgba(251, 191, 36, 0.3);
}

.exam-category-card--blue {
  --card-accent: #60a5fa;
  --card-glow: rgba(96, 165, 250, 0.28);
}

.exam-category-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--card-accent);
}

.exam-category-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.92);
}

.exam-category-card__note,
.web-exam-category-note {
  display: block;
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(253, 224, 71, 0.88);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.exam-category-grid .exam-category-card {
  min-height: 182px;
}

.exam-category-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 240, 250, 0.88);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  background: color-mix(in srgb, var(--card-accent) 10%, rgba(7, 15, 28, 0.5));
}

.exam-coming-soon {
  margin: 4px 0 0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(12, 28, 48, 0.78) 100%) padding-box,
    linear-gradient(118deg, rgba(34, 211, 238, 0.5), rgba(251, 191, 36, 0.28), rgba(34, 211, 238, 0.45)) border-box;
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.1),
    0 0 40px rgba(251, 191, 36, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exam-coming-soon p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(240, 249, 255, 0.94);
  text-align: center;
  text-wrap: balance;
}

.exam-hub-back {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
}

.exam-hub-back a:not([data-sa-portal-home]) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.exam-hub-back a:not([data-sa-portal-home]):hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .exam-category-grid {
    grid-template-columns: 1fr;
  }

  .page-cikmis-sorular .header-inner--public {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-cikmis-sorular .header-landing-brand {
    order: -1;
  }

  .page-cikmis-sorular .header-landing-brand .brand-text {
    align-items: center;
    text-align: center;
  }

  .page-cikmis-sorular .brand-logo-img {
    width: 76px;
    height: 76px;
  }

  .page-cikmis-sorular .header-public-actions {
    justify-content: center;
  }

  .page-cikmis-sorular--institution-student .hub-student-header-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    padding: 14px 0;
  }

  .page-cikmis-sorular--institution-student .hub-student-header .app-header-brand-center {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
  }

  .page-cikmis-sorular--institution-student .hub-student-header .app-header-slot--left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .page-cikmis-sorular--institution-student .hub-student-header .app-header-slot--right {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .page-cikmis-sorular--institution-student .hub-header-greeting {
    max-width: min(168px, 46vw);
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .page-cikmis-sorular--institution-student .hub-student-logout {
    min-width: 0;
    padding: 7px 12px;
    font-size: 0.74rem;
  }
}

/* P3.2 — Çıkmış sorular Firestore hub + list */
.exam-hub-guest-cta {
  margin: 0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(145deg, rgba(12, 28, 48, 0.85), rgba(7, 15, 28, 0.72));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.exam-hub-guest-cta__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(240, 249, 255, 0.94);
  text-align: center;
}

.exam-hub-guest-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.exam-category-card__count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
}

.exam-category-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.exam-category-card--clickable:hover,
.exam-category-card--clickable:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  box-shadow: 0 8px 32px var(--card-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.exam-category-badge--active {
  color: #ecfeff;
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  background: color-mix(in srgb, var(--card-accent) 22%, rgba(7, 15, 28, 0.5));
}

.exam-category-badge--guest {
  color: rgba(251, 191, 36, 0.95);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.exam-category-badge--empty {
  opacity: 0.85;
}

/* Premium hub polish — Çıkmış Sorular category hub (index only) */
.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-main {
  position: relative;
  isolation: isolate;
}

.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.84) 0%, rgba(2, 8, 23, 0.74) 100%),
    radial-gradient(circle at 62% 18%, rgba(34, 211, 238, 0.1), transparent 42%),
    radial-gradient(circle at 28% 72%, rgba(251, 191, 36, 0.07), transparent 38%),
    url("../page-backgrounds/exams-bg.webp");
  background-position: center, center, center, 55% 22%;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.46;
}

.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-hero h1 {
  text-shadow:
    0 2px 16px rgba(2, 8, 23, 0.75),
    0 0 40px rgba(2, 8, 23, 0.45);
}

.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-hero__intro,
.page-cikmis-sorular.page-landing:not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-hero__note {
  text-shadow: 0 1px 12px rgba(2, 8, 23, 0.65);
}

.page-cikmis-sorular.page-landing:not(.page-exam-list):not(.page-exam-runner):not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .cikmis-hero-intro {
  max-width: min(68rem, 100%);
  width: 100%;
  margin: 0.2rem 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(ellipse 90% 80% at 0% 40%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(12, 26, 46, 0.88), rgba(8, 14, 28, 0.82));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06) inset,
    0 0 20px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: rgba(224, 242, 254, 0.96);
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.page-cikmis-sorular.page-landing:not(.page-exam-list):not(.page-exam-runner):not(.page-forum):not(.page-duello):not(.page-ligler):not(.page-profilim):not(.page-dersler):not(.page-video-dersler):not(.page-pratik-rehber) .exam-hub-hero__note {
  display: none !important;
}

.page-cikmis-sorular.page-landing:not(.page-exam-list) .exam-category-grid .exam-category-card__title {
  font-size: clamp(1.05rem, 1.8vw, 1.16rem);
  font-weight: 800;
  line-height: 1.3;
}

.page-cikmis-sorular.page-landing:not(.page-exam-list) .exam-category-grid .exam-category-card__desc {
  font-size: clamp(0.92rem, 1.5vw, 0.98rem);
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.95);
}

.page-cikmis-sorular.page-landing:not(.page-exam-list) .exam-category-grid .exam-category-card__count {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.95);
}

.page-cikmis-sorular.page-landing:not(.page-exam-list) .exam-category-grid .exam-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.78rem;
}

@media (max-width: 640px) {
  .page-cikmis-sorular.page-landing:not(.page-exam-list):not(.page-exam-runner) .cikmis-hero-intro {
    padding: 10px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

.page-cikmis-sorular .exam-category-grid .exam-category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 200px;
  padding: 18px 18px 16px;
  border: 1.5px solid color-mix(in srgb, var(--card-accent) 52%, transparent);
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, color-mix(in srgb, var(--card-accent) 7%, transparent), transparent 50%),
    linear-gradient(158deg, rgba(10, 20, 40, 0.92) 0%, rgba(8, 14, 28, 0.86) 50%, rgba(5, 10, 22, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-accent) 12%, transparent) inset,
    0 0 32px var(--card-glow),
    0 10px 28px rgba(2, 8, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.page-cikmis-sorular .exam-category-grid .exam-category-card::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto auto;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--card-accent) 32%, transparent) 0%,
    color-mix(in srgb, var(--card-accent) 12%, transparent) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}

.page-cikmis-sorular .exam-category-grid .exam-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.07) 46%,
    color-mix(in srgb, var(--card-accent) 12%, transparent) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.page-cikmis-sorular .exam-category-grid .exam-category-card > * {
  position: relative;
  z-index: 1;
}

.page-cikmis-sorular .exam-category-grid .exam-category-card__title {
  text-shadow: 0 1px 10px rgba(2, 8, 23, 0.4);
}

.page-cikmis-sorular .exam-category-grid .exam-category-card__desc {
  color: rgba(248, 250, 252, 0.94);
}

.page-cikmis-sorular .exam-category-grid .exam-category-card__note,
.page-cikmis-sorular .exam-category-grid .web-exam-category-note {
  flex-shrink: 0;
  margin: 8px 0 6px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(253, 224, 71, 0.28);
  background: rgba(120, 53, 15, 0.18);
  color: rgba(253, 230, 138, 0.95);
  line-height: 1.4;
}

.page-cikmis-sorular .exam-category-grid .exam-category-badge {
  margin-top: auto;
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 0.64rem;
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
  background: color-mix(in srgb, var(--card-accent) 14%, rgba(7, 15, 28, 0.62));
  box-shadow:
    0 0 12px color-mix(in srgb, var(--card-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-cikmis-sorular .exam-category-grid .exam-category-badge--active {
  border-color: color-mix(in srgb, var(--card-accent) 62%, transparent);
  background: color-mix(in srgb, var(--card-accent) 26%, rgba(7, 15, 28, 0.55));
  box-shadow:
    0 0 16px color-mix(in srgb, var(--card-accent) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-cikmis-sorular .exam-category-grid .exam-category-badge--guest {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(120, 53, 15, 0.28);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.12);
}

.page-cikmis-sorular .exam-category-grid .exam-category-card--clickable:hover,
.page-cikmis-sorular .exam-category-grid .exam-category-card--clickable:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-accent) 62%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent) inset,
    0 0 40px var(--card-glow),
    0 14px 36px rgba(2, 8, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.exam-list-main {
  padding-bottom: 48px;
}

.exam-list-loading,
.exam-list-empty,
.exam-list-error {
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
}

.exam-list-loading {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 28, 49, 0.45);
  color: var(--text-muted);
}

.exam-list-loading p {
  margin: 0;
}

.exam-list-empty {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 28, 49, 0.5);
}

.exam-list-empty p {
  margin: 0;
  color: rgba(232, 240, 250, 0.92);
}

.exam-list-error {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
}

.exam-list-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exam-published-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exam-published-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.82), rgba(7, 15, 28, 0.58));
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.exam-published-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.exam-published-card__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f0f9ff;
}

.exam-published-card__status {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.exam-published-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.exam-published-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.exam-published-card__actions {
  margin-top: 4px;
}

.btn-exam-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.75);
  cursor: not-allowed;
  opacity: 0.9;
}

.page-exam-list #exam-list-loading[hidden],
.page-exam-list #exam-list-guest-cta[hidden],
.page-exam-list #exam-list-empty[hidden],
.page-exam-list #exam-list-error[hidden] {
  display: none !important;
}

.btn-exam-solve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(15, 28, 49, 0.75));
  color: #ecfeff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-exam-solve:hover,
.btn-exam-solve:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.2);
  outline: none;
}

/* P3.3 — Web exam runner */
.page-exam-runner .exam-runner-main {
  padding-bottom: 48px;
}

.exam-runner-loading,
.exam-runner-error {
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
}

.exam-runner-loading {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 28, 49, 0.45);
  color: var(--text-muted);
}

.exam-runner-loading p {
  margin: 0;
}

.exam-runner-error {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
}

.exam-runner-panel {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(165deg, rgba(15, 28, 49, 0.82), rgba(7, 15, 28, 0.58));
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.exam-runner-intro__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #f0f9ff;
}

.exam-runner-intro__category {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(34, 211, 238, 0.9);
  font-weight: 600;
}

.exam-runner-intro__meta {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
  line-height: 1.6;
}

.exam-runner-intro__instruction {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.exam-runner-pre-ad {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(7, 15, 28, 0.45);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-runner-pre-ad__label {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.85);
  text-align: center;
}

.btn-exam-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22), rgba(15, 28, 49, 0.8));
  color: #d1fae5;
  cursor: pointer;
}

.btn-exam-start:hover,
.btn-exam-start:focus-visible {
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.2);
  outline: none;
}

.exam-runner-solving__head {
  margin-bottom: 16px;
}

.exam-runner-solving__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 6px;
}

.exam-runner-solving__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  color: #f0f9ff;
}

.exam-runner-timer {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 6px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #ecfeff;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exam-runner-timer--warn {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exam-runner-timer--danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.35);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exam-runner-progress {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(34, 211, 238, 0.9);
}

.exam-runner-question-card {
  margin-bottom: 18px;
}

.exam-runner-question__text {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(240, 249, 255, 0.96);
}

.exam-runner-media {
  margin: 0 0 14px;
}

.exam-runner-media--bounded {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.exam-runner-media img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (min-width: 768px) {
  .exam-runner-media img {
    max-height: 240px;
  }
}

.exam-review-item__media .exam-runner-media img {
  max-height: 150px;
}

@media (min-width: 768px) {
  .exam-review-item__media .exam-runner-media img {
    max-height: 180px;
  }
}

.exam-runner-media__fallback {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.exam-runner-media--video iframe {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.exam-runner-video-link {
  color: #67e8f9;
}

.exam-runner-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-runner-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(240, 249, 255, 0.95);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.exam-runner-option:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.exam-runner-option--selected {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.exam-runner-option--correct {
  border-color: rgba(52, 211, 153, 0.75);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.1));
  color: #d1fae5;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.exam-runner-option--correct .exam-runner-option__key {
  color: #6ee7b7;
}

.exam-runner-option--wrong {
  border-color: rgba(248, 113, 113, 0.75);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  color: #fecaca;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exam-runner-option--wrong .exam-runner-option__key {
  color: #fca5a5;
}

.exam-runner-option--locked {
  pointer-events: none;
  cursor: default;
}

.exam-runner-option--locked:hover {
  border-color: inherit;
}

.exam-runner-option--correct.exam-runner-option--locked:hover {
  border-color: rgba(52, 211, 153, 0.75);
}

.exam-runner-option--wrong.exam-runner-option--locked:hover {
  border-color: rgba(248, 113, 113, 0.75);
}

.exam-runner-answer-badge {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.exam-runner-answer-badge strong {
  color: #6ee7b7;
  font-weight: 800;
}

.exam-runner-solve-explain {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(52, 211, 153, 0.32);
  background: rgba(7, 15, 28, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.exam-runner-solve-explain__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.exam-runner-solve-explain__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.94);
  word-break: break-word;
}

.exam-runner-option__key {
  flex-shrink: 0;
  font-weight: 700;
  color: #67e8f9;
  min-width: 1.2rem;
}

.exam-option-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.exam-option-content__text {
  line-height: 1.45;
  word-break: break-word;
}

.exam-option-content__hint {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
}

.exam-option-media {
  display: block;
  max-width: 100%;
}

.exam-runner-option__img,
.exam-review-option__img {
  display: block;
  max-width: 120px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 15, 28, 0.4);
}

@media (min-width: 768px) {
  .exam-runner-option__img,
  .exam-review-option__img {
    max-width: 140px;
    max-height: 96px;
  }
}

.exam-option-media__fallback {
  font-size: 0.8rem;
  color: rgba(248, 113, 113, 0.9);
}

.exam-runner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.btn-exam-nav {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  cursor: pointer;
}

.btn-exam-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-exam-finish {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

body.exam-runner-video-mode #exam-runner-timer,
body.exam-runner-video-mode #exam-runner-prev-btn,
body.exam-runner-video-mode #exam-runner-next-btn,
body.exam-runner-video-mode #exam-runner-finish-btn {
  display: none !important;
}

body.exam-runner-video-mode #exam-runner-return-list-btn {
  display: inline-flex;
  margin-left: auto;
}

#exam-runner-return-list-btn[hidden] {
  display: none !important;
}

.exam-runner-result__title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #f0f9ff;
}

.exam-runner-result__expired-note,
.exam-runner-result__elapsed {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.exam-runner-result__expired-note {
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.exam-runner-result__elapsed {
  color: rgba(148, 163, 184, 0.95);
}

.exam-runner-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 520px) {
  .exam-runner-summary__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.exam-runner-stat {
  padding: 14px 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 15, 28, 0.5);
}

.exam-runner-stat__value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.exam-runner-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.exam-runner-stat--correct .exam-runner-stat__value {
  color: #6ee7b7;
}

.exam-runner-stat--wrong .exam-runner-stat__value {
  color: #fca5a5;
}

.exam-runner-stat--blank .exam-runner-stat__value {
  color: #cbd5e1;
}

.exam-runner-stat--pct .exam-runner-stat__value {
  color: #67e8f9;
}

.exam-runner-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exam-review-item {
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 15, 28, 0.5);
}

.exam-review-item--correct {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.55);
}

.exam-review-item--wrong {
  border-color: rgba(248, 113, 113, 0.28);
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.45);
}

.exam-review-item--blank {
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.4);
}

.exam-review-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.exam-review-item__num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.9);
}

.exam-review-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exam-review-badge--correct {
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
}

.exam-review-badge--wrong {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.exam-review-badge--blank {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
}

.exam-review-item__q {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(240, 249, 255, 0.96);
  word-break: break-word;
}

.exam-review-item__media {
  margin-bottom: 12px;
}

.exam-review-item__media:empty {
  display: none;
}

.exam-review-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.exam-review-answer {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.exam-review-answer--user {
  border-color: rgba(34, 211, 238, 0.22);
}

.exam-review-answer--correct {
  border-color: rgba(52, 211, 153, 0.22);
}

.exam-review-answer__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.exam-review-answer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.exam-review-answer__letter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.exam-review-answer__empty {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.95);
  font-style: italic;
}

.exam-review-item__explain {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(7, 15, 28, 0.45);
}

.exam-review-item__explain-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.exam-review-item__explain p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.95);
  word-break: break-word;
}

.exam-runner-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn-exam-back {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
  color: #ecfeff;
  text-decoration: none;
}

.btn-exam-back--secondary {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

/* Exam finish confirmation modal */
body.exam-finish-gate-open {
  overflow: hidden;
}

.exam-finish-gate {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.exam-finish-gate[hidden] {
  display: none !important;
}

.exam-finish-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(6px);
}

.exam-finish-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 22, 40, 0.96) 0%, rgba(7, 15, 28, 0.9) 100%) padding-box,
    linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(251, 191, 36, 0.35), rgba(34, 211, 238, 0.45)) border-box;
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.14),
    0 0 56px rgba(251, 191, 36, 0.08),
    0 16px 48px rgba(7, 15, 28, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exam-finish-gate__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #f8fafc;
}

.exam-finish-gate__message {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.exam-finish-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.exam-finish-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
}

.exam-finish-gate__btn--confirm {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(15, 28, 49, 0.85));
  color: #fde68a;
}

.exam-finish-gate__btn:hover,
.exam-finish-gate__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.page-exam-runner #exam-runner-loading[hidden],
.page-exam-runner #exam-runner-guest-cta[hidden],
.page-exam-runner #exam-runner-error[hidden],
.page-exam-runner #exam-runner-intro[hidden],
.page-exam-runner #exam-runner-solving[hidden],
.page-exam-runner #exam-runner-result[hidden] {
  display: none !important;
}

/* P3.2 — Dersler (konu anlatımlı kitaplar) */
.page-dersler {
  --lesson-hub-max: 1080px;
}

.page-dersler .lesson-hub-main {
  position: relative;
  isolation: isolate;
}

.page-dersler .lesson-hub-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.86) 0%, rgba(2, 8, 23, 0.78) 100%),
    radial-gradient(circle at 78% 12%, rgba(34, 211, 238, 0.1), transparent 42%),
    url("../page-backgrounds/lessons-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.44;
}

.page-dersler .lesson-hub-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-dersler .lesson-hub-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-dersler .container {
  width: min(var(--lesson-hub-max), calc(100% - (2 * var(--page-pad))));
}

.page-dersler .lesson-books-hub-hero__sales {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background:
    radial-gradient(ellipse 90% 80% at 0% 50%, rgba(251, 191, 36, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 50%),
    linear-gradient(135deg, rgba(28, 22, 12, 0.92), rgba(8, 16, 32, 0.88));
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.08) inset,
    0 0 22px rgba(245, 158, 11, 0.16),
    0 0 16px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(254, 243, 199, 0.95);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.18);
}

.page-dersler .lesson-books-hub-hero__sales::before {
  content: "✦ ";
  color: rgba(251, 191, 36, 0.85);
  font-size: 0.78em;
  font-weight: 500;
}

.page-dersler .lesson-books-category-guide {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 52rem;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background:
    radial-gradient(ellipse 100% 90% at 100% 0%, rgba(251, 191, 36, 0.18), transparent 52%),
    radial-gradient(ellipse 80% 70% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 50%),
    linear-gradient(148deg, rgba(28, 22, 14, 0.95), rgba(8, 14, 30, 0.92));
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.1) inset,
    0 0 28px rgba(245, 158, 11, 0.18),
    0 0 20px rgba(34, 211, 238, 0.12),
    0 10px 28px rgba(2, 8, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.page-dersler .lesson-books-category-guide__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.95);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.page-dersler .lesson-books-category-guide p {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.18);
}

@media (max-width: 640px) {
  .page-dersler .lesson-books-hub-hero__sales {
    padding: 10px 14px;
    border-radius: 12px;
  }

  .page-dersler .lesson-books-category-guide {
    margin: 16px 0 18px;
    padding: 14px 15px;
    border-radius: 16px;
  }
}

.lesson-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.lesson-book-card {
  position: relative;
  padding: 20px 18px 52px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(155deg, rgba(15, 28, 49, 0.92), rgba(8, 16, 30, 0.88));
  box-shadow: 0 12px 40px rgba(2, 8, 23, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lesson-book-card--clickable {
  cursor: pointer;
}

.lesson-book-card--clickable:hover,
.lesson-book-card--clickable:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 48px rgba(34, 211, 238, 0.12);
}

.lesson-book-card--cyan { border-top: 3px solid rgba(34, 211, 238, 0.75); }
.lesson-book-card--green { border-top: 3px solid rgba(52, 211, 153, 0.75); }
.lesson-book-card--purple { border-top: 3px solid rgba(167, 139, 250, 0.75); }
.lesson-book-card--orange { border-top: 3px solid rgba(251, 146, 60, 0.75); }
.lesson-book-card--gold { border-top: 3px solid rgba(251, 191, 36, 0.75); }

.lesson-book-card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #f8fafc;
}

.lesson-book-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
}

.lesson-book-card__note,
.web-lesson-category-note {
  display: block;
  margin: 10px 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(253, 224, 71, 0.88);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lesson-book-grid .lesson-book-card {
  min-height: 228px;
  padding-bottom: 72px;
}

.lesson-book-card__badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
}

.lesson-book-card__badge--active {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.35);
}

.lesson-book-card__badge--guest {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.25);
}

.lesson-book-card__badge--empty {
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

/* Premium hub polish — Ders Kitapları category cards */
.page-dersler .lesson-book-grid .lesson-book-card {
  --hub-card-accent-rgb: 34, 211, 238;
  --hub-card-accent: rgba(var(--hub-card-accent-rgb), 1);
  --hub-card-glow: rgba(var(--hub-card-accent-rgb), 0.38);
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 20px 18px 86px;
  border-top: none;
  border: 1.5px solid rgba(var(--hub-card-accent-rgb), 0.55);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.22), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.08), transparent 48%),
    linear-gradient(158deg, rgba(12, 24, 46, 0.94) 0%, rgba(8, 16, 32, 0.88) 48%, rgba(5, 10, 22, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.12) inset,
    0 0 36px rgba(var(--hub-card-accent-rgb), 0.22),
    0 10px 32px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.page-dersler .lesson-book-grid .lesson-book-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--hub-card-accent-rgb), 0.42) 0%,
    rgba(var(--hub-card-accent-rgb), 0.14) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.page-dersler .lesson-book-grid .lesson-book-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(var(--hub-card-accent-rgb), 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.24s ease;
}

.page-dersler .lesson-book-grid .lesson-book-card--cyan {
  --hub-card-accent-rgb: 34, 211, 238;
}

.page-dersler .lesson-book-grid .lesson-book-card--green {
  --hub-card-accent-rgb: 52, 211, 153;
}

.page-dersler .lesson-book-grid .lesson-book-card--purple {
  --hub-card-accent-rgb: 167, 139, 250;
}

.page-dersler .lesson-book-grid .lesson-book-card--orange {
  --hub-card-accent-rgb: 251, 146, 60;
}

.page-dersler .lesson-book-grid .lesson-book-card--gold {
  --hub-card-accent-rgb: 251, 191, 36;
}

.page-dersler .lesson-book-grid .lesson-book-card__title,
.page-dersler .lesson-book-grid .lesson-book-card__desc,
.page-dersler .lesson-book-grid .lesson-book-card__note {
  position: relative;
  z-index: 1;
}

.page-dersler .lesson-book-grid .lesson-book-card__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 1.16rem;
  color: #f8fafc;
  text-shadow:
    0 0 22px rgba(var(--hub-card-accent-rgb), 0.55),
    0 0 8px rgba(var(--hub-card-accent-rgb), 0.35),
    0 1px 2px rgba(0, 0, 0, 0.65);
}

.page-dersler .lesson-book-grid .lesson-book-card__desc {
  flex: 1;
  margin: 0;
  color: rgba(236, 242, 255, 0.9);
}

.page-dersler .lesson-book-grid .lesson-book-card__note {
  flex-shrink: 0;
  margin: 10px 0 14px;
}

.page-dersler .lesson-book-grid .lesson-book-card__badge {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(220px, calc(100% - 72px));
  max-width: calc(100% - 36px);
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid rgba(var(--hub-card-accent-rgb), 0.52);
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.88), rgba(6, 12, 26, 0.92));
  box-shadow:
    0 0 18px rgba(var(--hub-card-accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.69rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-dersler .lesson-book-grid .lesson-book-card__badge--active {
  border-color: rgba(52, 211, 153, 0.65);
  color: #a7f3d0;
  background: linear-gradient(180deg, rgba(8, 52, 42, 0.88), rgba(4, 36, 30, 0.92));
  box-shadow:
    0 0 22px rgba(52, 211, 153, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.page-dersler .lesson-book-grid .lesson-book-card__badge--guest {
  border-color: rgba(251, 191, 36, 0.58);
  color: #fef08a;
  background: linear-gradient(180deg, rgba(68, 38, 8, 0.88), rgba(48, 28, 6, 0.92));
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-dersler .lesson-book-grid .lesson-book-card__badge--empty {
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(10, 16, 30, 0.92));
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-dersler .lesson-book-grid .lesson-book-card--clickable:hover,
.page-dersler .lesson-book-grid .lesson-book-card--clickable:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(var(--hub-card-accent-rgb), 0.78);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.32), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.12), transparent 48%),
    linear-gradient(158deg, rgba(14, 28, 52, 0.96) 0%, rgba(10, 20, 38, 0.9) 48%, rgba(6, 12, 26, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.2) inset,
    0 0 52px rgba(var(--hub-card-accent-rgb), 0.42),
    0 16px 44px rgba(2, 8, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.page-dersler .lesson-book-grid .lesson-book-card--clickable:hover::after,
.page-dersler .lesson-book-grid .lesson-book-card--clickable:focus-visible::after {
  opacity: 0.88;
}

@media (max-width: 640px) {
  .page-dersler .lesson-book-grid .lesson-book-card {
    min-height: 218px;
    padding-bottom: 80px;
  }

  .page-dersler .lesson-book-grid .lesson-book-card__badge {
    bottom: 12px;
    width: min(200px, calc(100% - 56px));
    min-height: 26px;
    padding: 4px 10px;
    font-size: 0.66rem;
  }
}

.lesson-unit-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lesson-unit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 28, 49, 0.78);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lesson-unit-card:hover,
.lesson-unit-card:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(15, 40, 62, 0.85);
}

.lesson-unit-card__index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.lesson-unit-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #f1f5f9;
}

.lesson-unit-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6ee7b7;
}

.lesson-unit-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lesson-unit-card--completed {
  border-color: rgba(74, 222, 128, 0.45);
  background: linear-gradient(135deg, rgba(15, 40, 35, 0.88), rgba(15, 28, 49, 0.82));
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.lesson-unit-card--completed .lesson-unit-card__index {
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
}

.lesson-unit-status {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.lesson-unit-status--completed {
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

@media (max-width: 560px) {
  .lesson-unit-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "index title"
      "actions actions";
    row-gap: 10px;
  }

  .lesson-unit-card__index {
    grid-area: index;
  }

  .lesson-unit-card__title {
    grid-area: title;
  }

  .lesson-unit-card__actions {
    grid-area: actions;
    justify-content: space-between;
    width: 100%;
  }
}

.lesson-reader-blocks {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.lesson-block {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 28, 49, 0.72);
}

.lesson-block--text.lesson-block--preset-info {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(8, 47, 73, 0.45);
}

.lesson-block--text.lesson-block--preset-warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(69, 45, 8, 0.35);
}

.lesson-block--text.lesson-block--preset-danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(69, 10, 10, 0.35);
}

.lesson-text-body {
  font-size: 1rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-line;
}

.lesson-text-body--segments {
  white-space: pre-wrap;
}

.lesson-text-seg--bold { font-weight: 700; }
.lesson-text-seg--italic { font-style: italic; }
.lesson-text-seg--danger { color: #fca5a5; font-weight: 600; }

.lesson-block--image {
  padding: 14px;
}

.lesson-figure {
  margin: 0;
  text-align: center;
}

.lesson-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
}

.lesson-image--inline {
  max-height: 320px;
}

.lesson-image-caption {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.9);
  text-align: center;
}

.lesson-youtube {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  background: rgba(8, 47, 73, 0.35);
}

.lesson-youtube__label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #a5f3fc;
}

.lesson-youtube__link {
  color: #6ee7b7;
  font-weight: 600;
  text-decoration: none;
}

.lesson-youtube__link:hover {
  text-decoration: underline;
}

.lesson-guest-cta {
  margin-top: 16px;
}

.lesson-empty-state {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  line-height: 1.5;
}

.lesson-empty-state--error {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

/* Ders okuyucu — tamamlama paneli */
.page-dersler-read .lesson-progress-panel {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(
    155deg,
    rgba(18, 32, 58, 0.82) 0%,
    rgba(10, 18, 36, 0.68) 52%,
    rgba(8, 14, 28, 0.78) 100%
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 16px 40px rgba(2, 8, 23, 0.45),
    0 0 36px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-dersler-read .lesson-progress-panel--completed {
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow:
    0 16px 40px rgba(2, 8, 23, 0.45),
    0 0 40px rgba(52, 211, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-dersler-read .lesson-progress-panel__status {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
}

.page-dersler-read .lesson-progress-panel__status--done {
  color: #a7f3d0;
}

.page-dersler-read .lesson-progress-panel__status--done::before {
  content: '✓ ';
  font-weight: 800;
  color: #6ee7b7;
}

.page-dersler-read .lesson-progress-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16));
  color: #ecfeff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.page-dersler-read .lesson-progress-panel__btn:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.28),
    0 0 20px rgba(251, 191, 36, 0.12);
  transform: translateY(-1px);
}

.page-dersler-read .lesson-progress-panel__btn:disabled {
  cursor: default;
  opacity: 1;
}

.page-dersler-read .lesson-progress-panel__btn--completed {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(34, 211, 238, 0.12));
  color: #d1fae5;
  box-shadow:
    0 0 24px rgba(52, 211, 153, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-dersler-read .lesson-progress-panel__btn--completed::before {
  content: '✓ ';
  font-weight: 800;
}

.page-dersler-read .lesson-progress-panel__btn--saving {
  opacity: 0.75;
  pointer-events: none;
}

.page-dersler-read .lesson-progress-panel__message {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #a7f3d0;
}

.page-dersler-read .lesson-progress-panel__message--error {
  color: #fecaca;
}

@media (max-width: 640px) {
  .lesson-book-grid {
    grid-template-columns: 1fr;
  }

  .lesson-image {
    max-height: 280px;
  }

  .lesson-image--inline {
    max-height: 220px;
  }

  .page-dersler-read .lesson-progress-panel {
    padding: 16px 18px;
  }

  .page-dersler-read .lesson-progress-panel__btn {
    width: 100%;
  }
}

/* P3.3 — Profilim (premium glass dashboard) */
.page-profilim {
  --profile-hub-max: 1120px;
  --profile-panel-radius: 18px;
  --profile-panel-padding: 18px;
  --profile-panel-gap: 16px;
  --profile-accent-cyan-rgb: 34, 211, 238;
  --profile-accent-violet-rgb: 139, 92, 246;
  --profile-accent-gold-rgb: 251, 191, 36;
  --profile-accent-green-rgb: 52, 211, 153;
  --profile-glass-bg: linear-gradient(
    155deg,
    rgba(18, 32, 58, 0.78) 0%,
    rgba(10, 18, 36, 0.62) 48%,
    rgba(8, 14, 28, 0.72) 100%
  );
  --profile-glass-border: rgba(148, 163, 184, 0.22);
  --profile-glow-cyan: rgba(34, 211, 238, 0.35);
  --profile-glow-blue: rgba(59, 130, 246, 0.32);
  --profile-glow-violet: rgba(139, 92, 246, 0.32);
  --profile-glow-gold: rgba(251, 191, 36, 0.28);
  --profile-shadow-deep: 0 18px 48px rgba(2, 8, 23, 0.55);
  --profile-shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.page-profilim .profile-main {
  position: relative;
  isolation: isolate;
}

.page-profilim .profile-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.92) 0%, rgba(2, 8, 23, 0.88) 100%),
    radial-gradient(circle at 72% 14%, rgba(139, 92, 246, 0.07), transparent 40%),
    url("../page-backgrounds/profile-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.32;
}

.page-profilim .profile-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-profilim .profile-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-profilim .container {
  width: min(var(--profile-hub-max), calc(100% - (2 * var(--page-pad))));
}

.page-profilim .profile-shell {
  padding-bottom: 32px;
}

.page-profilim .profile-hero--premium {
  position: relative;
  isolation: isolate;
  margin-bottom: 6px;
  padding-bottom: 8px;
}

.page-profilim .profile-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: var(--profile-panel-gap);
  margin-top: 12px;
}

.page-profilim .profile-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--profile-panel-gap);
  align-items: stretch;
}

.page-profilim .profile-summary-grid > .profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.page-profilim .profile-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "history"
    "account"
    "lessons"
    "messages"
    "duel";
  gap: var(--profile-panel-gap);
  align-items: stretch;
}

.page-profilim .profile-main-grid > .profile-stat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.page-profilim .profile-main-grid > * {
  min-width: 0;
}

.page-profilim #profile-exam-history-card { grid-area: history; }
.page-profilim #profile-account-status-card { grid-area: account; }
.page-profilim #profile-lessons-card      { grid-area: lessons; }
.page-profilim #profile-messages-card      { grid-area: messages; }
.page-profilim #profile-duel-card         { grid-area: duel;    }

.page-profilim .profile-sidebar-stack {
  display: contents;
}

@media (min-width: 900px) {
  .page-profilim .profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-profilim .profile-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "history account"
      "lessons messages"
      "duel duel";
  }

  .page-profilim .profile-stat-card--history {
    grid-column: auto;
  }

  .page-profilim #profile-exam-history-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }

  .page-profilim #profile-lesson-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }
}

.page-profilim .profile-hero__glow {
  position: absolute;
  inset: -28px -12% auto -12%;
  height: 140px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 100% at 18% 0%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 90% at 78% 8%, rgba(139, 92, 246, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 70% at 50% 100%, rgba(59, 130, 246, 0.1), transparent 65%);
  filter: blur(2px);
}

.page-profilim .profile-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}

.page-profilim .profile-hero__intro {
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.9);
}

.page-profilim .profile-grid {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .page-profilim .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.page-profilim .profile-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--profile-panel-padding);
  border-radius: var(--profile-panel-radius);
  border: 1.5px solid var(--profile-glass-border);
  background: var(--profile-glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    var(--profile-shadow-deep),
    var(--profile-shadow-glow),
    0 0 28px rgba(var(--profile-accent-cyan-rgb), 0.08);
}

.page-profilim .profile-card > * {
  position: relative;
  z-index: 2;
}

.page-profilim .profile-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  opacity: 0.9;
  pointer-events: none;
}

.page-profilim .profile-card--accent-blue::before {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.65), transparent 85%);
  box-shadow: 0 0 24px var(--profile-glow-cyan);
}

.page-profilim .profile-card--accent-violet::before {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0.5), transparent 85%);
  box-shadow: 0 0 24px var(--profile-glow-violet);
}

.page-profilim .profile-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 68%);
  opacity: 0.5;
}

.page-profilim .profile-card__title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 1.06rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-profilim .profile-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-profilim .profile-dl__row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 10px 16px;
  align-items: baseline;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 16, 32, 0.35);
  box-shadow: 0 4px 16px rgba(2, 8, 23, 0.2);
}

.page-profilim .profile-dl__row dt {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-profilim .profile-dl__row dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-word;
}

/* Hesap bilgileri — premium identity card */
.page-profilim .profile-identity-card {
  min-width: 0;
  padding: var(--profile-panel-padding);
  border: 1.5px solid rgba(var(--profile-accent-cyan-rgb), 0.38);
  background:
    linear-gradient(
      165deg,
      rgba(14, 28, 52, 0.94) 0%,
      rgba(10, 20, 40, 0.88) 48%,
      rgba(8, 16, 32, 0.92) 100%
    );
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(var(--profile-accent-cyan-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-profilim .profile-brand-card {
  border: 1.5px solid rgba(var(--profile-accent-violet-rgb), 0.36);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 32px rgba(var(--profile-accent-violet-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-profilim .profile-identity-card::after {
  background: radial-gradient(
    circle at 88% 12%,
    rgba(34, 211, 238, 0.14),
    transparent 62%
  );
  opacity: 0.85;
}

.page-profilim .profile-identity-card .profile-dl {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.page-profilim .profile-identity-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.06),
    transparent 72%
  );
}

.page-profilim .profile-identity-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.55),
    rgba(59, 130, 246, 0.25),
    transparent 85%
  );
  opacity: 0.7;
  pointer-events: none;
}

.page-profilim .profile-identity-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(8, 47, 73, 0.9), rgba(12, 22, 42, 0.95));
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E"),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(8, 47, 73, 0.9), rgba(12, 22, 42, 0.95));
  background-repeat: no-repeat;
  background-position: center, center, center;
  background-size: 26px 26px, auto, auto;
}

.page-profilim .profile-identity-card .profile-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.page-profilim .profile-identity-card .profile-dl__row--display {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 16px 14px;
  text-align: center;
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(
    160deg,
    rgba(8, 47, 73, 0.55) 0%,
    rgba(12, 22, 42, 0.78) 55%,
    rgba(8, 16, 32, 0.82) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 28px rgba(34, 211, 238, 0.1);
}

.page-profilim .profile-identity-card .profile-dl__row--display dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(34, 211, 238, 0.88);
}

.page-profilim .profile-identity-card .profile-dl__row--display dd,
.page-profilim .profile-identity-card #profile-display-name {
  font-size: clamp(1.15rem, 3.2vw, 1.38rem);
  font-weight: 800;
  line-height: 1.3;
  color: #f8fafc;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.18);
  overflow-wrap: anywhere;
}

.page-profilim .profile-identity-card .profile-dl__row--username,
.page-profilim .profile-identity-card .profile-dl__row--email {
  padding: 10px 14px;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(8, 16, 32, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-identity-card .profile-dl__row--username dt,
.page-profilim .profile-identity-card .profile-dl__row--email dt {
  font-size: 0.72rem;
}

.page-profilim .profile-identity-card .profile-dl__row--username dd,
.page-profilim .profile-identity-card .profile-dl__row--email dd {
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.page-profilim .profile-identity-card .profile-dl__row--role {
  grid-template-columns: minmax(100px, 34%) 1fr;
  align-items: center;
  padding: 10px 14px;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(8, 16, 32, 0.42);
}

.page-profilim .profile-identity-card .profile-dl__row--role #profile-role-label {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.65),
    rgba(12, 22, 42, 0.85)
  );
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #a5f3fc;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.page-profilim .profile-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 16, 32, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-brand-lockup--tenant .profile-tenant-logo-wrap {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.page-profilim .profile-brand-logo,
.page-profilim .profile-tenant-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 14px;
}

.page-profilim .profile-tenant-monogram {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #a5f3fc;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.page-profilim .profile-brand-name {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.page-profilim .profile-brand-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

.page-profilim .profile-brand-kpi-zone {
  margin-top: 14px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(
    160deg,
    rgba(8, 16, 32, 0.55) 0%,
    rgba(12, 22, 42, 0.42) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 20px rgba(2, 8, 23, 0.28);
}

.page-profilim .profile-brand-kpi-zone__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.page-profilim .profile-brand-kpi-zone .profile-stat-card__loading {
  margin: 0 0 8px;
}

.page-profilim .profile-brand-kpi-metrics {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-profilim .profile-brand-kpi-metrics .profile-stat-metric {
  padding: 10px 10px 12px;
  gap: 6px;
}

.page-profilim .profile-brand-kpi-metrics .profile-stat-metric__label {
  font-size: 0.68rem;
  line-height: 1.3;
}

.page-profilim .profile-brand-kpi-metrics .profile-stat-metric__value {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.page-profilim .profile-brand-kpi-zone .profile-stat-empty {
  margin-top: 8px;
  margin-bottom: 0;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.page-profilim .profile-stat-grid {
  display: block;
  grid-column: auto;
  grid-template-columns: unset;
  gap: 0;
  margin-top: 0;
}

.page-profilim .profile-stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--profile-panel-padding);
  border-radius: var(--profile-panel-radius);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: var(--profile-glass-bg);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    var(--profile-shadow-deep),
    var(--profile-shadow-glow),
    0 0 24px rgba(var(--profile-accent-cyan-rgb), 0.06);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.page-profilim .profile-stat-card > * {
  position: relative;
  z-index: 2;
}

.page-profilim .profile-stat-card--history::before,
.page-profilim .profile-stat-card--lessons::before,
.page-profilim .profile-messages-card::before,
.page-profilim .profile-stat-card--duel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.page-profilim .profile-stat-card--history::before {
  background: linear-gradient(90deg, rgba(var(--profile-accent-cyan-rgb), 0.9), rgba(59, 130, 246, 0.72), transparent 88%);
  box-shadow: 0 0 20px rgba(var(--profile-accent-cyan-rgb), 0.3);
}

.page-profilim .profile-stat-card--lessons::before {
  background: linear-gradient(90deg, rgba(var(--profile-accent-green-rgb), 0.88), rgba(var(--profile-accent-cyan-rgb), 0.65), transparent 88%);
  box-shadow: 0 0 20px rgba(var(--profile-accent-green-rgb), 0.28);
}

.page-profilim .profile-messages-card::before {
  background: linear-gradient(90deg, rgba(var(--profile-accent-cyan-rgb), 0.85), rgba(var(--profile-accent-violet-rgb), 0.7), transparent 88%);
  box-shadow: 0 0 20px rgba(var(--profile-accent-violet-rgb), 0.22);
}

.page-profilim .profile-stat-card--duel::before {
  background: linear-gradient(90deg, rgba(var(--profile-accent-violet-rgb), 0.88), rgba(var(--profile-accent-gold-rgb), 0.72), transparent 88%);
  box-shadow: 0 0 20px rgba(var(--profile-accent-violet-rgb), 0.26);
}

.page-profilim .profile-stat-card__title {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(2, 8, 23, 0.35);
}

.page-profilim .profile-stat-card__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 12px var(--profile-glow-cyan);
}

.page-profilim .profile-stat-card__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.82);
}

.page-profilim .profile-stat-card__badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
  box-shadow: 0 4px 16px rgba(2, 8, 23, 0.35);
}

.page-profilim .profile-stat-card--placeholder {
  opacity: 1;
  pointer-events: auto;
  user-select: text;
  border-style: dashed;
  border-width: 1.5px;
  background: linear-gradient(
    155deg,
    rgba(15, 28, 49, 0.55) 0%,
    rgba(8, 16, 30, 0.42) 100%
  );
}

.page-profilim #profile-account-status-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(var(--profile-accent-gold-rgb), 0.38);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(var(--profile-accent-gold-rgb), 0.14),
    0 0 24px rgba(var(--profile-accent-cyan-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-profilim #profile-account-status-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--profile-accent-gold-rgb), 0.95), rgba(var(--profile-accent-cyan-rgb), 0.75), transparent 88%);
  box-shadow: 0 0 20px rgba(var(--profile-accent-gold-rgb), 0.35);
  pointer-events: none;
  z-index: 1;
}

.page-profilim .profile-account-status-card .profile-stat-card__title::before {
  background: linear-gradient(180deg, #fbbf24, #22d3ee);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.page-profilim .profile-account-status-card.profile-stat-card--live {
  border-style: solid;
  padding-bottom: 16px;
}

.page-profilim .profile-account-status-payment .profile-stat-card__loading {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.95);
}

.page-profilim .profile-payment-panel {
  margin-top: 2px;
  padding: 14px 14px 12px;
  border-radius: calc(var(--profile-panel-radius) - 4px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    165deg,
    rgba(14, 26, 48, 0.72) 0%,
    rgba(8, 16, 32, 0.58) 55%,
    rgba(12, 22, 42, 0.65) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 28px rgba(2, 8, 23, 0.22),
    0 8px 24px rgba(2, 8, 23, 0.28);
}

.page-profilim .profile-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.page-profilim .profile-payment-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 72px;
  padding: 11px 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(
    160deg,
    rgba(12, 22, 42, 0.82) 0%,
    rgba(8, 16, 32, 0.55) 100%
  );
  box-shadow:
    0 4px 14px rgba(2, 8, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-payment-metric:nth-child(1) {
  border-color: rgba(251, 191, 36, 0.22);
}

.page-profilim .profile-payment-metric:nth-child(2) {
  border-color: rgba(52, 211, 153, 0.22);
}

.page-profilim .profile-payment-metric:nth-child(4) {
  border-color: rgba(34, 211, 238, 0.22);
}

.page-profilim .profile-payment-metric--remaining {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(
    155deg,
    rgba(120, 53, 15, 0.28) 0%,
    rgba(12, 22, 42, 0.78) 42%,
    rgba(127, 29, 29, 0.22) 100%
  );
  box-shadow:
    0 6px 20px rgba(2, 8, 23, 0.32),
    0 0 28px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-profilim .profile-payment-metric__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.3;
}

.page-profilim .profile-payment-metric__value {
  font-size: clamp(0.98rem, 2.2vw, 1.14rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fde68a;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.18);
  word-break: break-word;
}

.page-profilim .profile-payment-metric--remaining .profile-payment-metric__value,
.page-profilim .profile-payment-metric__value--remaining {
  font-size: clamp(1.12rem, 2.6vw, 1.32rem);
  color: #fecaca;
  text-shadow:
    0 0 20px rgba(248, 113, 113, 0.28),
    0 0 12px rgba(251, 191, 36, 0.15);
}

.page-profilim .profile-payment-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.page-profilim .profile-payment-status {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
}

.page-profilim #profile-payment-installment-active,
.page-profilim .profile-payment-status--active {
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(
    135deg,
    rgba(120, 53, 15, 0.45) 0%,
    rgba(52, 211, 153, 0.12) 100%
  );
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-profilim #profile-payment-installment-inactive,
.page-profilim .profile-payment-status--inactive {
  color: rgba(203, 213, 225, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

.page-profilim #profile-payment-note,
.page-profilim .profile-payment-note {
  margin: 0;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  border: none;
  border-left: 3px solid rgba(34, 211, 238, 0.45);
  background: rgba(8, 16, 32, 0.42);
  font-size: 0.83rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
  word-break: break-word;
}

.page-profilim #profile-payment-empty,
.page-profilim .profile-payment-empty {
  margin-top: 8px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(251, 191, 36, 0.28);
  background: linear-gradient(
    160deg,
    rgba(15, 28, 49, 0.5) 0%,
    rgba(8, 16, 30, 0.38) 100%
  );
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-messages-card {
  border: 1.5px solid rgba(var(--profile-accent-cyan-rgb), 0.32);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 32px rgba(var(--profile-accent-cyan-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-messages-card .profile-stat-card__title::before {
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}

.page-profilim .profile-messages-card.profile-stat-card--live {
  border-color: rgba(34, 211, 238, 0.38);
  background: linear-gradient(
    165deg,
    rgba(12, 24, 48, 0.92) 0%,
    rgba(8, 16, 32, 0.88) 55%,
    rgba(6, 12, 28, 0.94) 100%
  );
  box-shadow:
    var(--profile-shadow-deep),
    0 0 36px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-profilim .profile-messages-institution {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 4px;
}

.page-profilim .profile-messages-list {
  list-style: none;
  margin: 0;
  padding: 4px 2px 2px;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(320px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.page-profilim .profile-messages-list::-webkit-scrollbar {
  width: 6px;
}

.page-profilim .profile-messages-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.35);
}

.page-profilim .profile-messages-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    135deg,
    rgba(12, 22, 42, 0.78) 0%,
    rgba(8, 16, 32, 0.62) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.page-profilim .profile-messages-item--clickable {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-profilim .profile-messages-item--clickable:hover,
.page-profilim .profile-messages-item--clickable:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 22px rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.page-profilim .profile-messages-item--clickable:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(34, 211, 238, 0.35),
    0 0 22px rgba(34, 211, 238, 0.12);
}

.page-profilim .profile-messages-item--unread {
  border-left: 3px solid #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(
    135deg,
    rgba(8, 47, 73, 0.55) 0%,
    rgba(12, 22, 42, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(34, 211, 238, 0.08);
}

.page-profilim .profile-messages-item__subject {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.page-profilim .profile-messages-item__meta {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.92);
  word-break: break-word;
}

.page-profilim .profile-messages-item__snippet {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.9);
  word-break: break-word;
}

.page-profilim .profile-messages-item__action {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #67e8f9;
}

.page-profilim .profile-message-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.page-profilim .profile-message-modal[hidden] {
  display: none !important;
}

.page-profilim .profile-message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-profilim .profile-message-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: linear-gradient(155deg, rgba(10, 18, 38, 0.97), rgba(12, 10, 32, 0.95));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(34, 211, 238, 0.12),
    0 0 64px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 18px 18px 16px;
  user-select: text;
}

.page-profilim .profile-message-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-profilim .profile-message-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.page-profilim .profile-message-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.page-profilim .profile-message-modal__meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.page-profilim .profile-message-modal__subject {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  word-break: break-word;
}

.page-profilim .profile-message-modal__body {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 10, 22, 0.55);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(240px, 34vh);
  overflow-y: auto;
}

.page-profilim .profile-message-modal__reply-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.page-profilim .profile-message-modal__reply-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 108px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(8, 16, 32, 0.85);
  color: #f1f5f9;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.page-profilim .profile-message-modal__reply-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
}

.page-profilim .profile-message-modal__status {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.page-profilim .profile-message-modal__status--muted {
  color: #94a3b8;
}

.page-profilim .profile-message-modal__status--ok {
  color: #6ee7b7;
}

.page-profilim .profile-message-modal__status--error {
  color: #fca5a5;
}

.page-profilim .profile-message-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-profilim .profile-message-modal__send {
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.88), rgba(34, 211, 238, 0.7));
  color: #042f2e;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.22);
}

.page-profilim .profile-message-modal__send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-profilim #profile-messages-loading {
  margin: 4px 0 0;
}

.page-profilim .profile-messages-empty,
.page-profilim .profile-messages-error,
.page-profilim #profile-messages-empty,
.page-profilim #profile-messages-error {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.page-profilim .profile-messages-empty,
.page-profilim #profile-messages-empty {
  border: 1px dashed rgba(148, 163, 184, 0.24);
  background: rgba(8, 16, 32, 0.4);
  color: rgba(203, 213, 225, 0.85);
}

.page-profilim .profile-messages-error,
.page-profilim #profile-messages-error {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(69, 10, 10, 0.28);
  color: rgba(254, 202, 202, 0.92);
}

.page-profilim .profile-messages-placeholder-panel {
  margin-top: 4px;
}

.page-profilim .profile-placeholder-panel {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: rgba(8, 16, 32, 0.35);
}

.page-profilim .profile-placeholder-panel__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.82);
  text-align: center;
}

.page-profilim .profile-stat-card--lessons {
  border: 1.5px solid rgba(var(--profile-accent-green-rgb), 0.34);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(var(--profile-accent-green-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-stat-card--lessons .profile-stat-card__title::before {
  background: linear-gradient(180deg, #34d399, #22d3ee);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.page-profilim .profile-lesson-count {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.22);
  font-size: 0.88rem;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.02em;
}

.page-profilim .profile-lesson-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(320px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.page-profilim .profile-lesson-summary::-webkit-scrollbar {
  width: 6px;
}

.page-profilim .profile-lesson-summary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--profile-accent-green-rgb), 0.35);
}

.page-profilim .profile-lesson-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(
    135deg,
    rgba(12, 22, 42, 0.78) 0%,
    rgba(8, 16, 32, 0.58) 100%
  );
  box-shadow:
    0 6px 20px rgba(2, 8, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-lesson-summary__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.35;
}

.page-profilim .profile-lesson-summary__count-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  text-align: right;
}

.page-profilim .profile-lesson-summary__count-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  white-space: nowrap;
}

.page-profilim .profile-lesson-summary__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.page-profilim .profile-lesson-summary__count--filled {
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.55), rgba(8, 145, 178, 0.35));
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.22);
}

.page-profilim .profile-lesson-summary__count--empty {
  color: rgba(148, 163, 184, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.page-profilim .profile-exam-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-profilim .profile-exam-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.65);
  font-size: 0.85rem;
}

.page-profilim .profile-exam-summary__key {
  color: rgba(148, 163, 184, 0.92);
}

.page-profilim .profile-exam-summary__val {
  color: #e5e7eb;
  font-weight: 700;
  text-align: right;
}

.page-profilim .profile-lesson-recent-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.72);
}

@media (max-width: 520px) {
  .page-profilim .profile-lesson-summary__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-profilim .profile-lesson-summary__count-wrap {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.page-profilim .profile-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-profilim .profile-lesson-item {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    135deg,
    rgba(12, 22, 42, 0.72) 0%,
    rgba(8, 16, 32, 0.55) 100%
  );
  box-shadow:
    0 8px 24px rgba(2, 8, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-lesson-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #34d399, #22d3ee);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
}

.page-profilim .profile-lesson-item__title {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.35;
}

.page-profilim .profile-lesson-meta {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
}

.page-profilim .profile-lesson-item__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.page-profilim .profile-lesson-item__date {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(186, 198, 214, 0.95);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.page-profilim .profile-lesson-empty {
  margin-top: 8px;
}

.page-profilim .profile-stat-card--duel {
  border: 1.5px solid rgba(var(--profile-accent-violet-rgb), 0.36);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(var(--profile-accent-violet-rgb), 0.14),
    0 0 24px rgba(var(--profile-accent-gold-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-stat-card--duel .profile-stat-card__title::before {
  background: linear-gradient(180deg, #a78bfa, #fbbf24);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}

.page-profilim .profile-duel-scope {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.page-profilim .profile-duel-hint {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.82);
}

.page-profilim .profile-duel-points {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(139, 92, 246, 0.18));
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  color: #fde68a;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.28);
  box-shadow:
    0 8px 24px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-profilim .profile-duel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.page-profilim .profile-duel-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 72px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    160deg,
    rgba(12, 22, 42, 0.75) 0%,
    rgba(8, 16, 32, 0.52) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-profilim .profile-duel-metric:nth-child(1) {
  border-color: rgba(34, 211, 238, 0.28);
}

.page-profilim .profile-duel-metric:nth-child(2) {
  border-color: rgba(52, 211, 153, 0.28);
}

.page-profilim .profile-duel-metric:nth-child(3) {
  border-color: rgba(248, 113, 113, 0.28);
}

.page-profilim .profile-duel-metric:nth-child(4) {
  border-color: rgba(167, 139, 250, 0.28);
}

.page-profilim .profile-duel-metric__label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.95);
}

.page-profilim .profile-duel-metric__value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.page-profilim .profile-duel-meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.92);
  text-align: right;
}

.page-profilim .profile-duel-empty {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(167, 139, 250, 0.28);
  background: rgba(15, 23, 42, 0.4);
}

.page-profilim .profile-duel-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

.page-profilim .profile-duel-empty p + p {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
}

.page-profilim .profile-stat-card--live {
  opacity: 1;
  pointer-events: auto;
  user-select: text;
  padding-bottom: 18px;
  border-style: solid;
}

.page-profilim .profile-stat-card--history {
  border: 1.5px solid rgba(var(--profile-accent-cyan-rgb), 0.34);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(var(--profile-accent-cyan-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-stat-card--history .profile-stat-card__title::before {
  background: linear-gradient(180deg, #22d3ee, #3b82f6);
}

.page-profilim .profile-stat-card--metrics {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow:
    var(--profile-shadow-deep),
    0 0 40px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-stat-card--metrics .profile-stat-card__title::before {
  background: linear-gradient(180deg, #8b5cf6, #fbbf24);
}

.page-profilim .profile-stat-card--history,
.page-profilim .profile-stat-card--metrics {
  grid-column: span 1;
}

.page-profilim .profile-stat-card__loading {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.95);
  font-style: italic;
}

.page-profilim .profile-stat-empty {
  margin: 12px 0 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: rgba(8, 16, 32, 0.35);
  text-align: center;
}

.page-profilim .profile-attempt-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-profilim .profile-attempt-item {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    135deg,
    rgba(12, 22, 42, 0.72) 0%,
    rgba(8, 16, 32, 0.55) 100%
  );
  box-shadow:
    0 8px 24px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-profilim .profile-attempt-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 14px var(--profile-glow-cyan);
}

.page-profilim .profile-attempt-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 10px 28px rgba(2, 8, 23, 0.4),
    0 0 24px rgba(34, 211, 238, 0.08);
}

.page-profilim .profile-attempt-item__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-profilim .profile-attempt-item__meta {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
  letter-spacing: 0.01em;
}

.page-profilim .profile-attempt-item__meta::before {
  content: '● ';
  color: rgba(34, 211, 238, 0.55);
  font-size: 0.55rem;
  vertical-align: middle;
}

.page-profilim .profile-attempt-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.page-profilim .profile-attempt-score {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ecfeff;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.18));
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.page-profilim .profile-attempt-item__date {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(186, 198, 214, 0.95);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.page-profilim .profile-stat-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.page-profilim .profile-sidebar-stack .profile-stat-metrics {
  grid-template-columns: 1fr;
}

.page-profilim .profile-stat-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    160deg,
    rgba(12, 22, 42, 0.75) 0%,
    rgba(8, 16, 32, 0.5) 100%
  );
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-profilim .profile-stat-metric:nth-child(1) {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.32),
    0 0 28px rgba(34, 211, 238, 0.08);
}

.page-profilim .profile-stat-metric:nth-child(2) {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.32),
    0 0 28px rgba(59, 130, 246, 0.08);
}

.page-profilim .profile-stat-metric:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.32);
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.32),
    0 0 28px rgba(251, 191, 36, 0.08);
}

.page-profilim .profile-stat-metric__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
}

.page-profilim .profile-stat-metric__value {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.page-profilim .profile-stat-metric:nth-child(1) .profile-stat-metric__value {
  color: #a5f3fc;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.page-profilim .profile-stat-metric:nth-child(2) .profile-stat-metric__value {
  color: #bfdbfe;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.page-profilim .profile-stat-metric:nth-child(3) .profile-stat-metric__value {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.page-profilim .profile-guest-cta {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--profile-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--profile-shadow-deep);
}

@media (max-width: 640px) {
  .page-profilim .profile-dl__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-profilim .profile-identity-header {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .page-profilim .profile-identity-avatar {
    width: 44px;
    height: 44px;
    background-size: 24px 24px, auto, auto;
  }

  .page-profilim .profile-identity-card .profile-card__title {
    font-size: 1rem;
  }

  .page-profilim .profile-identity-card .profile-dl__row--display {
    padding: 14px 12px;
  }

  .page-profilim .profile-identity-card .profile-dl__row--username,
  .page-profilim .profile-identity-card .profile-dl__row--email,
  .page-profilim .profile-identity-card .profile-dl__row--role {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-profilim .profile-identity-card .profile-dl__row--role #profile-role-label {
    width: 100%;
    text-align: center;
  }

  .page-profilim .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .page-profilim .profile-stat-card--history {
    grid-column: span 1;
  }

  .page-profilim .profile-stat-metrics {
    grid-template-columns: 1fr;
  }

  .page-profilim .profile-brand-kpi-metrics {
    grid-template-columns: 1fr;
  }

  .page-profilim .profile-payment-grid {
    grid-template-columns: 1fr;
  }

  .page-profilim .profile-payment-metric {
    min-height: 64px;
  }

  .page-profilim .profile-payment-panel {
    padding: 12px;
  }

  .page-profilim .profile-duel-grid {
    grid-template-columns: 1fr;
  }

  .page-profilim .profile-attempt-item__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Web Duel lobby (W1) —— */
.page-duello {
  --duel-glass-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(30, 27, 75, 0.72));
  --duel-border: rgba(148, 163, 184, 0.22);
  --duel-glow-cyan: 0 0 28px rgba(34, 211, 238, 0.18);
  --duel-glow-purple: 0 0 24px rgba(168, 85, 247, 0.16);
  --duel-glow-gold: 0 0 22px rgba(251, 191, 36, 0.14);
  --duel-panel-cyan-rgb: 34, 211, 238;
  --duel-panel-violet-rgb: 139, 92, 246;
  --duel-panel-red-rgb: 239, 68, 68;
  --duel-panel-blue-rgb: 59, 130, 246;
}

.page-duello .duel-hub-main {
  position: relative;
  isolation: isolate;
  padding-bottom: 48px;
}

.page-duello .duel-hub-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.84) 0%, rgba(2, 8, 23, 0.74) 100%),
    radial-gradient(circle at 68% 16%, rgba(var(--duel-panel-violet-rgb), 0.11), transparent 42%),
    radial-gradient(circle at 24% 78%, rgba(var(--duel-panel-red-rgb), 0.07), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(var(--duel-panel-blue-rgb), 0.08), transparent 38%),
    url("../page-backgrounds/duel-bg.webp");
  background-position: center, center, center, center, 58% 22%;
  background-size: cover, cover, cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.46;
}

.page-duello .duel-hub-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-duello .duel-hub-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-duello .duel-hub-hero h1 {
  background: linear-gradient(120deg, #f8fafc 0%, #a5f3fc 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(2, 8, 23, 0.65));
}

.page-duello .duel-hub-hero .exam-hub-hero__intro {
  text-shadow: 0 1px 12px rgba(2, 8, 23, 0.65);
}

.page-duello .duel-guest-cta {
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--duel-panel-cyan-rgb), 0.32);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--duel-panel-violet-rgb), 0.1), transparent 55%),
    var(--duel-glass-bg);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    var(--duel-glow-cyan),
    0 8px 26px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-duello .duel-lobby-content {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.page-duello .duel-mode-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 20px 20px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--duel-panel-cyan-rgb), 0.34);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(var(--duel-panel-violet-rgb), 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--duel-panel-blue-rgb), 0.09), transparent 50%),
    linear-gradient(158deg, rgba(10, 18, 36, 0.9) 0%, rgba(14, 12, 40, 0.84) 48%, rgba(8, 10, 28, 0.88) 100%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    var(--duel-glow-gold),
    0 0 24px rgba(var(--duel-panel-violet-rgb), 0.1),
    0 10px 28px rgba(2, 8, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-duello .duel-mode-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.85), rgba(34, 211, 238, 0.75), rgba(168, 85, 247, 0.7));
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}

.page-duello .duel-mode-card::after {
  content: "";
  position: absolute;
  inset: -14% -8% auto auto;
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--duel-panel-red-rgb), 0.1) 0%,
    rgba(var(--duel-panel-blue-rgb), 0.12) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
}

.page-duello .duel-mode-card > * {
  position: relative;
  z-index: 1;
}

.page-duello .duel-mode-grid {
  display: grid;
  gap: 10px;
}

.page-duello .duel-mode-grid:has(#duel-mode-institution:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-duello .duel-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(145deg, rgba(8, 16, 32, 0.55), rgba(30, 27, 75, 0.42));
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.page-duello .duel-mode-btn[hidden] {
  display: none !important;
}

.page-duello .duel-mode-btn:hover {
  border-color: rgba(34, 211, 238, 0.48);
  color: #f8fafc;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.14);
}

.page-duello .duel-mode-btn--active {
  border-color: rgba(34, 211, 238, 0.65);
  color: #f8fafc;
  box-shadow: var(--duel-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.page-duello .duel-mode-btn[data-duel-mode="global"].duel-mode-btn--active,
.page-duello .duel-mode-btn[data-duel-mode="publicGlobal"].duel-mode-btn--active {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: var(--duel-glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-duello .duel-online-section {
  display: grid;
  gap: 12px;
}

.page-duello .duel-online-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-duello .duel-online-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.page-duello .duel-online-refresh-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-duello .duel-online-refresh-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.55);
}

.page-duello .duel-online-grid {
  display: grid;
  gap: 16px;
}

.page-duello .duel-online-grid--institution {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-duello .duel-online-grid--public {
  grid-template-columns: 1fr;
}

.page-duello .duel-online-card__hint {
  margin: -4px 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
}

.page-duello .duel-online-card--institution {
  box-shadow: var(--duel-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-duello .duel-online-card--global {
  box-shadow: var(--duel-glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-duello .duel-online-card--public {
  box-shadow: var(--duel-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-duello .duel-invites-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--duel-border);
  background: var(--duel-glass-bg);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: var(--duel-glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-duello .duel-invites-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.85), rgba(34, 211, 238, 0.75));
  opacity: 0.85;
}

.page-duello .duel-invites-loading,
.page-duello .duel-invites-empty,
.page-duello .duel-invites-error,
.page-duello .duel-invites-feedback {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.82);
}

.page-duello .duel-invites-error,
.page-duello .duel-invites-feedback--error {
  color: #fde68a;
}

.page-duello .duel-invites-feedback:not(.duel-invites-feedback--error) {
  color: #a5f3fc;
}

.page-duello .duel-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-duello .duel-invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, rgba(8, 16, 32, 0.55), rgba(30, 27, 75, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-duello .duel-invite-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.page-duello .duel-invite-item__name {
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.page-duello .duel-invite-item__meta {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.72);
}

.page-duello .duel-invite-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.page-duello .duel-invite-reject {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.page-duello .duel-invite-reject:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
}

.page-duello .duel-invite-reject:disabled {
  opacity: 0.6;
  cursor: wait;
}

.page-duello .duel-invite-accept-disabled {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(203, 213, 225, 0.65);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.85;
}

.page-duello .duel-online-card--mode-active {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: var(--duel-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-duello .duel-online-card--global.duel-online-card--mode-active {
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: var(--duel-glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-duello .duel-online-card__title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #e8f0fa;
  text-shadow: 0 1px 8px rgba(2, 8, 23, 0.35);
}

.page-duello .duel-status-card,
.page-duello .duel-online-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--duel-panel-cyan-rgb), 0.3);
  background:
    radial-gradient(ellipse 85% 55% at 0% 0%, rgba(var(--duel-panel-blue-rgb), 0.1), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(var(--duel-panel-violet-rgb), 0.1), transparent 50%),
    linear-gradient(158deg, rgba(10, 18, 36, 0.9) 0%, rgba(12, 16, 38, 0.84) 48%, rgba(8, 10, 28, 0.88) 100%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    var(--duel-glow-cyan),
    0 0 22px rgba(var(--duel-panel-blue-rgb), 0.1),
    0 10px 28px rgba(2, 8, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-duello .duel-status-card::before,
.page-duello .duel-online-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.85), rgba(168, 85, 247, 0.75), rgba(251, 191, 36, 0.65));
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

.page-duello .duel-online-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 36%,
    rgba(255, 255, 255, 0.05) 46%,
    rgba(var(--duel-panel-cyan-rgb), 0.09) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.48;
}

.page-duello .duel-online-card > * {
  position: relative;
  z-index: 1;
}

.page-duello .duel-card__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(2, 8, 23, 0.4);
}

.page-duello .duel-status-card__label {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #a5f3fc;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.page-duello .duel-status-card__detail {
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.5;
}

.page-duello .duel-online-empty,
.page-duello .duel-online-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(10, 18, 36, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e2e8f0;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-duello .duel-online-error {
  color: #fde68a;
}

.page-duello .duel-online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-duello .duel-online-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, rgba(8, 16, 32, 0.55), rgba(15, 23, 42, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-duello .duel-online-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.page-duello .duel-online-item__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-duello .duel-online-item__name {
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.page-duello .duel-online-item--self {
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.72), rgba(24, 16, 48, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(56, 189, 248, 0.12),
    0 0 28px rgba(168, 85, 247, 0.08);
}

.page-duello .duel-online-self-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.page-duello .duel-online-self-status {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-duello .duel-online-item__meta {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.35;
}

.page-duello .duel-online-invite-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12));
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.page-duello .duel-online-invite-btn:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.page-duello .duel-phase-note {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(203, 213, 225, 0.76);
  background: rgba(8, 16, 32, 0.34);
  line-height: 1.45;
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 900px) {
  .page-duello .duel-mode-grid:has(#duel-mode-institution:not([hidden])) {
    grid-template-columns: 1fr;
  }

  .page-duello .duel-online-grid--institution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-duello .duel-guest-cta {
    padding: 18px 16px;
  }

  .page-duello .duel-online-item {
    flex-direction: column;
    align-items: stretch;
  }

  .page-duello .duel-online-invite-btn {
    width: 100%;
    text-align: center;
  }

  .page-duello .duel-online-self-status {
    width: 100%;
    text-align: center;
  }

  .page-duello .duel-invite-item {
    flex-direction: column;
    align-items: stretch;
  }

  .page-duello .duel-invite-actions {
    width: 100%;
    flex-direction: column;
  }

  .page-duello .duel-invite-reject,
  .page-duello .duel-invite-accept-disabled {
    width: 100%;
    text-align: center;
  }
}

/* Site-wide duel invite toast (W2.5) */
.sa-duel-toast-root {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 10050;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.sa-duel-toast-root:not([hidden]) {
  pointer-events: auto;
}

.sa-duel-toast {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: linear-gradient(
    145deg,
    rgba(12, 18, 36, 0.92) 0%,
    rgba(24, 12, 48, 0.88) 55%,
    rgba(18, 28, 52, 0.9) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 215, 120, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(56, 189, 248, 0.18),
    0 0 40px rgba(168, 85, 247, 0.12);
  color: #f1f5f9;
  overflow: hidden;
}

.sa-duel-toast::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(234, 179, 8, 0.08), transparent 50%);
}

.sa-duel-toast--enter {
  animation: sa-duel-toast-in 0.35s ease-out;
}

@keyframes sa-duel-toast-in {
  from {
    opacity: 0;
    transform: translateX(1rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.sa-duel-toast-title {
  position: relative;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
}

.sa-duel-toast-meta {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(186, 230, 253, 0.85);
}

.sa-duel-toast-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sa-duel-toast-reject {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sa-duel-toast-reject:hover:not(:disabled) {
  background: rgba(153, 27, 27, 0.5);
  border-color: rgba(248, 113, 113, 0.65);
}

.sa-duel-toast-reject:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sa-duel-toast-accept-disabled {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.5);
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .sa-duel-toast-root {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
  }

  .sa-duel-toast-actions {
    flex-direction: column;
  }

  .sa-duel-toast-reject,
  .sa-duel-toast-accept,
  .sa-duel-toast-accept-disabled {
    width: 100%;
    text-align: center;
  }
}

/* Active duel accept (W3) */
.sa-duel-toast-accept,
.page-duello .duel-invite-accept {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.18));
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}

.sa-duel-toast-accept:hover:not(:disabled),
.page-duello .duel-invite-accept:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.32), rgba(59, 130, 246, 0.24));
}

.sa-duel-toast-accept:disabled,
.page-duello .duel-invite-accept:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Duel game page (W3) */
.page-duel-game .duel-game-panel {
  margin: 1.25rem 0 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(145deg, rgba(8, 16, 32, 0.72), rgba(15, 23, 42, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.page-duel-game .duel-game-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #f8fafc;
}

.page-duel-game .duel-game-panel__text {
  margin: 0 0 1rem;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.45;
}

.page-duel-game .duel-game-preparing__hint {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: rgba(186, 230, 253, 0.75);
}

.page-duel-game .duel-game-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.5rem auto 0;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: rgba(56, 189, 248, 0.85);
  animation: duel-game-spin 0.85s linear infinite;
}

@keyframes duel-game-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-duel-game .btn-duel-lobby-back {
  display: inline-flex;
  margin-top: 0.5rem;
}

.page-duel-game .btn-duel-lobby-back--ghost {
  opacity: 0.9;
}

.page-duel-game .exam-runner-option--selected {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.page-duel-game .duel-outcome-card {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(12, 28, 52, 0.65), rgba(24, 16, 48, 0.5));
  text-align: center;
}

.page-duel-game .duel-outcome-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.8);
}

.page-duel-game .duel-outcome-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
}

.page-duel-game .duel-outcome-badge--win {
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.page-duel-game .duel-outcome-badge--lose {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
}

.page-duel-game .duel-outcome-badge--draw {
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.page-duel-game .duel-outcome-card__vs {
  margin: 0 0 0.75rem;
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.9rem;
}

.page-duel-game .duel-outcome-scores {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.page-duel-game .duel-outcome-score__label {
  display: block;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.page-duel-game .duel-outcome-score__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

@media (max-width: 640px) {
  .page-duel-game .duel-outcome-scores {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* --- Ligler: Genel Düello Ligi (scoped) --- */
.page-ligler {
  --league-panel-accent-rgb: 34, 211, 238;
  --league-panel-gold-rgb: 245, 158, 11;
}

.page-ligler .ligler-main {
  position: relative;
  isolation: isolate;
}

.page-ligler .ligler-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.84) 0%, rgba(2, 8, 23, 0.74) 100%),
    radial-gradient(circle at 72% 16%, rgba(56, 189, 248, 0.09), transparent 40%),
    url("../page-backgrounds/leagues-bg.webp");
  background-position: center, center, 62% 18%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.48;
}

.page-ligler .ligler-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-ligler .ligler-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-ligler .ligler-shell {
  max-width: 920px;
}

.page-ligler .ligler-hero h1 {
  margin-bottom: 0.35rem;
  text-shadow:
    0 2px 16px rgba(2, 8, 23, 0.75),
    0 0 40px rgba(2, 8, 23, 0.45);
}

.page-ligler .ligler-hero__intro {
  max-width: 42rem;
  text-shadow: 0 1px 12px rgba(2, 8, 23, 0.65);
}

.page-ligler .ligler-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-ligler .league-my-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--league-panel-accent-rgb), 0.42);
  background:
    radial-gradient(ellipse 100% 70% at 100% 0%, rgba(var(--league-panel-accent-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--league-panel-gold-rgb), 0.09), transparent 50%),
    linear-gradient(158deg, rgba(10, 20, 40, 0.92) 0%, rgba(8, 14, 28, 0.86) 50%, rgba(5, 10, 22, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--league-panel-accent-rgb), 0.1) inset,
    0 0 32px rgba(var(--league-panel-accent-rgb), 0.14),
    0 12px 32px rgba(2, 8, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.page-ligler .league-my-card::before {
  content: "";
  position: absolute;
  inset: -18% -8% auto auto;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--league-panel-accent-rgb), 0.26) 0%,
    rgba(var(--league-panel-accent-rgb), 0.1) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}

.page-ligler .league-my-card > * {
  position: relative;
  z-index: 1;
}

.page-ligler .league-my-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.page-ligler .league-my-card__scope {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.page-ligler .league-my-card__points {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(120, 53, 15, 0.22);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fde68a;
  text-align: center;
}

.page-ligler .league-my-card__rank-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.page-ligler .league-my-card__rank-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
}

.page-ligler .league-my-card__rank {
  font-size: 1rem;
  font-weight: 800;
  color: #e0e7ff;
}

.page-ligler .league-my-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.page-ligler .league-my-metric {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
}

.page-ligler .league-my-metric__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.25rem;
}

.page-ligler .league-my-metric__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.page-ligler .league-my-card__empty {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

.page-ligler .league-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem 1rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--league-panel-accent-rgb), 0.38);
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(var(--league-panel-gold-rgb), 0.1), transparent 52%),
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(var(--league-panel-accent-rgb), 0.12), transparent 50%),
    linear-gradient(160deg, rgba(10, 18, 36, 0.9) 0%, rgba(8, 14, 28, 0.84) 48%, rgba(5, 10, 22, 0.88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--league-panel-accent-rgb), 0.08) inset,
    0 0 28px rgba(var(--league-panel-accent-rgb), 0.12),
    0 10px 28px rgba(2, 8, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.page-ligler .league-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 36%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(var(--league-panel-accent-rgb), 0.1) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.page-ligler .league-board > * {
  position: relative;
  z-index: 1;
}

.page-ligler .league-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-ligler .league-board__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #eaf6ff;
}

.page-ligler .league-board__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.2);
}

.page-ligler .league-board__state {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 18, 36, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-ligler .league-board__state--error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.16);
}

.page-ligler .league-board__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-ligler .league-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(145deg, rgba(12, 22, 42, 0.72), rgba(8, 16, 32, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.page-ligler .league-row--me {
  border-color: rgba(34, 197, 94, 0.48);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(12, 22, 42, 0.62) 48%);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.14),
    0 0 18px rgba(34, 197, 94, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-ligler .league-row__rank {
  flex: 0 0 2.5rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(71, 85, 105, 0.65);
}

.page-ligler .league-board__list .league-row:nth-child(1) .league-row__rank {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(217, 119, 6, 0.78));
}

.page-ligler .league-board__list .league-row:nth-child(2) .league-row__rank {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.76), rgba(148, 163, 184, 0.74));
  color: #0f172a;
}

.page-ligler .league-board__list .league-row:nth-child(3) .league-row__rank {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.82), rgba(146, 64, 14, 0.78));
}

.page-ligler .league-row__main {
  flex: 1;
  min-width: 0;
}

.page-ligler .league-row__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-ligler .league-row__sub {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: rgba(167, 180, 198, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-ligler .league-row__points {
  flex: 0 0 auto;
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  color: #fef3c7;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(146, 64, 14, 0.14);
}

.page-ligler .league-row__points small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.85);
}

@media (min-width: 720px) {
  .page-ligler .ligler-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 480px) {
  .page-ligler .league-my-card__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Pratik Bilgiler Rehberi (scoped) —— */
.page-pratik-rehber .practical-hub-main {
  position: relative;
  isolation: isolate;
}

.page-pratik-rehber .practical-hub-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.86) 0%, rgba(2, 8, 23, 0.78) 100%),
    radial-gradient(circle at 76% 14%, rgba(251, 146, 60, 0.09), transparent 42%),
    url("../page-backgrounds/practical-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.44;
}

.page-pratik-rehber .practical-hub-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-pratik-rehber .practical-hub-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-pratik-rehber .practical-hub-hero__note {
  max-width: 42rem;
}

.page-pratik-rehber .practical-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card {
  --hub-card-accent-rgb: 251, 146, 60;
  --hub-card-accent: rgba(var(--hub-card-accent-rgb), 1);
  --hub-card-glow: rgba(var(--hub-card-accent-rgb), 0.38);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 184px;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--hub-card-accent-rgb), 0.55);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.22), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.08), transparent 48%),
    linear-gradient(158deg, rgba(12, 24, 46, 0.94) 0%, rgba(8, 16, 32, 0.88) 48%, rgba(5, 10, 22, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.12) inset,
    0 0 36px rgba(var(--hub-card-accent-rgb), 0.22),
    0 10px 32px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--hub-card-accent-rgb), 0.42) 0%,
    rgba(var(--hub-card-accent-rgb), 0.14) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(var(--hub-card-accent-rgb), 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.24s ease;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card--orange {
  --hub-card-accent-rgb: 251, 146, 60;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card--cyan {
  --hub-card-accent-rgb: 34, 211, 238;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card--clickable {
  cursor: pointer;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card--clickable:hover,
.page-pratik-rehber .practical-hub-grid .practical-category-card--clickable:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(var(--hub-card-accent-rgb), 0.78);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.32), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.12), transparent 48%),
    linear-gradient(158deg, rgba(14, 28, 52, 0.96) 0%, rgba(10, 20, 38, 0.9) 48%, rgba(6, 12, 26, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.2) inset,
    0 0 52px rgba(var(--hub-card-accent-rgb), 0.42),
    0 16px 44px rgba(2, 8, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.page-pratik-rehber .practical-hub-grid .practical-category-card--clickable:hover::after,
.page-pratik-rehber .practical-hub-grid .practical-category-card--clickable:focus-visible::after {
  opacity: 0.88;
}

.page-pratik-rehber .practical-hub-grid .practical-category-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
  text-shadow:
    0 0 22px rgba(var(--hub-card-accent-rgb), 0.55),
    0 0 8px rgba(var(--hub-card-accent-rgb), 0.35),
    0 1px 2px rgba(0, 0, 0, 0.65);
}

.page-pratik-rehber .practical-hub-grid .practical-category-card__desc {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.52;
  color: rgba(236, 242, 255, 0.9);
}

.page-pratik-rehber .practical-hub-grid .practical-category-card__badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--hub-card-accent-rgb), 0.52);
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.88), rgba(6, 12, 26, 0.92));
  color: #f1f5f9;
  box-shadow:
    0 0 18px rgba(var(--hub-card-accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-pratik-rehber .practical-hub-grid .practical-category-card__badge--active {
  border-color: rgba(52, 211, 153, 0.65);
  color: #a7f3d0;
  background: linear-gradient(180deg, rgba(8, 52, 42, 0.88), rgba(4, 36, 30, 0.92));
  box-shadow:
    0 0 22px rgba(52, 211, 153, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.page-pratik-rehber .practical-hub-grid .practical-category-card__badge--guest {
  border-color: rgba(251, 191, 36, 0.58);
  color: #fef08a;
  background: linear-gradient(180deg, rgba(68, 38, 8, 0.88), rgba(48, 28, 6, 0.92));
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-pratik-rehber .practical-unit-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 52rem;
}

.page-pratik-rehber .practical-sign-group-toolbar {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  max-width: 52rem;
}

.page-pratik-rehber .practical-sign-group-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-pratik-rehber .practical-sign-group-back:hover,
.page-pratik-rehber .practical-sign-group-back:focus-visible {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.page-pratik-rehber .practical-sign-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 920px;
  margin-top: 26px;
}

.page-pratik-rehber .practical-sign-group-card {
  --sign-card-accent-rgb: 34, 211, 238;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--sign-card-accent-rgb), 0.55);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--sign-card-accent-rgb), 0.22), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--sign-card-accent-rgb), 0.08), transparent 48%),
    linear-gradient(158deg, rgba(12, 24, 46, 0.94) 0%, rgba(8, 16, 32, 0.88) 48%, rgba(5, 10, 22, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--sign-card-accent-rgb), 0.12) inset,
    0 0 36px rgba(var(--sign-card-accent-rgb), 0.22),
    0 10px 32px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.page-pratik-rehber .practical-sign-group-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--sign-card-accent-rgb), 0.42) 0%,
    rgba(var(--sign-card-accent-rgb), 0.14) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.page-pratik-rehber .practical-sign-group-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(var(--sign-card-accent-rgb), 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.24s ease;
}

.page-pratik-rehber .practical-sign-group-card:hover,
.page-pratik-rehber .practical-sign-group-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(var(--sign-card-accent-rgb), 0.78);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--sign-card-accent-rgb), 0.32), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--sign-card-accent-rgb), 0.12), transparent 48%),
    linear-gradient(158deg, rgba(14, 28, 52, 0.96) 0%, rgba(10, 20, 38, 0.9) 48%, rgba(6, 12, 26, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--sign-card-accent-rgb), 0.2) inset,
    0 0 52px rgba(var(--sign-card-accent-rgb), 0.42),
    0 16px 44px rgba(2, 8, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.page-pratik-rehber .practical-sign-group-card:hover::after,
.page-pratik-rehber .practical-sign-group-card:focus-visible::after {
  opacity: 0.88;
}

.page-pratik-rehber .practical-sign-group-card--amber {
  --sign-card-accent-rgb: 251, 191, 36;
}

.page-pratik-rehber .practical-sign-group-card--violet {
  --sign-card-accent-rgb: 167, 139, 250;
}

.page-pratik-rehber .practical-sign-group-card--cyan {
  --sign-card-accent-rgb: 34, 211, 238;
}

.page-pratik-rehber .practical-sign-group-card--orange {
  --sign-card-accent-rgb: 251, 146, 60;
}

.page-pratik-rehber .practical-sign-group-card--blue {
  --sign-card-accent-rgb: 96, 165, 250;
}

.page-pratik-rehber .practical-sign-group-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(var(--sign-card-accent-rgb), 0.55);
  background: rgba(var(--sign-card-accent-rgb), 0.12);
  box-shadow:
    0 0 18px rgba(var(--sign-card-accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 1.45rem;
  line-height: 1;
}

.page-pratik-rehber .practical-sign-group-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.page-pratik-rehber .practical-sign-group-title {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  font-weight: 900;
  line-height: 1.15;
  color: #f8fafc;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  hyphens: none;
  -webkit-hyphens: none;
  text-shadow:
    0 0 22px rgba(var(--sign-card-accent-rgb), 0.55),
    0 0 8px rgba(var(--sign-card-accent-rgb), 0.35),
    0 1px 2px rgba(0, 0, 0, 0.65);
}

.page-pratik-rehber .practical-sign-group-desc {
  display: block;
  margin: 0;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
  overflow-wrap: normal;
  word-break: normal;
}

.page-pratik-rehber .practical-sign-group-count {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--sign-card-accent-rgb), 0.5);
  background: rgba(var(--sign-card-accent-rgb), 0.12);
  color: rgba(var(--sign-card-accent-rgb), 1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow:
    0 0 14px rgba(var(--sign-card-accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-pratik-rehber .practical-sign-group-cta {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--sign-card-accent-rgb), 0.85);
  background: rgba(var(--sign-card-accent-rgb), 0.12);
  color: rgba(var(--sign-card-accent-rgb), 1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(var(--sign-card-accent-rgb), 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.page-pratik-rehber .practical-sign-group-card:hover .practical-sign-group-cta,
.page-pratik-rehber .practical-sign-group-card:focus-visible .practical-sign-group-cta {
  background: rgba(var(--sign-card-accent-rgb), 0.22);
  border-color: rgba(var(--sign-card-accent-rgb), 1);
  box-shadow: 0 0 22px rgba(var(--sign-card-accent-rgb), 0.32);
  transform: translateY(-1px);
}

.page-pratik-rehber .practical-sign-group-card--amber .practical-sign-group-cta,
.page-pratik-rehber .practical-sign-group-card--violet .practical-sign-group-cta,
.page-pratik-rehber .practical-sign-group-card--cyan .practical-sign-group-cta,
.page-pratik-rehber .practical-sign-group-card--orange .practical-sign-group-cta,
.page-pratik-rehber .practical-sign-group-card--blue .practical-sign-group-cta {
  border-color: rgba(var(--sign-card-accent-rgb), 0.85);
  background: rgba(var(--sign-card-accent-rgb), 0.12);
  color: rgba(var(--sign-card-accent-rgb), 1);
  box-shadow: 0 0 18px rgba(var(--sign-card-accent-rgb), 0.18);
}

@media (max-width: 760px) {
  .page-pratik-rehber .practical-sign-groups {
    grid-template-columns: 1fr;
  }
}

.page-pratik-rehber .practical-unit-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(30, 41, 59, 0.72) 55%,
    rgba(15, 23, 42, 0.82) 100%
  );
  box-shadow:
    0 4px 18px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.page-pratik-rehber .practical-unit-card__thumb {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(51, 65, 85, 0.55));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2px 10px rgba(2, 6, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.page-pratik-rehber .practical-unit-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-pratik-rehber .practical-unit-card__thumb--placeholder {
  color: rgba(125, 211, 252, 0.55);
  background: rgba(15, 23, 42, 0.75);
}

.page-pratik-rehber .practical-unit-card__thumb-icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.85;
}

.page-pratik-rehber .practical-unit-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 0.15rem;
}

.page-pratik-rehber .practical-unit-card__preview {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-pratik-rehber .practical-unit-card:hover,
.page-pratik-rehber .practical-unit-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.48);
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.92) 0%,
    rgba(51, 65, 85, 0.78) 100%
  );
  box-shadow:
    0 8px 26px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 0 20px rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.page-pratik-rehber .practical-unit-card__index {
  flex: 0 0 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.88));
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.page-pratik-rehber .practical-unit-card__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #f8fafc;
}

.page-pratik-rehber .practical-unit-card__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.55), rgba(37, 99, 235, 0.45));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow:
    0 2px 10px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-pratik-rehber .practical-unit-card:hover .practical-unit-card__cta,
.page-pratik-rehber .practical-unit-card:focus-visible .practical-unit-card__cta {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.65), rgba(37, 99, 235, 0.55));
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow:
    0 4px 14px rgba(34, 211, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.page-pratik-rehber .practical-reader {
  max-width: 40rem;
}

.page-pratik-rehber .practical-reader-blocks {
  margin-top: 0.75rem;
}

.page-pratik-rehber .practical-block {
  margin-bottom: 0.85rem;
}

.page-pratik-rehber .practical-block-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-pratik-rehber .practical-reader-hero {
  margin: 0.75rem auto 1rem;
  max-width: 22rem;
  padding: 1rem 1.1rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 41, 59, 0.78) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
  box-shadow:
    0 10px 32px rgba(2, 6, 23, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 28px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.page-pratik-rehber .practical-reader-hero__img {
  display: block;
  margin: 0 auto;
  max-width: min(320px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 6px 16px rgba(2, 6, 23, 0.45));
}

.page-pratik-rehber .practical-reader-hero__caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
}

.page-pratik-rehber .practical-reader-explanation {
  position: relative;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.75) 100%
  );
  box-shadow:
    0 6px 22px rgba(2, 6, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.page-pratik-rehber .practical-reader-explanation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.85) 0%,
    rgba(56, 189, 248, 0.55) 45%,
    rgba(251, 191, 36, 0.75) 100%
  );
}

.page-pratik-rehber .practical-reader-explanation__label {
  margin: 0.15rem 0 0.55rem;
  padding-left: 0.55rem;
  border-left: 3px solid rgba(251, 191, 36, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.page-pratik-rehber .practical-reader-explanation__body {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #e8eef5;
  white-space: pre-line;
}

.page-pratik-rehber .practical-reader-prev-next {
  margin-top: 1.15rem;
  max-width: 40rem;
}

.page-pratik-rehber .practical-reader-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-pratik-rehber .practical-reader-nav__btn {
  flex: 1;
  min-width: 0;
  min-height: 3.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  color: #e2e8f0;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.page-pratik-rehber .practical-reader-nav__btn--next {
  align-items: flex-end;
  text-align: right;
}

.page-pratik-rehber .practical-reader-nav__btn:hover:not(:disabled),
.page-pratik-rehber .practical-reader-nav__btn:focus-visible:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(160deg, rgba(51, 65, 85, 0.95), rgba(30, 41, 59, 0.92));
  box-shadow:
    0 4px 16px rgba(14, 165, 233, 0.18),
    0 0 0 1px rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.page-pratik-rehber .practical-reader-nav__btn:disabled {
  opacity: 0.38;
  border-color: rgba(71, 85, 105, 0.35);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.page-pratik-rehber .practical-reader-nav__dir {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.page-pratik-rehber .practical-reader-nav__title {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.page-pratik-rehber .practical-reader-nav__pos {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(203, 213, 225, 0.85);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.page-pratik-rehber .exam-hub-back__sep {
  margin: 0 0.35rem;
  color: rgba(148, 163, 184, 0.7);
}

@media (max-width: 640px) {
  .page-pratik-rehber .practical-sign-groups {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-pratik-rehber .practical-sign-group-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    padding: 18px 16px;
    column-gap: 14px;
  }

  .page-pratik-rehber .practical-sign-group-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .page-pratik-rehber .practical-sign-group-title {
    font-size: 1.05rem;
  }

  .page-pratik-rehber .practical-sign-group-cta {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .page-pratik-rehber .practical-hub-grid {
    grid-template-columns: 1fr;
  }

  .page-pratik-rehber .practical-hub-grid .practical-category-card {
    min-height: 170px;
  }

  .page-pratik-rehber .practical-unit-card {
    flex-wrap: wrap;
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .page-pratik-rehber .practical-unit-card__body {
    flex: 1 1 calc(100% - 5.5rem);
    min-width: 0;
  }

  .page-pratik-rehber .practical-unit-card__cta {
    margin-left: auto;
  }

  .page-pratik-rehber .practical-unit-card__thumb {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .page-pratik-rehber .practical-reader-hero {
    max-width: 100%;
    padding: 0.9rem 0.85rem;
  }

  .page-pratik-rehber .practical-reader-hero__img {
    max-width: min(250px, 88vw);
    max-height: 250px;
  }

  .page-pratik-rehber .practical-reader-nav {
    flex-wrap: wrap;
  }

  .page-pratik-rehber .practical-reader-nav__pos {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 0.1rem;
  }

  .page-pratik-rehber .practical-reader-nav__btn {
    min-height: 2.75rem;
  }
}

/* —— Canlı Video Dersler (Öğretmen) —— */
.page-video-dersler .teacher-video-hub-main {
  position: relative;
  isolation: isolate;
}

.page-video-dersler .teacher-video-hub-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.86) 0%, rgba(2, 8, 23, 0.78) 100%),
    radial-gradient(circle at 74% 12%, rgba(251, 191, 36, 0.09), transparent 42%),
    url("../page-backgrounds/videos-bg.webp");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.44;
}

.page-video-dersler .teacher-video-hub-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-video-dersler .teacher-video-hub-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-video-dersler .teacher-video-hub-hero__sales {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(ellipse 90% 80% at 0% 50%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(12, 28, 48, 0.92), rgba(8, 16, 32, 0.88));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.08) inset,
    0 0 22px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(205, 245, 255, 0.95);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
}

.page-video-dersler .teacher-video-hub-hero__sales::before {
  content: "✦ ";
  color: rgba(125, 211, 252, 0.85);
  font-size: 0.78em;
  font-weight: 500;
}

.page-video-dersler .teacher-video-category-guide {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 52rem;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background:
    radial-gradient(ellipse 100% 90% at 100% 0%, rgba(139, 92, 246, 0.18), transparent 52%),
    radial-gradient(ellipse 80% 70% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 50%),
    linear-gradient(148deg, rgba(12, 26, 48, 0.95), rgba(8, 14, 30, 0.92));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.1) inset,
    0 0 28px rgba(34, 211, 238, 0.18),
    0 0 22px rgba(139, 92, 246, 0.12),
    0 10px 28px rgba(2, 8, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.page-video-dersler .teacher-video-category-guide__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.95);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.page-video-dersler .teacher-video-category-guide p {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.4;
  color: #f0f9ff;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.page-video-dersler .teacher-video-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 0;
}

@media (max-width: 640px) {
  .page-video-dersler .teacher-video-hub-hero__sales {
    padding: 10px 14px;
    border-radius: 12px;
  }

  .page-video-dersler .teacher-video-category-guide {
    margin: 16px 0 18px;
    padding: 14px 15px;
    border-radius: 16px;
  }
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card {
  --hub-card-accent-rgb: 251, 191, 36;
  --hub-card-accent: rgba(var(--hub-card-accent-rgb), 1);
  --hub-card-glow: rgba(var(--hub-card-accent-rgb), 0.38);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 192px;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--hub-card-accent-rgb), 0.55);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.22), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.08), transparent 48%),
    linear-gradient(158deg, rgba(12, 24, 46, 0.94) 0%, rgba(8, 16, 32, 0.88) 48%, rgba(5, 10, 22, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.12) inset,
    0 0 36px rgba(var(--hub-card-accent-rgb), 0.22),
    0 10px 32px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--hub-card-accent-rgb), 0.42) 0%,
    rgba(var(--hub-card-accent-rgb), 0.14) 38%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(var(--hub-card-accent-rgb), 0.14) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.24s ease;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card--cyan {
  --hub-card-accent-rgb: 34, 211, 238;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card--rose {
  --hub-card-accent-rgb: 244, 114, 182;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card--green {
  --hub-card-accent-rgb: 52, 211, 153;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card--indigo {
  --hub-card-accent-rgb: 129, 140, 248;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card--gold {
  --hub-card-accent-rgb: 251, 191, 36;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card:hover,
.page-video-dersler .teacher-video-category-grid .teacher-video-category-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(var(--hub-card-accent-rgb), 0.78);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(var(--hub-card-accent-rgb), 0.32), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--hub-card-accent-rgb), 0.12), transparent 48%),
    linear-gradient(158deg, rgba(14, 28, 52, 0.96) 0%, rgba(10, 20, 38, 0.9) 48%, rgba(6, 12, 26, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--hub-card-accent-rgb), 0.2) inset,
    0 0 52px rgba(var(--hub-card-accent-rgb), 0.42),
    0 16px 44px rgba(2, 8, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card:hover::after,
.page-video-dersler .teacher-video-category-grid .teacher-video-category-card:focus-visible::after {
  opacity: 0.88;
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
  text-shadow:
    0 0 22px rgba(var(--hub-card-accent-rgb), 0.55),
    0 0 8px rgba(var(--hub-card-accent-rgb), 0.35),
    0 1px 2px rgba(0, 0, 0, 0.65);
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card__desc {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.52;
  color: rgba(236, 242, 255, 0.9);
}

.page-video-dersler .teacher-video-category-grid .teacher-video-category-card__badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--hub-card-accent-rgb), 0.58);
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.88), rgba(6, 12, 26, 0.92));
  color: #fef08a;
  box-shadow:
    0 0 20px rgba(var(--hub-card-accent-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-video-dersler .teacher-video-access-note {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #86efac;
}

.page-video-dersler .teacher-video-lock {
  margin: 1rem 0;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(160deg, rgba(69, 26, 3, 0.35), rgba(15, 23, 42, 0.88));
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

.page-video-dersler .teacher-video-lock__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fde68a;
}

.page-video-dersler .teacher-video-lock__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.92);
}

.page-video-dersler .teacher-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 52rem;
}

.page-video-dersler .teacher-video-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.72));
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.3);
}

.page-video-dersler .teacher-video-thumb {
  position: relative;
  flex: 0 0 10.5rem;
  width: 10.5rem;
  aspect-ratio: 16 / 9;
  min-height: 5.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-video-dersler .teacher-video-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-video-dersler .teacher-video-thumb__placeholder {
  font-size: 1.5rem;
  color: rgba(125, 211, 252, 0.65);
}

.page-video-dersler .teacher-video-card__body {
  flex: 1;
  min-width: 0;
}

.page-video-dersler .teacher-video-card__lesson {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 0.2rem;
}

.page-video-dersler .teacher-video-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.page-video-dersler .teacher-video-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-video-dersler .teacher-video-card__play {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(234, 179, 8, 0.45));
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.page-video-dersler .teacher-video-card__play:hover,
.page-video-dersler .teacher-video-card__play:focus-visible {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.85), rgba(251, 191, 36, 0.65));
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.28);
  outline: none;
}

.page-video-dersler .teacher-video-card__play--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(51, 65, 85, 0.65);
  color: rgba(203, 213, 225, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
}

.page-video-dersler .teacher-video-card__play--unplayable {
  opacity: 0.85;
  background: rgba(51, 65, 85, 0.75);
  color: rgba(253, 224, 71, 0.95);
  border-color: rgba(251, 191, 36, 0.35);
  cursor: help;
}

.page-video-dersler .teacher-video-card__warn {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #fcd34d;
  font-weight: 600;
}

.page-video-dersler .teacher-video-card--locked {
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(45, 35, 20, 0.45) 55%, rgba(30, 41, 59, 0.78));
}

.page-video-dersler .teacher-video-card--locked .teacher-video-thumb {
  border-color: rgba(251, 191, 36, 0.35);
}

.page-video-dersler .teacher-video-thumb__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.55);
  pointer-events: none;
}

.page-video-dersler .teacher-video-card__badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(69, 26, 3, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.45);
}

.page-video-dersler .teacher-video-card__premium-hint {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(253, 224, 71, 0.92);
}

.page-video-dersler .teacher-video-card__play--premium {
  background: rgba(51, 65, 85, 0.8);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
  cursor: pointer;
}

.page-video-dersler .teacher-video-card__play--premium:hover,
.page-video-dersler .teacher-video-card__play--premium:focus-visible {
  background: rgba(69, 26, 3, 0.55);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.2);
  outline: none;
}

.page-video-dersler .teacher-video-card--locked {
  cursor: pointer;
}

.page-video-dersler .teacher-video-upsell-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.page-video-dersler .teacher-video-upsell-modal[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.page-video-dersler .teacher-video-upsell-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.page-video-dersler .teacher-video-upsell-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(45, 35, 20, 0.55) 40%, rgba(30, 41, 59, 0.92));
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
}

.page-video-dersler .teacher-video-upsell-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}

.page-video-dersler .teacher-video-upsell-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.page-video-dersler .teacher-video-upsell-modal__benefits {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.page-video-dersler .teacher-video-upsell-modal__benefits li {
  margin-bottom: 0.35rem;
}

.page-video-dersler .teacher-video-upsell-modal__benefits li:last-child {
  margin-bottom: 0;
}

.page-video-dersler .teacher-video-upsell-modal__price {
  margin: 0.75rem 0 0.5rem !important;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  font-size: 0.9rem !important;
  font-weight: 800;
  color: #fde68a !important;
  text-align: center;
}

.page-video-dersler .teacher-video-upsell-modal__notice {
  margin: 0.65rem 0 0 !important;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  color: #bae6fd !important;
}

.page-video-dersler .teacher-video-upsell-modal__notice[hidden] {
  display: none !important;
}

.page-video-dersler .teacher-video-upsell-modal__foot {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.page-video-dersler .teacher-video-upsell-modal__btn {
  min-height: 2.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
}

.page-video-dersler .teacher-video-upsell-modal__btn--secondary {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(51, 65, 85, 0.65);
  color: #e2e8f0;
}

.page-video-dersler .teacher-video-upsell-modal__btn--secondary:hover,
.page-video-dersler .teacher-video-upsell-modal__btn--secondary:focus-visible {
  background: rgba(71, 85, 105, 0.85);
  outline: none;
}

.page-video-dersler .teacher-video-upsell-modal__btn--primary {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(234, 179, 8, 0.45));
  color: #0f172a;
  text-transform: none;
}

.page-video-dersler .teacher-video-upsell-modal__btn--primary:hover,
.page-video-dersler .teacher-video-upsell-modal__btn--primary:focus-visible {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.85), rgba(251, 191, 36, 0.65));
  outline: none;
}

@media (max-width: 480px) {
  .page-video-dersler .teacher-video-upsell-modal__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .page-video-dersler .teacher-video-upsell-modal__btn {
    width: 100%;
    text-align: center;
  }
}

.page-video-dersler .teacher-video-upsell-modal__close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.65);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.page-video-dersler .teacher-video-upsell-modal__close:hover,
.page-video-dersler .teacher-video-upsell-modal__close:focus-visible {
  background: rgba(71, 85, 105, 0.85);
  outline: none;
}

.page-video-dersler .teacher-video-upsell-modal__body {
  padding: 1rem 1.05rem 0.5rem;
}

.page-video-dersler .teacher-video-upsell-modal__body p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.page-video-dersler .teacher-video-upsell-modal__video-title {
  font-weight: 700;
  color: #f8fafc;
}

body.teacher-video-upsell-open {
  overflow: hidden;
}

.page-video-dersler .teacher-video-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.page-video-dersler .teacher-video-player-modal[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.page-video-dersler .teacher-video-player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
}

.page-video-dersler .teacher-video-player-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2rem);
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.page-video-dersler .teacher-video-player-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.page-video-dersler .teacher-video-player-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.page-video-dersler .teacher-video-player-modal__close {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.65);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.page-video-dersler .teacher-video-player-modal__close:hover,
.page-video-dersler .teacher-video-player-modal__close:focus-visible {
  background: rgba(71, 85, 105, 0.85);
  outline: none;
}

.page-video-dersler .teacher-video-player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.page-video-dersler .teacher-video-player-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-video-dersler .teacher-video-player-frame[hidden] {
  display: none;
}

.page-video-dersler .teacher-video-player-modal__error {
  margin: 0;
  padding: 1.25rem 1.15rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #fde68a;
  background: rgba(69, 26, 3, 0.35);
  border-top: 1px solid rgba(251, 191, 36, 0.28);
}

.page-video-dersler .teacher-video-player-modal__error[hidden] {
  display: none;
}

body.teacher-video-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .page-video-dersler .teacher-video-category-grid {
    grid-template-columns: 1fr;
  }

  .page-video-dersler .teacher-video-category-grid .teacher-video-category-card {
    min-height: 176px;
  }

  .page-video-dersler .teacher-video-card {
    flex-wrap: wrap;
  }

  .page-video-dersler .teacher-video-thumb {
    flex: 0 0 9rem;
    width: 9rem;
    min-height: 5rem;
  }

  .page-video-dersler .teacher-video-card__play {
    margin-left: auto;
  }
}

/* —— Forum (Phase 1 list) —— */
.page-forum {
  --forum-panel-accent-rgb: 34, 211, 238;
  --forum-panel-violet-rgb: 139, 92, 246;
}

.page-forum .forum-main {
  position: relative;
  isolation: isolate;
}

.page-forum .forum-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.84) 0%, rgba(2, 8, 23, 0.74) 100%),
    radial-gradient(circle at 68% 18%, rgba(var(--forum-panel-violet-rgb), 0.11), transparent 42%),
    url("../page-backgrounds/forum-bg.webp");
  background-position: center, center, 58% 22%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  opacity: 0.46;
}

.page-forum .forum-main > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-forum .forum-main::before {
    position: absolute;
    min-height: 100%;
  }
}

.page-forum .forum-hero h1 {
  text-shadow:
    0 2px 16px rgba(2, 8, 23, 0.75),
    0 0 40px rgba(2, 8, 23, 0.45);
}

.page-forum .forum-hero .exam-hub-hero__intro {
  text-shadow: 0 1px 12px rgba(2, 8, 23, 0.65);
}

.page-forum .forum-notice {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.page-forum .forum-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--forum-panel-violet-rgb), 0.3);
  background: linear-gradient(160deg, rgba(10, 18, 36, 0.78), rgba(8, 14, 28, 0.65));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 18px rgba(2, 8, 23, 0.28);
}

.page-forum .forum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.page-forum .forum-tab {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-forum .forum-tab:hover,
.page-forum .forum-tab:focus-visible {
  border-color: rgba(167, 139, 250, 0.65);
  outline: none;
}

.page-forum .forum-tab--active {
  background: rgba(109, 40, 217, 0.35);
  border-color: rgba(167, 139, 250, 0.75);
  color: #f8fafc;
}

.page-forum .forum-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.page-forum .forum-new-post-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(167, 139, 250, 0.22));
  color: #f0fdfa;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-forum .forum-new-post-btn:hover,
.page-forum .forum-new-post-btn:focus-visible {
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.2);
  outline: none;
}

.page-forum .forum-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.page-forum .forum-compose-modal[hidden] {
  display: none;
}

.page-forum .forum-compose-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.page-forum .forum-compose-dialog {
  position: relative;
  width: min(100%, 32rem);
  max-height: 90vh;
  overflow: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.page-forum .forum-compose-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.page-forum .forum-compose-dialog__title {
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.page-forum .forum-compose-dialog__close {
  border: none;
  background: rgba(51, 65, 85, 0.55);
  color: #e2e8f0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.page-forum .forum-compose-dialog__scope {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.page-forum .forum-form__label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.page-forum .forum-form__input,
.page-forum .forum-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.45;
}

.page-forum .forum-form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.page-forum .forum-form__input:focus,
.page-forum .forum-form__textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.page-forum .forum-form__error {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: #fca5a5;
}

.page-forum .forum-form__error[hidden] {
  display: none;
}

.page-forum .forum-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-forum .forum-form__cancel {
  background: rgba(51, 65, 85, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
}

.page-forum .web-forum-rules-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.page-forum .web-forum-rules-modal[hidden] {
  display: none !important;
}

.page-forum .web-forum-rules-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.page-forum .web-forum-rules-dialog {
  position: relative;
  width: min(100%, 28rem);
  max-height: 90vh;
  overflow: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.page-forum .web-forum-rules-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.page-forum .web-forum-rules-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #f8fafc;
}

.page-forum .web-forum-rules-dialog__close {
  flex-shrink: 0;
  border: none;
  background: rgba(51, 65, 85, 0.55);
  color: #e2e8f0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.page-forum .web-forum-rules-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-forum .web-forum-rules-list li {
  margin-bottom: 0.55rem;
}

.page-forum .web-forum-rules-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-forum .web-forum-rules-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
  cursor: pointer;
}

.page-forum .web-forum-rules-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #22d3ee;
}

body.web-forum-rules-open {
  overflow: hidden;
}

body.forum-compose-open {
  overflow: hidden;
}

.page-forum .forum-user-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--forum-user-accent, rgba(34, 211, 238, 0.55));
}

.page-forum .forum-user-accent {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.page-forum .forum-post-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-radius: 14px;
  border: 1.5px solid rgba(var(--forum-panel-violet-rgb), 0.36);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(var(--forum-panel-violet-rgb), 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--forum-panel-accent-rgb), 0.08), transparent 50%),
    linear-gradient(158deg, rgba(10, 18, 36, 0.92) 0%, rgba(12, 20, 42, 0.86) 48%, rgba(8, 14, 28, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(var(--forum-panel-accent-rgb), 0.08) inset,
    0 0 24px rgba(var(--forum-panel-violet-rgb), 0.12),
    0 6px 22px rgba(2, 8, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.page-forum .forum-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    transparent 34%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(var(--forum-panel-violet-rgb), 0.1) 50%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.page-forum .forum-post-card > * {
  position: relative;
  z-index: 1;
}

.page-forum .forum-post-card--accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--forum-user-accent, #22d3ee);
  box-shadow: 0 0 12px var(--forum-user-accent, rgba(34, 211, 238, 0.45));
  z-index: 2;
}

.page-forum .forum-post-card:hover,
.page-forum .forum-post-card:focus-visible {
  border-color: rgba(var(--forum-panel-violet-rgb), 0.58);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(var(--forum-panel-violet-rgb), 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(var(--forum-panel-accent-rgb), 0.1), transparent 50%),
    linear-gradient(158deg, rgba(14, 22, 44, 0.94) 0%, rgba(16, 24, 48, 0.88) 48%, rgba(10, 16, 32, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(var(--forum-panel-accent-rgb), 0.14) inset,
    0 0 32px rgba(var(--forum-panel-violet-rgb), 0.18),
    0 10px 28px rgba(109, 40, 217, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  outline: none;
}

.page-forum .forum-post-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.page-forum .forum-post-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(109, 40, 217, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.page-forum .forum-post-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #f8fafc;
  text-shadow: 0 1px 8px rgba(2, 8, 23, 0.35);
}

.page-forum .forum-post-card__preview {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d1d9e6;
}

.page-forum .forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: #a8b4c7;
}

.page-forum .forum-post-meta__author {
  font-weight: 600;
}

.page-forum .forum-post-meta__date {
  font-size: 0.78rem;
  color: #94a3b8;
}

.page-forum .forum-post-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.82rem;
  color: #94a3b8;
}

.page-forum .forum-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #fda4af;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.page-forum .forum-like-btn:hover,
.page-forum .forum-like-btn:focus-visible {
  border-color: rgba(244, 114, 182, 0.65);
  background: rgba(76, 29, 149, 0.35);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.2);
  outline: none;
}

.page-forum .forum-like-btn--active {
  border-color: rgba(251, 113, 133, 0.75);
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.35), rgba(109, 40, 217, 0.28));
  color: #fecdd3;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.25);
}

.page-forum .forum-like-btn__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.page-forum .forum-like-btn__count {
  min-width: 1.25rem;
  text-align: center;
}

.page-forum .forum-post-counts__comments {
  color: #94a3b8;
}

.page-forum .forum-mode-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.12);
}

.page-forum .forum-detail-card {
  position: relative;
  padding: 1.2rem 1.3rem 1.25rem 1.45rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(49, 46, 129, 0.42));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-forum .forum-detail-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--forum-user-accent, #22d3ee);
  box-shadow: 0 0 14px var(--forum-user-accent, rgba(34, 211, 238, 0.5));
}

.page-forum .forum-detail-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.page-forum .forum-detail-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #f8fafc;
}

.page-forum .forum-detail-card__content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: normal;
  word-break: break-word;
}

.page-forum .forum-detail-card__meta {
  margin-top: 0.85rem;
}

.page-forum .forum-detail-card__counts {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.page-forum .forum-comments-section__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: #e2e8f0;
}

.page-forum .forum-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.page-forum .forum-comment-card {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.62), rgba(30, 27, 75, 0.32));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.page-forum .forum-comment-card--accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--forum-user-accent, #67e8f9);
  box-shadow: 0 0 10px var(--forum-user-accent, rgba(103, 232, 249, 0.4));
}

.page-forum .forum-comment-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
}

.page-forum .forum-comment-card__author {
  font-weight: 700;
  font-size: 0.86rem;
}

.page-forum .forum-comment-card__date {
  font-size: 0.76rem;
  color: #94a3b8;
}

.page-forum .forum-comment-card__content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.page-forum .forum-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.page-forum .forum-comment-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.page-forum .forum-comment-reaction-btn:hover,
.page-forum .forum-comment-reaction-btn:focus-visible {
  outline: none;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(30, 27, 75, 0.45);
}

.page-forum .forum-comment-reaction-btn--like-active {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.15));
  color: #a7f3d0;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
}

.page-forum .forum-comment-reaction-btn--dislike-active {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.25), rgba(239, 68, 68, 0.12));
  color: #fde68a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.18);
}

.page-forum .forum-comment-like-count,
.page-forum .forum-comment-dislike-count {
  min-width: 0.85rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.page-forum .forum-comment-reply-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-forum .forum-comment-reply-btn:hover,
.page-forum .forum-comment-reply-btn:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(30, 27, 75, 0.5);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.page-forum .forum-reply-target-preview {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(30, 27, 75, 0.4));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-forum .forum-reply-target-preview[hidden] {
  display: none;
}

.page-forum .forum-reply-target-preview__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.page-forum .forum-reply-target-preview__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #67e8f9;
}

.page-forum .forum-reply-target-preview__clear {
  border: none;
  background: rgba(51, 65, 85, 0.55);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.page-forum .forum-reply-target-preview__clear:hover,
.page-forum .forum-reply-target-preview__clear:focus-visible {
  outline: none;
  background: rgba(71, 85, 105, 0.75);
}

.page-forum .forum-reply-target-preview__author {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
}

.page-forum .forum-reply-target-preview__content {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-forum .forum-comment-quote {
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.6rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-forum .forum-comment-quote__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.2rem;
}

.page-forum .forum-comment-quote__author {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.15rem;
}

.page-forum .forum-comment-quote__content {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-forum .forum-reply-list {
  margin-top: 0.65rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-forum .forum-reply-card {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-forum .forum-reply-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--forum-user-accent, #67e8f9);
  box-shadow: 0 0 8px var(--forum-user-accent, rgba(103, 232, 249, 0.35));
}

.page-forum .forum-reply-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.3rem;
}

.page-forum .forum-reply-author {
  font-weight: 700;
  font-size: 0.8rem;
}

.page-forum .forum-reply-content {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.page-forum .forum-comment-form {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(30, 27, 75, 0.38));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-forum .forum-comment-form:focus-within {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12), 0 8px 28px rgba(109, 40, 217, 0.12);
}

.page-forum .forum-thread-actions {
  margin-top: 0.75rem;
}

.page-forum .forum-guest {
  margin-top: 0.5rem;
}

.page-forum .forum-empty {
  margin: 0.5rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(10, 18, 36, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .page-forum .forum-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-forum .forum-new-post-btn {
    width: 100%;
    text-align: center;
  }
}

/* =============================================================================
   PHASE 1 — Public web mobile foundation (source-order wins over earlier MQs)
   Bands: desktop ≥901 | tablet 721–900 | mobile 401–720 | narrow ≤400
   Does not activate dead hamburger (#nav-toggle / #nav-main).
   ============================================================================= */

@media (max-width: 900px) {
  :root {
    --page-pad: 20px;
  }

  .header-inner,
  .page-landing .header-inner--public,
  .page-landing .header-public-actions,
  .page-landing .header-public-stack,
  .page-landing .header-landing-brand,
  .content-module-grid,
  .content-module-grid > *,
  .content-module-card {
    min-width: 0;
  }

  /* Neutralize desktop max-content CTA paths on tablet+mobile */
  .page-landing .header-public-actions--left {
    min-width: 0;
  }

  .page-landing .header-public-stack {
    width: 100%;
    max-width: 100%;
  }

  .btn-public-course {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .btn-public-login,
  .btn-public-register {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .content-module-grid,
  body.page-landing .content-module-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tablet bridge (721–900): keep guest visual order after course moved to right wrapper */
@media (max-width: 900px) and (min-width: 721px) {
  .page-landing .header-inner--public {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: stretch;
  }

  .page-landing .header-public-actions--left,
  .page-landing .header-public-actions--right,
  .page-landing .header-public-stack {
    display: contents;
  }

  .page-landing .header-landing-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .page-landing .btn-public-login {
    grid-column: 1;
    grid-row: 2;
  }

  .page-landing .btn-public-register {
    grid-column: 2;
    grid-row: 2;
  }

  .page-landing .btn-public-course {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .page-landing .btn-public-greeting {
    grid-column: 1;
    grid-row: 2;
  }

  .page-landing .btn-public-logout.btn-public-register,
  .page-landing #public-header-logout {
    grid-column: 2;
    grid-row: 2;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-register,
  .page-landing .btn-public-logout.btn-public-register,
  .page-landing .btn-public-greeting,
  .page-landing .btn-public-course {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 16px;
  }

  html {
    scroll-padding-top: 120px;
  }

  /* —— Public sticky header —— */
  .page-landing .header-inner--landing,
  .page-landing .header-inner--public {
    padding: 12px 0;
    gap: 10px 12px;
  }

  .page-landing .header-inner--public {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
  }

  .page-landing .header-landing-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
  }

  .page-landing .header-public-actions--left {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .page-landing .header-public-actions--right {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .page-landing .header-public-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
  }

  .page-landing .header-public-stack--user {
    align-items: stretch;
  }

  .page-landing .brand--lockup {
    gap: 10px;
    max-width: 100%;
  }

  .page-landing .brand-logo-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .page-landing .brand-name {
    font-size: clamp(0.95rem, 4.2vw, 1.08rem);
  }

  .page-landing .brand-tagline {
    font-size: 0.58rem;
  }

  .btn-public-login,
  .btn-public-register,
  .btn-public-logout.btn-public-register,
  .btn-public-greeting {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: var(--touch-min);
    padding: 10px 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-public-greeting {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .btn-public-course {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--touch-min);
    align-self: stretch;
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: normal;
  }

  .btn-public-course__text {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* —— Homepage hero —— */
  body.page-landing .hero,
  body.page-landing .hero--premium,
  body.page-landing .hero--premium.hero--compact {
    padding: 20px 0 16px;
    text-align: center;
  }

  body.page-landing .hero-inner,
  body.page-landing .hero--premium .hero-inner,
  body.page-landing .hero-inner--product {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  body.page-landing .hero--compact h1,
  body.page-landing .hero--premium.hero--compact h1 {
    margin: 0 0 10px;
    font-size: clamp(1.28rem, 5.6vw, 1.65rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.page-landing .hero-slogan {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    margin-bottom: 10px;
  }

  body.page-landing .hero-tagline {
    font-size: clamp(0.8rem, 3.2vw, 0.9rem);
    line-height: 1.45;
  }

  body.page-landing .hero-cta,
  body.page-landing .hero-cta--balanced {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }

  body.page-landing .hero-cta .btn,
  body.page-landing .hero-cta .btn-hero,
  body.page-landing .hero-cta--balanced .btn-hero-equal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--touch-min);
    justify-content: center;
    white-space: normal;
  }

  body.page-landing .section-modules,
  body.page-landing .section-compact.section-modules {
    padding: 24px 0 28px;
  }

  body.page-landing .section-heading {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
    margin-bottom: 14px;
  }

  /* —— Homepage / shared module grid —— */
  .content-module-grid,
  body.page-landing .content-module-grid,
  .page-app .content-module-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .content-module-card,
  body.page-landing .content-module-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 14px 16px;
    gap: 12px;
    box-sizing: border-box;
  }

  .content-module-card .module-card-visual,
  .content-module-card .module-card-body,
  .content-module-card .module-card-title,
  .content-module-card p {
    min-width: 0;
    max-width: 100%;
  }

  .content-module-card .module-card-title,
  .content-module-card h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(0.98rem, 3.8vw, 1.12rem);
    line-height: 1.25;
  }

  .content-module-card p {
    font-size: clamp(0.84rem, 3.2vw, 0.92rem);
    line-height: 1.45;
  }

  .content-module-card img,
  .content-module-card svg,
  .content-module-card .module-card-emoji {
    max-width: 100%;
  }

  /* Shared public CTA safety (header / homepage surfaces) */
  .page-landing .btn,
  .page-landing .btn-public-login,
  .page-landing .btn-public-register,
  .page-landing .btn-public-course {
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-landing .site-footer .footer-inner {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  :root {
    --page-pad: 12px;
  }

  .page-landing .brand-logo-img {
    width: 64px;
    height: 64px;
  }

  .btn-public-login,
  .btn-public-register,
  .btn-public-course,
  .btn-public-greeting {
    font-size: 0.8rem;
    padding: 10px;
  }

  body.page-landing .hero--compact h1,
  body.page-landing .hero--premium.hero--compact h1 {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
  }

  .content-module-card,
  body.page-landing .content-module-card {
    padding: 12px;
  }
}

/* Desktop preservation — Phase 1 mobile rules must not alter ≥901 */
@media (min-width: 901px) {
  :root {
    --page-pad: 24px;
  }

  .page-landing .brand-logo-img {
    width: 110px;
    height: 110px;
  }

  .page-landing .header-public-stack {
    width: max-content;
    max-width: 100%;
  }

  .btn-public-course {
    width: max-content;
  }

  .content-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =============================================================================
   CORRECTIVE — Public homepage DESKTOP header (≥901)
   Left: Üye Girişi. Right: Kayıt Ol + course button (shared right edge).
   Warm premium course frame. Mobile ≤900 handled separately.
   ============================================================================= */
@media (min-width: 901px) {
  .page-landing .header-inner--landing.header-inner--public {
    align-items: stretch;
    column-gap: 18px;
    row-gap: 0;
    padding: 14px 0 12px;
    min-height: 0;
  }

  .page-landing .header-landing-brand {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }

  .page-landing .header-public-actions--left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  /* Right guest stack: Kayıt Ol + course, shared right edge */
  .page-landing .header-public-actions--right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    max-width: 100%;
  }

  .page-landing .header-public-actions--right[data-public-header="guest"] {
    gap: 8px;
  }

  .page-landing .header-public-stack:not(.header-public-stack--user) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-height: 0;
    gap: 0;
  }

  .page-landing .header-public-stack--user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-register,
  .page-landing .btn-public-greeting,
  .page-landing .btn-public-logout.btn-public-register {
    box-sizing: border-box;
    min-height: 42px;
    height: 42px;
    padding: 0 18px;
    font-size: 0.82rem;
    line-height: 1;
    margin: 0;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-greeting {
    align-self: flex-start;
  }

  .page-landing .btn-public-register,
  .page-landing .btn-public-logout.btn-public-register {
    align-self: flex-end;
  }

  .page-landing .btn-public-greeting {
    max-width: min(240px, 28vw);
    height: auto;
    min-height: 42px;
    padding: 10px 16px;
    line-height: 1.2;
  }

  /* Course button — under Kayıt Ol, right-aligned, warm premium frame */
  .page-landing .btn-public-course {
    align-self: flex-end;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    width: clamp(250px, 20.5vw, 320px);
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    border-radius: 11px;
    border: 1px solid rgba(251, 146, 60, 0.88);
    overflow: visible;
    box-sizing: border-box;
    color: rgba(255, 247, 237, 0.98);
    background: linear-gradient(
      165deg,
      rgba(28, 16, 12, 0.96) 0%,
      rgba(22, 14, 12, 0.92) 48%,
      rgba(14, 10, 12, 0.96) 100%
    );
    box-shadow:
      0 0 0 1px rgba(248, 113, 113, 0.22),
      0 0 16px rgba(249, 115, 22, 0.32),
      0 0 30px rgba(239, 68, 68, 0.16),
      0 4px 16px rgba(2, 8, 23, 0.38),
      inset 0 1px 0 rgba(255, 228, 198, 0.14),
      inset 0 -1px 0 rgba(127, 29, 29, 0.28);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
  }

  .page-landing .btn-public-course:hover {
    border-color: rgba(251, 191, 36, 0.95);
    color: #fff7ed;
    box-shadow:
      0 0 0 1px rgba(251, 146, 60, 0.35),
      0 0 20px rgba(249, 115, 22, 0.4),
      0 0 36px rgba(239, 68, 68, 0.2),
      0 6px 18px rgba(2, 8, 23, 0.4),
      inset 0 1px 0 rgba(255, 237, 213, 0.18),
      inset 0 -1px 0 rgba(127, 29, 29, 0.22);
    transform: translateY(-1px);
  }

  .page-landing .btn-public-course__text {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    font-size: inherit;
    gap: 0.12em 0.28em;
    padding-inline: 1px;
    justify-content: center;
  }

  /* Premium brand title */
  .page-landing .brand--lockup {
    gap: 16px;
    align-items: center;
  }

  .page-landing .brand-name {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.22em;
    font-size: clamp(1.45rem, 2.1vw, 1.95rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.12;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
    filter: none;
  }

  .page-landing .brand-name__surucu {
    color: #f4fbff;
    letter-spacing: 0.02em;
    text-shadow:
      0 0 18px rgba(125, 211, 252, 0.35),
      0 1px 0 rgba(8, 16, 30, 0.65);
  }

  .page-landing .brand-name__akademisi {
    background: linear-gradient(115deg, #7dd3fc 0%, #22d3ee 42%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.015em;
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.28));
  }

  .page-landing .brand--lockup:hover .brand-name {
    color: inherit;
  }

  .page-landing .brand--lockup:hover .brand-name__surucu {
    color: #ecfeff;
    text-shadow:
      0 0 22px rgba(34, 211, 238, 0.45),
      0 1px 0 rgba(8, 16, 30, 0.7);
  }

  .page-landing .brand--lockup:hover .brand-name__akademisi {
    filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.38));
  }

  .page-landing .brand-tagline {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(203, 213, 225, 0.82);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
  }
}

/* =============================================================================
   CORRECTIVE — Public homepage mobile header button layout only (≤720 / ≤400)
   Guest: [Üye Girişi][Kayıt Ol] / [Sürücü Kursları…] spanning full width
   User:  [Merhaba…][Çıkış] compact equal row under brand
   Desktop ≥901 unchanged. Hamburger untouched.
   ============================================================================= */

@media (max-width: 720px) {
  .page-landing .header-inner--public {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 9px;
    row-gap: 8px;
    align-items: stretch;
    padding: 10px 0;
  }

  /* Flatten wrappers so buttons can share one grid with the brand */
  .page-landing .header-public-actions--left,
  .page-landing .header-public-actions--right,
  .page-landing .header-public-stack {
    display: contents;
  }

  /* [hidden] keeps guest/user shells out of the grid (see [data-public-header][hidden]) */

  .page-landing .header-landing-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    margin-bottom: 2px;
  }

  /* Guest row 1 */
  .page-landing .btn-public-login {
    grid-column: 1;
    grid-row: 2;
  }

  .page-landing .btn-public-register {
    grid-column: 2;
    grid-row: 2;
  }

  /* Guest row 2 — full width under both */
  .page-landing .btn-public-course {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  /* Logged-in row under brand */
  .page-landing .btn-public-greeting {
    grid-column: 1;
    grid-row: 2;
  }

  .page-landing .btn-public-logout.btn-public-register,
  .page-landing #public-header-logout {
    grid-column: 2;
    grid-row: 2;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-register,
  .page-landing .btn-public-logout.btn-public-register,
  .page-landing .btn-public-greeting,
  .page-landing .btn-public-course {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    height: auto;
    padding: 8px 10px;
    font-size: 0.8rem;
    line-height: 1.2;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-register {
    white-space: nowrap;
  }

  .page-landing .btn-public-greeting {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .page-landing .btn-public-greeting #public-header-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-landing .btn-public-course {
    min-height: 40px;
    padding: 8px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .page-landing .btn-public-course__text {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    justify-content: center;
    gap: 0.12em 0.28em;
  }
}

@media (max-width: 400px) {
  .page-landing .header-inner--public {
    column-gap: 8px;
    row-gap: 7px;
  }

  .page-landing .btn-public-login,
  .page-landing .btn-public-register,
  .page-landing .btn-public-logout.btn-public-register,
  .page-landing .btn-public-greeting {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .page-landing .btn-public-course {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.66rem;
    white-space: normal;
  }

  .page-landing .btn-public-course__text {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}
