:root,
[data-theme="dark"] {
  --bg: #050505;
  --panel: rgba(11, 11, 12, .82);
  --panel-soft: rgba(11, 11, 12, .55);
  --surface: #111112;
  --line: #1e1e20;
  --line-strong: #2c2c2f;
  --text: #ededed;
  --muted: #8a8a8e;
  --dim: #4a4a4e;
  --invert: #000;
  --hover: rgba(255, 255, 255, .05);
  --plane: 237, 237, 237;
  --c-red: #e0384d;
  --c-orange: #f5a02a;
  --c-navy: #7f8cf0;
}

[data-theme="light"] {
  --bg: #f4f4f5;
  --panel: rgba(255, 255, 255, .85);
  --panel-soft: rgba(255, 255, 255, .6);
  --surface: #ececee;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #111113;
  --muted: #6b6b70;
  --dim: #a1a1a6;
  --invert: #fff;
  --hover: rgba(0, 0, 0, .05);
  --plane: 17, 17, 19;
  --c-red: #d1213a;
  --c-orange: #ee8f0c;
  --c-navy: #2b3485;
}

:root {
  --sidebar-w: 288px;
  --topbar-h: 56px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Evrensel ve Kusursuz Eşzamanlı Tema Geçiş Motoru (Tüm Elementler %100 Senkron) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim,
  html.theme-anim *,
  html.theme-anim *::before,
  html.theme-anim *::after {
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      fill 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      stroke 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0s !important;
  }
}

[hidden] {
  display: none !important;
}

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

/* ---------- Evrensel Otomatik Gizli & Yer Kaplamayan Scrollbar (Tüm Proje) ---------- */
html,
body,
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Yalnızca giriş alanları, arama kutusu ve editörde metin seçilebilir */
input,
textarea,
[contenteditable="true"],
.vs-editor-textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Klavyeden harfe veya tuşa basınca butonlarda beliren odak (focus) çerçevesini kapat */
button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
  outline: none !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--text);
  color: var(--invert);
}

/* ---------- Sidebar (floating, 3 sections) ---------- */
.sidebar {
  position: fixed;
  inset: 12px auto 12px 12px;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
  transition: transform .45s var(--ease), opacity .3s;
}

body.collapsed .sidebar {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.sb-top,
.sb-middle,
.sb-bottom {
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}

/* top */
.sb-top {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  padding: 0 18px 0 12px;
}

.logo-slot {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Karanlık temada lacivert kanat kaybolmasın diye hafif açılır */
[data-theme="dark"] .logo-slot img {
  filter: brightness(1.7) saturate(1.15);
}

.sb-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  height: 30px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-badge {
  display: none;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--c-red, #f43f5e);
  line-height: 1.2;
  user-select: none;
  animation: adminBadgePop .25s var(--ease) both;
}

.admin-badge:not([hidden]) {
  display: inline-flex;
}

.admin-badge[hidden],
.admin-group[hidden] {
  display: none !important;
}

@keyframes adminBadgePop {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.brand-code {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

/* Admin Sidebar Group & Items */
.admin-group {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  box-sizing: border-box;
}

[data-theme="light"] .admin-group-head {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.08);
}

.admin-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-orange, #f59e0b);
}

.admin-logout-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.admin-logout-mini:hover {
  color: var(--c-red, #f43f5e);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.admin-list {
  list-style: none;
}

.admin-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  margin: 1px 0;
  background: none;
  border: none;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.admin-item svg {
  flex: 0 0 15px;
  color: var(--dim);
  transition: color .2s;
}

.admin-item:hover {
  color: var(--text);
  background: var(--hover);
}

.admin-item:hover svg {
  color: var(--text);
}

.admin-item.active {
  color: var(--text);
  background: var(--surface);
  font-weight: 500;
}

.admin-item.active svg {
  color: var(--c-orange, #f59e0b);
}

.admin-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--c-orange, #f59e0b);
  transform: translateY(-50%);
  transition: height .25s var(--ease);
}

.admin-item.active::before {
  height: 16px;
}

.admin-view-container {
  max-width: var(--max-content, 1120px);
  padding: 32px 0px;
  animation: rise .35s var(--ease) both;
}

.admin-view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-view-header-left {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-view-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-orange, #f59e0b);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 160, 42, 0.08);
  border: 1px solid rgba(245, 160, 42, 0.22);
  width: fit-content;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-orange, #f59e0b);
  display: inline-block;
}

.admin-view-title {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.admin-view-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  max-width: 620px;
}

.admin-view-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-header-action-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* middle */
.sb-middle {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-wrap {
  padding: 12px 12px 4px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--dim);
  cursor: text;
  transition: border-color .2s, color .2s;
}

.search:focus-within {
  border-color: var(--line-strong);
  color: var(--muted);
}

.search-ico {
  flex: 0 0 15px;
}

#search {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
}

#search::placeholder {
  color: var(--dim);
}

.kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  transition: opacity .2s;
}

.search:focus-within .kbd {
  opacity: 0;
}

nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

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

/* Yer kaplamayan, üzerine gelince beliren scrollbar */
.scroll-thumb {
  position: absolute;
  right: 3px;
  width: 4px;
  border-radius: 4px;
  background: var(--dim);
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity .25s var(--ease), width .15s var(--ease), background-color .2s;
}

.sb-middle:hover .scroll-thumb,
.scroll-thumb.active {
  opacity: .9;
}

.scroll-thumb:hover,
.scroll-thumb.dragging {
  width: 6px;
  background: var(--muted);
}

.scroll-thumb.dragging {
  cursor: grabbing;
}

.page-thumb {
  position: fixed;
  right: 3px;
  z-index: 60;
}

.page-thumb::before {
  content: '';
  position: absolute;
  inset: 0 -4px 0 -8px;
}

/* tutması kolay geniş alan */
.page-thumb.near {
  opacity: .9;
}

.group {
  margin-top: 10px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  transition: all .2s var(--ease);
  box-sizing: border-box;
}

.group-head:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

[data-theme="light"] .group-head {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

[data-theme="light"] .group-head:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.13);
  color: var(--text);
}

.group-name {
  flex: 1;
}

.group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--dim);
}

[data-theme="light"] .group-count {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.chev {
  flex: 0 0 10px;
  opacity: .7;
  transition: transform .3s var(--ease), opacity .2s;
}

.group-head:hover .chev {
  opacity: 1;
}

.group.collapsed .chev {
  transform: rotate(-90deg);
}

.group-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .3s var(--ease);
}

.group.collapsed .group-body {
  grid-template-rows: 0fr;
}

.week-list {
  list-style: none;
  overflow: hidden;
  min-height: 0;
}

.week-list li.hidden {
  display: none;
}

.group.nomatch {
  display: none;
}

.no-results {
  padding: 24px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
}

.week-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  margin: 1px 0;
  background: none;
  border: none;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.week-item .num {
  flex: 0 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  transition: color .2s;
}

.week-item .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-item .tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: color .2s, border-color .2s;
}

.week-item:hover {
  color: var(--text);
  background: var(--hover);
}

.week-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--text);
  transform: translateY(-50%);
  transition: height .25s var(--ease);
}

.week-item.active {
  color: var(--text);
  background: var(--surface);
}

.week-item.active::before {
  height: 16px;
}

.week-item.active .num {
  color: var(--text);
}

.week-item.active .tag {
  color: var(--muted);
}

.week-item.empty {
  color: var(--dim);
}

.week-item.empty:hover {
  color: var(--muted);
}

.week-item.empty.active {
  color: var(--muted);
}

/* bottom */
.uni b {
  font-weight: 500;
}

.w-red {
  color: var(--c-red);
}

.w-orange {
  color: var(--c-orange);
}

.w-navy {
  color: var(--c-navy);
}

.sb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--panel-soft);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  font-size: 11px;
  color: var(--muted);
}

.sb-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
}

.sb-contact-btn:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--muted);
}

[data-theme="light"] .sb-contact-btn {
  background: rgba(0, 0, 0, 0.035);
}

.sb-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}

.sb-admin-link:hover {
  color: var(--text);
  background: var(--hover);
}

/* ---------- Main ---------- */
.main {
  margin-left: calc(var(--sidebar-w) + 24px);
  transition: margin-left .45s var(--ease);
  min-height: 100vh;
}

body.collapsed .main {
  margin-left: 0;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  height: var(--topbar-h);
  margin: 12px 12px 0 0;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  transition: margin-left .45s var(--ease);
}

body.collapsed .topbar {
  margin-left: 12px;
}

.topic {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.i-sun {
  display: none;
}

[data-theme="light"] .i-sun {
  display: block;
}

[data-theme="light"] .i-moon {
  display: none;
}

/* ---------- Content ---------- */
.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0px 32px;
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 260px;
  animation: rise .6s var(--ease) both;
}

.hero-text {
  flex: 1;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 15ch;
}

.hero-3d {
  flex: 0 0 440px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s var(--ease);
}

.hero.hero--no-3d .hero-3d {
  display: none !important;
}

.hero.hero--no-3d h1 {
  max-width: 32ch;
}

#plane {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 62%, transparent 100%);
}

/* ---------- Hero Wrapper, Roadmap (Neler Göreceğiz) & Scroll Indicator ---------- */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.roadmap-section {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 16px 0 20px;
  animation: rise .5s .1s var(--ease) both;
  transition: border-color .2s;
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.roadmap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-orange, #ea580c);
  background: rgba(234, 88, 12, 0.09);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.roadmap-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
  position: relative;
  user-select: none;
}

.roadmap-item:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  transform: translateY(-2px);
}

.roadmap-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.roadmap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-orange, #f5a02a);
  background: rgba(245, 160, 42, 0.08);
  border: 1px solid rgba(245, 160, 42, 0.2);
  padding: 2px 7px;
  border-radius: 5px;
  flex: 0 0 auto;
}

.roadmap-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.roadmap-arrow {
  color: var(--dim);
  flex: 0 0 auto;
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.roadmap-item:hover .roadmap-arrow {
  color: var(--text);
  transform: translateX(3px);
}

/* ---------- Yuvarlak Animasyonlu Aşağı Kaydır Butonu ---------- */
.scroll-down-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 14px auto 24px;
  padding: 10px 0 4px;
  user-select: none;
}

.scroll-down-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  animation: floatBob 2.4s ease-in-out infinite;
}

.scroll-down-btn:hover {
  color: var(--text);
  border-color: var(--text);
  background: var(--hover);
  animation-play-state: paused;
  transform: translateY(3px) scale(1.08);
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.scroll-down-arrow {
  transition: transform .2s;
}

.scroll-down-btn:hover .scroll-down-arrow {
  transform: translateY(1.5px);
}

.scroll-down-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}

.scroll-down-wrap:hover .scroll-down-label {
  color: var(--text);
}

.body {
  flex: 1;
  margin-top: 0;
  animation: rise .6s .1s var(--ease) both;
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

.placeholder {
  color: var(--dim);
  font-size: 14px;
}

/* ---------- Article Typography & Educational Components ---------- */
.body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 48px 0 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  scroll-margin-top: calc(var(--topbar-h) + 28px);
}

.body h2:first-child {
  margin-top: 0;
}

.body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 32px 0 12px;
  color: var(--text);
}

.body p {
  margin-bottom: 16px;
  color: #b3b3b8;
  font-size: 15px;
  line-height: 1.75;
}

[data-theme="light"] .body p {
  color: #3f3f46;
}

.body strong {
  color: var(--text);
  font-weight: 600;
}

.body ul,
.body ol {
  margin: 0 0 20px 24px;
  color: #b3b3b8;
  font-size: 14.5px;
}

[data-theme="light"] .body ul,
[data-theme="light"] .body ol {
  color: #3f3f46;
}

.body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Terim Kartları (Vocab) */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.vocab-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color .2s;
}

.vocab-card:hover {
  border-color: var(--muted);
}

.vocab-term {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vocab-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.vocab-tr {
  font-size: 12px;
  color: var(--muted);
}

.vocab-desc {
  font-size: 13px;
  color: #9c9ca3;
  line-height: 1.5;
  margin: 0 !important;
}

[data-theme="light"] .vocab-desc {
  color: #52525b;
}

/* Sınav Tüyosu / Hoca Notu Kutusu */
.exam-alert {
  background: rgba(224, 56, 77, 0.06);
  border: 1px solid rgba(224, 56, 77, 0.25);
  border-left: 3px solid var(--c-red);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 28px 0;
}

.exam-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.exam-alert p {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.exam-alert p:last-child {
  margin-bottom: 0;
}

/* ==============================================================================
   Çıkmış Sınav Soruları — İnteraktif Çözüm Akordiyonu (Collapsible Q&A)
   Strict: Sıfır Emoji, 1px Kenarlık, Varsayılan Olarak Kapalı, Tıklandığında Açılır
   ============================================================================== */
.exam-qa-item {
  background: rgba(224, 56, 77, 0.04);
  border: 1px solid rgba(224, 56, 77, 0.22);
  border-left: 3px solid var(--c-red);
  border-radius: 10px;
  margin: 18px 0;
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}

[data-theme="light"] .exam-qa-item {
  background: #fdf7f8;
  border-color: #f1c5cd;
  border-left-color: var(--c-red);
}

.exam-qa-item:hover {
  border-color: rgba(224, 56, 77, 0.42);
}

.exam-qa-summary {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  outline: none;
  gap: 8px;
}

.exam-qa-summary::-webkit-details-marker {
  display: none;
}

.exam-qa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exam-qa-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.exam-qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-red);
  background: rgba(224, 56, 77, 0.10);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(224, 56, 77, 0.25);
  transition: all .15s ease;
}

.exam-qa-btn svg {
  transition: transform .2s ease;
}

details[open] .exam-qa-btn svg {
  transform: rotate(180deg);
}

.exam-qa-btn .toggle-label-hide {
  display: none;
}

details[open] .exam-qa-btn .toggle-label-show {
  display: none;
}

details[open] .exam-qa-btn .toggle-label-hide {
  display: inline;
}

.exam-qa-question {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}

.exam-qa-answer {
  padding: 16px 18px;
  border-top: 1px solid rgba(224, 56, 77, 0.16);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}

[data-theme="light"] .exam-qa-answer {
  background: #ffffff;
  border-top-color: #f3cbd2;
}

.exam-qa-answer-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #107c41;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .exam-qa-answer-head {
  color: #0b6a37;
}

.exam-qa-answer ol,
.exam-qa-answer ul {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.exam-qa-answer li {
  margin-bottom: 5px;
}

/* Not / İpucu Kutusu */
.tip-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--text);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.tip-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tip-box p {
  font-size: 13.5px;
  margin: 0;
}

/* ---------- Akordeon / Soru & Çözüm Aç-Kapa (Details / Summary) ---------- */
.aero-accordion {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin: 20px 0 28px;
  overflow: hidden;
  transition: border-color .2s;
}

.aero-accordion[open] {
  border-color: var(--text);
}

.aero-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.aero-accordion summary::-webkit-details-marker {
  display: none;
}

.aero-accordion summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
  margin-right: 4px;
}

.aero-accordion[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--text);
}

.accordion-content {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13.5px;
  color: #b3b3b8;
  animation: rise .3s var(--ease) both;
}

[data-theme="light"] .accordion-content {
  color: #3f3f46;
}

/* ---------- Mühendislik Formül & Parametre Kartı ---------- */
.formula-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--c-orange, #ea580c);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0 30px;
}

.formula-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.formula-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-orange, #ea580c);
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 3px 8px;
  border-radius: 5px;
}

.formula-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.formula-math {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 18px;
  margin: 10px 0 12px;
  letter-spacing: .02em;
}

.formula-desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Basit Karşılaştırma Tabloları */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.clean-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong);
}

.clean-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #b3b3b8;
}

[data-theme="light"] .clean-table td {
  color: #3f3f46;
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.clean-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="light"] .clean-table code {
  background: rgba(0, 0, 0, 0.06);
}

/* ---------- Visual Studio Code Editor Component ---------- */
.vs-window {
  background: #1e1e1e;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 32px;
  box-shadow: none !important;
  font-family: 'JetBrains Mono', monospace;
}

[data-theme="light"] .vs-window {
  background: #ffffff;
  border-color: #d4d4d8;
  box-shadow: none !important;
}

.vs-header {
  background: #252526;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 36px;
  user-select: none;
}

[data-theme="light"] .vs-header {
  background: #f3f3f3;
  border-bottom-color: #e5e5e5;
}

.vs-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e1e1e;
  color: #cccccc;
  font-size: 12px;
  padding: 8px 14px;
  border-top: 2px solid #007acc;
  border-right: 1px solid #333333;
  border-left: 1px solid #333333;
  margin-top: 1px;
}

[data-theme="light"] .vs-tab {
  background: #ffffff;
  color: #333333;
  border-top-color: #007acc;
  border-right-color: #e5e5e5;
  border-left-color: #e5e5e5;
}

.vs-tab-icon {
  font-weight: 700;
  color: #007acc;
  font-size: 11px;
}

.vs-lang-badge {
  font-size: 10px;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.vs-body {
  padding: 16px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.vs-line {
  display: flex;
  padding: 0 16px;
  white-space: pre;
}

.vs-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .vs-line:hover {
  background: rgba(0, 0, 0, 0.02);
}

.vs-ln {
  user-select: none;
  width: 32px;
  text-align: right;
  margin-right: 18px;
  color: #5a5a5a;
  font-size: 11.5px;
}

[data-theme="light"] .vs-ln {
  color: #a0a0a0;
}

.vs-code {
  color: #d4d4d4;
  flex: 1;
}

[data-theme="light"] .vs-code {
  color: #1e1e1e;
}

/* Visual Basic Syntax Tokens */
.vs-code .kw {
  color: #569cd6;
  font-weight: 500;
}

/* Dim, As, Sub, Const, Private, True, False */
.vs-code .type {
  color: #4ec9b0;
}

/* Integer, Double, String, Boolean, Date, Decimal */
.vs-code .str {
  color: #ce9178;
}

/* "text" */
.vs-code .com {
  color: #6a9955;
  font-style: italic;
}

/* ' comment */
.vs-code .num {
  color: #b5cea8;
}

/* 42, 3.1415, 1000L */
.vs-code .op {
  color: #d4d4d4;
}

.vs-code .err {
  text-decoration: underline wavy #f14c4c;
}

/* syntax error */

[data-theme="light"] .vs-code .kw {
  color: #0000ff;
}

[data-theme="light"] .vs-code .type {
  color: #2b91af;
}

[data-theme="light"] .vs-code .str {
  color: #a31515;
}

[data-theme="light"] .vs-code .com {
  color: #008000;
}

[data-theme="light"] .vs-code .num {
  color: #098658;
}

[data-theme="light"] .vs-code .op {
  color: #000000;
}

/* Visual Studio Output Console Preview */
.vs-console {
  background: #181818;
  border-top: 1px solid #333333;
  padding: 10px 16px;
  font-size: 12px;
  color: #9cdcfe;
}

[data-theme="light"] .vs-console {
  background: #f8f8f8;
  border-top-color: #e5e5e5;
  color: #005a9e;
}

.vs-console-head {
  color: #858585;
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Kilit Önizleme Katmanı (Flu Önizleme) ---------- */
.locked-preview-layer {
  max-height: 540px;
  overflow: hidden;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.36;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 180px, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 180px, transparent 100%);
  user-select: none;
  pointer-events: none;
  margin-top: 12px;
}

/* ---------- Box Component (Yüzen Kutu Sistemi) ---------- */
.box-component {
  position: fixed;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 30px 34px;
  box-shadow: none !important;
  color: var(--text);
  box-sizing: border-box;
  animation: boxFloatIn .45s var(--ease) both;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

[data-theme="light"] .box-component {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(0, 0, 0, 0.08);
}

.box-component.box-leave {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) !important;
}

/* Konumlar (Positions) */
.box--pos-bottom-center {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: calc(var(--sidebar-w) / 2);
  width: calc(100% - 48px);
  max-width: 660px;
}

body.collapsed .box--pos-bottom-center {
  margin-left: 0;
}

.box--pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: calc(var(--sidebar-w) / 2);
  width: calc(100% - 48px);
  max-width: 620px;
}

body.collapsed .box--pos-center {
  margin-left: 0;
}

.box--pos-bottom-right {
  bottom: 28px;
  right: 28px;
  width: calc(100% - 48px);
  max-width: 440px;
}

/* ---------- Box Modal (Tüm Ekranı Kapsayan Yüzen Box) ---------- */
body.box-modal-open,
html.box-modal-open {
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.box-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity .28s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter .28s cubic-bezier(0.16, 1, 0.3, 1), -webkit-backdrop-filter .28s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: none;
  overscroll-behavior: none;
}

[data-theme="light"] .box-backdrop {
  background: rgba(240, 240, 243, 0.78);
}

.box-backdrop.box-backdrop-enter {
  opacity: 0 !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
}

.box-backdrop.fade-out {
  opacity: 0 !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  transition: opacity .24s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter .24s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter .24s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.box--modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin-left: 0 !important;
  width: calc(100% - 32px) !important;
  max-width: 580px !important;
  z-index: 1000 !important;
  background: rgba(13, 13, 15, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 20px !important;
  padding: 34px 36px !important;
  box-shadow: none !important;
  animation: boxModalPop .28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  transform-origin: center center;
}

[data-theme="light"] .box--modal {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Açılış: Animasyonlu büyüyerek açılma (Tam Senkron 280ms) */
@keyframes boxModalPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.93);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Kapanış: Animasyonlu küçülerek kapanma (Tam Senkron 240ms) */
.box--modal.box-leave {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.94) !important;
  transition: opacity .24s cubic-bezier(0.4, 0, 0.2, 1), transform .24s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none;
}

.box-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.box-pill {
  font-size: 11.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

@keyframes boxFloatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.box--pos-center {
  animation-name: boxFloatInCenter;
}

@keyframes boxFloatInCenter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Box İç Elemanları */
.box-inner {
  display: flex;
  flex-direction: column;
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.box-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-orange);
  background: rgba(245, 160, 42, 0.08);
  border: 1px solid rgba(245, 160, 42, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.box-badge-tip {
  color: #4ec9b0;
  background: rgba(78, 201, 176, 0.08);
  border-color: rgba(78, 201, 176, 0.25);
}

.box-meta {
  font-size: 11.5px;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
}

.box-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.box-close-btn:hover {
  color: var(--text);
}

.box-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.3;
}

.box-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.box-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.box-input {
  flex: 1;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  box-shadow: none !important;
}

.box-input:focus {
  border-color: var(--text);
}

.box-btn {
  height: 44px;
  background: var(--text);
  color: var(--invert);
  border: 1px solid var(--text);
  border-radius: 10px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
  box-shadow: none !important;
}

.box-btn:hover {
  opacity: .88;
}

.lock-error {
  font-size: 12.5px;
  color: var(--c-red);
  margin-top: 10px;
  margin-bottom: 4px;
}

.box-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}

.box-footer svg {
  flex-shrink: 0;
}

/* Google Admin Auth Butonu */
.google-auth-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
  box-shadow: none !important;
}

.google-auth-btn:hover {
  background: var(--hover);
  border-color: var(--muted);
}

.google-icon {
  flex-shrink: 0;
}

.admin-auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.45;
  margin-top: 4px;
}

.admin-auth-security-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #4ec9b0;
}

/* İletişim & Geri Bildirim Modalı */
.contact-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
}

[data-theme="light"] .contact-info-card {
  background: rgba(0, 0, 0, 0.03);
}

.contact-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.contact-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
}

.contact-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.45;
}

.contact-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.contact-wa-btn:hover {
  background: #16a34a;
  color: #ffffff;
}

.contact-wa-btn svg {
  flex-shrink: 0;
}

/* Mobil Uyum */
@media (max-width: 860px) {

  .box--pos-bottom-center,
  .box--pos-center {
    margin-left: 0 !important;
    width: calc(100% - 24px);
  }
}

@media (max-width: 600px) {
  .box-component {
    padding: 22px 20px;
  }

  .box--pos-bottom-center {
    bottom: 14px;
  }

  .box-input-group {
    flex-direction: column;
  }

  .box-btn {
    width: 100%;
  }
}

.backdrop {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero-3d {
    flex: 0 0 320px;
    height: 220px;
  }

  .hero {
    min-height: 200px;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  body:not(.collapsed) {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
  }

  .main,
  body.collapsed .main {
    margin-left: 0;
  }

  .topbar,
  body.collapsed .topbar {
    margin: 12px 12px 0;
  }

  .sidebar {
    transform: translateX(calc(-100% - 24px));
    overscroll-behavior: contain;
  }

  body:not(.collapsed) .sidebar {
    transform: none;
  }

  body:not(.collapsed) .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--bg);
    opacity: 1;
    z-index: 35;
    touch-action: none;
  }

  /* Telefonda/Mobilde 3D uçak animasyonu gizlensin */
  .hero-3d {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 8px 0 12px;
    gap: 0;
    display: block;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(24px, 5.5vw, 34px);
    line-height: 1.15;
    max-width: 100%;
  }

  /* Mobil Uyumlu Yol Haritası (Roadmap) */
  .roadmap-section {
    padding: 16px 14px;
    border-radius: 14px;
    margin: 10px 0 16px;
  }

  .roadmap-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .roadmap-badge {
    font-size: 10px;
    letter-spacing: .06em;
    padding: 4px 8px;
    white-space: nowrap;
    gap: 6px;
  }

  .roadmap-count {
    font-size: 11px;
    white-space: nowrap;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roadmap-item {
    padding: 11px 13px;
    min-height: 46px;
    border-radius: 10px;
    gap: 10px;
  }

  .roadmap-num {
    font-size: 10px;
    padding: 2px 6px;
  }

  .roadmap-title {
    font-size: 13px;
    line-height: 1.35;
  }

  .scroll-down-wrap {
    margin: 12px auto 18px;
    gap: 8px;
  }

  .scroll-down-btn {
    width: 46px;
    height: 46px;
  }

  .scroll-down-label {
    font-size: 10px;
  }
}

/* Kapatma butonu: sadece mobil/tablet overlay modunda */
.sb-close {
  display: none;
  margin-left: auto;
  flex: 0 0 34px;
}

@media (max-width: 860px) {
  .sb-close {
    display: grid;
  }
}

/* Telefon: sidebar tüm ekranı kaplar ve ultra kompakt dokunuşlar */
@media (max-width: 600px) {
  .sidebar {
    inset: 12px;
    width: auto;
  }

  body:not(.collapsed) .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--bg);
    opacity: 1;
    z-index: 35;
  }

  body:not(.collapsed) .page-thumb {
    display: none;
  }

  .sb-top {
    padding: 0 12px 0 12px;
  }

  .week-item {
    padding: 12px 14px;
    font-size: 14px;
  }

  .group-head {
    padding: 10px 12px;
    margin-top: 8px;
  }

  .search {
    height: 44px;
  }

  #search {
    font-size: 14px;
  }

  .kbd {
    display: none;
  }

  .content {
    padding: 16px 24px;
  }

  .roadmap-section {
    padding: 14px 12px;
    border-radius: 13px;
  }

  .roadmap-item {
    padding: 10px 11px;
    gap: 8px;
  }

  .roadmap-title {
    font-size: 12.5px;
  }

  .roadmap-badge {
    font-size: 9.5px;
    padding: 3px 6px;
  }

  .roadmap-count {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==============================================================================
   TOAST / ALERT NOTIFICATION COMPONENT
   ============================================================================== */
.app-alert-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100vw - 36px);
}

.app-alert-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none !important;
  transform: translate3d(36px, 10px, 0) scale(0.95);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  overflow: hidden;
  user-select: none;
  max-height: 120px;
}

[data-theme="light"] .app-alert-toast {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
}

.app-alert-toast.show {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.app-alert-toast.hide {
  transform: translate3d(36px, 0, 0) scale(0.95);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin-bottom: -10px;
  padding-top: 0;
  padding-bottom: 0;
}

.app-alert-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-alert-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-alert-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-alert-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  text-transform: uppercase;
}

.app-alert-msg {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.app-alert-close-btn {
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  color: var(--dim);
  display: grid;
  place-items: center;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
  flex-shrink: 0;
  margin-top: -3px;
  margin-right: -4px;
}

.app-alert-close-btn:hover {
  color: var(--text);
  background: var(--hover);
}

.app-alert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left;
  animation: alertProgress linear forwards;
}

@keyframes alertProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Modifiers for Alert Types */
.app-alert-toast.type-success {
  border-left: 3px solid #4ec9b0;
}

.app-alert-toast.type-success .app-alert-icon-wrap {
  background: rgba(78, 201, 176, 0.12);
  color: #4ec9b0;
}

.app-alert-toast.type-success .app-alert-progress {
  background: #4ec9b0;
}

.app-alert-toast.type-error {
  border-left: 3px solid var(--c-red, #f44747);
}

.app-alert-toast.type-error .app-alert-icon-wrap {
  background: rgba(244, 71, 71, 0.12);
  color: var(--c-red, #f44747);
}

.app-alert-toast.type-error .app-alert-progress {
  background: var(--c-red, #f44747);
}

.app-alert-toast.type-warning {
  border-left: 3px solid var(--c-orange, #f5a02a);
}

.app-alert-toast.type-warning .app-alert-icon-wrap {
  background: rgba(245, 160, 42, 0.12);
  color: var(--c-orange, #f5a02a);
}

.app-alert-toast.type-warning .app-alert-progress {
  background: var(--c-orange, #f5a02a);
}

.app-alert-toast.type-info {
  border-left: 3px solid #7f8cf0;
}

.app-alert-toast.type-info .app-alert-icon-wrap {
  background: rgba(127, 140, 240, 0.12);
  color: #7f8cf0;
}

.app-alert-toast.type-info .app-alert-progress {
  background: #7f8cf0;
}

/* ---------- Flag Badges (Ülke Bayrakları) ---------- */
.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  line-height: 0;
}

[data-theme="light"] .flag-badge {
  border-color: rgba(0, 0, 0, 0.16);
}

.flag-badge svg {
  display: block;
}

/* ---------- Custom Modern Tooltip Component (Baloncuk Bileşeni) ---------- */
.v-custom-tooltip {
  position: fixed;
  z-index: 999999;
  display: none;
  pointer-events: none;
  background: rgba(18, 20, 28, 0.94);
  color: #f1f4f9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  white-space: pre-wrap;
  max-width: 290px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(3px) scale(0.97);
  transition: opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1), transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .v-custom-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1e28;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.v-custom-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.v-tooltip-arrow {
  position: absolute;
  width: 7px;
  height: 7px;
  background: inherit;
  border: 1px solid inherit;
  transform: rotate(45deg);
  pointer-events: none;
}

.v-custom-tooltip[data-placement="top"] .v-tooltip-arrow {
  bottom: -4px;
  border-top: none;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .v-custom-tooltip[data-placement="top"] .v-tooltip-arrow {
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.v-custom-tooltip[data-placement="bottom"] .v-tooltip-arrow {
  top: -4px;
  border-bottom: none;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .v-custom-tooltip[data-placement="bottom"] .v-tooltip-arrow {
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* ==============================================================================
   AERO 107 — PRELOADER / AÇILIŞ YÜKLEME EKRANI (SPLASH SCREEN)
   ============================================================================== */
.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  user-select: none;
}

.app-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 320px;
  width: 90%;
}

.preloader-logo-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  animation: preloaderPulse 2.4s ease-in-out infinite;
}

.preloader-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

@keyframes preloaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preloader-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}

.preloader-title {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 260px;
}

.preloader-bar-wrap {
  width: 190px;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.preloader-bar-fill {
  height: 100%;
  width: 15%;
  background: var(--c-navy, #002855);
  border-radius: 99px;
  transition: width 0.35s ease;
}

[data-theme="dark"] .preloader-bar-fill {
  background: #4ec9b0;
}

.preloader-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}