:root {
  --bg: #07101d;
  --panel: rgba(14, 27, 45, 0.82);
  --panel-2: rgba(9, 20, 35, 0.9);
  --text: #f7fbff;
  --muted: #8fa5bc;
  --line: rgba(159, 195, 229, 0.12);
  --blue: #4fa3ff;
  --blue2: #a5d0ff;
  --green: #50d890;
  --red: #ff6b7a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 163, 255, .18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(165, 208, 255, .08), transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.card {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 31, 51, .92), rgba(9, 19, 33, .92));
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.top {
  padding: 30px 30px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #04101d;
  box-shadow: 0 10px 28px rgba(79,163,255,.28);
}
.status {
  color: #b8f0d0;
  border: 1px solid rgba(80, 216, 144, .22);
  background: rgba(80, 216, 144, .08);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.content { padding: 18px 30px 32px; }
.eyebrow {
  color: var(--blue2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 10px;
}
.sub {
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.55;
}
.order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d9eb;
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.codeBox {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(92, 171, 255, .18);
  background: linear-gradient(180deg, rgba(79,163,255,.08), rgba(255,255,255,.02));
  padding: 26px 20px 22px;
  text-align: center;
  overflow: hidden;
}
.code {
  font-variant-numeric: tabular-nums;
  font-size: clamp(48px, 13vw, 76px);
  font-weight: 850;
  letter-spacing: .085em;
  line-height: 1;
  margin-left: .085em;
}
.timerRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  margin-top: 10px;
}
.bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  transition: width .25s linear;
}
.copy {
  width: 100%;
  border: 0;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  color: #06111f;
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.copy:hover { filter: brightness(1.04); transform: translateY(-1px); }
.copy:active { transform: translateY(1px) scale(.995); }
.note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 15px;
  color: #a9bdd0;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  line-height: 1.45;
  font-size: 13px;
}
.noteIcon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(79,163,255,.1); color: var(--blue2);
}
.errorBox { text-align: center; padding: 24px 4px 8px; }
.errorIcon { font-size: 42px; margin-bottom: 14px; }
.errorText { color: var(--muted); line-height: 1.55; }
.footer {
  text-align: center;
  color: #6e8499;
  font-size: 12px;
  padding: 0 30px 25px;
}
.hidden { display:none !important; }
@media (max-width: 520px) {
  .shell { padding: 14px; }
  .card { border-radius: 22px; }
  .top { padding: 22px 20px 13px; }
  .content { padding: 15px 20px 24px; }
  .footer { padding: 0 20px 20px; }
  .status { display: none; }
}

/* IceModz uses the same UI with its own brand accent. */
body.theme-icemodz {
  --blue: #24d4c8;
  --blue2: #a88bff;
  --green: #55df9b;
  background:
    radial-gradient(circle at 18% 0%, rgba(36, 212, 200, .16), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(168, 139, 255, .12), transparent 34%),
    var(--bg);
}
body.theme-icemodz .logo {
  background: linear-gradient(135deg, #24d4c8, #5aa7ff 55%, #a88bff);
}
.homeContent { padding-top: 28px; }
.homeCard .note { margin-top: 8px; }
