/* FILE: app/static/styles.css */
/* Sıra Arkadaşı (koç): "E · kâğıt ve pano" tasarım sistemi (DESIGN.md).
   Gündüz: açık kâğıt zemin, mürekkep laciverdi, optik kırmızısı.
   Gece: lacivert masa üstünde açık kâğıt kartlar (.kart, .kagit). */

/* Fontlar kendi sunucumuzdan (KVKK: Google Fonts'a IP gitmesin). latin-ext Türkçe karakterler için şart. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/static/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/static/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/static/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/static/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/static/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/static/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/static/fonts/saira-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/static/fonts/saira-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/static/fonts/saira-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/static/fonts/saira-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/static/fonts/caveat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/static/fonts/caveat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0e9;
  --band: #e9e5da;
  --surface-1: #ffffff;
  --surface-2: #faf8f2;
  --surface-3: #ece8dd;
  --line: #d6d1c3;
  --line-strong: #bdb6a6;
  --text: #18213f;
  --text-2: #3f4660;
  --muted: #545a6e;
  --primary: #c2311b;
  --primary-strong: #b42d18;
  --on-primary: #ffffff;
  --secondary: #2e7d52;
  --tertiary: #8a5a12;
  --error: #b42d18;
  --track: #dcd7ca;
  --bar: #c9c2b1;
  --note: #f6e59a;
  --paper: #ffffff;
  --paper-2: #faf8f2;
  --paper-3: #efebe1;
  --ink: #18213f;
  --ink-2: #3f4660;
  --ink-muted: #545a6e;
  --paper-line: #e6e1d5;
  --paper-line-strong: #cfc9ba;
  --paper-bar: #c9c2b1;
  --glow: 0 1px 0 rgb(24 33 63 / 0.06), 0 12px 26px rgb(24 33 63 / 0.1);
  --font-sans: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque Variable", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Saira Condensed", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --font-el: "Caveat Variable", cursive;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131b2c;
  --band: #18223a;
  --surface-1: #1a2338;
  --surface-2: #222c44;
  --surface-3: #2c3650;
  --line: #2c3650;
  --line-strong: #3d4866;
  --text: #ece8de;
  --text-2: #c3c8d6;
  --muted: #a7adbf;
  --primary: #c2311b;
  --primary-strong: #f08a74;
  --on-primary: #ffffff;
  --secondary: #6cc795;
  --tertiary: #e0b066;
  --error: #f08a74;
  --track: #2c3650;
  --bar: #4a5578;
  --note: #f3de8a;
  --paper: #eeeae0;
  --paper-2: #e6e1d5;
  --paper-3: #ddd7c9;
  --ink: #18213f;
  --ink-2: #3c4258;
  --ink-muted: #4a5068;
  --paper-line: #d9d2c2;
  --paper-line-strong: #bdb6a6;
  --paper-bar: #b9b1a0;
  --glow: 0 2px 0 rgb(0 0 0 / 0.25), 0 16px 32px rgb(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #131b2c;
    --band: #18223a;
    --surface-1: #1a2338;
    --surface-2: #222c44;
    --surface-3: #2c3650;
    --line: #2c3650;
    --line-strong: #3d4866;
    --text: #ece8de;
    --text-2: #c3c8d6;
    --muted: #a7adbf;
    --primary: #c2311b;
    --primary-strong: #f08a74;
    --on-primary: #ffffff;
    --secondary: #6cc795;
    --tertiary: #e0b066;
    --error: #f08a74;
    --track: #2c3650;
    --bar: #4a5578;
    --note: #f3de8a;
    --paper: #eeeae0;
    --paper-2: #e6e1d5;
    --paper-3: #ddd7c9;
    --ink: #18213f;
    --ink-2: #3c4258;
    --ink-muted: #4a5068;
    --paper-line: #d9d2c2;
    --paper-line-strong: #bdb6a6;
    --paper-bar: #b9b1a0;
    --glow: 0 2px 0 rgb(0 0 0 / 0.25), 0 16px 32px rgb(0 0 0 / 0.4);
  }
}

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

html {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  margin-top: 0;
}

p,
li {
  text-wrap: pretty;
}

canvas {
  max-width: 100%;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

a {
  color: var(--primary-strong);
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.55rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: 0.375rem;
  background: var(--text);
  color: var(--surface-1);
  font-weight: 700;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Üst çubuk ve alt bilgi */
.site-header {
  border-bottom: 1px solid var(--line);
  view-transition-name: site-ust;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 40rem) {
  .nav-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-wordmark {
  font-size: 1.4rem;
  line-height: 1;
}

.tema-btn {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tema-btn:hover {
  border-color: var(--line-strong);
}

.tema-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-links {
  order: 99;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.95rem;
  overflow-x: auto;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .tema-btn {
    order: 99;
    margin-left: 0;
  }

  .nav-links {
    order: 0;
    margin-left: auto;
    width: auto;
    gap: 1.25rem;
  }
}

.nav-links a {
  flex-shrink: 0;
  padding: 0.6rem 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  white-space: nowrap;
}

.nav-links a:hover {
  border-bottom-color: var(--line-strong);
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--primary);
}

.nav-links a:focus-visible {
  outline-offset: -3px;
}

.nav-links a.dugme {
  padding: 0.4rem 0.95rem;
  border-bottom: 1.5px solid transparent;
  color: var(--on-primary);
}

.nav-links a.dugme:hover {
  border-bottom-color: transparent;
}

.inline-form {
  display: inline;
  margin: 0;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
}

.footer-note {
  margin: 0;
  max-width: 54ch;
}

.footer-note strong {
  color: var(--text-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
}

.footer-links a {
  color: var(--text-2);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

/* Tipografi & yüzey bileşenleri */
.baslik {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.el-yazisi {
  font-family: var(--font-el);
  font-weight: 700;
}

.etiket {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kart,
.kagit {
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: var(--ink-muted);
  --line: var(--paper-line);
  --line-strong: var(--paper-line-strong);
  --surface-1: var(--paper);
  --surface-2: var(--paper-2);
  --surface-3: var(--paper-3);
  --bar: var(--paper-bar);
  --track: var(--paper-3);
  --primary-strong: #b42d18;
  --secondary: #276f48;
  --tertiary: #8a5a12;
  --error: #b42d18;
  color: var(--text);
}

.kart {
  position: relative;
  min-width: 0;
  border-radius: 0.125rem;
  background: var(--surface-1);
  padding: 1.25rem;
  box-shadow: var(--glow);
}

@media (min-width: 40rem) {
  .kart {
    padding: 1.5rem;
  }
}

.raptiye::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--raptiye-x, 50%);
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ee8a70, #9e2512);
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.3);
  z-index: 2;
}

.egik-sol {
  rotate: -1deg;
}

.egik-sag {
  rotate: 1deg;
}

@media (prefers-reduced-motion: reduce) {
  .egik-sol,
  .egik-sag {
    rotate: none;
  }
}

.not-kagidi {
  position: relative;
  padding: 1.1rem 1.25rem;
  border-radius: 0.125rem;
  --text: #2b2a24;
  --text-2: #3a382f;
  --muted: #4a473c;
  --primary-strong: #9e2512;
  --surface-1: var(--note);
  --line: rgb(43 42 36 / 0.18);
  --line-strong: rgb(43 42 36 / 0.32);
  background: var(--note);
  color: var(--text);
  box-shadow: 0 6px 14px rgb(24 33 63 / 0.15);
}

.damga {
  display: inline-block;
  border-radius: 0.375rem;
  border: 3px solid var(--primary);
  padding: 0.25rem 0.7rem;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--primary-strong);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.bant {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
  padding: 0.08rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--muted);
}

.bant-rahat {
  color: var(--secondary);
}

.bant-sinirda {
  color: var(--tertiary);
}

.bant-zor {
  color: var(--primary-strong);
}

.bant-murekkep {
  color: var(--text);
}

.ders-renk {
  width: 8px;
  align-self: stretch;
  border-radius: 2px;
  flex: none;
}

/* Düğmeler ve hap sekmeler */
.dugme,
.dugme-murekkep,
.dugme-cizgi,
.dugme-tehlike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.dugme {
  background: var(--primary);
  color: var(--on-primary);
}

.dugme:hover:not(:disabled) {
  filter: brightness(1.1);
}

.dugme-murekkep {
  background: var(--ink);
  color: var(--paper);
}

:root[data-theme="dark"] .dugme-murekkep:not(.kart *) {
  background: var(--paper);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .dugme-murekkep:not(.kart *) {
    background: var(--paper);
    color: var(--ink);
  }
}

.dugme-murekkep:hover:not(:disabled) {
  filter: brightness(1.08);
}

.dugme-cizgi {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.dugme-cizgi:hover:not(:disabled) {
  background: var(--surface-2);
}

.dugme-tehlike {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-color: var(--primary-strong);
  background: transparent;
  color: var(--primary-strong);
}

.dugme-tehlike:hover:not(:disabled) {
  background: #fdf0ec;
}

.dugme-sm {
  min-height: 2.45rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
}

.dugme-tam {
  width: 100%;
}

.dugme:disabled,
.dugme-murekkep:disabled,
.dugme-cizgi:disabled,
.dugme-tehlike:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.session-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* test_monorepo_boundaries.py sınıf adları: .tab ve .tab.active */
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 3.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1.5px solid var(--line);
  background: transparent;
  padding: 0.4rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tab:hover {
  border-color: var(--line-strong);
}

.tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.tab:focus-visible {
  outline-color: var(--text);
}

/* Girdiler ve formlar */
.giris {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  padding: 0.35rem 0.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.giris:focus {
  outline: none;
  border-color: var(--primary);
}

.giris:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
}

.giris::placeholder {
  color: var(--muted);
  opacity: 1;
}

.giris:not(.giris-metin)::placeholder {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
}

.giris-metin {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 400;
  padding: 0.55rem 0.8rem;
}

.giris-yanlis {
  color: var(--primary-strong);
}

.giris-sm {
  min-height: 2.55rem;
  font-size: 1.15rem;
  padding: 0.25rem 0.5rem;
}

.secim {
  width: 100%;
  min-height: 2.75rem;
  cursor: pointer;
  appearance: none;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line-strong);
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23545a6e'%3E%3Cpath d='M5.2 7.2a.75.75 0 0 1 1.06.04L10 11.2l3.74-3.96a.75.75 0 1 1 1.1 1.02l-4.3 4.55a.75.75 0 0 1-1.1 0l-4.3-4.55a.75.75 0 0 1 .06-1.06Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem;
  padding: 0.45rem 2.1rem 0.45rem 0.75rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.secim:focus {
  outline: none;
  border-color: var(--primary);
}

.secim:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
}

.track-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.05rem;
}

.track-fieldset legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-2);
}

.track-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.track-radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 3.75rem;
  flex: 1 1 4rem;
  border-radius: 9999px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  padding: 0.35rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.track-radio-pill:hover {
  border-color: var(--line-strong);
}

.track-radio-pill input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.track-radio-pill:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.track-radio-pill:has(input:focus-visible) {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.track-radio-pill:active {
  scale: 0.98;
  filter: brightness(0.93);
}

@media (prefers-reduced-motion: reduce) {
  .track-radio-pill:active {
    scale: none;
  }
}

.stack-form .form-group {
  margin-bottom: 1.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
  font-size: 0.95rem;
  color: var(--text-2);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  text-align: right;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1.5px solid transparent;
}

.alert-error {
  background: #fdf0ec;
  color: #9e2512;
  border-color: #e5b3a7;
}

.alert-success {
  background: #ebf6ef;
  color: #1e5c3a;
  border-color: #a6d4b8;
}

/* Metin yardımcıları */
.muted {
  color: var(--text-2);
}

.muted-sm {
  color: var(--muted);
  font-size: 0.88rem;
}

.disclaimer-note {
  margin: 0.95rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 58ch;
}

/* Sayfa başlıkları */
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.65rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
}

.page-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 60ch;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* Karşılama sayfası (index.html) */
.hero-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem 3.5rem;
  padding-top: 0.5rem;
  padding-bottom: 3.5rem;
}

.hero-copy {
  flex: 1 1 28rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(2.4rem, 9vw, 2.9rem);
}

@media (min-width: 40rem) {
  .hero-title {
    font-size: clamp(2.85rem, 5.5vw, 4.75rem);
  }
}

.hero-underline {
  position: relative;
  display: inline-block;
}

.hero-underline svg {
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 100%;
  height: 0.85rem;
}

.hero-lead {
  margin: 0;
  max-width: 44ch;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.hero-preview-wrap {
  position: relative;
  flex: 1 1 23rem;
  min-width: 0;
  padding-top: 0.75rem;
  padding-bottom: 5.25rem;
}

.preview-card {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.75rem;
}

.preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.65rem;
}

.preview-rows {
  display: grid;
  gap: 0.25rem;
}

.preview-row {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1.5px dashed var(--line-strong);
  padding-top: 0.85rem;
}

.hero-sticky-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12.5rem;
  font-size: 1.32rem;
  line-height: 1.22;
}

.pano-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-top: 3.75rem;
  padding-bottom: 4.25rem;
}

.pano-heading {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.pano-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem 2.25rem;
  margin-top: 2.25rem;
}

.pano-card-wide {
  flex: 1.35 1 22rem;
}

.pano-card-mid {
  flex: 1.05 1 19rem;
}

.pano-card-compact {
  flex: 0.9 1 17rem;
}

@media (min-width: 48rem) {
  .pano-card-mid {
    transform: translateY(1.25rem);
  }
}

.pano-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pano-card-body h3 {
  margin: 0;
  font-size: 1.65rem;
}

.pano-card-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.02rem;
}

.pano-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.95rem;
}

/* Panel & asimetrik ızgaralar */
.dashboard-stack {
  display: grid;
  gap: 1.75rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .dashboard-grid-trend {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .dashboard-grid-timing {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }

  .dashboard-grid-ranking {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .dashboard-grid-plan {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}

.card-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.38rem;
  line-height: 1.15;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.38rem;
  line-height: 1.15;
}

.chart-wrapper {
  position: relative;
  height: 280px;
  width: 100%;
  min-width: 0;
}

.chart-wrapper canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* Zayıf konular */
.weak-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.weak-topic-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.weak-topic-item:last-child {
  border-bottom: 0;
}

.weak-topic-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.score-pill {
  font-size: 0.94rem;
  color: var(--text-2);
  white-space: nowrap;
}

.upsell-note {
  margin: 1rem 0 0;
  font-size: 0.94rem;
}

/* Süre KPI satırı */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.8rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.kpi-card {
  border-radius: 0.375rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi-value {
  font-size: 1.25rem;
  line-height: 1.1;
}

/* Tablolar */
.table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.data-table th {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.data-table td {
  text-align: left;
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

@media (max-width: 40rem) {
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.45rem;
    font-size: 0.88rem;
  }
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.subject-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.subject-cell .ders-renk {
  height: 1.35rem;
  align-self: center;
}

/* Okuma sonucu / Sıralama & Hedef kartları */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.9rem;
}

.ranking-box {
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.ranking-box h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-strong);
}

.ranking-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
  font-size: 0.94rem;
}

.ranking-big {
  font-size: 1.55rem;
  line-height: 1;
}

.ranking-assumption {
  margin: 0.85rem 0 0;
}

.inline-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.inline-input-row .form-group {
  flex: 1 1 11rem;
  margin-bottom: 0;
}

.target-preview-box {
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-2);
  border-radius: 0.375rem;
  padding: 0.95rem 1rem;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.6rem;
}

.target-nets-line {
  margin: 0;
  font-size: 0.98rem;
}

.target-subjects-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Yeni deneme formu (Cevap kâğıdın dili) */
.duration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.chip-btn {
  min-height: 2.25rem;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.chip-clear {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.duration-summary {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
}

.duration-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.test-groups-stack {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.test-group {
  border: 1.5px solid var(--line-strong);
  border-radius: 0.25rem;
  padding: 1.1rem;
  background: var(--surface-2);
}

.test-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
}

.test-group-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.35rem;
}

.test-duration-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.test-duration-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
}

.test-duration-input {
  width: 7.5rem;
  max-width: 100%;
  min-height: 2.6rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-1);
  padding: 0.25rem 0.6rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.test-duration-input:focus {
  outline: none;
  border-color: var(--primary);
}

.subjects-stack {
  display: grid;
  gap: 0.9rem;
}

.subject-block {
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  background: var(--surface-1);
  padding: 0.95rem 1rem;
}

.subject-top {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.subject-header h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.dyb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 40rem) {
  .dyb-grid .giris {
    padding: 0.3rem 0.25rem;
  }

  .dyb-grid .giris::placeholder {
    font-size: 0.8rem;
  }
}

.dyb-grid .form-group {
  margin-bottom: 0;
}

.dyb-grid .form-group label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.3rem;
}

.subj-sum {
  margin: 0.5rem 0 0;
}

.subj-sum.sum-error {
  color: var(--primary-strong);
  font-weight: 700;
}

.topic-details {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}

.topic-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-strong);
}

.topic-grid {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.topic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topic-inputs label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.topic-inputs input {
  width: 3.75rem;
  min-height: 2.25rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  padding: 0.15rem 0.35rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.kind-tabs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kronometre-kutu {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.25rem;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
}

.kronometre-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chip-btn.chip-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.kronometre-ekran-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  margin: 0.75rem 0 1rem;
}

.kronometre-ekran {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kronometre-tur-ekran {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-strong);
  font-variant-numeric: tabular-nums;
}

.kronometre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.kronometre-laps {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bant.tur-hizli {
  border-color: var(--secondary);
  color: var(--secondary);
}

.bant.tur-yavas {
  border-color: var(--primary-strong);
  color: var(--primary-strong);
}

.paste-details {
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
}

.paste-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-strong);
}

.paste-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
}

@media (min-width: 48rem) {
  .paste-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.question-builder-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--text);
}

.question-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.question-rows-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.question-row-card {
  display: grid;
  grid-template-columns: auto 48px minmax(4.8rem, 0.7fr) minmax(6.2rem, 0.9fr) minmax(9rem, 1.5fr) 44px 40px;
  gap: 0.6rem;
  align-items: end;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--surface-1);
}

@media (max-width: 52rem) {
  .question-row-card {
    grid-template-columns: 1fr 48px 1fr;
  }

  .question-row-card .q-field-topic {
    grid-column: 1 / -1;
  }
}

.q-no-cell,
.q-field {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.q-no-cell label,
.q-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.q-mini-input {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  padding: 0.25rem 0.45rem;
  font-size: 0.94rem;
  color: var(--text);
}

.sonuc-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 0.375rem;
  border: 2px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
}

.sonuc-btn.res-correct {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #ffffff;
}

.sonuc-btn.res-wrong {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.sonuc-btn.res-blank {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
}

.star-btn,
.q-del-btn {
  min-width: 40px;
  min-height: 44px;
  border-radius: 0.375rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.star-btn.is-starred {
  color: var(--tertiary);
  border-color: var(--tertiary);
}

.q-del-btn:hover {
  color: var(--primary-strong);
  border-color: var(--primary-strong);
}

.bant.bant-zor {
  border-color: var(--primary-strong);
  color: var(--primary-strong);
}

@media (prefers-reduced-motion: reduce) {
  .sonuc-btn,
  .star-btn,
  .q-del-btn {
    transition: none;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Plan & Koç kutuları */
.gap-banner {
  margin: 0 0 0.85rem;
}

.plan-slot-banner {
  margin: 0 0 1rem;
}

.coach-box {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 0.375rem;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-2);
  line-height: 1.6;
}

/* Kimlik sayfaları */
.auth-section {
  max-width: 28rem;
  margin: 1.5rem auto;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 2rem;
  margin-bottom: 0.45rem;
}

.auth-switch {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* Fiyatlandırma (checkout.html) */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }
}

.pricing-card {
  display: grid;
  gap: 0.85rem;
}

.price {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.15rem 0 0.4rem;
}

.feature-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-2);
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.full-width {
  grid-column: 1 / -1;
}

.empty-state {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.empty-state p {
  margin: 0;
}

.legal-card {
  max-width: 62ch;
}

.legal-article {
  display: grid;
  gap: 1.75rem;
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.65;
}

.legal-article h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.legal-article h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.38rem;
}

.legal-article ul {
  margin: 0.65rem 0 0;
  padding-left: 1.35rem;
}

.legal-article li + li {
  margin-top: 0.4rem;
}

/* Basma hissi (Hallmark) */
.dugme:active:not(:disabled),
.dugme-murekkep:active:not(:disabled),
.dugme-cizgi:active:not(:disabled),
.dugme-tehlike:active:not(:disabled),
.tab:active,
.chip-btn:active,
a.kart:active {
  scale: 0.98;
  filter: brightness(0.93);
}

@media (prefers-reduced-motion: reduce) {
  .dugme:active:not(:disabled),
  .dugme-murekkep:active:not(:disabled),
  .dugme-cizgi:active:not(:disabled),
  .dugme-tehlike:active:not(:disabled),
  .tab:active,
  .chip-btn:active,
  a.kart:active {
    scale: none;
  }
}

/* Hareket (app/static/hareket.js): başlangıç durumları yalnız html.hareket varken */
.hareket [data-hareket]:not(.gorundu) {
  opacity: 0;
}

.hareket [data-hareket="kagit"].gorundu {
  transform-origin: var(--raptiye-x, 50%) 0;
  animation: kagit-asil 0.9s cubic-bezier(0.3, 0.7, 0.35, 1) var(--gecikme, 0s) both;
}

.hareket [data-hareket="kagit"].gorundu.raptiye::before,
.hareket [data-hareket="kart"].gorundu.raptiye::before {
  animation: raptiye-cak 0.5s cubic-bezier(0.3, 0.7, 0.35, 1) var(--gecikme, 0s) both;
}

.hareket [data-hareket="kart"].gorundu {
  animation: kart-otur 0.5s cubic-bezier(0.16, 1, 0.3, 1) var(--gecikme, 0s) both;
}

.hareket [data-hareket="not"].gorundu {
  transform-origin: 50% 0;
  animation: not-yapis 0.8s cubic-bezier(0.3, 0.7, 0.35, 1) var(--gecikme, 0.1s) both;
}

.hareket [data-hareket="damga"].gorundu {
  animation: damga-bas 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s both;
}

.hareket [data-hareket="satir"].gorundu {
  animation: satir-gel 0.45s cubic-bezier(0.16, 1, 0.3, 1) calc(min(var(--i, 0), 8) * 40ms) both;
}

@keyframes kagit-asil {
  0% {
    opacity: 0;
    transform: translateY(-22px) rotate(-3deg);
  }
  32% {
    opacity: 1;
    transform: translateY(0) rotate(2.2deg);
  }
  56% {
    transform: rotate(-1.3deg);
  }
  76% {
    transform: rotate(0.55deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes kart-otur {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes raptiye-cak {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(1.8);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes not-yapis {
  0% {
    opacity: 0;
    transform: translateY(14px) rotate(-7deg) scale(1.04);
  }
  45% {
    opacity: 1;
    transform: rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes damga-bas {
  0% {
    opacity: 0;
    transform: scale(1.9);
  }
  55% {
    opacity: 1;
    transform: scale(0.94);
  }
  78% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes satir-gel {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

/* Sayfa ve tema geçişleri */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 0.16s ease-in both sayfa-cik;
}

::view-transition-new(root) {
  animation: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both sayfa-gel;
}

@keyframes sayfa-cik {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes sayfa-gel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.tema-gecisi header {
  view-transition-name: none;
}

.tema-gecisi::view-transition-old(root),
.tema-gecisi::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
