:root {
  --ink: #101c28;
  --soft: #4a5b6a;
  --sea: #0d6b66;
  --sea2: #084e4a;
  --glass: rgba(255,255,255,.62);
  --line: rgba(16,28,40,.1);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink); background: #eef3f6;
}
.aurora {
  position: fixed; inset: -20%;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(13,107,102,.28), transparent 60%),
    radial-gradient(45% 40% at 90% 10%, rgba(168,107,45,.16), transparent 55%),
    linear-gradient(165deg, #f8fbfc, #d5e4ec);
  z-index: 0;
}
.shell { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }
.brand { font-weight: 800; font-size: 32px; letter-spacing: -.04em; }
.sub { color: var(--soft); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.card {
  margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.v { font-size: 18px; font-weight: 700; margin-top: 4px; }
.row-title { font-weight: 700; margin-bottom: 10px; }
.list { display: grid; gap: 8px; }
.item {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid var(--line);
}
.item small { color: var(--soft); display: block; }
.btn {
  display: inline-block; width: 100%; margin-top: 10px; border: 0; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(160deg, #1a8f88, #0d6b66); text-align: center; text-decoration: none;
}
.btn-ghost { background: rgba(16,28,40,.08); color: var(--ink); width: auto; margin: 0; }
.btn-sm { width: auto; margin: 0; padding: 8px 10px; font-size: 12px; }
.promo { display: flex; gap: 8px; }
.promo input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit;
}
.hint { color: var(--soft); font-size: 12px; line-height: 1.4; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
.sheet {
  position: fixed; inset: 0; background: rgba(16,28,40,.45); display: grid; place-items: end center;
  padding: 16px; z-index: 20;
}
.sheet[hidden] { display: none !important; }
.sheet-card {
  width: min(400px, 100%); background: #f7fafc; border-radius: 22px; padding: 20px; position: relative;
}
.sheet-card img { display: block; width: 220px; margin: 12px auto; border-radius: 12px; background: #fff; }
.x {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: rgba(16,28,40,.06); font-size: 20px; cursor: pointer;
}
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 30;
  max-width: 90%;
}
.toast.err { background: #8f2e2e; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #999; }
.dot.on { background: #1d6b45; }
.steps {
  margin: 8px 0 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.55;
}
.steps li { margin: 4px 0; }
#btnRequest:not([hidden]) { display: inline-block; }
.connect-hero .btn-hero {
  margin-top: 14px; padding: 16px; font-size: 17px; letter-spacing: -.02em;
  box-shadow: 0 10px 24px rgba(13,107,102,.25);
}
#connectHero[hidden] { display: none !important; }
.btn.full { width: 100%; margin-top: 8px; }
.row-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.in-qr { text-align: center; margin-top: 12px; }
.in-qr img { width: 220px; height: 220px; background: #fff; border-radius: 14px; padding: 8px; }
a.secondary-link {
  display: block; text-align: center; margin-top: 10px; text-decoration: none;
  padding: 12px 14px; border-radius: 14px; font-weight: 700;
  background: rgba(16,28,40,.08); color: var(--ink);
}
a.secondary-link.btn-hero {
  background: linear-gradient(160deg, #1a8f88, #0d6b66); color: #fff;
}
.connect-panel { margin-top: 12px; text-align: center; }
.connect-panel img {
  width: 240px; height: 240px; background: #fff; border-radius: 16px; padding: 10px; display: block; margin: 0 auto 12px;
}
.happ-details { margin-top: 14px; font-size: 13px; color: var(--soft); }
.happ-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.debug-log {
  margin: 8px 0 0; max-height: 180px; overflow: auto; text-align: left;
  font-size: 11px; line-height: 1.35; white-space: pre-wrap; word-break: break-all;
  background: rgba(16,28,40,.06); border-radius: 10px; padding: 8px 10px; color: var(--ink);
}
