:root {
  color-scheme: dark;

  --bg: #06080c;
  --surface: rgba(12, 15, 22, 0.84);
  --surface-strong: rgba(14, 18, 27, 0.96);
  --card: rgba(255, 255, 255, 0.93);
  --text: #f8fafc;
  --ink: #111111;
  --muted: #8a9499;
  --line: rgba(255, 255, 255, 0.14);

  --red: #ff2638;
  --orange: #ff7a18;
  --blue: #8a9499;
  --yellow: #ffe26a;
  --green: #ffe26a;

  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --max: 1600px;
  --page-gutter: clamp(16px, 3vw, 48px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  isolation: isolate;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* Allow grid/flex children and native form controls to fit their containers. */
main :where(*) {
  min-width: 0;
}

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
}

video,
iframe {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 99;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("../images/Wallpaper23.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6, 8, 12, 0.18), transparent 70%),
    linear-gradient(to bottom, rgba(6, 8, 12, 0.62), rgba(6, 8, 12, 0.76));
}

/* Keep the model in view when a portrait screen crops the landscape wallpaper. */
@media (orientation: portrait) {
  .ambient-bg {
    background-position: 68% center;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(var(--max), 100%);
  min-height: 78px;
  margin: auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 10px 6px 12px;
  font-family: "Orbitron", "Michroma", "Syncopate", "Chakra Petch", "Rajdhani", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand b {
  display: inline-block;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 0.95;
  letter-spacing: 0.11em;
}

.brand span {
  color: var(--red);
}

.brand small {
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.nav-menu-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: 0.22s;
}

.nav-links a::before,
.nav-links a::after,
.nav-menu-trigger::before,
.nav-menu-trigger::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nav-links a:not(.active)::before,
.nav-menu-trigger:not(.active)::before {
  top: 17%;
  bottom: 17%;
  left: -8px;
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.92);
  opacity: 0;
}

.nav-links a:hover,
.nav-menu-trigger:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 122, 24, 0.5);
}

.nav-links a:not(.active):hover::before,
.nav-menu-trigger:not(.active):hover::before {
  animation: navScanline 0.48s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a.active,
.nav-menu-trigger.active {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 8px 16px rgba(255, 38, 56, 0.22);
}

.nav-links a.active::before,
.nav-links a.active::after,
.nav-menu-trigger.active::before,
.nav-menu-trigger.active::after {
  top: 7px;
  width: 10px;
  height: 10px;
  opacity: 0.46;
  animation: targetLock 0.68s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a.active::before,
.nav-menu-trigger.active::before {
  left: 7px;
  --lock-start: -16px;
  border-top: 1px solid rgba(255, 231, 154, 0.92);
  border-left: 1px solid rgba(255, 231, 154, 0.92);
}

.nav-links a.active::after,
.nav-menu-trigger.active::after {
  right: 7px;
  --lock-start: 16px;
  border-top: 1px solid rgba(255, 231, 154, 0.92);
  border-right: 1px solid rgba(255, 231, 154, 0.92);
}

.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  gap: 8px;
  cursor: pointer;
}

.nav-menu-trigger::after {
  position: static;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.75;
  transform: translateY(-2px) rotate(45deg);
  transition: 0.22s;
}

.nav-menu-trigger.active::after {
  position: static;
  width: 7px;
  height: 7px;
  border-top: 0;
  border-left: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  animation: none;
}

.nav-menu.open .nav-menu-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38), 0 0 24px rgba(255, 38, 56, 0.12);
}

.nav-menu.open .nav-dropdown {
  display: grid;
  gap: 4px;
}

.nav-dropdown a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 6px;
  clip-path: none;
}

.nav-dropdown a.active {
  clip-path: none;
}

@keyframes navScanline {
  0% {
    left: -8px;
    opacity: 0;
  }

  15%,
  68% {
    opacity: 1;
  }

  100% {
    left: calc(100% + 8px);
    opacity: 0;
  }
}

@keyframes targetLock {
  0% {
    opacity: 0;
    transform: translateX(var(--lock-start)) scale(0.7);
  }

  58% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  100% {
    opacity: 0.46;
    transform: translateX(0) scale(1);
  }
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}

.login-chip {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.container {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 42px var(--page-gutter) 82px;
}

.stock-monitor-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.stock-monitor-bar p { flex: 1 1 220px; color: #cbd5e1; font-size: .82rem; line-height: 1.6; }
.stock-monitor-bar[data-state="error"] p, .stock-monitor-bar[data-state="offline"] p, .stock-monitor-bar[data-state="auth"] p { color: #ffb6bd; }
.stock-monitor-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stock-monitor-counts > div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); }
.stock-monitor-counts strong { display: block; color: var(--yellow); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.stock-monitor-counts span { color: #cbd5e1; font-size: .8rem; }
.stock-monitor-alerts { display: grid; gap: 8px; margin-bottom: 18px; }
.stock-monitor-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.stock-monitor-alert > strong { flex: 1 1 180px; font-size: .85rem; }
.stock-monitor-alert > span:last-child { color: #cbd5e1; font-size: .8rem; }
@media (max-width: 640px) { .stock-monitor-counts { grid-template-columns: minmax(0, 1fr); } }

.kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce4ee;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero {
  padding: 48px 0 34px;
  text-align: center;
}

.hero h1,
.hero-text,
.page-head h1,
.page-head p {
  margin-inline: auto;
}

.hero .hero-actions {
  justify-content: center;
}

.hero h1,
.page-head h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -4px;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    #ffffff 12%,
    var(--yellow) 34%,
    var(--orange) 58%,
    var(--red) 82%,
    #ff6a2a
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.page-head p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  min-height: 560px;
  overflow: visible;
}

.hero-visual-clean {
  padding: 0;
}

.hero-visual .hero-mecha-img {
  width: min(100%, 820px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.56));
}

.primary-btn,
.ghost-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
  transition: 0.22s;
}

.primary-btn {
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 14px 32px rgba(255, 38, 56, 0.28);
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.feature-grid,
.product-grid,
.store-grid,
.reward-grid,
.metric-grid,
.analytics-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0;
}

.feature-grid article,
.info-card,
.metric-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-grid span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 1000;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

h3 {
  margin: 10px 0;
  font-size: 1.14rem;
}

p {
  line-height: 1.62;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 42px 0 22px;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-art {
  height: 230px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #151922, var(--bg));
}

.product-art img {
  height: 200px;
  object-fit: contain;
}

.product-body {
  padding: 18px;
}

.product-body p,
.info-card p {
  color: #cbd5e1;
}

.view-receipt {
  background: var(--yellow);
  color: var(--ink);
  border: none;
}

.product-body strong {
  color: white;
  font-size: 1.25rem;
}

.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 46px 0 18px;
  text-align: left;
}

.guide-hero > div {
  position: relative;
  z-index: 1;
}

.guide-hero > div::before {
  content: "";
  position: absolute;
  inset: -30px 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 48%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 58%),
    linear-gradient(90deg, rgba(3, 5, 9, 0.95), rgba(3, 5, 9, 0.78) 48%, rgba(3, 5, 9, 0.26) 72%, rgba(3, 5, 9, 0));
  pointer-events: none;
}

.guide-hero h1 {
  max-width: 860px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -4px;
  text-transform: uppercase;
  color: white;
}

.guide-hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--yellow) 8%, #ff9b1a 42%, #ff4b1f 76%, #ff6a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 218, 128, 0.16);
  filter: drop-shadow(0 0 12px rgba(255, 88, 31, 0.32));
}

.guide-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.guide-hero .primary-btn {
  color: #111111;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.guide-hero .ghost-btn {
  color: white;
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.guide-hero img {
  width: min(100%, 430px);
  justify-self: center;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.guide-grade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.guide-grade-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-grade-code {
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 226, 106, 0.18), rgba(255, 122, 24, 0.14));
  color: white;
  font-size: 2.1rem;
  font-weight: 1000;
}

.guide-grade-card p {
  color: #cbd5e1;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.guide-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-pick {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 40px 0 6px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-pick p {
  max-width: 760px;
  color: #cbd5e1;
}

.guide-path {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-path span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.guide-path i {
  width: 34px;
  height: 2px;
  background: var(--line);
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-step-list article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-step-list span {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 1000;
}

.guide-step-list p {
  color: #cbd5e1;
}

.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.guide-tool-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guide-tool-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.guide-tool-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-tool-list b {
  color: white;
}

.guide-checklist {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.6;
}

.guide-video-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.guide-video-uploader {
  display: grid;
  gap: 18px;
}

.guide-video-form {
  grid-template-columns: 1fr 1fr;
}

.guide-video-form .wide {
  grid-column: 1 / -1;
}

.guide-video-lock {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.guide-video-gallery {
  display: grid;
  gap: 16px;
}

.guide-video-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #05070b;
  object-fit: cover;
}

.guide-video-card h3 {
  margin-top: 8px;
}

.guide-video-card p {
  color: #cbd5e1;
}

.guide-video-card small {
  color: var(--muted);
}

.guide-video-delete {
  margin-top: 14px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.wrap {
  flex-wrap: wrap;
  justify-content: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.red {
  background: rgba(0, 0, 0, 0.16);
  color: var(--red);
}

.pill.green {
  background: rgba(255, 226, 106, 0.14);
  color: var(--yellow);
}

.pill.yellow {
  background: rgba(255, 122, 24, 0.14);
  color: var(--orange);
}

.page-head {
  padding: 30px 0 16px;
  text-align: center;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 22px 0;
}

.toolbar.single {
  grid-template-columns: 1fr;
}

input,
select,
textarea {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

textarea {
  min-height: 112px;
  height: auto;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

option {
  color: var(--ink);
}

.store-grid,
.reward-grid,
.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  color: white;
}

.info-card small {
  color: var(--muted);
}

.info-card.dark {
  background: var(--surface-strong);
}

.event-list,
.receipt-list,
.history-list {
  display: grid;
  gap: 16px;
}

.event-card,
.receipt-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.event-card p,
.receipt-card p {
  color: var(--muted);
}

.date-chip,
.receipt-icon {
  width: 68px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--ink);
  font-weight: 1000;
}

.date-chip {
  align-content: center;
}

.date-chip b {
  font-size: 1.6rem;
  line-height: 1;
}

.date-chip span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.button-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
}

.scan-panel,
.wallet,
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.scanner {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.scan-line {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: scan 2.4s infinite;
}

@keyframes scan {
  0%,
  100% {
    top: 18%;
  }

  50% {
    top: 80%;
  }
}

.fake-qr {
  width: 190px;
  height: 190px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  padding: 16px;
  border-radius: 20px;
  background: white;
}

.fake-qr.large {
  width: 240px;
  height: 240px;
}

.fake-qr i {
  border-radius: 4px;
  background: #edf0f4;
}

.fake-qr i.on {
  background: #090b11;
}

.qr-modal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.wallet {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wallet h2 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.wallet img {
  max-height: 340px;
  justify-self: center;
}

.track {
  height: 16px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
}

.history-list article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
}

.history-list b {
  color: var(--orange);
}

.metric-grid article b {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.metric-grid article span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 900;
}

.analytics-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}

.auth-card {
  max-width: 950px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -3px;
}

.auth-rbac {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.auth-copy > p {
  color: #cbd5e1;
  line-height: 1.65;
}

.role-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.role-summary small {
  color: var(--muted);
}

.auth-actions,
.access-actions,
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-forms {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.auth-tab {
  min-height: 40px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.auth-tab.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 12px 28px rgba(255, 38, 56, 0.22);
}

.auth-form.hidden {
  display: none;
}

.seller-register-fields {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.seller-register-fields.hidden {
  display: none;
}

.access-card {
  align-items: center;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #dce4ee;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal.show {
  display: grid;
}

.modal-card {
  width: min(680px, 100%);
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.3rem;
}

.modal-card h2 {
  color: white;
  margin-bottom: 12px;
}

.modal-card p {
  color: #ced7e3;
  margin-bottom: 18px;
}

.rsvp-btn.primary-btn {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--ink);
}

.rsvp-btn.ghost-btn {
  background: transparent;
  color: var(--yellow);
  border: 1px solid rgba(255, 226, 106, 0.72);
}

.reward-grid .info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  gap: 10px;
}

.reward-grid .info-card small {
  display: block;
  margin-top: auto;
  color: var(--muted);
  line-height: 1.4;
}

.reward-grid .redeem-btn {
  margin-top: 12px;
  padding-left: 22px;
  padding-right: 22px;
  min-width: 104px;
  white-space: nowrap;
  align-self: flex-end;
}

/* Seller analytics page */
.seller-command {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin: 18px 0 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 38, 56, 0.14), rgba(255, 122, 24, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.seller-command p {
  max-width: 760px;
  color: #cbd5e1;
}

.seller-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-metric-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.metric-grid article small {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.35;
}

.seller-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: start;
}

.seller-grid.lower {
  margin-top: 18px;
}

.seller-panel.wide {
  min-width: 0;
}

.seller-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.seller-panel-head .kicker {
  margin-bottom: 6px;
}

.seller-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
}

.seller-bar-row.compact {
  grid-template-columns: 44px 1fr 40px;
}

.seller-bar-row > div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.seller-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}

.seller-note {
  margin-top: 14px;
  color: #cbd5e1;
}

.seller-offer-panel {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seller-offer-panel .seller-panel-head p {
  max-width: 780px;
  color: #cbd5e1;
}

.seller-offer-form {
  display: grid;
  grid-template-columns: 1.1fr 150px 120px 130px 1.3fr auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}

.seller-offer-form label {
  min-width: 0;
}

.seller-offer-form .wide {
  min-width: 220px;
}

.seller-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.seller-offer-card {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.seller-offer-top,
.seller-offer-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.seller-offer-card p {
  color: #cbd5e1;
}

.seller-offer-card small {
  color: var(--muted);
}

.seller-offer-card strong {
  color: white;
}

.seller-offer-actions {
  align-self: end;
}

.seller-table {
  overflow: auto;
}

.seller-table-head,
.seller-table-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) 130px 92px 90px 190px;
  gap: 12px;
  align-items: center;
  min-width: 820px;
}

.seller-table-head {
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.seller-table-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.seller-table-row small,
.seller-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.seller-table-row input {
  width: 80px;
  height: 40px;
  border-radius: 13px;
}

.seller-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.seller-insights {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  color: #dce6f3;
  line-height: 1.55;
}

.seller-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.seller-feature-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seller-feature-grid span {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 1000;
}

.seller-feature-grid p {
  color: #cbd5e1;
}

.seller-feature-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--yellow);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.seller-list {
  display: grid;
  gap: 12px;
}

.seller-list > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.seller-list b {
  display: block;
  margin-top: 8px;
}
