/* CRQS Automation: Konya HPC
   Aydinlik kurumsal tema. Tum renkler burada degisken: markaya uydurmak icin
   sadece :root blogunu degistirin. */

:root {
  --brand: #1B34C4;
  --brand-dark: #12249111;
  --brand-soft: #EEF1FE;
  --accent: #00A98F;
  --accent-soft: #E6F7F3;

  --ink: #0B1B2E;
  --ink-2: #46586E;
  --ink-3: #8194AA;

  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --line: #E4EAF2;
  --line-soft: #EFF3F8;

  --ok: #10A055;
  --ok-soft: #E7F6ED;
  --bad: #DC3B41;
  --bad-soft: #FDECEC;
  --warn: #C2780A;
  --warn-soft: #FDF3E3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(11, 27, 46, .07);
  --shadow-lg: 0 18px 48px rgba(11, 27, 46, .13);
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 660; letter-spacing: -.021em; }
p { margin: 0; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }

/* ═══ Butonlar ═══════════════════════════════════════════════════════════ */

.btn {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 550;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s, box-shadow .14s, border-color .14s, background .14s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgba(27, 52, 196, .24);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(27, 52, 196, .32); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-soft); border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-danger:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }

/* ═══ Ust serit ══════════════════════════════════════════════════════════ */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 13px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
}
/* Logonun kendisi zaten yuvarlatilmis mavi bir blok; arkasina kutu koymak
   ikinci bir cerceve gibi gorunuyordu. */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.brand span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.topbar-spacer { flex: 1; }
.who { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.who .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 650; font-size: 12px;
}

/* ═══ Ekranlar ═══════════════════════════════════════════════════════════ */

.screen { display: none; animation: fade-up .32s ease both; }
.screen.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 780px; }

/* ═══ Karsilama ══════════════════════════════════════════════════════════ */

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(36px, 6vw, 76px) 0 clamp(30px, 5vw, 60px);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 30px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: var(--accent-soft); color: #067A66;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Baslik artik tam bir soru cumlesi tasiyor; onceki tek satirlik slogana gore
   daha kucuk bir olcek gerekiyor, yoksa dort satira tasip animasyonu eziyor. */
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
/* Basligin ustundeki durum tespiti: sorunun kendisi. Basliktan once okunmali,
   o yuzden daha kucuk ve soluk. */
.hero-intro {
  font-size: clamp(14.5px, 1.35vw, 16.5px); color: var(--ink-2);
  max-width: 46ch; margin-bottom: 16px;
}
.hero-lede { margin-top: 18px; font-size: clamp(14.5px, 1.35vw, 16.5px); color: var(--ink-2); max-width: 50ch; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* Aydinlik uretim bandi animasyonu */
.stage {
  position: relative; aspect-ratio: 4/3.3; border-radius: 22px; overflow: hidden;
  background: linear-gradient(170deg, #F7FAFE, #E8EEF7);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.stage-tag {
  position: absolute; top: 15px; left: 17px; z-index: 5;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.stage-live {
  position: absolute; top: 14px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bad); font-weight: 600;
}
.stage-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.scanbeam {
  position: absolute; top: 0; bottom: 26%; width: 120px; z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(27, 52, 196, .07) 45%,
              rgba(27, 52, 196, .22) 50%, rgba(27, 52, 196, .07) 55%, transparent);
  animation: sweep 4.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-130px); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(calc(100% + 60vw)); opacity: 0; }
}

.belt {
  position: absolute; left: 0; right: 0; bottom: 17%; height: 18px; z-index: 2;
  background: repeating-linear-gradient(90deg, #C9D3E0 0 18px, #DCE3EC 18px 36px);
  border-top: 1px solid #B6C2D2; animation: belt-run .8s linear infinite;
}
@keyframes belt-run { to { background-position: -36px 0; } }

.bottle { position: absolute; bottom: calc(17% + 16px); z-index: 3; width: 52px;
  animation: travel 8.6s linear infinite; }
.bottle:nth-of-type(2) { animation-delay: -2.9s; }
.bottle:nth-of-type(3) { animation-delay: -5.8s; }
@keyframes travel { from { left: -12%; } to { left: 104%; } }
.bottle svg { width: 100%; display: block; filter: drop-shadow(0 5px 10px rgba(11, 27, 46, .18)); }

.bottle .detect {
  position: absolute; inset: -12% -20% 3% -20%;
  border: 1.5px solid var(--brand); border-radius: 5px; opacity: 0;
  animation: detect 8.6s linear infinite;
}
.bottle:nth-of-type(2) .detect { animation-delay: -2.9s; }
.bottle:nth-of-type(3) .detect { animation-delay: -5.8s; }
@keyframes detect {
  0%, 36% { opacity: 0; transform: scale(.92); }
  42%, 76% { opacity: 1; transform: scale(1); }
  82%, 100% { opacity: 0; }
}
.bottle .detect::after {
  content: attr(data-tag); position: absolute; top: -17px; left: -1px;
  background: var(--brand); color: #fff; font-size: 8.5px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px 3px 0 0; white-space: nowrap;
}
.bottle.fail .detect { border-color: var(--bad); }
.bottle.fail .detect::after { background: var(--bad); }

.feed { position: absolute; right: 14px; top: 42px; z-index: 5; width: min(200px, 54%);
  display: flex; flex-direction: column; gap: 6px; }
.fline {
  display: flex; align-items: center; gap: 8px; font-size: 10.5px;
  background: #fff; border: 1px solid var(--line); border-left-width: 3px;
  border-radius: 6px; padding: 6px 9px; color: var(--ink-2);
  box-shadow: var(--shadow); opacity: 0; animation: fpop 8.6s linear infinite;
}
.fline b { margin-left: auto; font-weight: 650; }
.fline.ok { border-left-color: var(--ok); } .fline.ok b { color: var(--ok); }
.fline.bad { border-left-color: var(--bad); } .fline.bad b { color: var(--bad); }
.fline.unk { border-left-color: var(--warn); } .fline.unk b { color: var(--warn); }
.fline:nth-child(1) { animation-delay: -.2s; }
.fline:nth-child(2) { animation-delay: .5s; }
.fline:nth-child(3) { animation-delay: 1.2s; }
.fline:nth-child(4) { animation-delay: 1.9s; }
@keyframes fpop {
  0%, 4% { opacity: 0; transform: translateX(12px); }
  9%, 62% { opacity: 1; transform: translateX(0); }
  70%, 100% { opacity: 0; transform: translateX(12px); }
}

/* ═══ Tanitim (adim adim) ════════════════════════════════════════════════ */

.tour { padding: 26px 0 60px; }

.progress { display: flex; align-items: center; gap: 7px; justify-content: center; margin-bottom: 30px; }
.pdot {
  width: 30px; height: 4px; border-radius: 999px; background: var(--line);
  transition: background .3s, width .3s;
}
.pdot.done { background: #B8C6DC; }
.pdot.now { background: var(--brand); width: 46px; }

.step-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px);
}
.step-kicker {
  font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.step-card h2 { font-size: clamp(24px, 3.2vw, 34px); }
.step-lede { margin-top: 14px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17px); max-width: 62ch; }

.tour-nav { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.tour-nav .spacer { flex: 1; }

/* Uc soru tipi kartlari */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 820px) { .types { grid-template-columns: 1fr; } }
.type-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; background: var(--bg-soft); transition: border-color .16s, transform .16s;
}
.type-card.spot { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.type-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line);
}
.type-card h4 { font-size: 15px; }
.type-card p { margin-top: 6px; font-size: 13.3px; color: var(--ink-2); }
.type-card .eg {
  margin-top: 11px; font-size: 12.5px; color: var(--ink-3);
  border-left: 2px solid var(--line); padding-left: 10px; font-style: italic;
}

/* ── Yapay zekayla calisan soru tipleri ─────────────────────────────────
   Serbest ve Bolge sorularinda hafif bir isilti var; Evet/Hayir'da YOK.
   Bilerek: o klasik bir form sorusu, modele bir sey yorumlatmiyor. Farkin
   anlatilmadan gorulmesini istiyoruz.

   Cerceve iki katmanli arka planla ciziliyor (padding-box duz renk +
   border-box degrade), cunku `border-image` ile yuvarlatilmis kose
   calismiyor. Animasyon sadece degrade katmanini kaydiriyor. */
.type-card.ai {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(115deg, #1B34C4, #7B5CF0, #00A98F, #1B34C4) border-box;
  background-size: auto, 300% 300%;
  animation: ai-flow 7s ease-in-out infinite;
}
.type-card.ai.spot {
  background:
    linear-gradient(var(--brand-soft), var(--brand-soft)) padding-box,
    linear-gradient(115deg, #1B34C4, #7B5CF0, #00A98F, #1B34C4) border-box;
  background-size: auto, 300% 300%;
  box-shadow: 0 0 0 4px rgba(27, 52, 196, .06), 0 10px 28px rgba(123, 92, 240, .16);
}
@keyframes ai-flow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50%      { background-position: 0 0, 100% 50%; }
}

/* Simgenin cevresinde donen kucuk parlamalar. */
.type-card.ai .type-icon { position: relative; overflow: visible; }
.type-card.ai .type-icon::before,
.type-card.ai .type-icon::after {
  content: "✦"; position: absolute; color: #7B5CF0; pointer-events: none;
  animation: twinkle 2.6s ease-in-out infinite;
}
.type-card.ai .type-icon::before { top: -7px; right: -7px; font-size: 11px; }
.type-card.ai .type-icon::after {
  bottom: -5px; left: -6px; font-size: 8px; color: var(--accent);
  animation-delay: 1.3s;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(90deg); }
}

/* Kartin ustunde "AI" rozeti. */
.ai-tag {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(115deg, #1B34C4, #7B5CF0);
  box-shadow: 0 2px 8px rgba(123, 92, 240, .35);
}
.ai-tag i { font-style: normal; animation: twinkle 2.6s ease-in-out infinite; }

/* Serbest soru kartindaki aciklama satiri. */
.ai-note {
  margin-top: 10px; font-size: 12.3px; line-height: 1.45;
  color: #4B3BA8; background: rgba(123, 92, 240, .08);
  border-radius: 8px; padding: 8px 10px;
  display: flex; gap: 7px; align-items: flex-start;
}
.ai-note b { font-weight: 650; }

/* Hareketi kapatmis kullanicida sadece durgun degrade kalsin. */
@media (prefers-reduced-motion: reduce) {
  .type-card.ai, .type-card.ai .type-icon::before,
  .type-card.ai .type-icon::after, .ai-tag i { animation: none; }
  .type-card.ai .type-icon::before, .type-card.ai .type-icon::after { opacity: .9; }
}

/* Tebrikler */
.congrats { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.congrats .seal {
  width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
  font-size: 42px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.congrats h2 { font-size: clamp(28px, 4vw, 40px); }
.congrats p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.congrats .recap {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
}
.recap-chip {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; color: var(--ink-2);
}
.recap-chip b { color: var(--ok); }

/* ═══ Paneller / stüdyo ══════════════════════════════════════════════════ */

.studio { padding: 22px 0 70px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 14px; }
.panel h3 {
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 13px; display: flex; align-items: center; gap: 9px; font-weight: 650;
}
.sub { font-size: 11.5px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.btn-link {
  background: none; border: none; padding: 0; color: var(--brand); font-weight: 550;
  font-size: 11.5px; letter-spacing: 0; text-transform: none; text-decoration: underline;
}

.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { flex: 1 1 170px; min-width: 0; }

input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 13px; border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { resize: vertical; min-height: 76px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 550; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══ Referans gorsel + bolge cizimi ═════════════════════════════════════ */

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft);
  padding: 28px 18px; text-align: center; color: var(--ink-3); font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--ink-2); }
.dropzone b { display: block; color: var(--ink); margin-bottom: 3px; font-size: 14px; }

/* Cerceve GORUNTU KADAR kuculur (fit-content), goruntu cerceveyi doldurmaz.
   Bu bilerek: cizilen kutu yuzde olarak cerceveye gore konumlaniyor, dolayisiyla
   cerceve ile goruntu SINIRLARININ BIREBIR AYNI olmasi sart. Goruntuyu sabit bir
   kutuya `object-fit: contain` ile oturtsaydik, kenarlardaki bos seritler
   koordinatlari kaydirir ve model yanlis bolgeye bakardi. */
.canvas-wrap {
  position: relative; display: block;
  width: fit-content; max-width: 100%; margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line);
  cursor: crosshair; user-select: none; touch-action: none;
}
.canvas-wrap img {
  /* Dikey urun fotograflari tam genislikte acilinca sayfayi yutuyordu.
     Yukseklik tavani ekrana gore: kucuk ekranda da tek bakista sigsin. */
  display: block; max-height: min(52vh, 430px);
  width: auto; height: auto; max-width: 100%;
  /* Kritik: goruntu isaretci olaylarini almasin. Aksi halde uzerinde
     suruklemek tarayicinin YEREL RESIM SURUKLEME'sini baslatiyor, bu da
     pointer dizisini iptal ediyor: pointerup hic gelmiyor ve cizilen
     kutu ekranda takili kaliyor. */
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.box {
  position: absolute; border: 2px solid var(--brand); background: rgba(27, 52, 196, .1);
  box-shadow: 0 0 0 9999px rgba(11, 27, 46, .32); pointer-events: none;
}
.box .tag {
  position: absolute; top: -21px; left: -2px; background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px 4px 0 0; white-space: nowrap;
}
.saved-box { position: absolute; border: 1.5px solid var(--accent);
  background: rgba(0, 169, 143, .1); pointer-events: none; border-radius: 3px; }
.saved-box .tag {
  position: absolute; top: -17px; left: -1px; background: var(--accent); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 3px 3px 0 0; white-space: nowrap;
}
.draw-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(11, 27, 46, .85); color: #fff; font-size: 12px; font-weight: 550;
  padding: 7px 15px; border-radius: 999px; pointer-events: none;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 50% { opacity: .5; } }

/* ═══ Soru listesi ═══════════════════════════════════════════════════════ */

.qlist { display: flex; flex-direction: column; gap: 7px; }
.qcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  animation: fade-up .28s ease both; }
.qcard.disabled { opacity: .5; }
.qcard-top { display: flex; align-items: center; gap: 9px; padding: 11px 13px; cursor: pointer; }
.qcard-top:hover { background: var(--bg-soft); border-radius: var(--radius-sm); }
.qnum { color: var(--ink-3); font-family: var(--mono); font-size: 11px; flex: none; }
.qlabel { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 560;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--ink-3); font-size: 9px; flex: none; transition: transform .18s; }
.qcard.open .chev { transform: rotate(180deg); }

.qbadge {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border-radius: 7px; font-size: 12px; border: 1px solid var(--line); color: var(--ink-2);
}
.qbadge.region { background: var(--brand-soft); border-color: #C5CEFA; color: var(--brand); }
.qbadge.manual { background: var(--accent-soft); border-color: #B6E5DB; color: #067A66; }
.qbadge.boolean { background: var(--warn-soft); border-color: #F0DDB8; color: var(--warn); }
.qbadge.crit {
  width: auto; height: auto; padding: 2px 8px; font-size: 10px; font-weight: 650;
  background: var(--bad-soft); border-color: #F5C6C7; color: var(--bad);
  letter-spacing: .05em; text-transform: uppercase;
}

.qcard-detail {
  padding: 11px 13px 13px 46px; font-size: 12.8px; color: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.qcard-detail ul { margin: 5px 0 0; padding-left: 16px; }
.qcard-detail li { margin-bottom: 2px; }
.qcard-detail .k, .rcard-body .k {
  color: var(--ink-3); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .08em; display: block; margin-top: 9px; font-weight: 650;
}
.qcard-actions { display: flex; gap: 6px; margin-top: 12px; }
.empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 24px 10px; }

.spec-box {
  background: var(--accent-soft); border: 1px solid #B6E5DB;
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 12px;
}
.spec-box h4 { font-size: 14px; color: #056454; }
.spec-box .k { color: #067A66; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .08em; display: block; margin-top: 10px; font-weight: 650; }
.spec-box ul { margin: 4px 0 0; padding-left: 17px; font-size: 13px; color: var(--ink-2); }
.spec-box .body { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

/* ═══ Model secici ═══════════════════════════════════════════════════════ */

.model-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .model-pick { grid-template-columns: 1fr; } }
.model-card {
  text-align: left; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.model-card:hover:not(:disabled) { border-color: #B8C6DC; }
.model-card.active { border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(27, 52, 196, .08); }
.model-card b { display: block; font-size: 14px; }
.model-card small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.model-card.off { opacity: .5; }
.quota { margin-top: 9px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 8px; }
.meter { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.meter i.warn { background: var(--warn); }
.meter i.full { background: var(--bad); }

/* ═══ Kamera / fotograf ══════════════════════════════════════════════════ */

.shot-wrap { position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0B1B2E; border: 1px solid var(--line); }
/* Burada cizim yok, o yuzden sabit kutu + contain yeterli; kenarlardaki
   koyu seritler vizor hissi veriyor. */
.shot-wrap video, .shot-wrap img {
  display: block; width: 100%;
  max-height: min(46vh, 380px); object-fit: contain;
}
.shot-wrap.mirror video { transform: scaleX(-1); }   /* on kamera ayna gorunumu */
.shot-wrap.scanning::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 16px 3px rgba(27, 52, 196, .5); animation: scanline 1.5s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { top: 0; } 50% { top: calc(100% - 3px); } }
.cam-flip {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 550;
}
.run-note {
  margin-top: 8px; font-size: 12.5px; color: var(--warn); text-align: center;
}
.form-thumb { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.form-thumb img { width: 58px; border-radius: 7px; border: 1px solid var(--line); display: block; }

/* ═══ Sonuclar ═══════════════════════════════════════════════════════════ */

.verdict-banner {
  display: flex; align-items: center; gap: 14px; border-radius: var(--radius);
  padding: 16px 19px; margin-bottom: 13px; border: 1px solid var(--line);
  background: var(--bg-soft); animation: fade-up .32s ease both;
}
.verdict-banner .vicon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 21px; flex: none; font-weight: 700;
}
.verdict-banner b { font-size: 16.5px; display: block; }
.verdict-banner span { color: var(--ink-2); font-size: 13px; }
.verdict-banner.uygun { border-color: #B9E3CA; background: var(--ok-soft); }
.verdict-banner.uygun .vicon { background: #fff; color: var(--ok); }
.verdict-banner.uygunsuz { border-color: #F5C6C7; background: var(--bad-soft); }
.verdict-banner.uygunsuz .vicon { background: #fff; color: var(--bad); }
.verdict-banner.belirsiz { border-color: #F0DDB8; background: var(--warn-soft); }
.verdict-banner.belirsiz .vicon { background: #fff; color: var(--warn); }

.rcard {
  background: var(--bg); border: 1px solid var(--line); border-left-width: 3px;
  border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 7px;
  animation: fade-up .3s ease both; cursor: pointer;
}
.rcard:hover { background: var(--bg-soft); }
.rcard.pending { border-left-color: var(--ink-3); cursor: default; }
.rcard.uygun { border-left-color: var(--ok); }
.rcard.uygunsuz { border-left-color: var(--bad); }
.rcard.belirsiz { border-left-color: var(--warn); }
.rcard-top { display: flex; align-items: center; gap: 9px; }
.rlabel { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 560;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rverdict { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; flex: none; }
.rverdict.uygun { background: var(--ok-soft); color: var(--ok); }
.rverdict.uygunsuz { background: var(--bad-soft); color: var(--bad); }
.rverdict.belirsiz { background: var(--warn-soft); color: var(--warn); }
.rcard-body { margin-top: 7px; font-size: 12.8px; color: var(--ink-2); }
.rcard-body .k:first-child { margin-top: 0; }
.rcard:not(.open) .clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rcard:not(.open) .only-open { display: none; }
.rmeta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); flex: none; }

.spinner {
  width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ Giris / kayit ══════════════════════════════════════════════════════ */

.auth-wrap { max-width: 430px; margin: clamp(30px, 7vw, 80px) auto; padding: 0 20px; }
.auth-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 25px; }
.auth-card > p { color: var(--ink-2); font-size: 14px; margin-top: 8px; margin-bottom: 22px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.auth-switch button { background: none; border: none; color: var(--brand); font-weight: 600;
  text-decoration: underline; padding: 0; }
.auth-err { background: var(--bad-soft); border: 1px solid #F5C6C7; color: #9E2A2E;
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }

/* ═══ Bildirim / modal ═══════════════════════════════════════════════════ */

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 12px 16px; max-width: 370px;
  box-shadow: var(--shadow-lg); animation: fade-up .26s ease both; font-size: 13.5px;
}
.toast.err { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(11, 27, 46, .45);
  display: grid; place-items: center; padding: 20px; animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--bg); border-radius: var(--radius); padding: 24px;
  width: min(560px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: fade-up .26s ease both;
}
.modal h3 { font-size: 19px; text-transform: none; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 4px; }
.modal .hint { color: var(--ink-2); font-size: 13.5px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

.footer { text-align: center; color: var(--ink-3); font-size: 12.5px;
  padding: 26px 20px 40px; border-top: 1px solid var(--line-soft); margin-top: 30px; }
