/* İlk Tercih Bursluluk – sade, mobil öncelikli arayüz */
:root {
  --blue: #0b6aaa;
  --blue-deep: #0a4f80;
  --ink: #14304a;
  --orange: #f58233;
  --orange-deep: #d9661a;
  --paper: #ffffff;
  --mist: #edf3f8;
  --line: #d3dee8;
  --muted: #5b7186;
  --err: #c2361f;
  --ok: #17805a;
  --radius: 14px;
  --font: "Figtree", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--mist);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.sheet-open { overflow: hidden; }
a { color: var(--blue); }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- üst bar ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand img { width: 44px; height: auto; }
.top-link {
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 8px 14px; border-radius: 30px; border: 1px solid var(--line); color: var(--blue); white-space: nowrap;
}
.top-link:hover { border-color: var(--blue); }

/* ---------- düzen ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 22px 16px 48px; }
.intro h1 {
  font-size: clamp(26px, 6.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 6px 0 14px;
  color: var(--blue-deep);
}
.about { margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.about summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--blue); list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: "+"; float: right; font-weight: 700; }
.about[open] summary::after { content: "–"; }
.about-body { padding: 0 16px 6px; color: var(--ink); font-size: 16px; }

.card {
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 20px 24px;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(10, 79, 128, .35);
}
@media (min-width: 600px) { .card { padding: 30px 32px 32px; } }

/* ---------- adımlar ---------- */
.steps { margin-bottom: 18px; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg { height: 6px; border-radius: 6px; background: var(--mist); }
.seg.done { background: var(--blue); }
.seg.now { background: var(--orange); }
.count { margin: 12px 0 2px; font-size: 14px; color: var(--muted); font-weight: 600; }
.step-title, .card h2 { font-size: 23px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.01em; outline: none; }
.lead { color: var(--muted); margin: 0 0 18px; }
.lead strong { color: var(--ink); white-space: nowrap; }

/* ---------- alanlar ---------- */
.field { margin: 0 0 16px; }
.row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 440px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
input[type=text], input[type=tel], input[type=number], input:not([type]), select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 18px; /* iOS yakınlaştırmasını önler */
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230b6aaa' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 106, 170, .15); }
input::placeholder { color: #9aabbb; }
input[data-mask="tc"], input[data-mask="code"] { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
input[data-mask="code"] { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 700; padding-left: .4em; }
.help { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.ok-hint { margin: 6px 0 0; font-size: 14px; color: var(--ok); font-weight: 600; }
.err { margin: 6px 0 0; font-size: 14px; color: var(--err); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.has-error input, .has-error select { border-color: var(--err); }
.has-error input:focus, .has-error select:focus { box-shadow: 0 0 0 4px rgba(194, 54, 31, .14); }

.check-field { margin-top: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }

.alert {
  background: #fdeeea; color: var(--err); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; font-size: 15px;
}
.note { border-radius: 12px; padding: 12px 14px; background: var(--mist); font-size: 15px; }
.note.warn { background: #fff3e8; color: #8a4310; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 700; }

/* ---------- düğmeler ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions .btn.primary { flex: 1 1 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 17px;
  border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .link:focus-visible, .top-link:focus-visible { outline: 3px solid rgba(11, 106, 170, .35); outline-offset: 2px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-ghost { color: var(--err); border-color: #efc4bb; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn.ghost.is-busy::after { border-color: var(--line); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

.resend { font-size: 15px; margin: 4px 0 0; color: var(--muted); }
.testcode { background: #fff8d6; border-radius: 10px; padding: 8px 12px; font-size: 15px; margin: 0 0 12px; }
.testbar { text-align: center; font-size: 13px; color: #8a6d00; margin-top: 14px; }

/* ---------- düğme şeklinde seçim (sınıf) ---------- */
.field-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.chip-groups { display: flex; flex-direction: column; gap: 12px; }
.chip-group { display: flex; flex-direction: column; gap: 6px; }
.chip-cap { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: block; margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  min-height: 58px; padding: 6px 4px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font-weight: 700; font-size: 16px; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.chip span b { font-size: 22px; font-weight: 800; }
.chip span b.word { font-size: 16px; }
.chip span small { font-size: 12px; font-weight: 600; opacity: .75; margin-top: 2px; }
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11, 106, 170, .25); }
.has-error .chip span { border-color: var(--err); }

/* ---------- okul önerileri ---------- */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--paper); border: 1.5px solid var(--blue); border-radius: 12px;
  box-shadow: 0 12px 28px -10px rgba(10, 79, 128, .35);
  max-height: 320px; overflow-y: auto;
}
.combo-list li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.combo-list li:hover, .combo-list li.on { background: #eef5fb; }
.combo-name { font-weight: 600; }
.combo-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.combo-list li.combo-add { color: var(--orange-deep); font-weight: 700; border-top: 1px dashed var(--line); margin-top: 2px; border-radius: 0 0 8px 8px; }
.combo-state { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.combo-state:empty { display: none; }
.combo-state.ok { color: var(--ok); }
.combo-state.new { color: #a2500f; }

/* ---------- oturum seçimi ---------- */
.sessions { border: 0; padding: 0; margin: 0; }
.branch + .branch { margin-top: 20px; }
.branch h3 { margin: 0 0 2px; font-size: 18px; }
.addr { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.opt-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin: 0 0 8px;
  border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 500;
}
.opt-card input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--blue); }
.opt-card:has(input:checked) { border-color: var(--blue); background: #f2f8fd; box-shadow: 0 0 0 3px rgba(11, 106, 170, .12); }
.opt-card.is-disabled { opacity: .55; cursor: not-allowed; }
.opt-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.opt-date { font-weight: 700; }
.opt-label { color: var(--muted); font-size: 14px; }
.badge { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--mist); color: var(--muted); white-space: nowrap; }
.badge.ok { background: #e3f4ec; color: var(--ok); }
.badge.warn { background: #fff0e3; color: #a2500f; }

/* ---------- özet ---------- */
.summary { margin: 0; }
.sum-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 6px; margin-bottom: 10px; }
.sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sum-head h3 { margin: 0; font-size: 16px; color: var(--blue-deep); }
.sum-head .link { font-size: 15px; }
.sum-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 16px; }
.sum-row:first-of-type { border-top: 0; }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- durum ekranları ---------- */
.closed h2, .done-title { color: var(--blue-deep); }
.closed .btn { margin-top: 8px; }
.empty { background: var(--mist); border-radius: 12px; padding: 16px; }

/* ---------- giriş belgesi ---------- */
.ticket {
  position: relative;
  margin: 8px 0 0;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--blue);
  overflow: hidden;
}
.ticket.is-wait { border-color: var(--orange); }
.t-head { background: var(--blue); color: #fff; padding: 14px 18px 12px; display: flex; align-items: center; gap: 12px; }
.t-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-logo img { width: 46px; height: 46px; object-fit: contain; }
.t-ht { min-width: 0; }
.t-org { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.ticket.is-wait .t-head { background: var(--orange); }
.t-exam { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.2; }
.t-kind { margin: 2px 0 0; font-size: 14px; opacity: .9; }
.t-seat {
  display: grid; grid-template-columns: 1.5fr 1fr;
  position: relative;
  border-bottom: 2px dashed var(--line);
}
.t-seat::before, .t-seat::after {
  content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--blue);
}
.ticket.is-wait .t-seat::before, .ticket.is-wait .t-seat::after { border-color: var(--orange); }
.t-seat::before { left: -13px; }
.t-seat::after { right: -13px; }
.t-big { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.t-big + .t-big { border-left: 1px solid var(--line); }
.t-big.wide { grid-column: 1 / -1; }
.t-k { font-size: 14px; color: var(--muted); font-weight: 600; }
.t-v { font-size: clamp(34px, 11vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--blue-deep); margin-top: 6px; word-break: break-word; }
.t-v.t-room { font-size: clamp(24px, 7vw, 32px); line-height: 1.1; margin-top: auto; padding-top: 6px; }
.ticket.is-wait .t-v { color: var(--orange-deep); }
.t-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding: 20px 18px 16px; }
.t-info div.full { grid-column: 1 / -1; }
.t-info dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.t-info dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.t-notes { margin: 0 18px 18px; padding: 12px 14px; background: var(--mist); border-radius: 12px; font-size: 14px; }
.t-notes p { margin: 0 0 4px; font-weight: 700; }
.t-notes ul { margin: 0; padding-left: 18px; }

/* ---------- KVKK paneli ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 48, 74, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-panel {
  background: var(--paper); width: 100%; max-width: 620px; max-height: 86vh;
  border-radius: 20px 20px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 20px; } }
.sheet-panel h2 { margin: 0 0 10px; font-size: 21px; }
.sheet-body { overflow: auto; font-size: 15px; line-height: 1.55; margin-bottom: 14px; padding-right: 4px; }

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

/* ---------- yazdırma ---------- */
/* Yazdırma: yarım A4 (A5) – giriş belgesi tek sayfa */
@page { size: A5 portrait; margin: 7mm; }
@media print {
  html, body { background: #fff !important; font-size: 9.5pt; }
  .intro, .news, .news-detail { display: none !important; }
  .ticket { margin: 0; border-width: 1.5px; border-radius: 10px; break-inside: avoid; page-break-inside: avoid; }
  .t-head { padding: 7px 10px; gap: 8px; }
  .t-logo { width: 34px; height: 34px; }
  .t-logo img { width: 30px; height: 30px; }
  .t-org { font-size: 7.5pt; }
  .t-exam { font-size: 11pt; }
  .t-kind { font-size: 8pt; }
  .t-big { padding: 7px 10px 9px; }
  .t-k { font-size: 8pt; }
  .t-v { font-size: 24pt !important; margin-top: 2px; }
  .t-v.t-room { font-size: 15pt !important; }
  .t-seat::before, .t-seat::after { width: 14px; height: 14px; bottom: -8px; }
  .t-seat::before { left: -8px; } .t-seat::after { right: -8px; }
  .t-info { gap: 5px 10px; padding: 9px 10px 6px; }
  .t-info dt { font-size: 7.5pt; }
  .t-info dd { font-size: 9.5pt; }
  .t-notes { margin: 0 10px 7px; padding: 6px 8px; font-size: 7.5pt; border-radius: 6px; }
  .t-notes ul { padding-left: 14px; }
  .t-qr-row { margin: 0 10px 8px; padding: 6px; gap: 8px; }
  .t-qr, .t-qr img, .t-qr canvas { width: 72px !important; height: 72px !important; }
  .t-qr-row p { font-size: 8pt; }
}
@media print {
  body { background: #fff; font-size: 12pt; }
  .top, .intro .about, .no-print, .testbar, .actions, .lead, .steps, .alert { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .intro h1 { font-size: 18pt; color: #000; }
  .card { box-shadow: none; padding: 0; }
  .done-title { display: none; }
  .ticket, .t-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .t-seat::before, .t-seat::after { background: #fff; }
}
.manage-link { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- duyuru slaytı ---------- */
.news {
  position: relative;
  left: 50%;
  width: min(960px, calc(100vw - 32px));
  transform: translateX(-50%);
  margin: 0 0 18px;
}
.news-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(10, 79, 128, .35);
}
.news-track::-webkit-scrollbar { display: none; }
.news-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background: #e8eff6;
}
@media (min-width: 700px) {
  .news-slide { aspect-ratio: 5 / 2; }
}
.news-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.news-slide.has-img .news-text { background: linear-gradient(transparent, rgba(10, 30, 50, .82)); }
.news-slide.c-blue { background: linear-gradient(135deg, #0b6aaa, #0a4f80); }
.news-slide.c-orange { background: linear-gradient(135deg, #f58233, #d9661a); }
.news-slide.c-navy { background: linear-gradient(135deg, #14304a, #0a4f80); }
.news-slide.c-green { background: linear-gradient(135deg, #17805a, #0f5e42); }
.news-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 22px 22px 34px; }
.no-img .news-text { padding: 26px 26px 38px; justify-content: center; height: 100%; }
.news-title { font-weight: 800; font-size: clamp(20px, 4.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.news-sum { font-size: clamp(15px, 3.4vw, 18px); opacity: .95; max-width: 46em; }
.news-more { font-size: 14px; font-weight: 700; opacity: .9; margin-top: 6px; }
.news-slide:hover .news-more { text-decoration: underline; }
.news-slide:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.news-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); color: var(--blue-deep);
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  display: none;
}
@media (hover: hover) and (min-width: 700px) { .news-nav { display: block; } }
.news-nav.prev { left: 12px; }
.news-nav.next { right: 12px; }
.news-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.news-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; }
.news-dot.on { background: #fff; width: 22px; border-radius: 6px; }

@media (min-width: 700px) {
  .news-slide .news-text { padding-left: 76px; padding-right: 76px; }
}

/* ---------- duyuru ayrıntısı ---------- */
.news-detail {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 20px 20px;
  margin: 0 0 22px;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(10, 79, 128, .35);
}
.news-back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 12px; font-size: 15px; }
.news-detail-img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 14px; }
.news-detail h2 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; color: var(--blue-deep); }
.news-body { font-size: 17px; }
.news-body p { margin: 0 0 12px; }
.news-apply-hint { margin: 14px 0 0; font-weight: 700; }
.news-apply-hint a { text-decoration: none; color: var(--orange-deep); }
@media print { .news, .news-detail { display: none !important; } }

/* ---------- paylaş, kazan ---------- */
.share-box {
  position: relative; margin-top: 24px; padding: 22px 20px 18px; border-radius: 22px;
  background: var(--paper); border: 1.5px solid var(--line); overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(10, 79, 128, .55);
}
.share-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #0b6aaa, #f58233); }
.share-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(245,130,51,.16), rgba(245,130,51,0) 70%); pointer-events: none; }
.sh-top { display: flex; align-items: center; gap: 14px; }
.sh-badge {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, #ffa25e, #f26b1d); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -10px rgba(242, 107, 29, .9), inset 0 1px 0 rgba(255,255,255,.35);
}
.sh-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.sh-head h3 { margin: 3px 0 0; font-size: 22px; line-height: 1.15; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.sh-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

.sh-slots { display: flex; align-items: center; margin: 18px 0 0; }
.sh-slot {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed #c4d3e1; color: #8aa0b5; background: #f6f9fc; font-size: 15px;
}
.sh-slot b { font-weight: 800; }
.sh-slot.goal { border-style: solid; border-color: #ffc89e; color: var(--orange); background: #fff5ec; }
.sh-slot.on { border: 0; background: linear-gradient(135deg, #ffa25e, #f26b1d); box-shadow: 0 6px 14px -6px rgba(242,107,29,.9); }
.sh-line { flex: 1 1 auto; height: 3px; min-width: 6px; margin: 0 4px; border-radius: 3px; background: #dfe8f1; }
.sh-line.on { background: #f7a066; }
.sh-bar { margin-top: 18px; height: 10px; border-radius: 10px; background: #e6eef6; overflow: hidden; }
.sh-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffa25e, #f26b1d); }
.sh-status { margin: 10px 0 0; font-size: 15px; color: var(--ink); }
.sh-status strong { color: var(--orange-deep); }
.sh-status.won { font-weight: 700; color: var(--ok); }

.sh-btns { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px 12px;
  border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.sh-btn:active { transform: translateY(1px); }
.sh-btn { font-size: 17px; min-height: 56px; }
.sh-btn.wa { background: #25d366; box-shadow: 0 10px 20px -12px rgba(37, 211, 102, .95); }
.sh-btn.ig { background: radial-gradient(circle at 25% 110%, #fdd56b 0%, #f9873c 25%, #e1306c 55%, #a133b4 85%); box-shadow: 0 10px 20px -12px rgba(225, 48, 108, .95); }

.sh-link {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 6px 6px 14px;
  border-radius: 14px; background: #f3f7fb; border: 1.5px solid #e1e9f1;
}
.sh-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-copy {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.sh-copy.done { background: var(--ok); }
.share-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ok); }
.share-msg:empty { display: none; }
@media (max-width: 340px) { .sh-btns { grid-template-columns: 1fr; } .sh-slot { width: 34px; height: 34px; } }

/* ---------- belge araçları ---------- */
.tools { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 70px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--blue-deep); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; text-align: center;
}
.tool:hover { border-color: var(--blue); }
.tool .ti { display: flex; align-items: center; justify-content: center; height: 24px; font-size: 13px; font-weight: 800; color: var(--orange-deep); letter-spacing: .04em; }
.tool[disabled] { opacity: .6; }
.cal-menu { grid-column: 1 / -1; display: flex; gap: 8px; }
.cal-menu[hidden] { display: none; }
.cal-menu a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; background: #eef5fb; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--blue-deep); }
.t-qr-row { display: flex; align-items: center; gap: 14px; margin: 0 18px 18px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; }
.t-qr { flex: 0 0 auto; width: 112px; height: 112px; }
.t-qr img, .t-qr canvas { width: 112px !important; height: 112px !important; }
.t-qr-row p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- sonuç ve randevu ---------- */
.res-card, .appt-card { margin-top: 18px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); }
.res-k { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.res-grid div { padding: 12px; border-radius: 12px; background: #f3f7fb; }
.res-grid div.hl { background: linear-gradient(135deg, #ffa25e, #f26b1d); color: #fff; }
.res-grid span { display: block; font-size: 13px; font-weight: 600; opacity: .8; }
.res-grid b { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; line-height: 1.1; }
.res-grid small { font-size: 15px; font-weight: 600; opacity: .7; }
.res-note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.appt-date { margin: 0; font-size: 20px; font-weight: 800; color: var(--blue-deep); }
.appt-place { margin: 4px 0 12px; color: var(--muted); }
.appt-actions { display: flex; gap: 8px; }
.appt-day { margin: 12px 0 6px; font-weight: 700; font-size: 15px; }
.time-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time-chips .chip span { min-height: 46px; }
@media print { .t-qr-row { border-color: #999; } }
.news-btn-float { position: absolute; left: 16px; bottom: 30px; z-index: 2; padding: 10px 18px; border-radius: 30px; background: var(--orange); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.news-cta { margin-top: 6px; }
/* hediye seçimi */
.sh-gifts { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.sh-gifts-k { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.sh-gift-list { display: grid; gap: 8px; }
.sh-gift {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sh-gift .dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9c7d5; position: relative; }
.sh-gift .nm { flex: 1 1 auto; }
.sh-gift .tag { font-size: 12px; font-weight: 700; color: var(--muted); background: #eef1f4; padding: 3px 8px; border-radius: 10px; }
.sh-gift:hover:not([disabled]) { border-color: var(--orange); }
.sh-gift.on { border-color: var(--orange); background: #fff6ef; }
.sh-gift.on .dot { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 4px #fff; }
.sh-gift[disabled] { cursor: default; }
.sh-gift.out { opacity: .55; }
.sh-gift.busy { opacity: .6; }
.sh-gifts-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.mkt-field { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f6f9fc; border: 1.5px solid var(--line); }
.mkt-field .check { font-weight: 500; }
.mkt-note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 400; }

.mkt-card { margin-top: 18px; padding: 18px; border-radius: 18px; border: 1.5px solid #ffd2ad; background: #fff8f2; }
.mkt-card .mkt-k { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.mkt-card .mkt-q { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.mkt-card .mkt-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.mkt-card.done { border-color: #bfe5cf; background: #f0faf4; }
.mkt-card.done p { margin: 0; color: var(--ok); }

.sh-rules { margin-top: 12px; border-top: 1.5px dashed var(--line); padding-top: 10px; }
.sh-rules summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); font-size: 15px; }
.sh-rules ol, .rules-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sh-rules li, .rules-list li { margin: 4px 0; }
.rules-card h2 { margin-top: 0; font-size: 18px; }
@media print { .sh-rules { display: none !important; } }
