/* Abdulfettah tasarım dili: açık zemin, beyaz kartlar, zümrüt yeşili, altın vurgu */
:root {
  --bg: #f6f7f7;
  --card: #ffffff;
  --ink: #111827;
  --ink-2: #4b5563;
  --mut: #8b9391;
  --line: #e8eaea;
  --line-2: #f1f3f2;
  --green: #1f3d37;
  --green-2: #185d55;
  --green-3: #2f4a43;
  --green-soft: #e9f1ef;
  --gold: #b88d36;
  --gold-2: #dcb766;
  --gold-3: #f1dca4;
  --gold-soft: #f8f1e1;
  --ok: #177245;
  --ok-bg: #e9f7ef;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --nazar: #2b78b5;
  --haset: #4b8a2c;
  --sihir: #7a4fc2;
  --cin_serri: #be7417;
  --kirmizi: #c0392b;
  --r: 14px;
  --r-lg: 20px;
  /* abdulfettah.com ile aynı: Bootstrap/Tailwind sistem yazı tipi yığını */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.45 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Uygulama kabuğu ——— */
.app {
  position: relative;
  display: flex; flex-direction: column;
  height: 100dvh; max-width: 480px; margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 600px) {
  body {
    display: grid; place-items: center; padding: 24px;
    background:
      radial-gradient(900px 500px at 50% 0%, rgba(24, 93, 85, .10), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231f3d37' stroke-opacity='.06'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"),
      #eef0ef;
  }
  .app {
    width: 420px; height: min(880px, calc(100dvh - 48px));
    border-radius: 36px;
    box-shadow: 0 0 0 10px #fff, 0 0 0 11px #dfe3e2, 0 40px 80px -20px rgba(17, 24, 39, .35);
  }
}

/* Üst bar */
.appbar {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: calc(8px + var(--safe-t)) 8px 8px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.appbar-logo { height: 34px; justify-self: center; user-select: none; -webkit-user-drag: none; }
.appbar-step { justify-self: end; padding-right: 8px; font-size: 12.5px; font-weight: 600; color: var(--mut); font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--green); cursor: pointer;
}
.icon-btn svg { width: 24px; height: 24px; stroke-width: 2.2; }
.icon-btn:active { background: var(--line-2); }
.icon-btn.invisible { visibility: hidden; }

.progress { height: 3px; background: var(--line-2); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-2), var(--gold-2)); transition: width .45s cubic-bezier(.2, .8, .2, 1); border-radius: 0 3px 3px 0; }

/* Ekranlar */
.screens { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.screen { padding: 22px 16px 28px; }
.screen:not(.active) { display: none; }
.screen.in-right { animation: inRight .38s cubic-bezier(.2, .8, .2, 1) both; }
.screen.in-left { animation: inLeft .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes inRight { from { opacity: 0; transform: translateX(28px); } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-28px); } }

.screen-head { margin: 4px 4px 20px; }
.screen-head h2 { font: 700 27px/1.15 var(--sans); margin: 4px 0 6px; color: var(--ink); letter-spacing: -.02em; }
.screen-head p:last-child { margin: 0; color: var(--ink-2); font-size: 15px; }
.kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); }
.kicker.gold { color: var(--gold); }
.kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }

/* Gruplanmış liste (iOS inset grouped) */
.group { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.group + .group { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; position: relative; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.group-title { margin: 22px 6px 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.group-foot { margin: 8px 6px 0; font-size: 13px; color: var(--mut); }
.group-foot.right { text-align: right; font-variant-numeric: tabular-nums; }
.input-row > span { flex: none; width: 104px; font-weight: 600; font-size: 15px; }
.input-row input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; padding: 4px 0; }
.input-row input::placeholder, textarea::placeholder { color: #b7bdbb; }
.textarea-row { padding: 0; }
.textarea-row textarea { width: 100%; border: 0; outline: none; resize: none; padding: 16px; font-size: 16px; line-height: 1.55; background: none; min-height: 190px; }
.select-row > span { flex: 1; font-weight: 600; }
.select-row select { border: 0; background: none; appearance: none; -webkit-appearance: none; color: var(--mut); text-transform: capitalize; text-align: right; padding-right: 4px; outline: none; cursor: pointer; }
.chev { width: 18px; height: 18px; color: #c4c9c7; flex: none; }
.inline-note { margin: 10px 4px 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #7a5c1c; font-size: 14px; }

/* Seçim kutuları */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r);
  padding: 14px; text-align: left; font-weight: 600; font-size: 15.5px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .2s, background .2s, transform .1s;
}
.choice:active { transform: scale(.98); }
.choice .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c9cecc; display: grid; place-items: center; transition: all .2s; }
.choice[aria-checked=true] { border-color: var(--green-2); background: var(--green-soft); color: var(--green); }
.choice[aria-checked=true] .radio { border-color: var(--green-2); background: var(--green-2); box-shadow: inset 0 0 0 3.5px #fff; }

/* ——— Butonlar ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: var(--r); border: 0;
  font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: transform .1s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green-2), var(--green)); box-shadow: 0 8px 20px -10px rgba(24, 93, 85, .8); }
.btn-primary:disabled { opacity: .45; }
.btn-gold { color: #2a1f08; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); }
.btn-soft { background: var(--card); color: var(--green); border: 1px solid var(--line); flex: 1; padding: 0 10px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--green-2); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-pair { display: flex; gap: 10px; margin-top: 12px; }
.chip-btn { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(17, 24, 39, .6); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.chip-btn svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* Alt aksiyon barı */
.actionbar {
  position: relative; z-index: 5;
  display: flex; gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.actionbar .btn-primary, .actionbar .btn-gold { flex: 1; }
.actionbar .btn-ghost { flex: none; padding: 0 14px; }

/* ——— Karşılama ——— */
.welcome { padding-top: 16px; }
.welcome-hero {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-lg); padding: 36px 22px 30px; color: #fff;
  background: radial-gradient(420px 220px at 50% 0%, rgba(220, 183, 102, .28), transparent 70%), linear-gradient(160deg, #24493f 0%, #16302b 60%, #0f221e 100%);
  box-shadow: 0 20px 40px -24px rgba(15, 34, 30, .9);
}
.welcome-pattern {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23dcb766' stroke-width='.8'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.welcome-mark { position: relative; width: 78px; height: 78px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(220, 183, 102, .55), 0 0 0 9px rgba(220, 183, 102, .12), 0 12px 30px rgba(0, 0, 0, .4); margin-bottom: 16px; animation: float 5s ease-in-out infinite; }
.welcome-hero h1 { position: relative; font: 800 36px/1.05 var(--sans); letter-spacing: -.025em; margin: 6px 0 10px; background: linear-gradient(180deg, #fbefcf, var(--gold-2) 60%, #b98f3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-hero p:last-child { position: relative; margin: 0 auto; max-width: 280px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.welcome-hero .kicker { position: relative; color: var(--gold-2); }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.feature-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; position: relative; }
.feature-list li + li::before { content: ''; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--line); }
.feature-list b { display: block; font-size: 15.5px; }
.feature-list small { color: var(--mut); font-size: 13.5px; }
.f-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px rgba(184, 141, 54, .35); }
.f-ico svg { width: 20px; height: 20px; }
.f-ico.ar { font: 700 13px 'Amiri', serif; }
.fine { text-align: center; color: var(--mut); font-size: 13px; margin: 18px 12px 0; }
@keyframes float { 50% { transform: translateY(-5px); } }

/* ——— Ebced (sonuç ekranı) ——— */
.fact small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 700; }
.fact b { font: 600 15.5px var(--sans); }
.fact .ar { font: 400 20px 'Amiri', serif; color: var(--gold-2); margin-left: 6px; }
.fact .mut { color: rgba(255, 255, 255, .55); font-family: var(--sans); font-size: 13px; font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* ——— Fotoğraf ——— */
.drop {
  position: relative; border-radius: var(--r-lg); background: var(--card);
  border: 1.5px dashed #cfd5d3; outline: none; overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
}
.drop.over { border-color: var(--green-2); background: var(--green-soft); transform: scale(1.01); }
.drop-empty { display: grid; justify-items: center; gap: 6px; padding: 38px 16px; text-align: center; }
.drop-empty b { font: 700 18px var(--sans); color: var(--ink); }
.drop-empty span { color: var(--mut); font-size: 13.5px; }
.drop-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 6px #fbf7ee; margin-bottom: 8px; }
.drop-ring svg { width: 32px; height: 32px; }
.drop.has { border-style: solid; border-color: var(--line); }
.drop-full img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: pop .35s ease both; }
.tips .row { font-size: 15px; color: var(--ink-2); min-height: 48px; }
.t-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); font-size: 14px; flex: none; }
@media (hover: none) { .desktop-only { display: none; } }

/* ——— KVKK onayı ——— */
.consent-row { align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent-row .cb { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.8px solid #c3c9c7; display: grid; place-items: center; transition: all .2s; background: #fff; }
.consent-row .cb svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .2s; }
.consent-row input:checked + .cb { background: var(--green-2); border-color: var(--green-2); }
.consent-row input:checked + .cb svg { opacity: 1; transform: none; }
.consent-row input:focus-visible + .cb { box-shadow: 0 0 0 3px rgba(24, 93, 85, .25); }
.doc-link { border: 0; background: none; padding: 0; color: var(--green-2); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.doc-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.doc-body h5 { margin: 16px 0 4px; font-size: 14.5px; color: var(--ink); }
.doc-body p { margin: 0 0 8px; }
.doc-body ul { margin: 4px 0 8px; padding-left: 18px; }
.doc-body li { margin: 3px 0; }

/* ——— Soru sayfası ——— */
.q-screen { padding-top: 28px; }
.q-text { font: 750 26px/1.28 var(--sans); letter-spacing: -.02em; color: var(--ink); margin: 10px 4px 0; }
.q-note { margin: 12px 4px 0; padding: 10px 12px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.yn-btn {
  display: grid; justify-items: center; gap: 8px; padding: 22px 12px;
  border-radius: 18px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 6px rgba(17, 24, 39, .04);
  transition: transform .12s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.yn-btn svg { width: 30px; height: 30px; stroke-width: 2.4; padding: 6px; border-radius: 50%; background: var(--line-2); color: var(--mut); transition: all .2s; box-sizing: content-box; }
.yn-btn:active { transform: scale(.97); }
.yn-btn.yes[aria-checked=true] { background: linear-gradient(135deg, var(--green-2), var(--green)); border-color: transparent; color: #fff; box-shadow: 0 12px 24px -12px rgba(24, 93, 85, .8); }
.yn-btn.yes[aria-checked=true] svg { background: rgba(255, 255, 255, .18); color: #fff; }
.yn-btn.no[aria-checked=true] { border-color: var(--ink-2); background: #fff; }
.yn-btn.no[aria-checked=true] svg { background: var(--ink); color: #fff; }
.followup { margin-top: 6px; animation: inRight .3s ease both; }
.followup .group-title { margin-top: 24px; }
.sure-opt { cursor: pointer; justify-content: space-between; font-size: 16px; }
.sure-opt svg { width: 20px; height: 20px; stroke: var(--green-2); stroke-width: 2.6; opacity: 0; }
.sure-opt[aria-checked=true] { color: var(--green); font-weight: 650; }
.sure-opt[aria-checked=true] svg { opacity: 1; }

/* ——— Özet ——— */
.sum-row { cursor: pointer; }
.sum-row:active { background: var(--line-2); }
.sum-row > span:first-child { flex: none; width: 104px; color: var(--mut); font-size: 14.5px; }
.sum-row .val { flex: 1; min-width: 0; text-align: right; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.sum-row .val.ar { font: 400 21px 'Amiri', serif; color: var(--green); }
.sum-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; margin-left: auto; }
.sum-sym { flex: 1; min-width: 0; }
.sum-sym b { display: block; font-weight: 500; font-size: 15px; }
.sum-sym small { color: var(--mut); font-size: 13px; }
.empty-row { color: var(--mut); font-size: 15px; }

/* ——— Alt sayfa ——— */
.sheet-backdrop { position: absolute; inset: 0; z-index: 20; background: rgba(17, 24, 39, .4); animation: fade .25s ease both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  max-height: 88%; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 0 16px calc(16px + var(--safe-b));
  box-shadow: 0 -20px 40px -10px rgba(17, 24, 39, .25);
  animation: sheetUp .38s cubic-bezier(.2, .9, .25, 1) both;
}
.sheet.closing { animation: sheetDown .25s ease-in both; }
.sheet-handle { display: grid; place-items: center; padding: 10px 0 14px; cursor: grab; touch-action: none; }
.sheet-handle i { width: 38px; height: 5px; border-radius: 3px; background: #cfd4d2; }
.sheet h3 { font: 700 21px/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); margin: 6px 0 4px; }
.sheet .group-title { margin-top: 18px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: #e7eae9; }
.segmented button { border: 0; background: none; border-radius: 10px; padding: 10px 4px; font-weight: 600; font-size: 14.5px; cursor: pointer; display: grid; justify-items: center; gap: 5px; color: var(--ink-2); transition: all .2s; }
.segmented button[aria-checked=true] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(17, 24, 39, .12); }
.sev-dots { display: flex; gap: 3px; }
.sev-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; }
.sev-dots i.f { opacity: 1; background: var(--c, var(--green-2)); }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn-primary { flex: 1; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ——— Yükleniyor ——— */
.loading {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px;
  background: radial-gradient(500px 300px at 50% 30%, rgba(220, 183, 102, .2), transparent 70%), linear-gradient(170deg, #22463d, #0f221e);
  color: #fff; animation: fade .3s ease both;
}
.loader { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.loader img { width: 84px; height: 84px; border-radius: 50%; animation: breathe 2.4s ease-in-out infinite; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle { stroke: rgba(220, 183, 102, .18); stroke-width: 3; }
.loader-ring .arc { stroke: var(--gold-2); stroke-dasharray: 90 340; animation: spin 1.6s linear infinite; transform-origin: 60px 60px; transform-box: view-box; }
.loading-title { font: 650 20px var(--sans); letter-spacing: -.01em; margin: 26px 0 6px; min-height: 1.3em; transition: opacity .35s; }
.loading-sub { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13.5px; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(220, 183, 102, .45); } }

/* ——— Sonuç ——— */
.result { padding-top: 16px; }
.alert { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r); background: var(--danger-bg); color: #8c2a20; font-weight: 600; font-size: 15px; }
.alert svg { flex: none; width: 22px; height: 22px; }
.dx {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px 20px 22px; color: #fff;
  background: radial-gradient(360px 180px at 100% 0%, rgba(220, 183, 102, .26), transparent 70%), linear-gradient(160deg, #24493f, #10241f);
  box-shadow: 0 20px 40px -24px rgba(15, 34, 30, .9);
}
.dx .welcome-pattern { opacity: .1; }
.dx-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dx-name { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.dx h2 { position: relative; font: 800 28px/1.15 var(--sans); letter-spacing: -.02em; margin: 12px 0 12px; background: linear-gradient(180deg, #fbefcf, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx p { position: relative; margin: 0; color: rgba(255, 255, 255, .88); font-size: 15.5px; line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(220, 183, 102, .16); color: var(--gold-3); border: 1px solid rgba(220, 183, 102, .35); }

.section { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font: 700 18px var(--sans); letter-spacing: -.01em; color: var(--ink); }
.section-head small { color: var(--mut); font-size: 13px; }
.link-btn { border: 0; background: var(--green-soft); color: var(--green-2); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.link-btn svg { width: 15px; height: 15px; }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score { --c: var(--green-2); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px solid transparent; }
.score.top { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { stroke-width: 6; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--c); animation: ringIn 1.2s .2s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes ringIn { from { stroke-dasharray: 0 999; } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score-meta b { display: block; font-size: 14.5px; }
.score-meta small { display: block; color: var(--mut); font-size: 11.5px; line-height: 1.35; }
.num-mut { font: 600 14px var(--sans); color: var(--mut); margin-left: 6px; }

.photo-obs { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.photo-obs img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.obs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.obs li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.obs li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-2); }
.mut-note { margin: 12px 0 0; color: var(--mut); font-size: 13px; }

.letter { margin: 0; font: 400 16px/1.65 var(--sans); color: #1f2a28; white-space: pre-wrap; }

.ebced-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; border-radius: var(--r); background: linear-gradient(160deg, #22463d, #132a25); color: #fff; }
.ebced-res .fact { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.ebced-res .fact.wide { grid-column: 1 / -1; }
.ebced-eq { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.ebced-eq .ar { font: 400 20px 'Amiri', serif; color: var(--green); }
.ebced-text { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.readings { list-style: none; margin: 0; padding: 0; }
.readings li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.readings li + li { border-top: 1px solid var(--line); }
.readings .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--gold-soft); color: var(--gold); }
.readings b { display: block; font-weight: 600; font-size: 15.5px; }
.readings small { color: var(--ink-2); font-size: 13.5px; }
.readings li.special .num { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #2a1f08; }

.product { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid #ecdcb4; color: #6b4f15; font-size: 14.5px; font-weight: 500; }
.product .f-ico { background: #fff; }

details.hoca { margin-top: 14px; background: #fffbf0; border: 1px solid #efe1bb; border-radius: var(--r-lg); padding: 0 16px; }
details.hoca summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0; cursor: pointer; font-weight: 700; color: #7a5c1c; }
details.hoca summary::-webkit-details-marker { display: none; }
details.hoca summary small { font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a8873c; }
details.hoca pre { margin: 0 0 16px; white-space: pre-wrap; font: 14.5px/1.6 var(--sans); color: #5b4a22; }
details.raw { margin: 14px 4px 0; }
details.raw summary { cursor: pointer; color: var(--mut); font-size: 13px; padding: 6px 0; }
details.raw pre { margin: 8px 0 0; max-height: 360px; overflow: auto; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font: 11.5px/1.5 ui-monospace, Menlo, monospace; }
.meta-line { text-align: center; color: #b2b8b6; font-size: 12px; margin: 18px 0 4px; }

/* ——— Bildirim ——— */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(92px + var(--safe-b)); z-index: 40;
  padding: 13px 16px; border-radius: 14px; background: rgba(17, 24, 39, .92); color: #fff;
  font-size: 14.5px; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: var(--green); }

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

@media print {
  body { background: #fff; display: block; padding: 0; }
  .app { height: auto; max-width: none; width: auto; box-shadow: none; overflow: visible; border-radius: 0; }
  .screens { overflow: visible; }
  .appbar .icon-btn, .appbar-step, .progress, .actionbar, details.raw, .link-btn { display: none !important; }
  .section, .dx { break-inside: avoid; }
}

/* ——— Teşhis imzası & hoca paneli ——— */
.dx-sign { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(220, 183, 102, .2); font-size: 14px; font-weight: 600; color: var(--gold-3); }
.dx-sign img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(220, 183, 102, .5); }
