/* BooxVPN cihaz kurulum sayfası - mobil öncelikli */
:root {
  --ink: #0b0f14;
  --ink-2: #131b26;
  --brand: #00c8dc;
  --brand-2: #00a5b6;
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #e4e9f0;
  --text: #1e2a3d;
  --muted: #6b7789;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1219; --card: #161d27; --line: #243041; --text: #dfe7f1; --muted: #8b98ab; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font: 15px/1.55 "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, .tabs button, .cta, .user-chip { font-family: "Outfit", "Plus Jakarta Sans", sans-serif; }
b { font-weight: 700; }

/* üst bölüm */
.hero {
  background:
    radial-gradient(420px 220px at 85% -10%, rgba(0,200,220,.35), transparent 70%),
    radial-gradient(360px 200px at -10% 110%, rgba(0,200,220,.18), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: calc(28px + env(safe-area-inset-top)) 20px 64px; text-align: center;
}
.hero-in { max-width: 520px; margin: 0 auto; }
.hero-logo { height: 39px; display: block; margin: 0 auto 22px; }
.hero-logo.inv { filter: invert(1) hue-rotate(180deg); }
.hero h1 { font-size: 27px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.hero p { margin: 0 auto 18px; color: rgba(255,255,255,.72); font-size: 14.5px; max-width: 360px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 600; font-size: 14px;
}
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0,200,220,.2); }

/* içerik */
.wrap { max-width: 560px; margin: -40px auto 0; padding: 0 16px 32px; position: relative; }
.alert { background: #fdecec; color: #b42323; border: 1px solid #f5c6c6; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,15,20,.12);
  position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 5;
}
.tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 12px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; min-height: 60px;
}
.tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs button.on svg { stroke: var(--brand); }
@media (prefers-color-scheme: dark) { .tabs button.on { background: var(--brand); color: var(--ink); } .tabs button.on svg { stroke: var(--ink); } }

.pf { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 14px; box-shadow: 0 4px 18px rgba(11,15,20,.05); }
.pf[hidden] { display: none; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 14px;
  border-radius: 14px; background: var(--brand); color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,200,220,.35); margin-bottom: 18px;
}
.cta:active { transform: scale(.99); background: var(--brand-2); }
.cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 16px 46px; font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px "Outfit", sans-serif; color: var(--ink);
  background: rgba(0,200,220,.16); border: 1.5px solid var(--brand);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1.5px; background: var(--line); }
.steps li:last-child { padding-bottom: 4px; }
.steps .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--brand); } }

.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(0,200,220,.09); border: 1px solid rgba(0,200,220,.28); font-size: 13.5px; }

.fields { margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.f { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.f:last-child { border-bottom: 0; }
.f span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.f b { font-size: 15px; word-break: break-all; }
.f em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 12.5px; }

.ghost {
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 9px 14px;
  font: 600 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; min-height: 40px;
}
.ghost.sm { padding: 6px 10px; min-height: 34px; font-size: 12px; }
.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand-2); }
@media (prefers-color-scheme: dark) { .more summary { color: var(--brand); } }
.more p { font-size: 13.5px; color: var(--muted); }
.more pre {
  white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 11.5px; max-height: 180px; overflow: auto; margin: 0 0 10px;
}

.foot { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; margin-top: 22px; color: var(--muted); font-size: 12.5px; }

@media (min-width: 640px) {
  .hero { padding-top: 44px; padding-bottom: 76px; }
  .hero h1 { font-size: 32px; }
  .pf { padding: 26px; }
}

/* lokasyonlar */
.locs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.locs-title { font: 700 15px "Outfit", sans-serif; margin-bottom: 4px; }
.locs-title span { font: 500 12px "Plus Jakarta Sans", sans-serif; color: var(--muted); margin-left: 6px; }
.locs-help { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.loc {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); margin-bottom: 8px;
}
.loc:active { background: rgba(0,200,220,.08); }
.loc .flag { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 700 13px "Outfit", sans-serif; background: rgba(0,200,220,.12); color: var(--brand-2); }
.loc b { font-size: 15px; } .loc em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* iPhone/Mac profil formu */
.pf-form { display: grid; gap: 8px; margin-bottom: 18px; }
.pf-form .alert { margin-bottom: 4px; }
.fl { font-size: 13px; font-weight: 600; color: var(--muted); }
.fi { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.fi:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,200,220,.15); }
.pf-form .cta { border: 0; cursor: pointer; margin-top: 6px; font-family: inherit; }
.fh { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* gizli bağlantı */
.tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.warn-note { margin: 0 0 12px; background: rgba(240,168,90,.12); border-color: rgba(240,168,90,.45); }
.pf-intro { margin: 0 0 14px; font-size: 14.5px; }
.rl { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.rl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rl-qr { background: #fff; border-radius: 12px; padding: 10px; justify-self: center; width: min(260px, 100%); }
.rl-qr svg { width: 100%; height: auto; display: block; }
.rl-link { font: 12px ui-monospace, Consolas, monospace; word-break: break-all; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; user-select: all; -webkit-user-select: all; }
.alt-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 18px; }
.alt-apps .ghost { text-align: center; text-decoration: none; padding: 11px 8px; }
.rl-more { margin-top: 14px; }
.rl-more summary { cursor: pointer; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.rl-more .rl-link { margin-bottom: 10px; }
