/* Uygulama paneli — styles.css token'larını kullanır */
body.app { background: var(--soft); }
.app-main { padding: 32px 0 80px; min-height: calc(100vh - 72px); }
.app-main h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.app-main h2 { font-size: 22px; }
.app-main h3 { font-size: 18px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.grow { flex: 1; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); }
.panel > h2, .panel > h3 { margin-bottom: 14px; }
.panel + .panel { margin-top: 16px; }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.cols > aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.cols > *, .grid2 > *, .grid3 > * { min-width: 0; }
.panel { min-width: 0; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.center-box { max-width: 480px; margin: 40px auto; }

/* status */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.4 var(--body); background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.st--ok { background: #e8f6ee; color: #137a40; }
.st--warn { background: #fff4d6; color: #7a5300; }
.st--bad { background: #ffe9e8; color: var(--red-dark); }
.st--info { background: #e9f0ff; color: #2446a6; }
.st--dark { background: var(--ink); color: #fff; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { font-weight: 600; text-decoration: none; }
.tbl a:hover { color: var(--red); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; font: 600 14px var(--body); color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.on, .tabs button.on { color: var(--ink); border-color: var(--red); }
.tabs .count { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }

/* checks */
.checks-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.checks-list li { padding: 10px 14px; border-radius: 10px; font-size: 14px; border-left: 4px solid; }
.checks-list .error { background: #fff4f3; border-color: var(--red); }
.checks-list .warn { background: #fffaf0; border-color: #e0a100; }
.checks-list .info { background: #f4f7ff; border-color: #6b8cff; }

/* repeater */
.rep { display: grid; gap: 12px; }
.rep-row { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px; padding-right: 52px; background: #fcfcfd; }
.rep-row .rm-row { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--muted); }
.rep-row .rm-row:hover { color: var(--red); border-color: var(--red); }
.rep-empty { color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.add-row { justify-self: start; }

/* seçim kartları */
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 14px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: #c9c9cf; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 18px; }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__text b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.choice__text small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.choice__mark { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c9c9cf; background: #fff; }
.choice:has(input:checked) { border-color: var(--red); background: #fff7f7; box-shadow: 0 0 0 3px rgba(225, 6, 0, .08); }
.choice:has(input:checked) .choice__icon { background: #ffe1df; }
.choice:has(input:checked) .choice__mark { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 5px, #fff 6px); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }

.checkset { display: flex; flex-wrap: wrap; gap: 8px; }
.checkset label { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; }
.checkset label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.checkset input { accent-color: var(--red); }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.inline-check input { accent-color: var(--red); width: 16px; height: 16px; }

.form-section { scroll-margin-top: 90px; }
.form-section > h2 { display: flex; align-items: center; gap: 10px; }
.form-section > h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.form-section > p.muted { margin: -6px 0 16px; font-size: 14px; }
.secnav { display: grid; gap: 2px; }
.secnav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.secnav a:hover { background: var(--soft); color: var(--red); }
.privacy { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.privacy::before { content: "🔒"; }
fieldset[disabled] { opacity: .7; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* candidates */
.cands { display: grid; gap: 10px; margin-top: 12px; }
.cand { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.cand__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.score { font: 700 26px/1 var(--display); }
.score small { font-size: 12px; color: var(--muted); font-family: var(--body); font-weight: 500; }
.cand details { margin-top: 8px; font-size: 14px; }
.cand summary { cursor: pointer; color: var(--red); font-weight: 600; }
.cand ul { margin: 8px 0 0; padding-left: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-s { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--soft); }
.chip-s.on { background: #ffe9e8; color: var(--red-dark); font-weight: 600; }

.module-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.module-card + .module-card { margin-top: 10px; }
.asg { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; flex-wrap: wrap; }

/* price */
.price { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; }
.price h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.price li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #262629; }
.price li span { color: #bbb; }
.price li small { display: block; color: #777; font-size: 12px; }
.price li.sub { font-weight: 600; }
.price li.sub span { color: #fff; }
.price .tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.price .tot b { font: 700 30px var(--display); }
.price .pp { display: flex; justify-content: space-between; color: #aaa; font-size: 14px; }
.price .tag--outline { border-color: #333; color: #aaa; }
.price .unconf { color: #ffb4b0; font-size: 11px; }

/* sessions */
.sess { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.sess div { display: grid; grid-template-columns: 110px 110px 1fr auto; gap: 10px; font-size: 14px; padding: 8px 10px; background: var(--soft); border-radius: 8px; }

/* paket görselleri */
.prog-img { width: 96px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.prog-img span { display: grid; place-items: center; aspect-ratio: 16 / 9; font-size: 24px; }
.prog-img img { display: block; width: 100%; height: auto; }
.img-edit { margin-top: 6px; font-size: 13px; }
.img-edit summary { cursor: pointer; color: var(--red); font-weight: 600; }
.img-edit form { margin-top: 10px; min-width: 260px; }
.pkg-hero { display: block; width: auto; max-width: 100%; height: auto; border-radius: 18px; margin: 0 auto 16px; background: var(--soft); }

/* misc */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; display: block; }
.tile b { font: 700 32px/1.1 var(--display); display: block; }
.tile span { color: var(--muted); font-size: 13px; }
a.tile:hover { border-color: var(--ink); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.loading::before { content: ""; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { background: #fff4f3; border: 1px solid #ffd2cf; color: var(--red-dark); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.ok-box { background: #f0faf4; border: 1px solid #c9ebd6; color: #137a40; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.warn-box { background: #fffaf0; border: 1px solid #f3dfa8; color: #6b4a00; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.test-banner { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 10px, #ffedb8 10px, #ffedb8 20px); color: #6b4a00; font-weight: 600; font-size: 13px; padding: 10px 14px; border-radius: 10px; }
.demo-accounts { display: grid; gap: 6px; }
.demo-accounts button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font: 14px var(--body); }
.demo-accounts button:hover { border-color: var(--ink); }
.demo-accounts small { color: var(--muted); display: block; }

/* header extras */
.userbox { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; }
.bell i { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font: 700 10px/18px var(--body); min-width: 18px; height: 18px; border-radius: 9px; font-style: normal; }
.notif-pop { position: absolute; right: 16px; top: 70px; width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 60; max-height: 60vh; overflow: auto; }
.notif-pop a, .notif-pop div.n { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.notif-pop a:hover { background: var(--soft); }
.notif-pop .unread { font-weight: 600; }
.notif-pop small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--red); }

@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .cols > aside { position: static; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .sess div { grid-template-columns: 1fr 1fr; }
  .tbl.responsive thead { display: none; }
  .tbl.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  .tbl.responsive td::before { content: attr(data-l); color: var(--muted); font-size: 12px; }
  .tbl.responsive .num { text-align: right; }
  .userbox .btn { padding: 8px 12px; }
}
