/* Asya Coder ortak tasarım jetonları — ana-ekran.html ile aynı palet */
:root {
  --brand: #e0262d;
  --brand-strong: #a3141b;
  --brand-deep: #6e0d14;
  --brand-soft: #fdeceb;
  --ink: #1f1a1b;
  --ink-2: #554b4c;
  --ink-3: #958a8b;
  --cream: #faf4f2;
  --canvas: #f3efee;
  --surface: #ffffff;
  --surface-2: #faf7f6;
  --line: #ece4e3;
  --ok: #2fa765;
  --ok-soft: #e7f6ee;
  --bad: #c2410c;
  --bad-soft: #fdf0e8;
  --add-bg: #e9f7ef;
  --del-bg: #fdeee6;
  --shadow: 0 10px 30px -18px rgb(17 24 39 / .22);
  --shadow-lg: 0 30px 80px -30px rgb(40 10 12 / .45);
  --r-lg: 18px;
  --r-md: 12px;
}
:root[data-theme="dark"] {
  --brand: #ff4148;
  --brand-strong: #ff6b70;
  --brand-deep: #ff8a8e;
  --brand-soft: #2e1214;
  --ink: #f2eded;
  --ink-2: #c4b8b9;
  --ink-3: #8a7d7e;
  --cream: #1d1718;
  --canvas: #0c0909;
  --surface: #161213;
  --surface-2: #1e1819;
  --line: #2d2425;
  --ok-soft: #12291d;
  --bad-soft: #2b170e;
  --add-bg: #10261a;
  --del-bg: #2c1610;
  --shadow: 0 10px 30px -18px rgb(0 0 0 / .6);
  --shadow-lg: 0 30px 80px -30px rgb(0 0 0 / .8);
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--canvas); color: var(--ink);
  min-height: 100vh; font-size: 14px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: var(--ink); }
.mono { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
/* kod yazı tipinde <= gibi işaretler birleşik sembole dönmesin */
code, pre, .mono, .cmd, .diff { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-md); font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); font-weight: 500; }
.btn-ok { background: var(--ok); color: #fff; }
kbd { font: 500 11px "Plus Jakarta Sans"; padding: 2px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .7; }

.theme-btn { position: fixed; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); z-index: 10; }

/* ana ekranın üstüne açılan pencereler için */
.backdrop { position: fixed; inset: 0; }
.backdrop iframe { width: 100%; height: 100%; border: 0; filter: blur(2px); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgb(20 8 9 / .45); }
.modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 5; }
.modal { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; overflow: hidden; border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.modal-head h3 { font-size: 16px; } .modal-head small { color: var(--ink-3); font-size: 12.5px; }
.modal-head .spacer { flex: 1; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.modal-foot .spacer { flex: 1; }
.hint { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
