:root {
  --bg: #181920;
  --bg-elevated: #1e2028;
  --card: #22252f;
  --card-hover: #282c38;
  --input-bg: #1a1c24;
  --border: #2e3240;
  --border-light: #3b4052;
  --text: #e6e8f0;
  --muted: #989cb0;

  /* Soft Pastel Palette (Catppuccin / Dusk Inspired) */
  --accent: #b4befe;          /* Pastel Lavender-Periwinkle */
  --accent-hover: #c8d0ff;
  --accent-ink: #161821;
  --accent-glow: rgba(180, 190, 254, 0.14);

  --pastel-mint: #a6d8b4;     /* Soft Sage Mint */
  --pastel-mint-bg: rgba(166, 216, 180, 0.12);

  --pastel-mauve: #cbb2f8;    /* Soft Lilac Mauve */
  --pastel-mauve-bg: rgba(203, 178, 248, 0.13);

  --pastel-peach: #f2c6a0;    /* Soft Warm Peach / Sand */
  --pastel-peach-bg: rgba(242, 198, 160, 0.13);

  --pastel-sky: #9ec5f8;      /* Soft Pastel Sky */
  --pastel-sky-bg: rgba(158, 197, 248, 0.12);

  --danger: #eb98a4;          /* Soft Pastel Rose */
  --danger-bg: rgba(235, 152, 164, 0.13);

  --success: #a6d8b4;
  --success-bg: rgba(166, 216, 180, 0.12);

  --warning: #f2c6a0;
  --warning-bg: rgba(242, 198, 160, 0.12);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 32px rgba(10, 11, 16, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(180, 190, 254, 0.06) 0%, transparent 48%),
    radial-gradient(circle at 82% 10%, rgba(203, 178, 248, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Live Crypto Ticker Bar */
.ticker-bar {
  background: #14161c;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 7px 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-rates {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pastel-mint);
  box-shadow: 0 0 6px rgba(166, 216, 180, 0.5);
}

.ticker-sym {
  font-weight: 600;
  color: var(--text);
}

.ticker-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--muted);
}

.currency-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-switcher label {
  font-size: 0.75rem;
  color: var(--muted);
}

.currency-select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

/* Header / Topbar */
.topbar {
  background: rgba(24, 25, 32, 0.86);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--pastel-mauve) 100%);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.02rem;
}

/* Header Quick Search */
.nav-search-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.nav-search-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--card-hover);
  color: var(--accent);
}

.search-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.search-item-meta {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-price {
  font-size: 0.76rem;
  color: var(--pastel-mint);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--card);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card) !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.cart-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

main {
  padding: 34px 0 64px;
  min-height: 72vh;
}

/* Admin Subnav */
.admin-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.admin-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-subnav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-subnav-links a:hover,
.admin-subnav-links a.active {
  background: var(--accent-glow);
  color: var(--accent);
}

/* Soft Pastel Hero Section */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 35%, rgba(180, 190, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(203, 178, 248, 0.07) 0%, transparent 45%),
    linear-gradient(165deg, #232632 0%, #1c1e27 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 40px;
  margin-bottom: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pastel-mauve-bg);
  border: 1px solid rgba(203, 178, 248, 0.25);
  color: var(--pastel-mauve);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-feat-icon {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
  background: var(--accent-glow);
  border: 1px solid rgba(180, 190, 254, 0.2);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feat strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
}

.hero-feat span {
  font-size: 0.77rem;
  color: var(--muted);
}

/* Category Pills */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}

.cat-pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cat-pill:hover,
.cat-pill.active {
  border-color: rgba(180, 190, 254, 0.45);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Product Grid & Cards */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.card-img {
  position: relative;
  height: 195px;
  background: #1b1d26;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.03);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(24, 25, 32, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.stock-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.stock-ok {
  background: rgba(24, 25, 32, 0.82);
  color: var(--pastel-mint);
  border: 1px solid rgba(166, 216, 180, 0.3);
}

.stock-low {
  background: rgba(24, 25, 32, 0.85);
  color: var(--pastel-peach);
  border: 1px solid rgba(242, 198, 160, 0.35);
}

.stock-out {
  background: rgba(24, 25, 32, 0.85);
  color: var(--danger);
  border: 1px solid rgba(235, 152, 164, 0.35);
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
  line-height: 1.35;
}

.card-body h3 a {
  color: var(--text);
}

.card-body h3 a:hover {
  color: var(--accent);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--pastel-peach);
  margin-bottom: 8px;
}

.rating-row span {
  color: var(--muted);
}

.desc {
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
}

.price-crypto {
  font-size: 0.74rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.price.big {
  font-size: 1.85rem;
}

/* Soft Pastel Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(180, 190, 254, 0.2);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--card-hover);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(235, 152, 164, 0.35);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--accent-ink);
}

.link {
  color: var(--accent);
  font-size: 0.88rem;
}

/* Forms & Panels */
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  gap: 6px;
}

.form input,
.form textarea,
.form select,
.input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form textarea {
  min-height: 90px;
  resize: vertical;
}

.radio,
.checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500 !important;
  cursor: pointer;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: rgba(180, 190, 254, 0.03);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  letter-spacing: -0.025em;
}

.search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.search input,
.search select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.search input {
  min-width: 220px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Soft Pastel Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-pending {
  background: var(--pastel-peach-bg);
  color: var(--pastel-peach);
  border-color: rgba(242, 198, 160, 0.3);
}

.badge-paid,
.badge-completed,
.badge-verified {
  background: var(--pastel-mint-bg);
  color: var(--pastel-mint);
  border-color: rgba(166, 216, 180, 0.3);
}

.badge-shipped {
  background: var(--pastel-sky-bg);
  color: var(--pastel-sky);
  border-color: rgba(158, 197, 248, 0.3);
}

.badge-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(235, 152, 164, 0.3);
}

/* Dashboard Stats & Charts */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding-top: 16px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(180, 190, 254, 0.25) 100%);
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  transition: opacity 0.15s;
}

.chart-col:hover .chart-bar {
  opacity: 0.85;
}

.chart-lbl {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  margin-top: 12px;
}

.product-img {
  background: #1b1d26;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
}

.add-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}

.add-form input[type="number"] {
  width: 84px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Checkout & Crypto Selection Cards */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.coin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 16px;
}

.coin-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coin-option:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}

.coin-option input[type="radio"] {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--accent);
}

.coin-option-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem;
}

.coin-net {
  font-size: 0.74rem;
  color: var(--muted);
}

.coin-est {
  font-size: 0.82rem;
  color: var(--pastel-mint);
  font-family: ui-monospace, monospace;
  margin-top: 2px;
}

/* Order Payment Terminal */
.terminal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.pay-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.pay-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pay-step {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-step.done {
  color: var(--pastel-mint);
  font-weight: 600;
}

.pay-step.current {
  color: var(--accent);
  font-weight: 700;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  background: var(--input-bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  margin: 10px 0;
  border: 1px solid var(--border);
}

.qr-frame {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Flash & Alerts */
.flash-wrap {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash,
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flash-success,
.success {
  background: var(--pastel-mint-bg);
  color: var(--pastel-mint);
  border: 1px solid rgba(166, 216, 180, 0.3);
}

.flash-error,
.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(235, 152, 164, 0.3);
}

.alert-warning {
  background: var(--pastel-peach-bg);
  color: var(--pastel-peach);
  border: 1px solid rgba(242, 198, 160, 0.3);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.page-btn {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
}

.page-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-color: var(--accent);
}

/* Footer */
.footer {
  background: #14161c;
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Soft Pastel Badges for Flash Sale, Mystery Box & Rarity Tiers */
.flash-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(24, 25, 32, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 198, 160, 0.4);
  color: var(--pastel-peach);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.mystery-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(24, 25, 32, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 178, 248, 0.4);
  color: var(--pastel-mauve);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 6px;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--pastel-peach);
  background: var(--pastel-peach-bg);
  border: 1px solid rgba(242, 198, 160, 0.25);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Pastel Rarity Tier Badges */
.rarity-Common {
  color: var(--muted);
  border-color: var(--border-light) !important;
  background: var(--bg-elevated);
}
.rarity-Rare {
  color: var(--pastel-sky);
  border-color: rgba(158, 197, 248, 0.4) !important;
  background: var(--pastel-sky-bg);
}
.rarity-Epic {
  color: var(--pastel-mauve);
  border-color: rgba(203, 178, 248, 0.45) !important;
  background: var(--pastel-mauve-bg);
}
.rarity-Legendary {
  color: var(--pastel-peach);
  border-color: rgba(242, 198, 160, 0.55) !important;
  background: var(--pastel-peach-bg);
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.odds-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Case Opening Roulette Viewport */
.roulette-stage {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  height: 132px;
  margin: 16px 0;
  box-shadow: inset 0 0 28px rgba(14, 15, 20, 0.65);
}

.roulette-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 10;
}

.roulette-pointer::before,
.roulette-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.roulette-pointer::before {
  top: 0;
  border-top: 8px solid var(--accent);
}

.roulette-pointer::after {
  bottom: 0;
  border-bottom: 8px solid var(--accent);
}

.roulette-track {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 16px;
  will-change: transform;
}

.roulette-tile {
  flex: 0 0 150px;
  height: 98px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  user-select: none;
}

.roulette-tile-rarity {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roulette-tile-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.roulette-tile-val {
  font-size: 0.7rem;
  color: var(--muted);
}

/* VIP Progress Bar & Balance Pill */
.vip-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.vip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--pastel-mauve) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pastel-mint-bg);
  border: 1px solid rgba(166, 216, 180, 0.3);
  color: var(--pastel-mint);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero-top,
  .product-detail,
  .checkout-grid,
  .terminal-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .topbar-inner {
    flex-wrap: wrap;
  }
  .nav-search-wrap {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .coin-grid {
    grid-template-columns: 1fr;
  }
}
