:root {
  color-scheme: dark;
  --bg: #05070b;
  --badge-accent: #7c35ff;
  --panel: rgba(13, 15, 24, 0.76);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff7fb;
  --muted: rgba(255, 247, 251, 0.64);
  --hot: #ff2e9f;
  --orange: #ff7a1a;
  --violet: #7c35ff;
  --green: #34e36f;
  --red: #ff453f;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 46, 159, 0.17), transparent 30%),
    radial-gradient(circle at 70% 78%, rgba(124, 53, 255, 0.16), transparent 36%),
    linear-gradient(145deg, #020308, #090a12 48%, #03050a);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button, select {
  font: inherit;
}

.shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.approval-surface {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
}

h1, h2, p { margin-top: 0; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  letter-spacing: 0;
}

.pop-mark {
  width: 74px;
  aspect-ratio: 1;
  border-radius: 44% 56% 51% 49% / 48% 43% 57% 52%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 32% 26%, rgba(255, 190, 62, .42), transparent 34%),
    radial-gradient(ellipse at 68% 62%, rgba(57, 217, 255, .20), transparent 38%),
    rgba(4, 5, 10, .48);
  box-shadow:
    0 0 34px rgba(255, 46, 159, 0.34),
    0 0 20px rgba(57, 217, 255, 0.16),
    inset 0 0 28px rgba(255,255,255,.08);
  isolation: isolate;
}

.pop-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: conic-gradient(from 210deg, rgba(255,255,255,.86), var(--orange), var(--hot), #39d9ff, var(--violet), rgba(255,255,255,.72), var(--orange));
  filter: drop-shadow(0 0 12px rgba(255, 46, 159, 0.60));
  -webkit-mask: radial-gradient(ellipse at center, transparent 57%, #000 59%, #000 70%, transparent 72%);
  mask: radial-gradient(ellipse at center, transparent 57%, #000 59%, #000 70%, transparent 72%);
}

.pop-mark::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 48% 52% 55% 45% / 51% 45% 55% 49%;
  background:
    linear-gradient(148deg, rgba(255,255,255,.46), rgba(57,217,255,.16) 25%, transparent 42%),
    radial-gradient(ellipse at 47% 48%, rgba(255,255,255,.16), transparent 34%),
    rgba(5, 6, 12, .56);
  box-shadow:
    18px -6px 0 -16px rgba(57,217,255,.80),
    25px 2px 0 -18px rgba(255,46,159,.76),
    31px 15px 0 -20px rgba(255,190,62,.72);
}

.pop-mark span {
  z-index: 1;
  position: relative;
  width: 30px;
  height: 18px;
  border-left: 7px solid #fff;
  border-bottom: 7px solid #fff;
  transform: rotate(-45deg) translate(2px, -2px);
  border-radius: 3px;
}

.pop-mark span::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  right: -28px;
  top: -24px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow:
    8px 6px 0 rgba(57,217,255,.45),
    14px 17px 0 rgba(255,46,159,.34),
    24px 12px 0 rgba(255,190,62,.38),
    28px 30px 0 rgba(255,255,255,.22);
  pointer-events: none;
}

.pop-mark.compact {
  width: 32px;
  border-radius: 44% 56% 51% 49% / 48% 43% 57% 52%;
  background: transparent;
  box-shadow: 0 0 20px rgba(255, 46, 159, 0.16), 0 0 14px rgba(57,217,255,.12);
}

.pop-mark.compact::before {
  inset: 2px;
}

.pop-mark.compact::after {
  inset: 7px;
  background: rgba(8, 9, 17, .62);
}

.pop-mark.compact span {
  width: 12px;
  height: 8px;
  border-left-width: 4px;
  border-bottom-width: 4px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.phone {
  width: 100%;
  min-height: 620px;
  border-radius: 34px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background: linear-gradient(160deg, rgba(18, 20, 31, .92), rgba(7, 8, 14, .9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.13), transparent 32%);
  pointer-events: none;
}

.phone-brand,
.phone-top,
.timer-line,
.actions,
.destination,
.phone-idle,
.phone-request {
  position: relative;
  z-index: 1;
}

.phone-brand {
  display: flex;
  align-items: center;
}

.phone-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.phone-wordmark-text {
  color: rgba(255, 247, 251, 0.92);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phone-idle {
  display: grid;
  align-content: space-between;
  min-height: 0;
  padding-bottom: 4px;
}

.idle-space {
  min-height: 320px;
}

.rhino-id-badge {
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  align-self: end;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  backdrop-filter: blur(18px);
}

.badge-ring {
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--badge-accent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08), 0 0 18px var(--badge-accent);
}

.badge-label {
  color: var(--badge-accent);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone-request {
  min-height: 0;
}

.phone-request .destination {
  align-self: center;
}

.phone-top,
.timer-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  font-weight: 800;
}

.destination p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.destination h2 {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: .95;
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.context-pill {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
}

#statusPill {
  color: rgba(255,255,255,.82);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

body[data-mode="idle"] .phone-idle {
  display: grid;
}

body[data-mode="idle"] .phone-request {
  display: none;
}

body:not([data-mode="idle"]) .phone-idle {
  display: none;
}

body:not([data-mode="idle"]) .phone-request {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
}

button, select {
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.05);
}

button {
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  cursor: default;
  opacity: .48;
}

.pop {
  border: 0;
  color: #fff;
  width: 148px;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 37% 63% 49% 51% / 55% 38% 62% 45%;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 32% 24%, rgba(255, 190, 62, .74), transparent 30%),
    radial-gradient(ellipse at 64% 68%, rgba(57, 217, 255, .28), transparent 46%),
    linear-gradient(138deg, rgba(255,255,255,.20), rgba(255,255,255,.035) 32%, rgba(255,46,159,.16) 63%, rgba(124,53,255,.12)),
    rgba(5, 6, 13, .58);
  box-shadow: 0 0 34px rgba(255, 46, 159, .32), 0 0 26px rgba(57, 217, 255, .16), inset 0 0 28px rgba(255,255,255,.055);
  text-shadow: 0 3px 10px rgba(0,0,0,.62);
}

.pop::before,
.deny-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: conic-gradient(from 214deg, rgba(255,255,255,.88), var(--orange), var(--hot), #39d9ff, var(--violet), rgba(255,255,255,.72), var(--orange));
  transform: rotate(-7deg) scaleX(.96) scaleY(1.05);
  -webkit-mask: radial-gradient(ellipse 49% 43% at 52% 51%, transparent 56%, #000 59%, #000 71%, transparent 74%);
  mask: radial-gradient(ellipse 49% 43% at 52% 51%, transparent 56%, #000 59%, #000 71%, transparent 74%);
  pointer-events: none;
}

.pop::after,
.deny-link::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 13%;
  top: 22%;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow:
    10px 5px 0 rgba(57,217,255,.46),
    24px 13px 0 rgba(255,46,159,.34),
    32px 27px 0 rgba(255,190,62,.32),
    17px 39px 0 rgba(255,255,255,.24);
  pointer-events: none;
}

.deny-link {
  width: 112px;
  min-height: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 55% 45% 42% 58% / 39% 58% 42% 61%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 35% 24%, rgba(255, 122, 26, .46), transparent 33%),
    radial-gradient(ellipse at 68% 62%, rgba(57, 217, 255, .18), transparent 44%),
    linear-gradient(148deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 38%, rgba(124, 53, 255, .11)),
    rgba(255, 255, 255, .025);
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0,0,0,.56);
}

.demo-tray {
  display: grid;
  gap: 12px;
}

.activity {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.demo-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

select {
  width: 100%;
  padding: 0 14px;
  color: #111;
  background: #fff;
}

.new-request {
  padding: 0 18px;
  background: #fff;
  color: #080911;
}

.console-state {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

li {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

li strong {
  color: var(--green);
}

li time,
li span {
  color: var(--muted);
}

body[data-status="approved"] #statusPill,
body[data-status="approved"] li:first-child strong {
  color: var(--green);
}

body[data-status="pending"] #statusPill {
  color: rgba(255,255,255,.88);
}

body[data-status="denied"] #statusPill,
body[data-status="denied"] li:first-child strong,
body[data-status="expired"] #statusPill {
  color: var(--red);
}

.support-shell {
  place-items: center;
}

.support-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 7vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 17, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.support-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 54px;
  font-size: 1.05rem;
  font-weight: 900;
}

.support-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0;
}

.support-copy,
.support-note p,
.support-warning p {
  color: var(--muted);
  line-height: 1.65;
}

.support-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 34px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #08100b;
  background: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.support-note,
.support-warning {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.support-note p,
.support-warning p {
  margin: 7px 0 0;
}

.support-warning strong {
  color: #ffb3af;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.support-links a {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .shell {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .pop-mark.compact {
    width: 28px;
  }

  .phone {
    border-radius: 28px;
    min-height: 560px;
  }

  li {
    grid-template-columns: 78px 1fr;
  }

  li time {
    grid-column: 2;
  }

  .idle-space {
    min-height: 250px;
  }
}