/* Evolution Visa — panel iskeleti, genel bakış ekranı, sınav sonuç belgesi, belge doğrulama */

/* ---------- Panel iskeleti ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sb { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #b9bec7; display: flex; flex-direction: column; padding: 22px 14px 16px; }
.sb-brand { display: block; padding: 4px 10px 22px; text-decoration: none; }
.sb .brand { color: #fff; }
.sb .brand small { color: #8b919b; }
.shell.is-admin .sb .brand small { color: var(--focus); font-weight: 700; }
.sb-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f6570; padding: 0 12px; margin-bottom: 8px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b9bec7; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.sb-nav a:hover { background: #1a1d23; color: #fff; }
.sb-nav a[aria-current] { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(30, 63, 212, .9); }
.sb-nav .count { background: #ff5a4e; }
.sb-nav a[aria-current] .count { background: #fff; color: var(--brand); }
.sb-help { margin-top: auto; display: block; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #1d2230, #151820); border: 1px solid #262b36; text-decoration: none; color: #b9bec7; font-size: .88rem; }
.sb-help b { display: block; color: #fff; font-size: .95rem; margin-bottom: 4px; }
.sb-help:hover { border-color: #3a4152; color: #d5d9df; }
.shell.is-admin .sb-user { margin-top: auto; }
.sb-user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 10px 4px; border-top: 1px solid #22262d; }
.sb-user > div { min-width: 0; flex: 1; }
.sb-user b { display: block; color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user small { display: block; color: #7d838d; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3f5cff, #1e3fd4); color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.sb-logout { width: 36px; height: 36px; border-radius: 9px; border: 1px solid #2a2f37; background: transparent; color: #b9bec7; display: grid; place-items: center; cursor: pointer; }
.sb-logout:hover { background: #1a1d23; color: #fff; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 40px; background: rgba(245, 243, 238, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .nav-toggle { display: none; margin: 0; }
.topbar-date { color: var(--muted); font-size: .92rem; }
.topbar-date::first-letter { text-transform: uppercase; }
.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-link { font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem; }
.topbar-link:hover { text-decoration: underline; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.bell:hover { border-color: var(--ink); color: var(--ink); }
.bell .count { position: absolute; top: -4px; right: -6px; margin: 0; border: 2px solid var(--bg); }
.app-main { padding: 32px 40px 72px; max-width: 1320px; width: 100%; }

/* ---------- Genel bakış ---------- */
.dh { position: relative; overflow: hidden; border-radius: 20px; background: var(--ink); color: #fff; margin-bottom: 20px; min-height: 260px; display: flex; }
.dh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dh-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 12, 18, .94) 0%, rgba(10, 12, 18, .82) 45%, rgba(18, 32, 110, .45) 100%); }
.dh-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; width: 100%; }
.dh-hello { color: rgba(255, 255, 255, .75); font-weight: 600; margin-bottom: 8px; }
.dh h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; max-width: 22ch; }
.dh-sub { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 52ch; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.dh-ring { --p: 0; flex-shrink: 0; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.dh-ring > div { width: 140px; height: 140px; border-radius: 50%; background: rgba(12, 15, 22, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dh-ring b { font-family: var(--display); font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.dh-ring span { font-size: .78rem; color: rgba(255, 255, 255, .7); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .25); color: var(--text); }
.stat-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat-ic .i { width: 22px; height: 22px; }
.stat b { font-family: var(--display); font-size: 1.7rem; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat > span:last-child { font-size: .88rem; color: var(--muted); }
.stat.is-hot .stat-ic { background: var(--err-bg); color: var(--err); }

.card { border-radius: 16px; }
.focus { padding: 26px 28px; }
.focus-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.focus-head h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.focus .kicker { margin-bottom: 2px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 26px 0; position: relative; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stepper li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.is-done::before, .stepper li.is-now::before { background: var(--brand); }
.stepper span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong); font-weight: 700; font-size: .85rem; color: var(--muted); }
.stepper span .i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper li.is-done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.is-now span { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.stepper b { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stepper li.is-done b, .stepper li.is-now b { color: var(--ink); }
.doc-sum { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc-sum > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.doc-sum > div:first-child { border-left: 0; }
.doc-sum b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.doc-sum span { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); } .dot-muted { background: #9aa0a8; } .dot-err { background: var(--err); } .dot-line { background: transparent; border: 2px solid var(--line-strong); }
.focus-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.start h2 { font-size: 1.4rem; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.start-opt { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.start-opt:hover { border-color: var(--brand); color: var(--text); }
.start-opt img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.start-opt b { display: block; color: var(--ink); font-family: var(--display); }
.start-opt small { color: var(--muted); font-size: .82rem; }

.todo-bar { height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; margin: -4px 0 8px; }
.todo-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.advisor { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--brand); color: #fff; text-decoration: none; transition: background .2s; }
.advisor:hover { background: var(--brand-700); color: #fff; }
.advisor > div { flex: 1; }
.advisor b { display: block; font-family: var(--display); font-size: 1.05rem; }
.advisor span:not(.advisor-ic) { font-size: .88rem; color: rgba(255, 255, 255, .8); }
.advisor-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Sınav sonuç belgesi (A4) ---------- */
.cs-stage { display: flex; justify-content: center; padding: 8px 0 24px; overflow-x: auto; }
.cs-sheet { width: 794px; min-height: 1123px; flex-shrink: 0; background: #fff; padding: 30px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(0, 0, 0, .35); color: #20242b; }
.cs-frame { position: relative; overflow: hidden; min-height: 1063px; padding: 44px 50px 36px; border: 1px solid #c9cfe0; outline: 6px solid #fff; box-shadow: 0 0 0 7px #c9cfe0, inset 0 0 0 5px #fff, inset 0 0 0 6px #e3e7f2;
  background: radial-gradient(circle at 50% 46%, rgba(30, 63, 212, .035), transparent 60%), repeating-linear-gradient(135deg, rgba(30, 63, 212, .022) 0 1px, transparent 1px 7px); display: flex; flex-direction: column; }
.cs-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: .035; pointer-events: none; }
.cs-watermark { filter: grayscale(1); }
.cs-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.cs-meta { display: grid; gap: 6px; text-align: right; }
.cs-meta dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #7a808a; }
.cs-meta dd { font-weight: 700; color: var(--ink); font-size: .92rem; }
.cs-title { position: relative; text-align: center; margin: 38px 0 26px; }
.cs-kicker { font-family: var(--display); font-weight: 800; font-size: 1.85rem; letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.cs-en { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #6c7380; margin-top: 6px; }
.cs-intro { position: relative; text-align: center; color: #4a505a; max-width: 560px; margin: 0 auto; }
.cs-name { position: relative; text-align: center; font-family: var(--display); font-weight: 800; font-size: 2.5rem; letter-spacing: -.03em; color: var(--ink); margin: 6px auto 10px; padding: 0 40px 10px; border-bottom: 1px solid #c9cfe0; width: fit-content; max-width: 100%; }
.cs-result { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; margin: 32px 0 26px; padding: 24px; border-radius: 14px; background: var(--brand-50); border: 1px solid #d7ddf6; }
.cs-level { text-align: center; padding-right: 26px; border-right: 1px solid #cdd5f3; }
.cs-level span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #59617a; }
.cs-level b { display: block; font-family: var(--display); font-weight: 900; font-size: 4.6rem; line-height: 1; color: var(--brand); letter-spacing: -.04em; margin: 6px 0 2px; }
.cs-level em { font-style: normal; font-weight: 700; color: var(--ink); }
.cs-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cs-scale div { text-align: center; }
.cs-scale i { display: block; height: 8px; border-radius: 4px; background: #d5dbf2; margin-bottom: 8px; }
.cs-scale .is-past i { background: #8fa2f0; }
.cs-scale .is-now i { background: var(--brand); box-shadow: 0 0 0 3px rgba(30, 63, 212, .2); }
.cs-scale b { display: block; font-family: var(--display); font-size: 1rem; color: #7d8496; }
.cs-scale .is-past b, .cs-scale .is-now b { color: var(--ink); }
.cs-scale span { font-size: .68rem; color: #7d8496; }
.cs-desc { font-size: .88rem; color: #3d4350; margin-top: 16px; line-height: 1.5; }
.cs-table { position: relative; font-size: .9rem; margin-bottom: 22px; }
.cs-table th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #6c7380; font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); }
.cs-table td { padding: 9px 10px; border-bottom: 1px solid #e3e6ec; }
.cs-table tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; border-top: 1.5px solid var(--ink); }
.cs-bar-col { width: 34%; }
.cs-bar { display: block; height: 7px; border-radius: 4px; background: #e6e9f0; overflow: hidden; }
.cs-bar i { display: block; height: 100%; background: var(--brand); }
.cs-total { position: relative; text-align: center; margin-bottom: 22px; }
.cs-facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e3e6ec; border: 1px solid #e3e6ec; border-radius: 10px; overflow: hidden; }
.cs-facts div { background: #fff; padding: 10px 12px; }
.cs-facts dt { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #7a808a; }
.cs-facts dd { font-size: .85rem; font-weight: 600; color: var(--ink); }
.cs-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: auto; padding-top: 28px; }
.cs-verify { max-width: 400px; padding: 14px 16px; border: 1px dashed #b8c0d6; border-radius: 10px; font-size: .82rem; }
.cs-verify b { display: block; color: var(--ink); font-size: .85rem; }
.cs-verify span { display: block; color: var(--brand); word-break: break-all; margin: 4px 0; font-size: .8rem; }
.cs-verify small { color: #6c7380; }
.cs-sign { text-align: center; width: 190px; }
.cs-seal { color: var(--brand); width: 128px; margin: 0 auto 6px; transform: rotate(-8deg); opacity: .9; }
.cs-seal-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.cs-sign small { font-size: .7rem; color: #6c7380; line-height: 1.35; display: block; }
.cs-legal { position: relative; font-size: .7rem; color: #858b95; margin-top: 18px; padding-top: 12px; border-top: 1px solid #e3e6ec; line-height: 1.45; }

/* ---------- Belge doğrulama ---------- */
.verify-sec { min-height: 70vh; padding-top: 140px; }
.verify-wrap { max-width: 720px; }
.verify-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.verify-form { display: flex; gap: 10px; margin-top: 26px; background: #fff; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.verify-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: var(--mono); font-size: 1.05rem; padding: 0 12px; letter-spacing: .04em; background: transparent; }
.verify-form:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.verify-result { margin-top: 24px; }
.verify-ok { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--ok-bg); color: #0f5434; border: 1px solid #b7dcc6; }
.verify-ok .i { width: 32px; height: 32px; }
.verify-ok b { font-family: var(--display); font-size: 1.2rem; }
.verify-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.verify-dl div { background: #fff; padding: 14px 16px; }
.verify-dl dt { font-size: .8rem; color: var(--muted); }
.verify-dl dd { font-weight: 700; color: var(--ink); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sb { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .sb.is-open { transform: none; }
  .topbar { padding: 0 18px; }
  .topbar .nav-toggle { display: inline-flex; }
  .topbar-date { display: none; }
  .app-main { padding: 22px 18px 56px; }
  .dh-in { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .dh-ring { width: 120px; height: 120px; position: absolute; right: 20px; top: 20px; }
  .dh-ring > div { width: 98px; height: 98px; }
  .dh-ring b { font-size: 1.7rem; }
  .dh-text { padding-right: 120px; }
  .cs-stage { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; grid-template-columns: 1fr; }
  .stat-ic { grid-row: auto; margin-bottom: 8px; width: 38px; height: 38px; }
  .dh-text { padding-right: 0; padding-top: 110px; }
  .dh-ring { left: 24px; right: auto; }
  .stepper b { font-size: .7rem; }
  .doc-sum { grid-template-columns: 1fr 1fr; }
  .doc-sum > div:nth-child(3) { border-left: 0; }
  .doc-sum > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .start-grid { grid-template-columns: 1fr; }
  .verify-dl { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .verify-form input { min-height: 44px; }
}

/* ---------- Yazdırma: yalnızca A4 belge ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .sb, .topbar, .no-print, #toast-root, .skip, .alert { display: none !important; }
  .shell { display: block; background: #fff; }
  .app-main { padding: 0 !important; max-width: none; }
  .cs-stage { padding: 0; display: block; overflow: visible; }
  .cs-sheet { width: 210mm; min-height: 297mm; box-shadow: none; padding: 9mm; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cs-frame { min-height: calc(297mm - 18mm); }
}
