:root {
  color-scheme: dark;
  --bg: #050a12;
  --panel: rgba(13, 25, 42, .78);
  --panel-2: #0c1828;
  --line: rgba(148, 177, 214, .16);
  --text: #f1f7ff;
  --muted: #8fa5bd;
  --cyan: #43d5ff;
  --blue: #2481cc;
  --green: #55e6a5;
  --danger: #ff7e91;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 5%, rgba(36, 129, 204, .24), transparent 28rem),
    radial-gradient(circle at 10% 35%, rgba(67, 213, 255, .08), transparent 24rem),
    linear-gradient(145deg, #050a12, #081321 60%, #06101c);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button, input { font: inherit; }

.shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(42px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
}

.hero { padding: 12px 4px 28px; }
.brand-row { display: flex; gap: 17px; align-items: center; }
.logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #35bdf5, #1a6ac4);
  box-shadow: 0 18px 45px rgba(26, 106, 196, .35), inset 0 1px rgba(255,255,255,.35);
}
.logo svg { width: 33px; fill: white; transform: translate(-1px, 1px); }
.eyebrow, .step { margin: 0 0 6px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(31px, 7vw, 48px); line-height: 1; }
h2 { font-size: 24px; }
.lede { max-width: 570px; margin: 21px 0 15px; color: #b6c7d9; font-size: 16px; line-height: 1.65; }
.privacy { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.privacy span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.panel {
  margin-top: 16px;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 32, 52, .88), rgba(9, 20, 35, .9));
  box-shadow: 0 26px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.text-button, .icon-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.text-button:hover, .icon-button:hover { color: white; }
.text-button { font-size: 12px; }

.grid { display: grid; grid-template-columns: 1fr 130px; gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field > span { color: #b8c9da; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.field em { color: var(--muted); font-weight: 500; font-style: normal; }
input {
  width: 100%;
  min-height: 51px;
  padding: 0 15px;
  border: 1px solid rgba(158, 187, 220, .18);
  border-radius: 13px;
  outline: 0;
  color: white;
  background: rgba(3, 11, 21, .58);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(67, 213, 255, .1); }
input::placeholder { color: #587088; }
.secret-wrap { position: relative; }
.secret-wrap input { padding-right: 68px; }
.icon-button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 8px; font-size: 12px; }

.primary, .secondary {
  min-height: 52px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: translate .15s ease, filter .15s ease, border-color .15s ease;
}
.primary:hover, .secondary:hover { translate: 0 -1px; filter: brightness(1.08); }
.primary:active, .secondary:active { translate: 0 1px; }
.primary {
  width: 100%;
  border: 0;
  color: #03111c;
  background: linear-gradient(110deg, var(--cyan), #70f0d2);
  box-shadow: 0 13px 32px rgba(67, 213, 255, .16);
}
.primary.link { display: grid; place-items: center; text-decoration: none; }
.secondary { flex: 1; border: 1px solid var(--line); color: #c7d7e7; background: rgba(255,255,255,.035); }
.actions { display: flex; gap: 12px; margin-top: 12px; }
.error { margin: -3px 0 14px; color: var(--danger); font-size: 13px; }

.result { border-color: rgba(85, 230, 165, .22); }
.online { display: flex; align-items: center; gap: 8px; color: var(--green); font: 800 11px/1 ui-monospace, monospace; letter-spacing: .12em; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px var(--green); }
.summary { display: grid; grid-template-columns: 1fr 80px 1fr; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.summary div { min-width: 0; padding: 14px; background: rgba(3, 11, 21, .42); }
.summary div + div { border-left: 1px solid var(--line); }
.summary dt { margin-bottom: 7px; color: var(--muted); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.summary dd { margin: 0; overflow: hidden; color: #dce9f6; font: 600 12px/1.35 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-status { min-height: 18px; margin: 10px 0 0; color: var(--green); text-align: center; font-size: 12px; }
.notes { margin: 19px 5px 0; color: #71879d; font-size: 12px; line-height: 1.65; }
.notes strong { color: #9bb1c7; }

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 24px; }
  .logo { width: 50px; height: 50px; border-radius: 15px; }
  .logo svg { width: 29px; }
  .grid { grid-template-columns: 1fr 105px; }
  .summary { grid-template-columns: 1fr 67px; }
  .summary div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

