:root {
  --chrome: #121211;
  --bg: #161615;
  --surface: #1d1d1b;
  --surface-2: #272723;
  --line: #393832;
  --ink: #f2f0e9;
  --ink-2: #b9b7ae;
  --ink-3: #959288;
  --accent: #e7be4e;
  --accent-hover: #f2ce69;
  --accent-soft: #e7be4e14;
  --on-accent: #211c12;
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E");
  --icon-login: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h7v16h-7M3 12h12m-5-5 5 5-5 5'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 4 13 8-13 8z'/%3E%3C/svg%3E");
  --icon-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14v14H5z'/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v13H8zM4 16V3h12'/%3E%3C/svg%3E");
  --status-off: #DC2626;
  --status-on: #16A34A;
  --status-busy: #D97706;
  --danger: #F87171;
  --radius: 10px;
  --topbar-h: 56px;
  --side-w: 240px;
  --shadow: 0 1px 2px #0809084d, 0 4px 14px #08090838;
  color-scheme: dark;
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  accent-color: var(--accent);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--bg); -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
[hidden] { display: none !important; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.15; margin: 0; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.error { color: var(--danger); margin: 0; }
.error:empty { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Üst bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--chrome); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-inner { height: var(--topbar-h); padding: 0 clamp(12px, 3vw, 24px); display: flex; align-items: center; gap: .5rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 750; letter-spacing: -.04em; min-height: 44px; flex-shrink: 0; }
.brand-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); box-shadow: inset -6px -6px 0 var(--accent-hover); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: .25rem; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; padding: 0 .7rem; border-radius: 8px; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.nav-link:hover { background: var(--surface-2); }
#nav-go[href="#sunucular"] { color: var(--ink-2); }
.as-link { background: none; border: 0; cursor: pointer; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-accent); background: var(--accent); text-decoration: none; padding: 0 .9rem; border-radius: 8px; font-size: .92rem; font-weight: 650; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); }
.menu-btn { margin-left: -6px; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* İskelet: sol menü + içerik */
.shell { min-height: calc(100dvh - var(--topbar-h)); }
main { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 2rem 0 4rem; }
.sidenav { display: none; }
.scrim { display: none; }

body.authed .sidenav {
  display: block; background: var(--chrome); border-right: 1px solid var(--line);
  padding: 1rem .75rem;
}
.sidenav nav { display: grid; gap: 2px; }
.side-item { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 0 8px 8px 0; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
a.side-item:hover { background: var(--surface-2); }
.side-item[aria-current="page"] { border-left-color: var(--accent); background: var(--surface); }
.side-item.is-disabled { color: var(--ink-3); cursor: not-allowed; font-weight: 450; }
.side-group { margin: 1.1rem .9rem .3rem; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

@media (min-width: 900px) {
  body.authed .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  body.authed .sidenav { position: sticky; top: var(--topbar-h); height: calc(100dvh - var(--topbar-h)); overflow-y: auto; }
  body.authed main { width: min(100% - 48px, 1040px); }
  #nav-toggle { display: none !important; }
}
@media (max-width: 899.98px) {
  body.authed .sidenav {
    position: fixed; z-index: 25; top: calc(var(--topbar-h) + env(safe-area-inset-top)); left: 0; bottom: 0;
    width: min(280px, 84vw); box-shadow: var(--shadow);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  body.nav-open .sidenav { transform: none; visibility: visible; transition: transform .2s ease; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: #0D110FB3; }
}

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; user-select: none; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { min-height: 50px; padding: .7rem 1.4rem; font-size: 1.02rem; }
.btn.wide { width: 100%; }
.btn.stop { background: var(--surface-2); border-color: var(--status-off); color: var(--ink); }
.btn.stop:hover { background: #2A2524; border-color: var(--status-off); }
.btn.util { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.btn.util:hover { background: var(--accent-soft); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; border-radius: 8px; cursor: pointer; color: var(--ink-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Ana sayfa */
.home { display: grid; gap: 2.5rem; padding-top: clamp(.5rem, 5vh, 3rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--ink-2); font-weight: 650; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); max-width: 16ch; line-height: 1.03; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin: 1rem 0 1.6rem; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.plan-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 720px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.plan-card.plus { border-color: var(--accent); }
.plan-card header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.plan-card h2 { font-size: 1.25rem; }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--ink-2); }
.plan-card b { color: var(--ink); }
.tag { font-size: .78rem; font-weight: 650; padding: .15rem .55rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.plus .tag { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.note { margin: 0; color: var(--ink-2); font-size: .85rem; }

/* Giriş */
.auth { display: grid; place-items: start center; padding-top: clamp(0rem, 6vh, 3rem); }
.sheet { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 5vw, 2rem); box-shadow: var(--shadow); }
.sheet h1 { font-size: 1.7rem; }
.sheet > .muted { margin: .35rem 0 1.4rem; }
.switch { margin: 1.25rem 0 0; text-align: center; color: var(--ink-2); }
.switch a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hint { margin: -.3rem 0 0; font-size: .85rem; color: var(--ink-2); }

/* Formlar */
.stack { display: grid; gap: 1rem; }
.stack label { display: grid; gap: .35rem; font-weight: 550; font-size: .95rem; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 1rem; color: var(--ink); }
input::placeholder { color: var(--ink-3); }
input:hover, select:hover { border-color: #34443B; }
input:focus, select:focus { border-color: var(--accent); outline: none; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
select option { background: var(--surface); color: var(--ink); }
input[type=range] { padding: 0; min-height: 44px; border: 0; background: transparent; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 550; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.plan-option { position: relative; display: grid !important; gap: .15rem !important; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400 !important; background: var(--bg); }
.plan-option:hover { border-color: #34443B; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option strong { font-size: .98rem; }
.plan-option small { color: var(--ink-2); }
.plan-option:has(:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.range-head { display: flex; justify-content: space-between; }
.range-head output { font-weight: 700; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 14px; width: min(100% - 32px, 520px); max-height: 92dvh; padding: 1.4rem; color: var(--ink); background: var(--surface); box-shadow: 0 20px 50px #08090880; }
dialog::backdrop { background: #0D110FC2; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin: -.3rem -.4rem 0 0; }
.dialog-head h2 { font-size: 1.35rem; }

/* Sunucu listesi */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.page-head p { margin: .2rem 0 0; }
.server-list { display: grid; gap: .6rem; }
.server-row { --status: var(--status-off); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem 1rem calc(1.2rem + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.server-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--status); }
.server-row:hover { background: var(--surface-2); border-color: #34443B; }
.server-row.is-running { --status: var(--status-on); }
.server-row.is-busy { --status: var(--status-busy); }
.row-main { display: grid; min-width: 0; }
.row-name { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: .88rem; }
.row-plan { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.chev { font-size: 1.5rem; color: var(--ink-2); line-height: 1; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.empty strong { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.empty p { margin: 0 0 1.2rem; color: var(--ink-2); }

/* Durum rozeti (liste) */
.status-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.server-row .dot { background: var(--status); }
.is-busy .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Yönetim ekranı */
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .5rem; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.control { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.strip { display: flex; align-items: center; gap: .55rem; padding: .6rem clamp(1.2rem, 4vw, 2rem); font-weight: 700; font-size: .92rem; letter-spacing: .01em; background: var(--status-off); color: #FFFFFF; transition: background .2s; }
.is-running .strip { background: var(--status-on); color: var(--on-accent); }
.is-busy .strip { background: var(--status-busy); color: var(--on-accent); }
.control-body { padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1.5rem; }
.control-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.control h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); overflow-wrap: anywhere; }
.control .sub { margin: .35rem 0 0; color: var(--ink-2); }
.power { min-width: 200px; min-height: 56px; font-size: 1.12rem; font-weight: 700; }
.infobars { display: grid; gap: .5rem; }
.infobar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 56px; padding: .45rem .5rem .45rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.control .infobar { background: var(--bg); }
.label { font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.infobar .value { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.infobar code.value { font: 600 1rem ui-monospace, "JetBrains Mono", "Cascadia Mono", monospace; }
.infobar .btn { min-height: 44px; padding: .35rem .9rem; font-size: .9rem; }
.section-title { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 2rem 0 .75rem; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.stat dt { font-size: .82rem; color: var(--ink-2); }
.stat dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 700; }
.soon { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.soon div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; color: var(--ink-2); }
.soon b { display: block; color: var(--ink); margin-bottom: .15rem; }

@media (max-width: 640px) {
  main { padding-top: 1.25rem; }
  .plan-compare { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .page-head { align-items: center; gap: .75rem; }
  .page-head h1 { font-size: 1.6rem; }
  #open-create { white-space: nowrap; padding-inline: .9rem; flex-shrink: 0; }
  .infobar code.value { word-break: break-all; }
  .server-row { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .75rem; padding: .9rem 1rem .9rem calc(1rem + 4px); }
  .server-row .row-main { grid-column: 1; grid-row: 1; }
  .server-row .status-badge { grid-column: 1; grid-row: 2; justify-self: start; }
  .server-row .row-plan { grid-column: 2; grid-row: 2; }
  .server-row .chev { grid-column: 2; grid-row: 1; justify-self: end; }
  .control-head { grid-template-columns: 1fr; }
  .power { width: 100%; min-width: 0; }
  .infobar { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; padding-block: .6rem; }
  .infobar .label { grid-column: 1; grid-row: 1; }
  .infobar .value { grid-column: 1; grid-row: 2; }
  .infobar .btn { grid-column: 2; grid-row: 1 / span 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
  .nav-cta { display: none; }
  .nav-link { max-width: 34vw; padding: 0 .55rem; }
}
@media (max-width: 380px) {
  .split, .plan-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.brand-mark { border-radius: 2px; transform: rotate(-30deg) skewY(15deg); box-shadow: inset -5px -4px #986f37; }
.hero { padding: clamp(2rem, 7vw, 5rem) 0; background: url("/lode.svg") right center / 46% auto no-repeat; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5rem); max-width: 11ch; }
.hero .lead { max-width: min(42ch, 50%); }
.plan-compare { max-width: none; }
.plan-card.plus, .plus .tag { border-color: var(--line); }
.strip, .is-running .strip, .is-busy .strip { background: var(--surface-2); color: var(--ink); }
.strip .dot { color: var(--ink-3); }
.is-running .strip .dot { color: var(--status-on); }
.is-busy .strip .dot { color: var(--status-busy); }
#home-primary { --glyph: var(--icon-arrow); }
#submit-auth, #nav-go { --glyph: var(--icon-login); }
#open-create, #create-submit { --glyph: var(--icon-plus); }
[data-power] { --glyph: var(--icon-play); }
[data-power].stop { --glyph: var(--icon-stop); }
[data-copy] { --glyph: var(--icon-copy); }
:is(#home-primary,#submit-auth,#nav-go,#open-create,#create-submit,[data-power],[data-copy])::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  background: currentColor; mask: var(--glyph) center / contain no-repeat;
}
#nav-go { gap: .45em; }
@media (prefers-reduced-motion: no-preference) {
  .side-item, .nav-link, .nav-cta, .icon-btn, .plan-option, input, select {
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
  }
  dialog[open] { animation: dialog-in 160ms ease-out; }
  dialog[open]::backdrop, .nav-open .scrim { animation: shade-in 150ms ease-out; }
  @keyframes dialog-in {
    from { opacity: .5; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
}
.module-box { background: var(--surface); border: 1px solid var(--line); padding: clamp(1rem,3vw,2rem); border-radius: var(--radius); display: grid; gap: 1rem; }
.module-box > * { margin: 0; min-width: 0; }
.module-box .btn { justify-self: start; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); gap: .7rem; }
.module-grid article, .module-box details { background: var(--bg); border: 1px solid var(--line); padding: 1rem; border-radius: 8px; }
.module-box summary { color: var(--accent); cursor: pointer; }
.terminal { background: var(--chrome); color: var(--ink); padding: 1rem; min-height: 10rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.module-box form { display: flex; gap: .6rem; }
body.authed .sidenav { overflow-y: auto; }
.settings-form fieldset { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: .85rem; margin: 1rem 0 2rem; }
.settings-form legend { font: 600 1rem ui-monospace,monospace; margin-bottom: .75rem; }
.settings-form label { display: grid; gap: .45rem; align-content: start; border: 1px solid var(--line); border-radius: 8px; padding: .9rem; background: var(--surface); }
.settings-form input[type=checkbox] { width: 1.35rem; height: 1.35rem; min-height: 0; margin: .7rem 0; }
.settings-form code, .settings-form small { color: var(--ink-2); }
.settings-form textarea { background: var(--bg); color: var(--ink); min-height: 54px; }
.settings-form footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.selected-server { padding: 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); margin-bottom: .65rem; }
.selected-server strong, .selected-server small { display: block; overflow-wrap: anywhere; }
.selected-server small { color: var(--ink-2); }
#server-menu .side-item { width: 100%; background: transparent; border: 0; gap: .85rem; cursor: pointer; }
#server-menu .side-item:hover { background: var(--surface-2); }
.nav-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#server-menu .side-item, #side-servers { color: var(--ink-2); gap: .8rem; min-height: 42px; border-radius: 7px; text-decoration: none; }
#server-menu .side-item[aria-current="page"], #side-servers[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
#side-servers { margin-top: .8rem; }
.selected-server { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.panel-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-bottom: 1rem; }
#detail .control { border: 0; background: transparent; box-shadow: none; }
.address-head { text-align: center; padding: clamp(1.6rem,4vw,3rem) 1rem; background-color: var(--surface-2); background-image: radial-gradient(#ffffff0c 1px,transparent 1px); background-size: 12px 12px; border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0; }
.address-head small { color: var(--ink-2); }
.address-head h2 { margin-top: .4rem; overflow-wrap: anywhere; font-size: clamp(1.35rem,3vw,2rem); }
#detail .strip { justify-content: center; min-height: 46px; color: white; background: #a33231; }
#detail .is-running .strip { background: #246740; }
#detail .is-busy .strip { background: #785918; }
#detail .strip .dot { color: inherit; }
#detail .control-body { padding: 0; gap: 0; }
.power-row { text-align: center; padding: 1.7rem 0; }
.power-row .power { border-radius: 100px; width: min(100%,200px); }
#detail .infobars { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#detail .infobar { background: transparent; grid-template-columns: minmax(68px, 18%) minmax(0,1fr) auto; gap: .6rem; padding: .45rem 1rem; border: 0; border-radius: 0; }
#detail .infobar + .infobar { border-top: 1px solid var(--line); }
#detail .infobar .label { grid-area: 1/1; color: var(--ink-2); text-transform: none; font-size: .9rem; font-weight: 500; letter-spacing: 0; }
#detail .infobar .value { grid-area: 1/2; font-size: .95rem; }
#detail .infobar .btn { grid-area: 1/3; color: var(--ink); border-color: var(--line); min-height: 36px; }
@media (max-width: 540px) {
  #detail .infobar { grid-template-columns: minmax(0,1fr) auto; row-gap: .2rem; padding: .75rem; }
  #detail .infobar .value { grid-area: 2/1; }
  #detail .infobar .btn { grid-area: 1/2/3/3; }
}
#detail :is(.control,.infobars,.stats) { scroll-margin-top: calc(var(--topbar-h) + 12px); }
@media (min-width: 900px) {
  body.authed main:has(#detail:not([hidden])) { width: calc(100% - 3rem); }
}
@media (max-width: 640px) {
  .hero { padding: 0 0 130px; background-size: auto 146px; background-position: center bottom; }
  .hero .lead { max-width: none; }
  .home { gap: 1rem; }
}

/* ---- Canlı panel rötuşu ---- */
:root {
  --strip-off: #3A2422;
  --strip-on: #4FB477;
  --strip-busy: #E0A23A;
  --terrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='96' viewBox='0 0 480 96' shape-rendering='crispEdges'%3E%3Cpath d='M0 96L0 40L16 40L16 40L32 40L32 32L48 32L48 32L64 32L64 40L80 40L80 32L96 32L96 24L112 24L112 32L128 32L128 24L144 24L144 24L160 24L160 32L176 32L176 24L192 24L192 32L208 32L208 24L224 24L224 24L240 24L240 24L256 24L256 24L272 24L272 24L288 24L288 24L304 24L304 24L320 24L320 24L336 24L336 32L352 32L352 32L368 32L368 24L384 24L384 32L400 32L400 24L416 24L416 24L432 24L432 32L448 32L448 40L464 40L464 48L480 48L480 96Z' fill='%232f2f2a'/%3E%3Cpath d='M0 96L0 66L16 66L16 58L32 58L32 66L48 66L48 74L64 74L64 74L80 74L80 66L96 66L96 58L112 58L112 56L128 56L128 64L144 64L144 56L160 56L160 56L176 56L176 56L192 56L192 56L208 56L208 64L224 64L224 56L240 56L240 64L256 64L256 64L272 64L272 72L288 72L288 76L304 76L304 68L320 68L320 60L336 60L336 68L352 68L352 76L368 76L368 76L384 76L384 68L400 68L400 68L416 68L416 60L432 60L432 68L448 68L448 76L464 76L464 68L480 68L480 96Z' fill='%231f1f1c'/%3E%3Crect x='288' y='76' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3Crect x='312' y='76' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3Crect x='248' y='84' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3Crect x='392' y='84' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3Crect x='232' y='84' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3Crect x='184' y='84' width='8' height='8' fill='%23e7be4e' opacity='.35'/%3E%3C/svg%3E");
}
.address-head {
  position: relative; text-align: center;
  padding: clamp(1.8rem,4vw,2.8rem) 1rem clamp(3.6rem,7vw,4.6rem);
  background-color: var(--surface-2);
  background-image: var(--terrain), linear-gradient(#ffffff05, #ffffff00);
  background-repeat: repeat-x, no-repeat;
  background-position: left bottom, 0 0;
  background-size: 480px 96px, auto;
}
.address-line { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; max-width: 100%; }
.address-head h2 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); overflow-wrap: anywhere; }
.address-head .btn.util { min-height: 40px; padding: .3rem .85rem; font-size: .9rem; background: #1d1d1bcc; }
.motd { margin: .5rem auto 0; max-width: 60ch; color: var(--ink-2); font-size: .95rem; }
#detail .strip { gap: .6rem; background: var(--strip-off); color: var(--ink); }
#detail .strip .dot { color: var(--status-off); }
#detail .is-running .strip { background: var(--strip-on); color: var(--on-accent); }
#detail .is-busy .strip { background: var(--strip-busy); color: var(--on-accent); }
#detail .is-running .strip .dot, #detail .is-busy .strip .dot { color: var(--on-accent); }
.uptime { font: 600 .9rem ui-monospace, "JetBrains Mono", "Cascadia Mono", monospace; opacity: .85; }
.uptime::before { content: "·"; margin-right: .6rem; }
.power-row { padding: 1.5rem 0 1.25rem; }
#detail .stats.live { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stats.live .stat { display: grid; gap: .35rem; }
.stats.live dd { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stats.live dd small { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .8s ease; }
.stats.is-idle dd { color: var(--ink-3); }
.live-note { margin: .5rem 0 1.25rem; font-size: .8rem; color: var(--ink-3); }
.console-peek { background: #121211; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.console-peek-head { display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem 0 1rem; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.console-peek-head a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; text-decoration: none; font-weight: 600; }
.console-peek pre { margin: 0; padding: .8rem 1rem; font: .85rem/1.6 ui-monospace, "JetBrains Mono", "Cascadia Mono", monospace; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 3.2em; }
@media (max-width: 900px) { #detail .stats.live { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .meter i { transition: none; } }
@media (max-width: 540px) {
  .address-head h2 { word-break: break-all; font-size: 1.3rem; }
  .stats.live dd { font-size: 1.1rem; }
  .stats.live dd small { font-size: .78rem; }
}

/* ---- Reklam alanları (yalnızca Free) ---- */
.ad-slot { display: grid; gap: .35rem; justify-items: center; margin: 1.75rem auto 0; }
.ad-label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ad-box { display: grid; place-content: center; text-align: center; gap: .15rem; width: 100%; color: var(--ink-3); font-size: .85rem; font-weight: 600; background: repeating-linear-gradient(135deg, #1d1d1b 0 10px, #1a1a18 10px 20px); border: 1px dashed var(--line); border-radius: 8px; overflow: hidden; }
.ad-box small { font-weight: 500; font-size: .75rem; }
.ad-leader { width: min(100%, 728px); }
main { container-type: inline-size; }
@container (max-width: 727.99px) { .ad-leader { display: none; } }
.ad-side { margin: 1.5rem .25rem 0; }
.ad-side .ad-box { width: 200px; height: 200px; max-width: 100%; }
@media (max-width: 899.98px) { .ad-side { display: none !important; } }


/* ---- Başlatma penceresi + destek notu ---- */
#start-dialog { width: min(100% - 32px, 420px); }
.start-modal { display: grid; gap: .9rem; text-align: center; }
.start-modal h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.start-status { margin: -.4rem 0 0; color: var(--ink-2); }
.is-done .start-status { color: var(--strip-on); font-weight: 650; }
.is-failed .start-status { color: var(--danger); }
.start-progress { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.start-progress i { display: block; height: 100%; width: 35%; border-radius: inherit; background: var(--accent); animation: start-slide 1.2s ease-in-out infinite; }
.is-done .start-progress i, .is-failed .start-progress i { width: 100%; animation: none; }
.is-failed .start-progress i { background: var(--danger); }
@keyframes start-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.ad-rect { margin: 0 auto; width: min(100%, 300px); }
.ad-rect .ad-box { height: 250px; }
.support-note { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 1rem 1.1rem; font-size: .93rem; }
.support-note p { margin: 0 0 .5rem; }
.support-note .support-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.support-note details { margin-top: .4rem; }
.support-note summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.support-note ol { margin: .2rem 0 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .25rem; }
@media (prefers-reduced-motion: reduce) { .start-progress i { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 640px) { #start-dialog { width: 100%; } }
