/* ==========================================================================
   T.C. İçişleri Bakanlığı 2026-2027 GYS (Şef Unvanı) Çalışma Portalı
   Kurumsal & %100 Mobil Uyumlu Ana Stil Dosyası
   ========================================================================== */

:root {
  --navy-950: #091526;
  --navy-900: #0f223d;
  --navy-800: #163258;
  --navy-700: #1e4273;
  --navy-100: #e8eef6;
  --navy-50: #f3f6fb;

  --crimson-700: #991b1b;
  --crimson-600: #b91c1c;
  --crimson-500: #dc2626;
  --crimson-50: #fef2f2;
  --crimson-100: #fee2e2;

  --gold-600: #9a7128;
  --gold-500: #b48a3e;
  --gold-100: #fbf5e8;

  --emerald-700: #047857;
  --emerald-50: #ecfdf5;
  --amber-700: #b45309;
  --amber-50: #fffbeb;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 34, 61, 0.08);
  --shadow-lg: 0 10px 28px rgba(15, 34, 61, 0.12);
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: break-word;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Grid & Flex taşma önleyici temel kural */
.hero-content > *,
.two-col-section > *,
.topics-grid > *,
.scope-constraints > *,
.summary-stats-grid > *,
.nav-bar > *,
.top-bar-inner > * {
  min-width: 0;
}

/* Üst Şerit (Minimal modda gizli — mobil ve masaüstünde sade hızlı erişim için) */
.official-top-bar {
  display: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.crescent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--crimson-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.top-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--slate-300);
}

.top-bar-pill {
  background: rgba(255, 255, 255, 0.09);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  color: #fde68a;
  white-space: nowrap;
}

/* Ana Header & Navigasyon */
.site-header {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 65%, var(--navy-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(180, 138, 62, 0.12), transparent 45%);
  pointer-events: none;
}

.nav-bar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar:last-child {
  border-bottom: none;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--crimson-600), var(--crimson-700));
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.brand-emblem.brand-emblem-logo {
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}

.brand-emblem.brand-emblem-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.brand-text strong .brand-role {
  font-style: normal;
  font-weight: 600;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.84);
}

.brand-text span {
  display: block;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
}

.brand-text span.brand-domain {
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.nav-link.cta-nav {
  background: var(--crimson-600);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link.cta-nav:hover {
  background: var(--crimson-500);
}

/* Mobil Menü Tetikleyici (Varsayılan gizli, dar ekranda görünür) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero Alanı */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(180, 138, 62, 0.2);
  border: 1px solid rgba(253, 230, 138, 0.35);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  max-width: 100%;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.38rem, 2.5vw, 2.2rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s, border-color 0.18s;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--crimson-600);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
}

.btn-primary:hover {
  background: var(--crimson-500);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-soft {
  background: var(--navy-50);
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-soft:hover {
  background: var(--navy-100);
  border-color: var(--navy-700);
}

.btn-crimson-soft {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border-color: var(--crimson-100);
}

.btn-crimson-soft:hover {
  background: var(--crimson-600);
  color: var(--white);
  border-color: var(--crimson-600);
}

/* Sağ Hero Sınav Özeti Kutusu */
.exam-summary-box {
  background: rgba(9, 21, 38, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.countdown-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.countdown-badge {
  background: var(--crimson-600);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  min-width: 108px;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.summary-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}

.summary-stat strong {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: #fde68a;
  line-height: 1.15;
}

.summary-stat span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Kompakt Ana Hero Şeridi */
.hero-compact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 0 14px;
}

.hero-compact-main {
  min-width: 0;
}

.hero-compact-title {
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.hero-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
}

.compact-countdown {
  display: inline-flex;
  align-items: center;
  background: var(--crimson-600);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}

.hero-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-compact {
  padding: 8px 13px;
  min-height: 38px;
  font-size: 0.84rem;
}

/* Özet Kapsam Açılır Notu (Ana Sayfa) */
.scope-note-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--crimson-600);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.scope-note-bar summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scope-note-bar summary::-webkit-details-marker {
  display: none;
}

.scope-note-toggle {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-700);
  white-space: nowrap;
}

.scope-note-body {
  padding: 0 14px 12px;
  font-size: 0.8rem;
  color: var(--slate-600);
  border-top: 1px dashed var(--slate-200);
  padding-top: 8px;
}

/* Tek Liste (1-21) Resmî Konu Sıralaması Görünümü */
.unified-list {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.unified-list-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 118px 362px;
  gap: 10px;
  align-items: center;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-bottom: 2px solid var(--gold-500);
}

.unified-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 118px 362px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  border-left: 3px solid transparent;
  transition: background 0.14s, border-color 0.14s;
}

.unified-row:nth-child(even) {
  background: var(--slate-50);
}

.unified-row.is-studied {
  border-left-color: var(--emerald-700);
  background: #f5fbf8;
}

.unified-row:hover {
  background: var(--navy-50);
}

.unified-sn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  background: var(--navy-100);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.82rem;
}

.unified-row.is-gygk .unified-sn {
  background: var(--gold-100);
  color: var(--gold-600);
}

.unified-title-wrap {
  min-width: 0;
}

.unified-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.32;
}

.unified-title:hover {
  color: var(--navy-700);
}

.unified-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.prep-legend {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.01em;
}

.unified-mix {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
}

.unified-mix span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 6px 4px;
  border-radius: 8px;
  line-height: 1.05;
}

.unified-mix em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
}

.unified-mix b {
  margin-top: 1px;
  font-size: 0.92rem;
  font-weight: 800;
}

.q-exam {
  background: var(--navy-50);
  color: var(--navy-900);
  border: 1px solid var(--navy-100);
}

.q-bank {
  background: #fff7f7;
  color: var(--crimson-700);
  border: 1px solid #fecdd3;
}

.unified-row.is-major .q-exam {
  background: var(--crimson-50);
  border-color: var(--crimson-100);
  color: var(--crimson-700);
}

.unified-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}

html.gys-fc-enabled .unified-list-head,
html.gys-fc-enabled .unified-row {
  grid-template-columns: 44px minmax(0, 1fr) 114px minmax(476px, auto);
}

html.gys-fc-enabled .unified-actions {
  grid-template-columns: auto 1fr 1fr auto;
}

.btn-flashcards {
  background: #eef2ff;
  color: #312e81;
  border: 1px solid #c7d2fe;
  font-weight: 800;
}

.btn-flashcards:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #1e1b4b;
}

.btn-flashcards .fc-label-mob {
  display: none;
}

.btn-flashcards.is-demo {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.btn-flashcards.is-demo:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

.unified-actions .btn:not(.btn-study-toggle) {
  padding: 6px 9px;
  min-height: 36px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn.btn-study-toggle,
.btn-study-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  border-radius: 999px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

.btn.btn-study-toggle:active {
  cursor: grabbing;
}

.btn.btn-study-toggle:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn.btn-study-toggle:focus-visible .ios-switch-track {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}

.ios-switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 106px;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.btn-study-toggle:hover .ios-switch-track {
  background: #b8c4d4;
}

.ios-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.34), 0 0 0 0.5px rgba(15, 23, 42, 0.08);
  transform: translateX(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.btn-study-toggle.is-done .ios-switch-track {
  background: #34c759;
  box-shadow: inset 0 1px 2px rgba(20, 83, 45, 0.22);
}

.btn-study-toggle.is-done:hover .ios-switch-track {
  background: #28b94d;
}

.btn-study-toggle.is-done .ios-switch-thumb {
  transform: translateX(78px);
}

.ios-switch-label {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 7px 0 26px;
  color: #334155;
  white-space: nowrap;
  pointer-events: none;
  transition: padding 0.18s ease, color 0.18s ease;
}

.btn-study-toggle.is-done .ios-switch-label {
  padding: 0 26px 0 7px;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.14);
}

.topic-progress-line {
  display: block;
  font-size: 0.73rem;
  margin-top: 3px;
  font-weight: 600;
}

.topic-progress-line.has-data { color: var(--navy-700); }
.topic-progress-line.studied-only { color: var(--emerald-700); }
.topic-progress-line.muted { color: var(--slate-400); font-weight: 500; }

/* Site Geneli Çalışma Profili & İlerleme Barı */
.study-login-bar,
.study-summary-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.study-login-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.study-login-copy strong {
  display: block;
  font-size: 0.94rem;
  color: var(--navy-900);
}

.study-login-copy span {
  display: block;
  font-size: 0.79rem;
  color: var(--slate-600);
}

.study-login-inputs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 260px;
  max-width: 380px;
}

.study-name-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--slate-900);
}

.study-name-input:focus {
  outline: none;
  border-color: var(--navy-700);
}

.study-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--slate-200);
}

.study-chips-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
}

.study-chip-btn {
  border: 1px solid var(--navy-100);
  background: var(--navy-50);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.study-chip-btn:hover {
  background: var(--navy-800);
  color: var(--white);
}

.study-err-msg {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crimson-600);
}

.study-user-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.study-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.study-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
}

.study-user-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
  line-height: 1.2;
}

.study-user-badge span {
  display: block;
  font-size: 0.74rem;
  color: var(--emerald-700);
  font-weight: 600;
}

.study-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.study-stat-pill {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

.study-stat-pill span {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
}

.study-stat-pill strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-top: 1px;
}

/* Konu Sayfaları Üst Çalışma Çubuğu & Soru Bankası Profil Kutusu */
.topic-study-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--emerald-700);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.topic-study-login,
.topic-study-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 0.82rem;
}

.topic-study-login-inputs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.topic-study-login-inputs input {
  padding: 6px 10px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
}

.topic-study-info strong {
  color: var(--navy-900);
  margin-right: 8px;
}

.topic-study-info span {
  color: var(--slate-600);
}

.topic-study-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.study-stat-pill.with-ring {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-profile-box {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.quiz-profile-box strong {
  color: var(--navy-900);
}

/* Zorunlu Giriş Popup Modalı (Profil Seçilmeden Site Açılmaz) */
html.gys-gate-locked,
html.gys-gate-locked body {
  overflow: hidden !important;
  height: 100%;
}

html.gys-gate-locked body > *:not(#gys-profile-gate-modal):not(#gys-live-bar):not(#gys-topic-preview):not(#gys-survey):not(#gys-chat-dock) {
  filter: blur(10px);
  pointer-events: none !important;
  user-select: none !important;
}

.gys-input-full {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--slate-900);
}

.gys-input-full:focus {
  outline: none;
  border-color: var(--navy-700);
}

.gys-gate-notice {
  margin: 0 0 13px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
  border: 1px solid #c7daf7;
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm);
}

.gys-gate-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.775rem;
  color: var(--slate-800);
  line-height: 1.5;
}

.gys-gate-notice-list li {
  position: relative;
  padding-left: 12px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.gys-gate-notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy-700);
}

.gys-gate-notice-list strong {
  color: var(--navy-950);
}

.gys-gate-notice-list a {
  color: var(--crimson-700);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gys-gate-purchase {
  margin-top: 15px;
  padding: 13px 15px;
  background: linear-gradient(180deg, #fffdf7 0%, #fbf4e2 100%);
  border: 1px solid #e6d2a2;
  border-left: 4px solid var(--gold-600);
  border-radius: var(--radius-md);
  font-size: 0.81rem;
  color: var(--slate-800);
  line-height: 1.56;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gys-gate-purchase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.gys-gate-purchase-head strong {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: 0.01em;
}

.gys-gate-fee-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 34, 61, 0.08);
  border: 1px solid rgba(15, 34, 61, 0.14);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
}

.gys-gate-fee-pill s,
.study-summary-bar s,
.gys-preview-foot s {
  color: var(--slate-500);
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.gys-gate-fee-pill em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--crimson-700);
}

.gys-gate-fee-pill b,
.study-summary-bar .btn b,
.gys-preview-foot b {
  font-weight: 800;
}

.gys-gate-purchase-lead {
  margin: 0;
  font-size: 0.805rem;
  color: var(--slate-800);
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.gys-gate-purchase a {
  color: var(--crimson-700);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gys-gate-purchase-note {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(180, 145, 70, 0.3);
  font-size: 0.775rem;
  color: var(--slate-700);
  line-height: 1.56;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.gys-gate-purchase-meta {
  margin: 9px 0 0;
  padding: 9px 0 0;
  border-top: 1px dashed rgba(180, 145, 70, 0.38);
  list-style: none;
  font-size: 0.765rem;
  color: var(--slate-800);
  line-height: 1.52;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gys-gate-purchase-meta li {
  position: relative;
  padding-left: 13px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.gys-gate-purchase-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-600);
}

.gys-gate-purchase-meta strong {
  color: var(--navy-900);
}

.btn-link-muted {
  background: none;
  border: none;
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.adm-code-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-code-inp {
  width: 110px;
  padding: 4px 7px;
  border: 1px solid var(--slate-300);
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
}

.adm-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.adm-kpi-online {
  border-left: 4px solid var(--emerald-700);
  background: linear-gradient(180deg, #f3fcf7 0%, #ffffff 100%);
}

.adm-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  vertical-align: middle;
  margin-right: 4px;
  animation: admPulse 2s ease-in-out infinite;
}

@keyframes admPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08); }
}

.adm-online-pill {
  display: none;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-50);
  border: 1px solid #a7f3d0;
  color: var(--emerald-700);
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.adm-online-pill.is-online {
  display: inline-flex;
}

.adm-online-pill .adm-online-dot {
  width: 6px;
  height: 6px;
  margin-right: 1px;
}

.adm-load-more-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-200);
}

.adm-load-more-info {
  font-size: 0.79rem;
  color: var(--slate-600);
}

.adm-load-more-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.adm-uv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.adm-uv-tile {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.adm-uv-tile span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-500);
}

.adm-uv-tile strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-950);
}

@media (max-width: 768px) {
  .adm-uv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.adm-user-link {
  color: var(--navy-900);
  text-decoration: underline;
  text-decoration-color: rgba(30, 66, 115, 0.35);
  text-underline-offset: 2px;
}
.adm-user-link:hover {
  color: var(--crimson-700);
  text-decoration-color: var(--crimson-700);
}

.adm-inspect-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-left: 5px solid var(--amber-700);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--slate-900);
}

.adm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(9, 21, 38, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.adm-modal-card {
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  border-top: 5px solid var(--navy-800);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.adm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
}

.adm-modal-body {
  overflow-y: auto;
  padding-right: 4px;
}

.adm-modal-sec-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-900);
}

.pr-prio-badge.info {
  background: var(--navy-100);
  color: var(--navy-900);
}

.gys-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 21, 38, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.gys-gate-overlay.hidden {
  display: none !important;
}

.gys-gate-card {
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  border-top: 5px solid var(--crimson-600);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
  padding: 24px;
  color: var(--slate-800);
}

.gys-gate-pitch {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7f1d1d 0%, #9f1239 55%, #b45309 140%);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.28);
}

.gys-gate-pitch strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.gys-gate-pitch span {
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fde68a;
}

.gys-gate-pitch .gys-gate-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #fff;
  font-size: 1.02rem;
}

.gys-gate-pitch .gys-gate-price s {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.gys-gate-pitch .gys-gate-price em {
  font-style: normal;
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
}

.gys-gate-pitch .gys-gate-price b {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html.gys-has-device-token #gys-live-bar {
  display: none !important;
}

#gys-live-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  background: #0b1220;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.28);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

#gys-live-bar.is-leaving {
  transform: translateY(-110%);
  opacity: 0;
}

.gys-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: gys-live-pulse 1.4s infinite;
}

@keyframes gys-live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

body:has(#gys-live-bar) {
  padding-top: 38px;
}

body:has(#gys-live-bar) .gys-gate-overlay,
body:has(#gys-live-bar) .gys-preview-overlay {
  padding-top: 52px;
}

.gys-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  overflow-y: auto;
  background: rgba(9, 21, 38, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gys-preview-card {
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 22px 22px 18px;
  background: #fff;
  color: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: 5px solid var(--crimson-600);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.gys-preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--crimson-50);
  color: var(--crimson-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gys-preview-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-600);
}

.gys-preview-card h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gys-preview-lead {
  margin: 0 0 12px;
  color: var(--slate-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gys-preview-steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gys-preview-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--slate-700);
}

.gys-preview-steps b {
  color: var(--navy-900);
}

.gys-preview-step {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.gys-preview-end {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--navy-900);
}

.gys-preview-go {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d1d 0%, #9f1239 70%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.28);
}

.gys-preview-go:hover {
  filter: brightness(1.05);
}

.gys-preview-foot {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--slate-500);
  text-align: center;
}

.gys-preview-foot a {
  color: var(--navy-800);
  font-weight: 800;
}

@media (max-width: 480px) {
  .gys-preview-card {
    padding: 18px 16px 14px;
    border-radius: 16px;
  }
  .gys-preview-card h2 {
    font-size: 1.2rem;
  }
}

.gys-gate-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.gys-gate-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--navy-950);
  font-weight: 800;
}

.gys-gate-desc {
  margin: 0 0 13px;
  font-size: 0.87rem;
  color: var(--slate-600);
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.gys-gate-info-list {
  margin: 0 0 16px;
  padding: 10px 12px;
  list-style: none;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.81rem;
  color: var(--slate-700);
}

.gys-gate-info-list span {
  color: var(--emerald-700);
  font-weight: 800;
  margin-right: 5px;
}

.gys-gate-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gys-gate-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-900);
}

.gys-gate-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gys-gate-input-row input {
  flex: 1 1 200px;
  padding: 11px 13px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--slate-900);
}

.gys-gate-input-row input:focus {
  outline: none;
  border-color: var(--navy-700);
}

.gys-gate-err {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--crimson-600);
}

.gys-gate-existing {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--slate-200);
}

.gys-gate-existing-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.gys-gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gys-gate-chip {
  border: 1.5px solid var(--navy-100);
  background: var(--navy-50);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.83rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
}

.gys-gate-chip:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.gys-gate-chip span {
  font-size: 0.74rem;
  opacity: 0.8;
}

/* Yönetim paneli ve profil, konu tabloları ve testlerle aynı yazı tipini kullanır */
#admin-panel-root,
#profile-report-root,
#admin-success-root {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-800);
}

#admin-panel-root *,
#profile-report-root *,
#admin-success-root * {
  font-family: var(--font-sans) !important;
}

#admin-panel-root [style*="font-size"],
#profile-report-root [style*="font-size"] {
  font-size: 0.92rem !important;
}

#admin-panel-root table.official-table,
#profile-report-root table.official-table {
  font-size: 0.92rem;
}

#admin-panel-root .pr-kpi-val,
#profile-report-root .pr-kpi-val,
#admin-panel-root .pr-name,
#profile-report-root .pr-name {
  font-size: 1.18rem !important;
}

#admin-panel-root .adm-cat-title,
#admin-panel-root .pr-panel h2,
#profile-report-root .pr-panel h2 {
  font-size: 1.05rem !important;
  font-weight: 800;
}

.adm-code-inp {
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

/* Profil & Çalışma Raporu Sayfası (profil.html) */
.pr-header-card {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pr-user-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pr-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--crimson-600);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pr-name {
  margin: 0 0 3px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
}

.pr-meta-line {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.pr-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-header-top {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pr-hero-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pr-strip-pill {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pr-strip-pill span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.pr-strip-pill strong {
  font-size: 0.92rem;
  color: #fde68a;
  font-weight: 800;
}

.pr-trend {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}
.pr-trend.up { background: var(--emerald-50); color: var(--emerald-700); }
.pr-trend.down { background: var(--crimson-50); color: var(--crimson-700); }
.pr-trend.flat { background: var(--slate-100); color: var(--slate-600); }

.pr-gauge-wrap {
  margin-top: 4px;
}

.pr-gauge-track {
  position: relative;
  height: 10px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: visible;
}

.pr-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.pr-gauge-fill.is-pass { background: linear-gradient(90deg, #059669, #047857); }
.pr-gauge-fill.is-warn { background: linear-gradient(90deg, #d97706, #dc2626); }

.pr-gauge-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--crimson-700);
  border-radius: 2px;
}

.pr-gauge-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.69rem;
  color: var(--slate-500);
  margin-top: 4px;
}

.pr-coach-panel {
  border-left: 4px solid var(--crimson-600);
}

.pr-coach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-coach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--amber-700);
}
.pr-coach-item.is-bad {
  background: #fff8f8;
  border-color: #fecaca;
  border-left-color: var(--crimson-600);
}
.pr-coach-item.is-info {
  border-left-color: var(--navy-700);
}

.pr-coach-item-info { min-width: 0; flex: 1; }
.pr-coach-item-title { font-size: 0.84rem; color: var(--slate-900); line-height: 1.35; }
.pr-coach-item-sub { font-size: 0.74rem; color: var(--slate-600); margin-top: 2px; }
.pr-coach-item-btns { display: flex; gap: 6px; flex-shrink: 0; }

.pr-pace-box {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.81rem;
  color: var(--slate-800);
  line-height: 1.5;
  margin-bottom: 10px;
}

.pr-strong-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pr-strong-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #f3fcf8;
  border: 1px solid #bbf7d0;
}

.pr-strong-pill strong {
  display: block;
  font-size: 0.81rem;
  color: var(--navy-950);
}

.pr-strong-pill span:not(.pr-prio-badge) {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-600);
}

.pr-chart-footnote {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.75rem;
  color: var(--slate-600);
}

/* 21 Konu Isı Haritası */
.pr-heat-group-lbl {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  margin-bottom: 7px;
}

.pr-heat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.pr-heat-tile {
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  padding: 7px 8px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 68px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.pr-heat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pr-heat-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.8;
}

.pr-heat-top em { font-style: normal; }

.pr-heat-name {
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pr-heat-val {
  font-size: 0.76rem;
  font-weight: 800;
}

.pr-heat-tile.status-strong { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.pr-heat-tile.status-medium { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.pr-heat-tile.status-critical { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.pr-heat-tile.status-studied_only,
.pr-heat-tile.status-unstudied { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.pr-heat-tile.status-unstarted { background: var(--slate-50); border-color: var(--slate-200); color: var(--slate-600); }

.pr-heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.73rem;
  color: var(--slate-600);
}

.pr-dot-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid transparent;
}
.pr-dot-swatch.status-strong { background: #a7f3d0; border-color: #059669; }
.pr-dot-swatch.status-medium { background: #fde68a; border-color: #d97706; }
.pr-dot-swatch.status-critical { background: #fecaca; border-color: #dc2626; }
.pr-dot-swatch.status-studied_only { background: #bfdbfe; border-color: #2563eb; }
.pr-dot-swatch.status-unstarted { background: #e2e8f0; border-color: #94a3b8; }

/* Matris Filtre ve Sıralama Çubuğu */
.pr-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pr-sort-select {
  width: auto;
  min-width: 230px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-800);
  font-family: inherit;
  font-weight: 600;
}

@keyframes prRowFlash {
  0% { background: #fef3c7; }
  100% { background: inherit; }
}

.pr-row-flash {
  animation: prRowFlash 1.4s ease-out;
}

.pr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pr-kpi-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pr-kpi-card.pr-kpi-plain {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.pr-donut { flex-shrink: 0; }

.pr-kpi-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-500);
}

.pr-kpi-val {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
}

.pr-kpi-sub {
  font-size: 0.77rem;
  color: var(--slate-600);
}

.pr-focus-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr-focus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 5px 8px;
}

.pr-focus-item em {
  color: var(--slate-500);
  font-style: normal;
}

.pr-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pr-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.pr-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy-900);
}

.pr-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pr-panel-head h2 { margin: 0; }
.pr-panel-head span { font-size: 0.78rem; color: var(--slate-500); }

.pr-panel.adm-cat {
  padding: 0;
  overflow: hidden;
}

.adm-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.adm-cat-toggle:hover {
  background: var(--slate-50);
}

.adm-cat-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate-500);
  border-bottom: 2px solid var(--slate-500);
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.adm-cat.is-open .adm-cat-chevron {
  transform: rotate(45deg);
}

.adm-cat-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.adm-cat.is-alert .adm-cat-title {
  color: var(--crimson-700);
}

.adm-cat-chips {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.adm-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.adm-cat.is-alert .adm-chip {
  background: #fee2e2;
  color: var(--crimson-700);
}

.adm-cat.is-money .adm-chip {
  background: #ffedd5;
  color: #9a3412;
}

.adm-cat-body {
  display: none;
  padding: 0 14px 14px;
}

.adm-cat.is-open .adm-cat-body {
  display: block;
}

.adm-cat.is-alert {
  border-left: 4px solid var(--crimson-600);
}

.adm-cat.is-money {
  border-left: 4px solid #b45309;
}

@media (max-width: 720px) {
  .adm-cat-chips {
    width: 100%;
    margin-left: 18px;
    justify-content: flex-start;
  }
}

.pr-svg-chart {
  width: 100%;
  height: auto;
  display: block;
}

.pr-empty-chart {
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--slate-600);
}

.pr-matrix-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pr-matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 170px auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--slate-200);
}

.pr-matrix-row:nth-child(even) { background: var(--slate-50); }
.pr-matrix-row.is-studied { background: #f4fbf8; }

.pr-m-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pr-m-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-900);
}

.pr-weight-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--navy-50);
  color: var(--navy-800);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

.pr-m-sub {
  font-size: 0.74rem;
  color: var(--slate-500);
}

.pr-m-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-bar-track {
  flex: 1;
  height: 10px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}

.pr-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pr-bar-pct {
  width: 44px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy-900);
}

.pr-m-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pr-prio-badge {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.pr-prio-badge.ok { background: var(--emerald-50); color: var(--emerald-700); }
.pr-prio-badge.warn { background: var(--amber-50); color: var(--amber-700); }
.pr-prio-badge.bad { background: var(--crimson-50); color: var(--crimson-700); }

@media (max-width: 1180px) {
  .adm-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-heat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .pr-kpi-grid,
  .adm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-charts-grid { grid-template-columns: 1fr; }
  .pr-matrix-row { grid-template-columns: 1fr; gap: 8px; }
  .pr-heat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .pr-kpi-grid,
  .adm-kpi-grid { grid-template-columns: 1fr; }
  .pr-hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pr-heat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pr-coach-item { flex-direction: column; align-items: stretch; }
  .pr-coach-item-btns { justify-content: flex-end; }
  .pr-sort-select { width: 100%; min-width: 0; font-size: 16px; }
  .gys-gate-card { padding: 18px 16px; }
  .gys-gate-notice { padding: 9px 11px; }
  .gys-gate-purchase { padding: 11px 12px; }
  .study-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .study-login-inputs {
    max-width: 100%;
    width: 100%;
  }
  .unified-actions {
    grid-template-columns: 1fr 1fr auto;
  }
}

.unified-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--navy-100);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.88rem;
}

/* Üyeler için Sınav / Sitede sayı sütunu ve açıklaması gizlenir (yalnızca misafir vitrinde kalır) */
html.gys-has-device-token .prep-legend,
html.gys-has-device-token .unified-list-head > div:nth-child(3),
html.gys-has-device-token .unified-row .unified-mix,
html.gys-has-device-token .unified-foot > span:last-child {
  display: none;
}

html.gys-has-device-token .unified-list-head,
html.gys-has-device-token .unified-row {
  grid-template-columns: 48px minmax(0, 1fr) 362px;
}

html.gys-fc-enabled.gys-has-device-token .unified-list-head,
html.gys-fc-enabled.gys-has-device-token .unified-row {
  grid-template-columns: 44px minmax(0, 1fr) minmax(476px, auto);
}

@media (max-width: 768px) {
  .unified-list-head {
    display: none;
  }
  .unified-row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "sn title"
      "mix mix"
      "actions actions";
    gap: 8px 10px;
    padding: 11px 12px;
  }
  html.gys-has-device-token .unified-row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "sn title"
      "actions actions";
  }
  .unified-sn { grid-area: sn; width: 30px; height: 26px; font-size: 0.78rem; }
  .unified-title-wrap { grid-area: title; }
  .unified-title { font-size: 0.88rem; }
  .unified-mix { grid-area: mix; justify-content: flex-start; gap: 6px; }
  .unified-mix span { min-width: 64px; padding: 4px 8px 5px; }
  .unified-mix em { font-size: 0.6rem; }
  .unified-mix b { font-size: 0.92rem; }
  .unified-actions { grid-area: actions; gap: 6px; }
  .unified-actions .btn:not(.btn-study-toggle) { min-height: 36px; font-size: 0.79rem; }
}

/* Muhammed (Admin) Önizleme: Yeni Kompakt Mobil Konu Listesi */
@media (max-width: 1040px) {
  html.gys-fc-enabled .unified-list-head,
  html.gys-fc-enabled .unified-row {
    grid-template-columns: 40px minmax(0, 1fr) 108px minmax(410px, auto);
    gap: 8px;
    padding: 9px 12px;
  }
  html.gys-fc-enabled.gys-has-device-token .unified-list-head,
  html.gys-fc-enabled.gys-has-device-token .unified-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(410px, auto);
  }
  html.gys-fc-enabled .unified-actions .btn:not(.btn-study-toggle) {
    padding: 5px 7px;
    font-size: 0.72rem;
  }
}

@media (max-width: 860px) {
  html.gys-fc-enabled .prep-legend {
    font-size: 0.72rem;
    margin-bottom: 6px;
    line-height: 1.35;
  }
  html.gys-fc-enabled .unified-list-head {
    display: none;
  }
  html.gys-fc-enabled .unified-row {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "sn title"
      ". mix"
      "actions actions";
    align-items: start;
    gap: 5px 9px;
    padding: 10px 11px;
  }
  html.gys-fc-enabled.gys-has-device-token .unified-row {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "sn title"
      "actions actions";
    gap: 6px 9px;
  }
  html.gys-fc-enabled .unified-sn {
    grid-area: sn;
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-top: 1px;
  }
  html.gys-fc-enabled .unified-title-wrap {
    grid-area: title;
    min-width: 0;
  }
  html.gys-fc-enabled .unified-title {
    font-size: 0.85rem;
    line-height: 1.32;
  }
  html.gys-fc-enabled .unified-sub {
    font-size: 0.69rem;
    margin-top: 2px;
    line-height: 1.3;
  }
  html.gys-fc-enabled .topic-progress-line {
    font-size: 0.69rem;
    margin-top: 2px;
    line-height: 1.3;
  }
  html.gys-fc-enabled .unified-mix {
    grid-area: mix;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1px;
  }
  html.gys-fc-enabled .unified-mix span {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.25;
  }
  html.gys-fc-enabled .unified-mix em {
    font-size: 0.63rem;
    letter-spacing: 0.03em;
    opacity: 0.8;
  }
  html.gys-fc-enabled .unified-mix b {
    margin-top: 0;
    font-size: 0.76rem;
  }
  html.gys-fc-enabled .unified-actions {
    grid-area: actions;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 5px;
    margin-top: 3px;
  }
  html.gys-fc-enabled .unified-actions .btn {
    min-height: 31px;
    padding: 4px 6px;
    font-size: 0.71rem;
    border-radius: 7px;
  }
  html.gys-fc-enabled .unified-actions .btn-soft {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html.gys-fc-enabled .unified-actions .btn-crimson-soft {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html.gys-fc-enabled .unified-actions .btn.btn-flashcards {
    grid-column: 3;
    grid-row: 1;
    min-height: 24px;
    padding: 3px 6px;
    font-size: 0.65rem;
    width: 96px;
    border-radius: 7px;
    text-align: center;
  }
  html.gys-fc-enabled .unified-actions .btn-flashcards .fc-label-desk {
    display: none;
  }
  html.gys-fc-enabled .unified-actions .btn-flashcards .fc-label-mob {
    display: inline;
  }
  html.gys-fc-enabled .unified-actions .btn.btn-study-toggle {
    grid-column: 3;
    grid-row: 2;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
  }
  html.gys-fc-enabled .unified-actions .ios-switch-track {
    width: 96px;
    height: 26px;
  }
  html.gys-fc-enabled .unified-actions .ios-switch-thumb {
    width: 22px;
    height: 22px;
  }
  html.gys-fc-enabled .unified-actions .btn-study-toggle.is-done .ios-switch-thumb {
    transform: translateX(70px);
  }
  html.gys-fc-enabled .unified-actions .ios-switch-label {
    font-size: 0.66rem;
    padding: 0 6px 0 24px;
  }
  html.gys-fc-enabled .unified-actions .btn-study-toggle.is-done .ios-switch-label {
    padding: 0 24px 0 6px;
  }
  html.gys-fc-enabled .unified-foot {
    padding: 9px 11px;
    font-size: 0.77rem;
    gap: 4px 8px;
  }
}

@media (max-width: 375px) {
  html.gys-fc-enabled .unified-row {
    padding: 9px 9px;
    gap: 4px 8px;
  }
  html.gys-fc-enabled .unified-title {
    font-size: 0.82rem;
  }
  html.gys-fc-enabled .unified-actions {
    gap: 4px;
  }
  html.gys-fc-enabled .unified-actions .btn {
    min-height: 30px;
    padding: 4px 5px;
    font-size: 0.68rem;
  }
  html.gys-fc-enabled .unified-actions .btn.btn-study-toggle {
    min-height: 0;
    padding: 0;
  }
  html.gys-fc-enabled .unified-actions .ios-switch-track {
    width: 90px;
    height: 24px;
  }
  html.gys-fc-enabled .unified-actions .ios-switch-thumb {
    width: 20px;
    height: 20px;
  }
  html.gys-fc-enabled .unified-actions .btn-study-toggle.is-done .ios-switch-thumb {
    transform: translateX(66px);
  }
  html.gys-fc-enabled .unified-actions .ios-switch-label {
    font-size: 0.63rem;
    padding: 0 5px 0 22px;
  }
  html.gys-fc-enabled .unified-actions .btn-study-toggle.is-done .ios-switch-label {
    padding: 0 22px 0 5px;
  }
}

/* Ana İçerik Alanı */
.main-content {
  padding: 16px 0 42px;
}

/* Kritik Resmi Uyarı Banner'ı */
.critical-alert {
  background: var(--white);
  border: 1.5px solid #fca5a5;
  border-left: 6px solid var(--crimson-600);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.critical-alert-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.critical-alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--crimson-700);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.alert-tag {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border: 1px solid #fecaca;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.critical-alert p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.scope-constraints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.constraint-chip {
  background: var(--crimson-50);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.84rem;
  color: var(--slate-800);
}

.constraint-chip strong {
  color: var(--crimson-700);
}

/* Bölüm Başlıkları */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 800;
  color: var(--navy-900);
}

.section-subtitle {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* Filtre ve Arama Çubuğu */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.filter-btn {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  padding: 8px 13px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s;
  touch-action: manipulation;
}

.filter-btn:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.filter-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.search-box {
  position: relative;
  min-width: 0;
  flex: 1 1 260px;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--slate-800);
  background: var(--slate-50);
}

.search-box input:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 66, 115, 0.12);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 0.88rem;
  pointer-events: none;
}

/* Mevzuat Kart Izgarası */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-700);
}

.topic-card.is-major {
  border-top: 4px solid var(--crimson-600);
}

.topic-card.is-medium {
  border-top: 4px solid var(--navy-700);
}

.topic-card.is-short {
  border-top: 4px solid var(--gold-500);
}

.topic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.sn-badge {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.weight-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.weight-major {
  background: var(--crimson-50);
  color: var(--crimson-700);
  border: 1px solid #fecaca;
}

.weight-medium {
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
}

.weight-short {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid #ead8b1;
}

.topic-title {
  margin: 8px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--slate-600);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: 4px;
}

.meta-pill.warning {
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid #fde68a;
  font-weight: 600;
}

.topic-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.77rem;
  color: var(--slate-500);
  padding-top: 10px;
  border-top: 1px dashed var(--slate-200);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-700);
  flex-shrink: 0;
}

.dot.ready {
  background: var(--emerald-700);
}

.topic-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topic-actions .btn {
  padding: 9px 10px;
  font-size: 0.82rem;
}

/* Soru Bankası & Ağırlık Tablosu Bölümleri */
.two-col-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-bottom: 36px;
}

.panel-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-900);
}

.panel-card .panel-sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--slate-600);
}

.panel-cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-cta-row .btn {
  flex: 1 1 180px;
}

/* Genel Dağılım ve Mevzuat Tabloları (%100 Mobil Kaydırılabilir & Taşmasız) */
.table-scroll-hint {
  display: none;
  font-size: 0.74rem;
  color: var(--slate-500);
  margin: 0 0 6px;
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  touch-action: pan-x pan-y;
}

table.official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--white);
}

table.official-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gold-500);
}

table.official-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

table.official-table tbody tr:nth-child(even) {
  background: var(--slate-50);
}

table.official-table tbody tr:hover {
  background: var(--navy-50);
}

table.official-table tfoot td {
  background: var(--navy-100);
  font-weight: 800;
  color: var(--navy-900);
  padding: 10px 12px;
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.nowrap { white-space: nowrap; }

/* Mod Tanıtım Kutuları */
.mode-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--slate-50);
}

.mode-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.mode-item-head strong {
  font-size: 0.94rem;
  color: var(--navy-900);
}

.mode-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
}

.mode-item p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--slate-600);
}

/* GY/GK Sonraki Aşama Paneli */
.upcoming-panel {
  background: linear-gradient(to right, var(--white), var(--slate-50));
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.upcoming-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.upcoming-chip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 0.8rem;
  color: var(--slate-600);
}

.upcoming-chip strong {
  color: var(--slate-800);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  font-size: 0.82rem;
  border-top: 3px solid var(--navy-800);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-brand-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--slate-300);
}

.footer-brand-bar a {
  color: #fde68a;
  font-weight: 700;
  text-decoration: underline;
}

.footer-brand-bar a:hover {
  color: #ffffff;
}

/* Boş Arama Durumu */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  color: var(--slate-600);
}

/* ==========================================================================
   CEO Minimalist Admin Panel (adm-ceo-*)
   ========================================================================== */
.adm-ceo-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
}

.adm-ceo-topbar {
  background: linear-gradient(135deg, #0b1628 0%, #132542 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(11, 22, 40, 0.14);
}

.adm-ceo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.adm-ceo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.adm-ceo-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.adm-ceo-sub {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.8);
  margin-top: 2px;
}

.adm-ceo-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-ceo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.adm-ceo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.adm-ceo-btn:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--navy-950);
}

.adm-ceo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.adm-ceo-btn-primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.adm-ceo-btn-primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

.adm-ceo-btn-ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.adm-ceo-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.adm-ceo-btn-danger {
  background: #fff5f5;
  border-color: #fecaca;
  color: var(--crimson-700);
}

.adm-ceo-btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.adm-ceo-btn-xs {
  height: 24px;
  padding: 0 8px;
  font-size: 0.7rem;
  border-radius: 6px;
}

.adm-ceo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.adm-ceo-kpi {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.adm-ceo-kpi.is-live {
  border-top: 3px solid #059669;
}

.adm-ceo-kpi.is-alert {
  border-top: 3px solid var(--crimson-600);
}

.adm-ceo-kpi.is-money {
  border-top: 3px solid #b45309;
}

.adm-ceo-kpi-lbl {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}

.adm-ceo-kpi-val {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.adm-ceo-kpi.is-live .adm-ceo-kpi-val { color: #047857; }
.adm-ceo-kpi.is-alert .adm-ceo-kpi-val { color: var(--crimson-700); }

.adm-ceo-kpi-sub {
  font-size: 0.73rem;
  color: var(--slate-500);
  line-height: 1.35;
}

.adm-ceo-codebar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.adm-ceo-codebar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.adm-ceo-codebar-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy-900);
}

.adm-ceo-codebar-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.adm-ceo-code-input {
  width: 120px;
  height: 28px;
  padding: 0 9px;
  border: 1.5px solid var(--slate-300);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-950);
  background: var(--slate-50);
}

.adm-ceo-code-input:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #ffffff;
}

.adm-ceo-codebar-note {
  font-size: 0.74rem;
  color: var(--slate-500);
  flex: 1 1 280px;
  text-align: right;
}

.adm-ceo-codebar-note.is-warn {
  color: var(--crimson-600);
  font-weight: 700;
}

.adm-ceo-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  scrollbar-width: none;
}

.adm-ceo-tabs::-webkit-scrollbar {
  display: none;
}

.adm-ceo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}

.adm-ceo-tab:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.adm-ceo-tab.is-active {
  background: var(--navy-900);
  color: #ffffff;
}

.adm-ceo-tab.is-trgeneli {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.adm-ceo-tab.is-trgeneli:hover {
  background: #bae6fd;
  color: #0c4a6e;
}

.adm-ceo-tab.is-trgeneli.is-active {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  border-color: #0369a1;
  color: #ffffff;
}

.adm-tr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.adm-tr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-tr-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-600);
}

.adm-tr-field input,
.adm-tr-field select {
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--slate-300);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.79rem;
  color: var(--slate-900);
  background: #ffffff;
}

.adm-tr-mail-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 820px) {
  .adm-tr-grid {
    grid-template-columns: 1fr;
  }
}

.adm-ceo-tab-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 0.69rem;
  font-weight: 800;
}

.adm-ceo-tab.is-active .adm-ceo-tab-cnt {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.adm-ceo-tab-cnt.is-alert {
  background: #fee2e2;
  color: var(--crimson-700);
}

.adm-ceo-tab.is-active .adm-ceo-tab-cnt.is-alert {
  background: #ef4444;
  color: #ffffff;
}

.adm-ceo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.adm-ceo-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.adm-ceo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-100);
}

.adm-ceo-card-head h2 {
  margin: 0;
  font-size: 0.92rem !important;
  font-weight: 800;
  color: var(--navy-950);
}

.adm-ceo-card-sub {
  font-size: 0.74rem;
  color: var(--slate-500);
}

.adm-ceo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.adm-ceo-search {
  width: 260px;
  max-width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--slate-300);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--slate-900);
  background: var(--slate-50);
}

.adm-ceo-search:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #ffffff;
}

.adm-ceo-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.adm-ceo-pill {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.adm-ceo-pill.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

#admin-panel-root table.adm-ceo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

#admin-panel-root table.adm-ceo-table th {
  text-align: left;
  padding: 7px 9px;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-500);
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

#admin-panel-root table.adm-ceo-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
  color: var(--slate-800);
}

#admin-panel-root table.adm-ceo-table tbody tr:hover {
  background: #f8fafc;
}

.adm-ceo-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.adm-ceo-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-ceo-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  font-size: 0.77rem;
}

.adm-ceo-mini-row strong {
  color: var(--navy-950);
}

.adm-ceo-mini-row span {
  color: var(--slate-500);
  font-size: 0.73rem;
}

.adm-ceo-code-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.adm-ceo-code-inline input {
  width: 92px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--slate-300);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-950);
}

.adm-ceo-muted {
  font-size: 0.71rem;
  color: var(--slate-500);
}

.adm-ceo-mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

@media (max-width: 1120px) {
  .adm-ceo-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .adm-ceo-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .adm-ceo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-ceo-codebar-note {
    text-align: left;
  }
  .adm-ceo-search {
    width: 100%;
    font-size: 16px;
  }
  .adm-ceo-code-input {
    font-size: 16px;
  }
}

/* ==========================================================================
   Responsive Kurallar (Tablet & Mobil - 320px dahil tüm ekranlar)
   ========================================================================== */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 28px;
  }
  .two-col-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .nav-bar {
    padding: 7px 0;
    gap: 6px;
  }

  .brand-text span {
    display: none;
  }

  .brand-text span.brand-domain {
    display: block;
    font-size: 0.69rem;
    line-height: 1.15;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-links,
  .nav-links.open,
  .nav-links.is-open {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
    gap: 6px;
    padding: 6px 0 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    padding: 5px 10px;
    min-height: 32px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-compact {
    padding: 9px 0 11px;
    gap: 8px;
  }

  .hero-compact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .hero-compact-actions .btn {
    width: 100%;
    padding: 7px 8px;
    font-size: 0.79rem;
    min-height: 36px;
  }

  .subpage-hero {
    padding: 8px 0 10px;
  }

  .breadcrumb,
  .subpage-header-grid .hero-actions {
    display: none !important;
  }

  .subpage-meta-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .subpage-meta-row::-webkit-scrollbar {
    display: none;
  }

  .subpage-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.71rem;
    padding: 2px 8px;
  }

  .toolbar {
    padding: 12px;
  }

  /* Mobilde filtre butonları rahat kaydırılabilir veya düzenli sarımlı */
  .filter-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* iOS otomatik yakınlaştırma engelleme */
  .search-box input,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .critical-alert,
  .panel-card,
  .upcoming-panel {
    padding: 16px;
  }

  .table-scroll-hint {
    display: block;
  }

  table.official-table {
    font-size: 0.8rem;
  }

  table.official-table thead th,
  table.official-table tbody td,
  table.official-table tfoot td {
    padding: 8px 9px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .topic-actions {
    grid-template-columns: 1fr;
  }
  .topic-card {
    padding: 15px;
  }
  .exam-summary-box {
    padding: 15px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  .summary-stats-grid {
    gap: 6px;
  }
  .summary-stat {
    padding: 8px 4px;
  }
  .brand-emblem {
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
  }
}

@media print {
  .official-top-bar, .nav-bar, .toolbar, .topic-actions, .hero-actions, .nav-toggle, .table-scroll-hint, .toc-sidebar, .mobile-toc-bar, .back-to-top,
  .pr-header-actions, .pr-matrix-toolbar, .adm-load-more-bar, .pr-coach-item-btns, .pr-m-actions .btn {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .pr-header-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   Mevzuat Tablo Sayfaları ([mevzuat-adi].html) — Ortak Stil Bileşenleri
   ========================================================================== */

.subpage-hero {
  padding: 10px 0 12px;
}

.breadcrumb {
  display: none;
}

.subpage-header-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.subpage-hero .hero-title {
  font-size: clamp(1rem, 2vw, 1.28rem);
  margin: 0 0 4px !important;
}

.subpage-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.subpage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.subpage-pill.warn {
  background: rgba(185, 28, 28, 0.45);
  border-color: rgba(254, 202, 202, 0.5);
  color: #fee2e2;
}

/* İki Sütunlu Mevzuat Düzeni: Sol İçindekiler + Sağ Tablolar */
.mevzuat-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

.mevzuat-layout > * {
  min-width: 0;
}

.toc-sidebar {
  position: sticky;
  top: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.toc-title {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-500);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}

.toc-link:hover,
.toc-link.active {
  background: var(--navy-50);
  color: var(--navy-900);
}

.toc-link.active {
  border-left: 3px solid var(--crimson-600);
  padding-left: 7px;
}

/* Mobil Hızlı Bölüm Geçiş Çubuğu */
.mobile-toc-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.mobile-toc-bar select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--slate-50);
}

/* Tablo Bölüm Kartları */
.table-section {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  scroll-margin-top: 70px;
}

.table-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-100);
}

.table-section-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-900);
}

.madde-badge {
  display: inline-flex;
  align-items: center;
  background: var(--navy-900);
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.madde-badge.updated {
  background: var(--crimson-600);
  color: var(--white);
}

.sub-table-title {
  margin: 18px 0 8px;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy-800);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sub-table-title:first-of-type {
  margin-top: 4px;
}

/* Mevzuat Tablosu Özel Vurgular */
table.mevzuat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: var(--white);
}

table.mevzuat-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: 10px 11px;
  border-bottom: 2px solid var(--gold-500);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

table.mevzuat-table thead th:last-child {
  border-right: none;
}

table.mevzuat-table tbody td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-100);
  vertical-align: top;
}

table.mevzuat-table tbody td:last-child {
  border-right: none;
}

table.mevzuat-table tbody tr:nth-child(even) {
  background: var(--slate-50);
}

table.mevzuat-table tbody tr:hover {
  background: var(--navy-50);
}

.hl-key {
  font-weight: 700;
  color: var(--navy-900);
}

.hl-num {
  display: inline-block;
  background: var(--crimson-50);
  color: var(--crimson-700);
  border: 1px solid #fecaca;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.hl-new {
  display: inline-block;
  background: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.hl-ok {
  display: inline-block;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid #a7f3d0;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.table-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.table-search-bar .search-box {
  max-width: 100%;
  flex: 1 1 280px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
}

.back-to-top.visible {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 980px) {
  .mevzuat-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    display: none;
  }
  .mobile-toc-bar {
    display: block;
  }
}

@media (max-width: 768px) {
  .table-section {
    padding: 14px;
  }
  table.mevzuat-table {
    font-size: 0.79rem;
  }
  table.mevzuat-table thead th,
  table.mevzuat-table tbody td {
    padding: 7px 8px;
  }
}

/* ==========================================================================
   Soru Bankası (soru-bankasi.html) — Etkileşimli Çift Modlu Sınav Sistemi
   ========================================================================== */

.quiz-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.quiz-shell > * {
  min-width: 0;
}

.quiz-sidebar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 16px;
}

.quiz-sidebar h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-900);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-500);
}

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--slate-900);
  background: var(--slate-50);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mode-choice-btn {
  padding: 9px 8px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: all 0.15s;
}

.mode-choice-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.mode-choice-btn.active.exam {
  background: var(--crimson-600);
  border-color: var(--crimson-600);
}

.test-list-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-pill-btn {
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s;
}

.test-pill-btn:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.test-pill-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.test-pill-title {
  min-width: 0;
}

.test-pill-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.86;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.test-pill-sub.is-solved {
  opacity: 1;
}

.tps-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.tps-d {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tps-y {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tps-b {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.test-pill-btn.active .tps-d {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.36);
}

.test-pill-btn.active .tps-y {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
  border-color: rgba(253, 164, 175, 0.36);
}

.test-pill-btn.active .tps-b {
  background: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.24);
}

/* Sağ Ana Sınav Alanı */
.quiz-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-stage {
  display: contents;
}

.quiz-status-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-title-meta strong {
  display: block;
  font-size: 1rem;
  color: var(--navy-900);
}

.quiz-title-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-600);
}

.quiz-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timer-pill {
  background: var(--navy-900);
  color: #fde68a;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.timer-pill.urgent {
  background: var(--crimson-600);
  color: var(--white);
}

.progress-pill {
  background: var(--slate-100);
  color: var(--slate-800);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Soru Gezgini */
.q-nav-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.q-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 6px;
}

.q-dot-btn {
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.q-dot-btn.current {
  border-color: var(--navy-900);
  box-shadow: 0 0 0 2px rgba(15, 34, 61, 0.2);
}

.q-dot-btn.answered {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.q-dot-btn.correct {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}

.q-dot-btn.wrong {
  background: var(--crimson-600);
  color: var(--white);
  border-color: var(--crimson-600);
}

/* Soru Kartı */
.question-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 20px;
}

.question-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.question-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.question-topic-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 3px 9px;
  border-radius: 999px;
}

.question-stem {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.55;
}

.q-stem-para {
  margin: 0 0 9px;
}

.q-stem-para:last-child {
  margin-bottom: 0;
}

.q-stem-clauses {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0 11px;
  padding: 11px 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  border-radius: 10px;
}

.q-stem-clause {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.55;
  font-weight: 500;
}

.q-clause-num {
  flex-shrink: 0;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e0e7ff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 0.86em;
  text-align: center;
  line-height: 1.38;
  margin-top: 2px;
}

.q-clause-body {
  flex: 1;
  min-width: 0;
}

.q-stem-bullets {
  margin: 8px 0 11px;
  padding: 9px 13px 9px 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 500;
}

.q-stem-bullets li {
  line-height: 1.52;
}

.result-next-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
}

.result-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
}

.result-next-sub {
  font-weight: 500;
  font-size: 0.85em;
  opacity: 0.92;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  touch-action: manipulation;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--navy-700);
  background: var(--navy-50);
}

.option-btn:disabled {
  cursor: default;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--navy-900);
  flex-shrink: 0;
  margin-top: 1px;
}

.option-btn.selected {
  border-color: var(--navy-900);
  background: var(--navy-100);
}

.option-btn.selected .option-letter {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.option-btn.is-correct {
  border-color: var(--emerald-700);
  background: var(--emerald-50);
  color: #064e3b;
}

.option-btn.is-correct .option-letter {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}

.option-btn.is-wrong {
  border-color: var(--crimson-600);
  background: var(--crimson-50);
  color: var(--crimson-700);
}

.option-btn.is-wrong .option-letter {
  background: var(--crimson-600);
  color: var(--white);
  border-color: var(--crimson-600);
}

/* Çözüm Kutusu */
.explanation-box {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy-800);
  background: var(--navy-50);
  padding: 14px 16px;
  font-size: 0.87rem;
  color: var(--slate-800);
}

.explanation-box.wrong-box {
  border-color: #fecaca;
  border-left-color: var(--crimson-600);
  background: #fff7f7;
}

.explanation-box.correct-box {
  border-color: #a7f3d0;
  border-left-color: var(--emerald-700);
  background: #f3fcf8;
}

.exp-row {
  margin-bottom: 6px;
}

.exp-row:last-child {
  margin-bottom: 0;
}

.exp-label {
  font-weight: 800;
  color: var(--navy-900);
}

/* Soru Alt Gezinme Çubuğu */
.quiz-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-nav-actions .btn {
  flex: 1 1 130px;
}

/* Sonuç ve Hata Takibi Ekranı */
.result-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.result-stat-box {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  background: var(--slate-50);
}

.result-stat-box strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.result-stat-box span {
  font-size: 0.78rem;
  color: var(--slate-600);
  font-weight: 600;
}

.result-stat-box.ok strong { color: var(--emerald-700); }
.result-stat-box.bad strong { color: var(--crimson-600); }
.result-stat-box.navy strong { color: var(--navy-900); }

.wrong-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.wrong-jump-btn {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  background: var(--crimson-50);
  color: var(--slate-900);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s;
}

.wrong-jump-btn:hover {
  background: var(--crimson-100);
}

@media (max-width: 960px) {
  .quiz-shell {
    grid-template-columns: 1fr;
  }
  .quiz-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .field-select {
    font-size: 16px;
  }
  .question-card,
  .result-panel,
  .quiz-status-bar,
  .q-nav-card {
    padding: 12px;
  }
  .question-head {
    margin-bottom: 8px;
    gap: 6px;
  }
  .question-num {
    font-size: 0.74rem;
    padding: 3px 8px;
  }
  .question-topic-tag {
    font-size: 0.71rem;
    padding: 2px 8px;
  }
  .question-stem {
    margin-bottom: 11px;
    font-size: 0.895rem;
    line-height: 1.48;
  }
  .q-stem-para {
    margin-bottom: 6px;
  }
  .q-stem-clauses {
    gap: 5px;
    margin: 6px 0 8px;
    padding: 8px 10px;
    border-left-width: 3px;
    border-radius: 8px;
  }
  .q-stem-clause {
    gap: 7px;
    line-height: 1.45;
  }
  .q-clause-num {
    min-width: 24px;
    padding: 1px 5px;
    font-size: 0.8em;
    margin-top: 1px;
  }
  .q-stem-bullets {
    margin: 6px 0 8px;
    padding: 7px 10px 7px 22px;
    gap: 4px;
    border-radius: 8px;
  }
  .q-stem-bullets li {
    line-height: 1.44;
  }
  .options-list {
    gap: 7px;
  }
  .option-btn {
    padding: 9px 10px;
    gap: 9px;
    font-size: 0.845rem;
    line-height: 1.4;
    min-height: 42px;
  }
  .option-letter {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .explanation-box {
    margin-top: 11px;
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .result-next-bar {
    margin-top: 12px;
    padding-top: 10px;
    gap: 8px;
  }
  .result-next-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .question-stem {
    font-size: 0.865rem;
    line-height: 1.45;
  }
  .q-stem-clauses {
    padding: 7px 9px;
    gap: 4px;
  }
  .option-btn {
    padding: 8px 9px;
    gap: 8px;
    font-size: 0.825rem;
    line-height: 1.38;
    min-height: 40px;
  }
}

/* Sayısal Mantık & Görsel Soru Bankası Desteği */
.question-figure {
  margin: 0 0 14px;
  padding: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.question-figure svg { max-width: 100%; height: auto; display: block; }
.sm-inline-tbl { border-collapse: collapse; background: #fff; font-size: 0.85rem; text-align: center; }
.sm-inline-tbl th, .sm-inline-tbl td { border: 1px solid var(--slate-300); padding: 5px 10px; min-width: 30px; }
.sm-inline-tbl th { background: var(--navy-900); color: #fff; font-weight: 700; }
.sm-grid-tbl { border-collapse: collapse; background: #fff; }
.sm-grid-tbl td { border: 1px solid #334155; width: 28px; height: 28px; text-align: center; vertical-align: middle; font-size: 0.9rem; font-weight: 700; padding: 0; }
.sm-grid-tbl.tiny td { width: 24px; height: 24px; font-size: 0.8rem; }
.sm-grid-tbl td.empty-cell { border: none; background: transparent; }
.sm-grid-tbl td.gray-cell { background: #94a3b8; }
.sm-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: 0.88em; line-height: 1.1; margin: 0 2px; }
.sm-frac .num { border-bottom: 1.5px solid #0f172a; padding: 0 4px 1px; }
.sm-frac .den { padding: 1px 4px 0; }

.quiz-setup-toggle {
  display: none;
}

/* Dar ekranda genel taşma kilidi ve soru bankası uygulama kabuğu */
@media (max-width: 768px) {
  .table-wrap,
  .table-scroll,
  .table-section,
  .pr-matrix,
  .adm-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-section table,
  .deneme-table {
    min-width: 0;
  }

  pre, code {
    max-width: 100%;
    overflow-x: auto;
  }

  body:has(.quiz-shell) .site-footer {
    display: none;
  }

  body:has(.quiz-shell) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    height: 100svh;
    overflow: hidden;
  }

  body:has(.quiz-shell) .site-header {
    flex: none;
  }

  body:has(.quiz-shell) .main-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 0;
  }

  body:has(.quiz-shell) .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .gys-gate-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .gys-gate-card {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gys-gate-desc,
  .gys-gate-info-list {
    text-align: left;
    text-justify: auto;
  }

  .gys-gate-input-row {
    flex-direction: column;
  }

  .gys-gate-input-row input,
  .gys-gate-input-row .btn,
  .gys-gate-input-row button {
    width: 100%;
    flex: none;
  }

  body:has(.quiz-shell) .nav-bar {
    flex-wrap: nowrap;
    align-items: center;
  }

  body:has(.quiz-shell) .brand-text span {
    display: none;
  }

  body:has(.quiz-shell) .nav-links,
  body:has(.quiz-shell) .nav-links.open,
  body:has(.quiz-shell) .nav-links.is-open {
    width: auto;
    min-width: 0;
    flex: 1;
    border-top: 0;
    padding: 0;
    justify-content: flex-end;
  }

  .quiz-setup-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--navy-100);
    background: var(--white);
    color: var(--navy-900);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
  }

  .quiz-sidebar {
    display: none;
  }

  .quiz-sidebar.is-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 70;
    max-height: min(78dvh, 640px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 40px rgba(9, 21, 38, 0.28);
  }

  body:has(.quiz-sidebar.is-open)::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(9, 21, 38, 0.46);
    z-index: 65;
  }

  .quiz-shell {
    gap: 8px;
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .quiz-main {
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .quiz-stage {
    display: block;
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quiz-status-bar,
  .quiz-metrics,
  .q-nav-card,
  .q-nav-grid,
  .question-card,
  .options-list,
  .option-btn {
    min-width: 0;
    max-width: 100%;
  }

  .quiz-status-bar {
    position: relative;
    top: auto;
    z-index: 20;
    flex: none;
    padding: 8px 10px;
    gap: 6px;
  }

  .quiz-title-meta {
    min-width: 0;
    flex: 1 1 140px;
  }

  .quiz-title-meta strong,
  .quiz-title-meta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quiz-title-meta span {
    font-size: 0.72rem;
  }

  .q-nav-card {
    position: relative;
    top: auto;
    z-index: 19;
    flex: none;
    padding: 6px 8px;
    background: var(--white);
  }

  .q-nav-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }

  .q-nav-grid::-webkit-scrollbar {
    display: none;
  }

  .q-dot-btn {
    flex: 0 0 36px;
    width: 36px;
  }

  .question-card {
    padding: 14px 12px 12px;
  }

  .quiz-nav-actions {
    position: static;
    flex: none;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 -12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(248, 250, 252, 0.98);
    border-top: 1px solid var(--slate-200);
  }

  .quiz-nav-actions .btn {
    width: 100%;
    min-height: 44px;
    flex: none;
  }

  .test-list-pills {
    max-height: 42dvh;
    overflow: auto;
  }
}

.adm-success-card {
  margin-bottom: 16px;
}

.adm-success-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adm-success-metrics.adm-rating-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.adm-success-metrics.adm-rating-kpis strong {
  font-size: 1.02rem;
}

.adm-success-metrics div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.adm-success-metrics span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 3px;
}

.adm-success-metrics strong {
  color: var(--navy-950);
}

.adm-success-note {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--slate-600);
}

.adm-wide {
  max-width: none;
}

.adm-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-rank-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 10px;
  align-items: center;
}

.adm-rank-track {
  height: 12px;
  border-radius: 999px;
  background: var(--slate-100);
  overflow: hidden;
}

.adm-rank-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e4273, #047857);
}

.adm-rank-track span.is-exam {
  background: linear-gradient(90deg, #9f1239, #b45309);
}

.adm-scroll-hint {
  display: none;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
}

.adm-board-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
}

table.adm-board {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

table.adm-board th,
table.adm-board td {
  padding: 5px 3px;
  border-bottom: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-100);
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  line-height: 1.2;
  background: var(--white);
  overflow-wrap: anywhere;
}

table.adm-board thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
}

table.adm-board th:first-child,
table.adm-board td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 148px;
  text-align: left;
  background: var(--slate-50);
  font-weight: 700;
  color: var(--navy-950);
  overflow-wrap: break-word;
}

table.adm-board.is-exams th:first-child,
table.adm-board.is-exams td:first-child {
  width: 108px;
}

table.adm-board thead th:first-child {
  z-index: 3;
  background: var(--navy-950);
  color: var(--white);
}

table.adm-board .is-best {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
}

table.adm-board .is-pass {
  color: var(--emerald-700);
  font-weight: 800;
}

table.adm-board .cell-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-500);
  line-height: 1.15;
}

table.adm-board thead .cell-sub {
  color: rgba(255, 255, 255, 0.78);
}

table.adm-board tfoot td {
  background: #f8fafc;
  border-top: 2px solid var(--slate-300);
  border-bottom: 0;
  font-weight: 800;
  color: var(--navy-950);
}

table.adm-board tfoot td:first-child {
  background: #eef2f7;
}

.adm-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .adm-success-metrics.adm-rating-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-scroll-hint {
    display: block;
  }
  table.adm-board {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }
  table.adm-board th:not(:first-child),
  table.adm-board td:not(:first-child) {
    min-width: 52px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  table.adm-board th:first-child,
  table.adm-board td:first-child {
    width: 132px;
    min-width: 132px;
    max-width: 148px;
  }
}

@media (max-width: 860px) {
  .adm-success-metrics,
  .adm-success-metrics.adm-rating-kpis,
  .adm-chart-grid {
    grid-template-columns: 1fr;
  }
  .adm-rank-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.gys-survey {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px;
  overflow: auto;
  background: rgba(15, 23, 42, 0.56);
}

.gys-survey-card {
  width: min(560px, 100%);
  margin: auto;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--slate-800);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.gys-survey-kicker {
  margin: 0 0 4px;
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gys-survey-card h2 {
  margin: 0 0 6px;
  color: var(--navy-950);
  font-size: 1.2rem;
}

.gys-survey-lead,
.gys-survey-thanks p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.gys-survey-avg {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--slate-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.gys-survey-avg strong {
  color: var(--navy-900);
  font-size: 1.35rem;
}

.gys-survey-q {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.gys-survey-q legend {
  margin-bottom: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.gys-survey-stars {
  display: flex;
  gap: 2px;
}

.gys-star {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gys-star.is-on {
  color: #d4a017;
}

.gys-survey-comment {
  display: block;
  margin: 4px 0 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.gys-survey-comment em {
  font-style: normal;
  font-weight: 600;
  color: var(--slate-500);
}

.gys-survey textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid var(--slate-300);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.gys-survey-count {
  margin-top: 4px;
  text-align: right;
  color: var(--slate-500);
  font-size: 0.72rem;
}

.gys-survey-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.gys-survey-err {
  min-height: 1.1em;
  margin: 8px 0 0;
  color: var(--crimson-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.gys-survey.is-thanks {
  align-items: center;
}

.gys-survey-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(180, 138, 62, 0.18), transparent 46%),
    #fff;
}

.gys-survey-thanks .gys-survey-kicker,
.gys-survey-thanks h2,
.gys-survey-thanks p,
.gys-survey-thanks .gys-thanks-line,
.gys-survey-thanks .gys-survey-bye {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.gys-thanks-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border: 3px solid #e8d7a8;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 61, 0.22);
}

.gys-thanks-mark span {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.gys-thanks-mark small {
  margin-top: 3px;
  color: #f3e3b8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gys-survey-thanks h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.gys-thanks-copy {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.gys-survey-thanks .gys-thanks-copy p,
.gys-survey-thanks .gys-thanks-line,
.gys-survey-thanks .gys-thanks-link,
.gys-survey-thanks .gys-survey-bye {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  text-align: center;
  text-align-last: center;
}

.gys-survey-thanks .gys-thanks-line {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--slate-700);
}

.gys-survey-thanks .gys-thanks-link {
  margin-top: 8px;
  margin-bottom: 16px;
}

.gys-survey-thanks .gys-thanks-link a {
  color: var(--crimson-700);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gys-survey-thanks .gys-survey-bye {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
}

.gys-survey-thanks .btn {
  min-width: 148px;
}

.adm-survey-list {
  display: grid;
  gap: 10px;
}

.adm-survey-card {
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fff;
}

.adm-survey-card header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.adm-survey-card header strong {
  font-size: 0.95rem;
}

.adm-survey-card header time {
  color: var(--slate-500);
  font-size: 0.75rem;
}

.adm-survey-card header em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.adm-survey-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.adm-survey-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
}

.adm-survey-card li b {
  min-width: 1.4em;
  text-align: right;
}

.adm-survey-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.adm-survey-note.is-empty,
.adm-survey-empty {
  color: var(--slate-500);
}

/* ---------------- MİSAFİR CANLI DESTEK / KOD BOTU ---------------- */
html.gys-has-device-token .gys-chat-dock {
  display: none !important;
}

html.gys-chat-open,
html.gys-chat-open body {
  overflow: hidden;
}

.gys-chat-dock {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 10080;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.gys-join-ticker-slot.is-fab-top {
  display: none !important;
}

.gys-join-ticker-slot.is-fab-top .gys-join-ticker {
  width: 100%;
  margin-bottom: 0;
  border-radius: 14px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px rgba(9, 21, 38, 0.14);
}

.gys-jt-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.gys-jt-body strong {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gys-jt-body small {
  font-size: 0.66rem;
  font-weight: 600;
  color: #065f46;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.gys-chat-open .gys-join-ticker-slot.is-fab-top,
body:has(.gys-preview-overlay) .gys-join-ticker-slot.is-fab-top,
body.fc-body .gys-join-ticker-slot.is-fab-top {
  display: none !important;
}

.gys-chat-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 6px 16px rgba(15, 23, 42, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gys-chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.32), 0 8px 20px rgba(15, 23, 42, 0.3);
}

.gys-chat-fab-dot {
  display: none;
}

.gys-chat-fab-badge {
  background: var(--crimson-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.gys-chat-panel {
  width: min(370px, calc(100vw - 24px));
  height: min(540px, calc(100dvh - 36px));
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(9, 21, 38, 0.36);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gys-chat-panel.hidden,
.gys-chat-fab.hidden {
  display: none !important;
}

.gys-chat-head {
  background: linear-gradient(135deg, #0b1c34, #163259);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gys-chat-head-title strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.gys-chat-head-title span {
  display: block;
  font-size: 0.72rem;
  color: #bfdbfe;
}

.gys-chat-close {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
}

.gys-chat-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.gys-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gys-chat-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
}

.gys-chat-msg.is-bot {
  align-self: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--slate-800);
  border: 1px solid #cbd5e1;
  border-left: 3px solid var(--navy-700);
  border-bottom-left-radius: 4px;
}

.gys-chat-msg.is-admin {
  align-self: flex-start;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #064e3b;
  border: 1px solid #a7f3d0;
  border-left: 3.5px solid #059669;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.gys-chat-admin-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #047857;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.gys-chat-hi {
  color: #0b1c34;
  font-weight: 700;
}

.gys-chat-msg.is-user {
  align-self: flex-end;
  background: var(--navy-800);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.gys-chat-paybox {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0;
  font-size: 0.78rem;
  color: #1e293b;
  white-space: normal;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.gys-chat-paybox-head {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b1c34;
}

.gys-chat-paybox-head strong {
  color: var(--crimson-600);
  font-weight: 800;
}

.gys-chat-paybox-row {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.gys-chat-paybox-row:last-of-type {
  border-bottom: none;
}

.gys-pay-lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}

.gys-pay-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.gys-pay-note {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #9a3412;
  font-weight: 600;
}

.gys-chat-paybox .gys-chat-open-proof-btn {
  border-radius: 0 0 9px 9px;
}

.gys-chat-paybox-row code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  user-select: all;
}

.gys-chat-copy-btn {
  margin-left: auto;
  background: #eff6ff;
  color: var(--navy-800);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.gys-chat-copy-btn:hover {
  background: #dbeafe;
}

.gys-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
}

.gys-chat-chip {
  background: #eff6ff;
  color: var(--navy-800);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.gys-chat-chip:hover {
  background: #dbeafe;
}

.gys-chat-chip.is-buy {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.gys-chat-chip.is-live {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.gys-chat-chip.is-live:hover {
  background: linear-gradient(135deg, #047857, #065f46);
}

.gys-chat-chip.is-live.is-connected {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
  box-shadow: none;
}

.gys-chat-chip.is-paid {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.gys-chat-chip.is-edit {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.gys-chat-chip.hidden {
  display: none !important;
}

.gys-chat-proof-box {
  padding: 10px 12px;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  font-size: 0.78rem;
}

.gys-chat-email-box {
  background: #f8fafc;
  border-top-color: #cbd5e1;
}

.gys-chat-email-box h4 {
  color: #0b1c34 !important;
}

.gys-chat-proof-box.hidden {
  display: none !important;
}

.gys-chat-proof-box h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: #065f46;
}

.gys-chat-proof-grid {
  display: grid;
  gap: 6px;
}

.gys-chat-proof-grid input[type="email"],
.gys-chat-proof-grid input[type="text"],
.gys-chat-proof-grid input[type="file"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.79rem;
}

.gys-chat-proof-err {
  color: var(--crimson-600);
  font-weight: 700;
  font-size: 0.74rem;
  margin-top: 4px;
}

.gys-chat-proof-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.gys-chat-form {
  display: flex;
  gap: 6px;
  padding: 8px 10px 10px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
}

.gys-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--slate-300);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.84rem;
}

.gys-chat-form input:focus {
  outline: none;
  border-color: var(--navy-700);
}

.gys-chat-form button {
  background: var(--crimson-600);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Yönetim Paneli — Kod Talepleri Master-Detail Sohbet Kayıtları */
.adm-chat-split {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 14px;
  align-items: start;
}

.adm-chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.adm-chat-list-item {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.14s, background 0.14s;
}

.adm-chat-list-item:hover {
  border-color: var(--navy-400);
  background: #f8fafc;
}

.adm-chat-list-item.is-active {
  border-color: var(--navy-700);
  border-left: 4px solid var(--navy-700);
  background: #eff6ff;
}

.adm-chat-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.adm-chat-item-sub {
  font-size: 0.72rem;
  color: var(--slate-600);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.adm-chat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
}

.adm-chat-card-head {
  background: var(--slate-50);
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.adm-chat-thread {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 380px;
  overflow-y: auto;
}

.adm-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .adm-chat-split,
  .adm-settings-grid,
  .adm-settings-row2 {
    grid-template-columns: 1fr;
  }
  .adm-chat-sidebar {
    max-height: 220px;
  }
}

.adm-settings-col {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px;
}

.adm-settings-col h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: var(--navy-950);
}

.adm-settings-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.adm-field {
  display: block;
  margin-bottom: 8px;
}

.adm-field > span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 3px;
}

.adm-field input,
#adm-test-mail-to {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.82rem;
  background: #ffffff;
}

.adm-field-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 2px 0 8px;
  cursor: pointer;
}

.adm-chat-line {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.adm-chat-line.is-user {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  align-self: flex-start;
  max-width: 85%;
}

.adm-chat-line.is-bot {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  align-self: flex-end;
  max-width: 85%;
  color: var(--slate-600);
}

.adm-chat-line.is-admin {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #064e3b;
  align-self: flex-end;
  max-width: 85%;
  font-weight: 600;
}

.adm-chat-line-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--slate-500);
  margin-bottom: 2px;
  font-weight: 700;
}

.adm-chat-line.is-admin .adm-chat-line-meta {
  color: #047857;
}

.adm-live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
}

.adm-live-status-bar.is-online {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.adm-live-status-bar.is-offline {
  background: #fef2f2;
  border-color: #fecaca;
}

.adm-live-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.adm-live-status-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-950);
}

.adm-live-status-info span {
  display: block;
  font-size: 0.76rem;
  color: var(--slate-600);
  margin-top: 2px;
}

.adm-live-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ef4444;
}

.adm-live-status-bar.is-online .adm-live-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.adm-chat-list-item.is-waiting-live {
  border-color: #ef4444;
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}

.adm-chat-list-item.is-live-chat {
  border-left: 4px solid #10b981;
}

.adm-chat-item-preview {
  font-size: 0.72rem;
  color: var(--slate-600);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes admLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.adm-live-pulse {
  animation: admLivePulse 1.4s infinite ease-in-out;
}

.adm-chat-reply-area {
  border-top: 1px solid var(--slate-200);
  background: #f8fafc;
  padding: 10px 12px;
}

.adm-chat-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.adm-chat-quick-btn {
  background: #ffffff;
  color: var(--navy-800);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.adm-chat-quick-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.adm-chat-quick-btn.is-iban {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

.adm-chat-reply-form {
  display: flex;
  gap: 8px;
}

.adm-chat-reply-form input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #ffffff;
}

.adm-chat-reply-form input:focus {
  outline: none;
  border-color: var(--navy-700);
}

@media (max-width: 768px) {
  html.gys-gate-open .gys-chat-fab,
  body:has(#gys-profile-gate-modal:not(.hidden)) .gys-chat-fab,
  body:has(.gys-preview-overlay) .gys-chat-fab {
    display: none !important;
  }

  .gys-chat-dock {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  html.gys-chat-open .gys-chat-dock {
    inset: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    z-index: 10095;
  }

  .gys-chat-fab {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .gys-chat-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    z-index: 10096;
  }

  .gys-chat-head {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  }

  .gys-chat-form {
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .gys-chat-form input {
    font-size: 16px;
  }
}

/* Compact Admin Live Chat, Archive & Gear Settings Modal */
.adm-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.adm-gear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.adm-gear-btn.is-inline {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
  width: 32px;
  height: 32px;
}

.adm-gear-btn.is-inline:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.adm-gear-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 1.5px #fff;
}

.adm-gear-dot.is-ok {
  background: #10b981;
}

.adm-chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.adm-chat-search {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 150px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  background: #fff;
}

.adm-chat-search:focus {
  outline: none;
  border-color: var(--navy-700);
}

.adm-chat-split-compact {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .adm-chat-split-compact {
    grid-template-columns: 1fr;
  }
}

.adm-chat-sidebar-compact {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 500px;
  overflow-y: auto;
}

.adm-chat-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 34px 8px 9px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.adm-chat-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.adm-chat-row.is-active {
  border-color: #1e3a8a;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #1e3a8a;
}

.adm-chat-row.is-waiting-live {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}

.adm-chat-row.is-live-chat:not(.is-waiting-live) {
  border-left: 4px solid #10b981;
}

.adm-chat-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.adm-chat-row-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-chat-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.69rem;
  color: #64748b;
}

.adm-chat-row-preview {
  font-size: 0.72rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-chat-row-arch-btn {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adm-chat-row-arch-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.adm-chat-card-compact {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
}

.adm-chat-card-head-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.adm-chat-thread-compact {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f1f5f9;
}

.adm-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.adm-msg-row.is-user {
  align-self: flex-start;
}

.adm-msg-row.is-admin,
.adm-msg-row.is-bot {
  align-self: flex-end;
}

.adm-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.67rem;
  color: #64748b;
  margin-bottom: 2px;
  padding: 0 4px;
}

.adm-msg-row.is-admin .adm-msg-meta,
.adm-msg-row.is-bot .adm-msg-meta {
  justify-content: flex-end;
}

.adm-sender-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.66rem;
}

.adm-sender-pill.is-user {
  background: #dbeafe;
  color: #1e3a8a;
}

.adm-sender-pill.is-admin {
  background: #d1fae5;
  color: #065f46;
}

.adm-sender-pill.is-bot {
  background: #e2e8f0;
  color: #475569;
}

.adm-msg-bubble {
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.81rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #e2e8f0;
}

.adm-msg-row.is-user .adm-msg-bubble {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  border-left: 3px solid #2563eb;
  border-top-left-radius: 3px;
}

.adm-msg-row.is-admin .adm-msg-bubble {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #6ee7b7;
  border-top-right-radius: 3px;
}

.adm-msg-row.is-bot .adm-msg-bubble {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  border-style: dashed;
  border-top-right-radius: 3px;
}

.adm-modal-card.is-settings-wide {
  max-width: 880px;
  width: 96%;
}


/* Misafir Görünümü: Kod Al Butonu Üstü Tek Satır Dönen Katılım Şeridi */
.gys-guest-cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.gys-join-ticker-slot:empty {
  display: none;
}

.gys-join-ticker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--emerald-50);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  animation: gysTickerIn 0.32s ease;
}

.gys-guest-cta-col .gys-join-ticker {
  margin-bottom: 0;
}

@keyframes gysTickerIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gys-jt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.gys-jt-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gys-jt-text strong {
  color: var(--navy-950);
  font-weight: 800;
}

@media (max-width: 720px) {
  .gys-guest-cta-col {
    width: 100%;
    align-items: stretch;
  }
  .gys-join-ticker {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.71rem;
  }
}


/* Misafir Görünümü: Son X Gün & 1.680 Soru Hazırlık Başlığı */
html.gys-has-device-token .guest-countdown-banner {
  display: none;
}

.guest-countdown-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #091526 0%, #152e52 60%, #7f1d1d 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.gcb-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1 1 420px;
}

.gcb-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.45);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.gcb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.3);
}

.gcb-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gcb-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
}

.gcb-copy span {
  font-size: 0.77rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.38;
}

.gcb-cta {
  flex-shrink: 0;
  background: #fde047 !important;
  color: #091526 !important;
  border: 0 !important;
  font-weight: 900 !important;
  padding: 9px 16px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.gcb-cta:hover {
  filter: brightness(1.05);
}

@media (max-width: 680px) {
  .guest-countdown-banner {
    padding: 12px 13px;
    gap: 10px;
  }
  .gcb-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .gcb-copy strong {
    font-size: 0.9rem;
  }
  .gcb-cta {
    width: 100%;
    text-align: center;
  }
}


/* Türkiye Geneli: Ana Sayfa Misafir Bekleme Listesi Bannerı & Ortak Sözleşme/Davet Modalları */
html.gys-has-device-token #home-tr-waitlist-mount,
html.gys-has-device-token .tr-home-waitlist-banner {
  display: none !important;
}

.tr-home-waitlist-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0b1c34 0%, #0369a1 58%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  box-shadow: 0 12px 28px -12px rgba(2, 132, 199, 0.48);
}

.tr-home-wl-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 420px;
  min-width: 0;
}

.tr-home-wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e0f2fe;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.tr-home-wl-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tr-waitlist-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(253, 224, 71, 0.55);
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(9, 21, 38, 0.18);
}

.tr-waitlist-count-pill strong {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.82rem;
}

.tr-home-wl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}

.tr-home-wl-left strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.tr-home-wl-left span:last-child {
  font-size: 0.81rem;
  color: #e0f2fe;
  line-height: 1.45;
}

.tr-home-wl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-home-wl-btn {
  background: #ffffff !important;
  color: #0369a1 !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(9, 21, 38, 0.22);
}

.tr-home-wl-btn:hover {
  background: #f0f9ff !important;
}

.tr-home-wl-btn-ghost {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 700 !important;
  padding: 9px 13px !important;
  border-radius: 10px !important;
}

.tr-surprise-crimson-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #be123c 0%, #dc2626 55%, #991b1b 100%);
  color: #ffffff;
  border: 1.5px solid rgba(254, 202, 202, 0.72);
  border-radius: 11px;
  padding: 8px 13px;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.42);
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tr-surprise-crimson-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.52);
}

.tr-surprise-gift {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.tr-surprise-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tr-surprise-copy strong {
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  color: #ffffff !important;
  text-transform: uppercase;
  line-height: 1.25;
}

.tr-surprise-copy span {
  font-size: 0.74rem !important;
  color: #fee2e2 !important;
  font-weight: 600 !important;
  line-height: 1.3;
}

.hidden,
.tr-shared-modal-backdrop.hidden,
#home-tr-waitlist-mount.hidden {
  display: none !important;
}

.tr-shared-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(9, 21, 38, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tr-shared-modal {
  background: #ffffff;
  border-radius: 16px;
  border-top: 4px solid #0284c7;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(9, 21, 38, 0.28);
}

.tr-shared-modal.tr-promo-modal {
  border-top: 5px solid #dc2626;
  padding: 20px 22px;
}

.tr-promo-hero {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 55%, #7f1d1d 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 22px rgba(153, 27, 27, 0.24);
}

.tr-promo-gift {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tr-promo-hero strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.tr-promo-hero span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #fee2e2;
}

.tr-promo-points {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-promo-points li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #0284c7;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1e293b;
}

.tr-promo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.tr-btn-crimson {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.28);
}

.tr-shared-modal h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.tr-shared-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tr-shared-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
}

.tr-shared-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.tr-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-modal-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.tr-modal-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tr-modal-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.tr-btn-azure {
  background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
}

.tr-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  border: 1px solid #7dd3fc;
  color: #0369a1;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.tr-member-consent-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #0c4a6e;
  margin-bottom: 10px;
}

.tr-terms-scrollbox {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 10px;
  padding: 12px 14px;
  max-height: 225px;
  overflow-y: auto;
  font-size: 0.81rem;
  line-height: 1.58;
  color: #1e293b;
}

.tr-terms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.tr-terms-head strong {
  font-size: 0.85rem;
  color: #0b1c34;
}

.tr-terms-ver {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 999px;
}

.tr-terms-clause {
  margin-bottom: 8px;
}

.tr-terms-clause:last-child {
  margin-bottom: 0;
}

.tr-terms-clause strong {
  color: #0f172a;
}

.tr-terms-check-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.tr-terms-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.48;
  color: #0f172a;
  font-weight: 600;
}

.tr-terms-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #0284c7;
  cursor: pointer;
}

.tr-terms-toggle-row {
  display: flex;
  justify-content: flex-end;
}

.tr-inline-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
  cursor: pointer;
}

.tr-terms-audit-hint {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 10px;
}

.tr-invite-card {
  margin-top: 10px;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #0b1c34 0%, #0369a1 58%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
}

.tr-invite-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tr-invite-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.tr-invite-title-row .tr-invite-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  line-height: 1;
}

.tr-invite-title-row .tr-invite-icon-badge svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tr-invite-title-row > div strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.tr-invite-title-row > div span {
  display: block;
  font-size: 0.76rem;
  color: #e0f2fe;
}

.tr-invite-count-pill {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #d1fae5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.tr-invite-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.tr-invite-link-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  outline: none;
}

.tr-invite-copy-btn {
  background: #ffffff;
  color: #0b1c34;
  border: none;
  border-radius: 7px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.tr-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tr-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.tr-share-btn svg {
  display: block;
  flex-shrink: 0;
}

.tr-share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tr-share-btn.is-whatsapp {
  background: #16a34a;
  border-color: #22c55e;
}

.tr-share-btn.is-telegram {
  background: #0284c7;
  border-color: #38bdf8;
}

.tr-share-btn.is-x {
  background: #0f172a;
  border-color: #475569;
}

.tr-share-btn.is-native {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 540px) {
  .tr-share-grid {
    grid-template-columns: 1fr;
  }
  .tr-invite-card-top {
    flex-direction: column;
  }
  .tr-home-wl-actions,
  .tr-home-wl-btn {
    width: 100%;
    text-align: center;
  }
}

/* Misafir Görünümü: Üst menüdeki "Raporum" linkini yalnızca üyelere göster */
html:not(.gys-has-device-token) .nav-links a[href="profil"],
html:not(.gys-has-device-token) .nav-links a[href="profil.html"] {
  display: none;
}

.gys-guest-login-strip {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Yönetim Paneli: Misafir Anlık Online / Ekran Açık-Kapalı / Yazıyor Rozetleri */
.adm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.adm-live-pill.is-on {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.adm-live-pill.is-off {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.adm-live-pill.is-open {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.adm-live-pill.is-closed {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.adm-live-pill.is-typing {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
  animation: admTypingPulse 1s ease-in-out infinite alternate;
}

@keyframes admTypingPulse {
  from { opacity: 0.78; }
  to { opacity: 1; }
}

.adm-guest-ip-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.adm-guest-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.adm-guest-dot.is-online {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}

.adm-guest-dot.is-offline {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.adm-guest-live-now {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  margin-top: 2px;
}

tr.is-guest-online td {
  background: #f0fdf4;
}

/* Kullanıcı Tarafı: Kod Al / Canlı Destek Butonu Okunmamış Mesaj Bildirim Rozeti */
.gys-chat-fab {
  position: relative;
}

.gys-chat-fab.has-unread {
  border-color: #fda4af;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.28), 0 12px 28px rgba(9, 21, 38, 0.36);
}

.gys-fab-unread-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.45);
  animation: gysBadgePop 1.2s ease-in-out infinite alternate;
}

.gys-fab-unread-badge.hidden {
  display: none;
}

@keyframes gysBadgePop {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* ==========================================================================
   ANKÜSEM Sayısal Mantık Adım Adım Çözüm Tahtası & Alt Alta Kesirler
   ========================================================================== */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 3px;
  line-height: 1.15;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.frac > .num {
  display: block;
  padding: 0 5px 2px 5px;
  border-bottom: 1.5px solid currentColor;
  text-align: center;
  width: 100%;
}
.frac > .den {
  display: block;
  padding: 2px 5px 0 5px;
  text-align: center;
  width: 100%;
}
.frac-lg > .num {
  border-bottom-width: 2px;
  padding: 0 8px 4px 8px;
}
.frac-lg > .den {
  padding: 4px 8px 0 8px;
}

.safe-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.safe-scroll::-webkit-scrollbar { height: 4px; }
.safe-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }

.smb-board {
  margin-top: 10px;
}
.smb-start-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}
.smb-btn-primary {
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: #007aff;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.smb-btn-primary:hover { background: #0062cc; }
.smb-btn-primary:active { transform: scale(0.98); }
.smb-btn-primary.smb-btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}
.smb-btn-ghost {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.smb-btn-ghost:hover { background: #f3f4f6; }

.smb-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.smb-step-card {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 14px 16px;
}
.smb-step-card.is-newest {
  border-color: #93c5fd;
  animation: smbFadeUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes smbFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.smb-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.smb-step-badge { color: #007aff; }
.smb-step-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
}
.smb-step-desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.55;
}
.smb-step-visual {
  margin: 12px 0;
  padding: 12px 10px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: #0f172a;
}
.smb-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.smb-box.is-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0056b3;
  font-weight: 700;
}
.smb-box.is-final {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
}
.smb-step-note {
  font-size: 0.81rem;
  font-weight: 600;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1.5;
}
.smb-controls {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e5ea;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.smb-controls-mid {
  display: flex;
  align-items: center;
  gap: 10px;
}
.smb-page-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.smb-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #007aff;
  text-decoration: underline;
  cursor: pointer;
}
.smb-done-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.79rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .smb-step-card { padding: 12px; border-radius: 13px; }
  .smb-step-title { font-size: 0.9rem; }
  .smb-step-desc { font-size: 0.82rem; }
  .smb-controls { justify-content: center; }
}
