/* SlotBot billing website — Aurora design system. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0a14;
  --bg-raised: #12101f;
  --panel: rgba(25, 21, 43, .82);
  --panel-strong: rgba(30, 25, 50, .94);
  --border: #302b49;
  --border-soft: rgba(101, 91, 140, .28);
  --text: #f4f0fa;
  --muted: #a49cbf;
  --muted-bright: #c5bdd8;
  --pink: #ff9ecb;
  --blue: #9ad8ff;
  --purple: #b79cff;
  --positive: #8affd0;
  --danger: #ff8ea9;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow: 0 26px 80px rgba(5, 3, 14, .56), 0 0 50px rgba(183, 156, 255, .08);
  --font: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(800px 500px at 88% -8%, rgba(255, 158, 203, .1), transparent 64%),
    radial-gradient(760px 520px at -7% 108%, rgba(154, 216, 255, .08), transparent 64%),
    var(--bg);
  background-attachment: fixed;
}

button,
input { font: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }
p { margin: 0 0 1rem; }
h1,
h2 { color: var(--text); line-height: 1.15; }
h1 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.035em; }
h2 { margin: 30px 0 10px; font-size: 1.125rem; letter-spacing: -.01em; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #15101c;
  background: var(--blue);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Shared top bar */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  flex: none;
  border-bottom: 1px solid rgba(101, 91, 140, .24);
  background: rgba(11, 10, 20, .76);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.topbar {
  width: min(100% - 40px, var(--content));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand .logo {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 158, 203, .48));
}
.brand .word {
  color: transparent;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(96deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.top-cluster { display: flex; align-items: center; gap: 18px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Top-banner org selector (dashboard). appearance:none swaps the OS-native
   widget (and its fallback font) for the site's own look + chevron. */
.top-org { display: flex; }
.org-select {
  min-height: 36px;
  max-width: 210px;
  padding: 7px 32px 7px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: 600 13px/1.2 var(--font);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a49cbf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center / 10px 6px,
    rgba(9, 8, 18, .62);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.org-select:hover { border-color: rgba(255, 158, 203, .5); }
.org-select:focus {
  outline: 0;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 158, 203, .12);
}
.org-select option { color: var(--text); font-weight: 500; background: var(--bg-raised); }

/* Signed-in user menu (JS-free <details> dropdown) */
.user-menu { position: relative; }
.user-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(255, 255, 255, .05); }
.avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #15101c;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 0 14px rgba(255, 158, 203, .28);
}
.user-name {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted-bright);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.user-pop a {
  display: block;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted-bright);
  font-size: 13px;
  font-weight: 600;
}
.user-pop a:hover { color: var(--text); background: rgba(183, 156, 255, .1); }
.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-link.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(154, 216, 255, .1), rgba(255, 158, 203, .1));
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: 0 0 10px rgba(255, 158, 203, .52);
}

/* Shared footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid rgba(101, 91, 140, .22);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-inner {
  width: min(100% - 40px, var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* Shared page primitives */
.content-wrap,
.dashboard-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 68px 0 82px;
}
.content-wrap { max-width: 820px; }
.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(127, 113, 176, .34);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(30, 25, 50, .88), rgba(13, 12, 26, .9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.surface::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 158, 203, .75), rgba(154, 216, 255, .52), transparent);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.page-intro { max-width: 56ch; color: var(--muted-bright); font-size: 1.02rem; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .12s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.button-primary {
  color: #15101c;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 8px 24px rgba(255, 158, 203, .2);
}
.button-primary:hover {
  color: #15101c;
  box-shadow: 0 0 28px rgba(255, 158, 203, .38), 0 8px 26px rgba(0, 0, 0, .36);
}
.button-secondary {
  color: var(--text);
  border-color: rgba(183, 156, 255, .34);
  background: rgba(183, 156, 255, .08);
}
.button-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 158, 203, .65);
  background: rgba(255, 158, 203, .1);
}
.button-primary:hover,
.button-secondary:hover { transform: translateY(-1px); }
.button-primary:active,
.button-secondary:active { transform: translateY(0) scale(.985); }
.button-primary:focus-visible,
.button-secondary:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(154, 216, 255, .38);
  outline-offset: 2px;
}
.button-full { width: 100%; }

code {
  padding: 2px 6px;
  border: 1px solid rgba(101, 91, 140, .36);
  border-radius: 6px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .9em;
  background: rgba(9, 8, 18, .52);
}

/* Home */
.page-home {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}
.page-home .site-header { background: rgba(11, 10, 20, .62); }
.hero-bg {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: var(--bg);
}
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: fixed;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse 88% 72% at 50% 44%, rgba(11, 10, 20, .34), rgba(11, 10, 20, .86) 74%, rgba(11, 10, 20, .96)),
    linear-gradient(180deg, rgba(11, 10, 20, .64), rgba(11, 10, 20, .24) 42%, rgba(11, 10, 20, .9));
  backdrop-filter: blur(1.5px);
}
.hero-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 72px 24px 86px;
  text-align: center;
}
.hero-copy { max-width: 790px; }
.hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 5px 34px rgba(0, 0, 0, .78);
}
.hero-copy h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(96deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lede {
  max-width: 590px;
  margin: 0 auto 34px;
  color: var(--muted-bright);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .button-primary,
.hero-actions .button-secondary { min-width: 160px; border-radius: 999px; }
.hero-price {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-price span { position: relative; }
.hero-price span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--purple);
}
.hero-price strong { color: var(--text); }
.page-home .site-footer { background: rgba(11, 10, 20, .54); backdrop-filter: blur(14px); }

/* Public content pages */
.prose-page { padding: clamp(28px, 6vw, 58px); }
.prose-page h1 { max-width: 14ch; }
.prose-page h2 { margin-top: 34px; color: var(--muted-bright); }
.prose-page p { max-width: 68ch; color: var(--muted-bright); }
.prose-page strong { color: var(--text); }
.page-meta { margin-bottom: 38px !important; font-family: var(--mono); font-size: 12px; }
.contact-card {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(9, 8, 18, .4);
}
.contact-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.contact-card > a { display: inline-block; margin-bottom: 12px; font-size: clamp(1.2rem, 4vw, 1.65rem); font-weight: 700; }
.contact-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* Checkout and payment status */
.checkout-wrap { max-width: 650px; }
.checkout-card { padding: clamp(28px, 6vw, 48px); text-align: center; }
.checkout-card .page-intro { margin: 0 auto; }
.order-summary {
  margin: 34px 0 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(8, 7, 18, .38);
}
.order-summary div { padding: 22px; }
.order-summary div + div { border-left: 1px solid var(--border-soft); }
.order-summary dt { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.order-summary dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.order-summary dd small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.checkout-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  text-align: left;
  background: rgba(154, 216, 255, .06);
}
.checkout-note strong { font-size: 13px; }
.checkout-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.status-wrap { max-width: 650px; }
.status-card { padding: clamp(34px, 7vw, 60px); text-align: center; }
.status-card > p:not(.eyebrow) { max-width: 48ch; margin: 0 auto 28px; color: var(--muted-bright); }
.status-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 25px;
  border: 1px solid rgba(138, 255, 208, .4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 255, 208, .2), rgba(138, 255, 208, .04) 60%, transparent 62%);
  box-shadow: 0 0 34px rgba(138, 255, 208, .16);
}
.status-mark::after {
  content: "";
  display: block;
  width: 21px;
  height: 10px;
  margin: 24px auto;
  border-bottom: 3px solid var(--positive);
  border-left: 3px solid var(--positive);
  transform: rotate(-45deg);
}
.status-cancel .status-mark { border-color: rgba(255, 142, 169, .42); background: radial-gradient(circle, rgba(255, 142, 169, .18), transparent 64%); }
.status-cancel .status-mark::after {
  width: 21px;
  height: 21px;
  margin-top: 22px;
  border: 0;
  background: linear-gradient(45deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--danger) 45%, var(--danger) 55%, transparent 55%);
  transform: none;
}

/* Dashboard */
.dashboard-wrap { max-width: 1040px; }
.account-hero {
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.account-hero h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.account-hero p:last-child { margin-bottom: 0; }
.balance-block {
  min-width: 220px;
  padding-left: 36px;
  border-left: 1px solid var(--border-soft);
  text-align: right;
}
.balance-block span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.balance-block strong {
  display: inline-block;
  color: transparent;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(96deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.balance-block small { margin-left: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.dashboard-panel { padding: clamp(25px, 4vw, 34px); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; font-size: 1.35rem; }
.rate-pill {
  flex: none;
  padding: 6px 9px;
  border: 1px solid rgba(154, 216, 255, .2);
  border-radius: 999px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(154, 216, 255, .06);
}
.dashboard-panel > .muted { min-height: 51px; margin-top: 18px; font-size: 13px; }
.purchase-form { margin-top: 24px; }
.purchase-form > label { display: block; margin-bottom: 8px; color: var(--muted-bright); font-size: 12px; font-weight: 600; }
.purchase-controls { display: flex; gap: 10px; }
.amount-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(9, 8, 18, .52);
}
.amount-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 158, 203, .12); }
.amount-input > span { padding-left: 14px; color: var(--muted); }
.amount-input input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px 11px 5px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.token-reveal {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid rgba(138, 255, 208, .2);
  border-radius: 12px;
  background: rgba(138, 255, 208, .045);
}
.token-reveal p { color: var(--muted-bright); font-size: 12px; }
pre.token { margin: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.token code { padding: 0; border: 0; color: var(--positive); background: none; }
.dashboard-signout { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard-signout span { margin: 0 8px; }
.dashboard-signout strong { color: var(--muted-bright); }

@media (max-width: 760px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-hero { align-items: flex-start; flex-direction: column; }
  .balance-block { width: 100%; padding: 22px 0 0; border-top: 1px solid var(--border-soft); border-left: 0; text-align: left; }
  .dashboard-panel > .muted { min-height: 0; }
}

@media (max-width: 560px) {
  .topbar { width: min(100% - 28px, var(--content)); min-height: 64px; gap: 12px; }
  .brand { gap: 8px; }
  .brand .logo { width: 27px; height: 27px; }
  .brand .word { font-size: 13px; }
  .top-cluster { gap: 8px; }
  .top-actions { gap: 6px; }
  .user-name { display: none; }
  .org-select { max-width: 130px; }
  .primary-nav { gap: 0; }
  .nav-link { padding: 8px 8px; font-size: 11.5px; }
  .nav-link.is-active::after { right: 8px; left: 8px; }
  .content-wrap,
  .dashboard-wrap { width: min(100% - 28px, var(--content)); padding: 36px 0 52px; }
  .footer-inner { width: min(100% - 28px, var(--content)); min-height: 94px; flex-direction: column; justify-content: center; gap: 8px; }
  .footer-inner nav { gap: 16px; }
  .hero-main { padding: 60px 20px 70px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-price { flex-direction: column; gap: 7px; }
  .hero-price span::before { display: none; }
  .order-summary { grid-template-columns: 1fr; }
  .order-summary div + div { border-top: 1px solid var(--border-soft); border-left: 0; }
  .purchase-controls { flex-direction: column; }
  .purchase-controls .button-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-bg video { display: none; }
}

/* Organization dashboard shell */
.app-body { min-height: 100vh; }
.app { flex: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 16px;
  border-right: 1px solid var(--border-soft);
  background: rgba(18, 16, 31, .72);
}
.panel input[type="text"],
.panel input[type="number"],
.card input[type="text"] {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: rgba(9, 8, 18, .62);
}
.panel input[type="text"], .card input[type="text"] { width: min(100%, 300px); }
.panel input[type="number"] { width: 130px; }
.panel input:focus,
.card input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 158, 203, .12); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: block; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-item:hover { color: var(--text); background: rgba(183, 156, 255, .08); }
.nav-item.active { color: var(--text); background: linear-gradient(135deg, rgba(154, 216, 255, .11), rgba(255, 158, 203, .1)); box-shadow: inset 2px 0 0 var(--pink); }
.nav-item.quiet { padding: 7px 12px; font-size: 13px; font-weight: 500; }
.side-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.main { width: min(100%, 960px); padding: 38px 44px 58px; }
.main-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.main-head h1 { margin: 0; }
.role-tag { padding: 3px 11px; border-radius: 999px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(154, 216, 255, .09); }
.panel,
.card {
  margin-bottom: 18px;
  padding: 25px 27px;
  border: 1px solid rgba(127, 113, 176, .34);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(30, 25, 50, .88), rgba(13, 12, 26, .9));
  box-shadow: var(--shadow);
}
.panel h2, .card h2 { margin-top: 0; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.panel .amount { margin: 4px 0 18px; color: var(--pink); font-size: 30px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 10px 0; }
.stat { padding: 16px 18px; border: 1px solid var(--border-soft); border-radius: 13px; background: rgba(9, 8, 18, .44); }
.stat-k { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat-v { color: var(--text); font-size: 24px; font-weight: 800; }
.stat-v .u { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.btn,
button.pay {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(154, 216, 255, .25);
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(154, 216, 255, .13), rgba(183, 156, 255, .12));
  cursor: pointer;
}
.btn:hover, button.pay:hover { color: #15101c; background: linear-gradient(135deg, var(--blue), var(--pink)); }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { color: var(--danger); border-color: var(--danger); background: rgba(255, 142, 169, .07); }
.note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.wrap { width: min(100% - 40px, 820px); margin: 0 auto; padding: 58px 0 76px; }
ul.rows { margin: 12px 0; padding: 0; list-style: none; }
ul.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 12px 15px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(9, 8, 18, .38); }
ul.rows.plain li { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.row-actions { display: inline-flex; gap: 8px; }
.row-actions form { display: inline; }
.row-actions .btn { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.pill,
ul.rows .role { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pill-ok { color: var(--positive); background: rgba(138, 255, 208, .1); }
.pill-no { color: var(--danger); background: rgba(255, 142, 169, .1); }
.pill-wait { color: var(--blue); background: rgba(154, 216, 255, .09); }
ul.rows .role { margin-left: 5px; color: var(--pink); background: rgba(255, 158, 203, .09); }
.token-new { margin: 15px 0; }
.token-new pre.token { padding: 14px 16px; border: 1px solid rgba(138, 255, 208, .2); border-radius: 11px; background: rgba(138, 255, 208, .045); }
.tbl { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border-soft); }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-foot { margin-top: 0; }
  .main { padding: 28px 18px 48px; }
  .panel, .card { padding: 21px 19px; }
  .tbl { display: block; overflow-x: auto; }
}
