/* ============================================================
   RBXKEY — PREMIUM DARK THEME  
   Aesthetic: Obsidian + Emerald / High-end digital marketplace
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --em: #00e5a0;
  --em-dim: #00b87d;
  --em-glow: rgba(0, 229, 160, 0.18);
  --em-glow-sm: rgba(0, 229, 160, 0.08);
  --surface-0: #080c10;
  --surface-1: #0d1117;
  --surface-2: #141a22;
  --surface-3: #1c2531;
  --border: rgba(255,255,255,0.07);
  --border-em: rgba(0,229,160,0.25);
  --text-hi: #f0f4f8;
  --text-mid: #8b9ab0;
  --text-lo: #4a5568;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FONT IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================================
   GLOBAL BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  background-color: var(--surface-0) !important;
  color: var(--text-hi) !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: none !important;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--surface-0);
  background-image:
    linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,229,160,0.07) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.bg-image { display: none !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6, .navbar-brand, .group-modal-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

p, span, a, li, td, th, label, input, select, textarea, button {
  font-family: var(--font-body) !important;
}

.section-title { margin-bottom: 0.5rem; text-align: center; }

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-hi);
  font-family: var(--font-display) !important;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--em);
  border-radius: 2px;
  margin: 0.5rem auto 0;
  box-shadow: 0 0 12px var(--em);
}

.section-subtitle { text-align: center; color: var(--text-mid); margin-bottom: 2.5rem; font-size: 0.95rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1400px !important; padding-left: 1.5rem; padding-right: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-5-nav { padding-top: calc(70px + 1.5rem); padding-bottom: 1.5rem; }
.px-32 { padding-left: 4rem; padding-right: 4rem; }
.bg-gray { background: var(--surface-1); }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
[x-cloak] { display: none !important; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--em-dim); }

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
:root {
  --bs-primary: var(--em);
  --bs-primary-rgb: 0, 229, 160;
  --bs-link-color: var(--em);
  --bs-body-bg: var(--surface-0);
  --bs-body-bg-rgb: 8, 12, 16;
  --bs-gray-bg: var(--surface-1);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius-sm);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar.component {
  background: rgba(8, 12, 16, 0.88) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-brand {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--text-hi) !important;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img { max-height: 30px; border-radius: 6px; }

.nav-link {
  color: var(--text-mid) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: color var(--transition) !important;
  padding: 1.4rem 0.75rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--em);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}

.nav-link:hover { color: var(--text-hi) !important; }
.nav-link:hover::after { transform: scaleX(1); }

.navbar .btn-outline-primary {
  border-color: var(--border-em) !important;
  color: var(--em) !important;
  background: var(--em-glow-sm) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.9rem !important;
  transition: all var(--transition) !important;
}

.navbar .btn-outline-primary:hover {
  background: var(--em-glow) !important;
  border-color: var(--em) !important;
  color: #fff !important;
  box-shadow: 0 0 16px var(--em-glow) !important;
  transform: translateY(-1px);
}

.navbar .discord .btn-outline-primary {
  background: linear-gradient(135deg, #5865F2, #7289da) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.navbar .discord .btn-outline-primary:hover {
  background: linear-gradient(135deg, #4752c4, #5865F2) !important;
  box-shadow: 0 0 20px rgba(88,101,242,0.4) !important;
}

.navbar .cart .btn { position: relative; }
.navbar .cart .count {
  position: absolute; top: -4px; right: -4px;
  background: var(--em); color: #000; font-size: 0.6rem; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

.navbar-toggler { border-color: var(--border) !important; color: var(--text-mid) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(139,154,176,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.me-auto { margin-right: auto !important; }

.currency-selector select {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-mid); border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem; font-size: 0.8rem; cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.currency-selector select:hover { border-color: var(--border-em); }

/* ============================================================
   HERO
   ============================================================ */
.hero.component {
  background-image: none !important;
  background: transparent !important;
  position: relative;
  padding: 6rem 0 7rem;   /* extra bottom room for the trust strip */
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero.component::before {
  content: '';
  position: absolute;
  left: -10%;
  top: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,160,0.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero.component::after {
  content: '';
  position: absolute;
  right: 5%;
  bottom: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,229,160,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero .container { position: relative; z-index: 1; }
.hero .content { max-width: 720px; }
.hero.alignment-center .content { text-align: center; margin: 0 auto; }
.hero.alignment-left .content { text-align: left; }

.hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(2.2rem, 5.5vw, 4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: var(--text-hi) !important;
  margin-bottom: 1.25rem !important;
  animation: heroFadeUp 0.7s ease both;
}

.hero p {
  font-size: 1.05rem !important;
  color: var(--text-mid) !important;
  line-height: 1.65 !important;
  margin-bottom: 2rem !important;
  font-weight: 300 !important;
  animation: heroFadeUp 0.7s 0.1s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--em), #00c8d4) !important;
  border: none !important;
  color: #080c10 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 32px var(--em-glow), 0 4px 16px rgba(0,0,0,0.3) !important;
  transition: all var(--transition) !important;
  animation: heroFadeUp 0.7s 0.2s ease both;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero .btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 0 48px rgba(0,229,160,0.35), 0 8px 24px rgba(0,0,0,0.4) !important;
}

.fake-searchbar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.75rem 1.25rem;
  max-width: 480px; margin: 0 auto 2rem; cursor: pointer;
  transition: all var(--transition);
}

.hero.alignment-left .fake-searchbar { margin-left: 0; }

.fake-searchbar:hover { border-color: var(--border-em); box-shadow: 0 0 24px var(--em-glow-sm); }

.fake-searchbar svg { color: var(--text-lo); flex-shrink: 0; }

.fake-searchbar .form-control {
  background: transparent !important; border: none !important;
  color: var(--text-mid) !important; font-size: 0.875rem !important;
  padding: 0 !important; box-shadow: none !important; pointer-events: none;
}

.search-modal .modal-content {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.search-modal .modal-header { border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; }
.searchbar { display: flex; align-items: center; gap: 0.75rem; width: 100%; }
.searchbar .form-control {
  background: transparent !important; border: none !important;
  color: var(--text-hi) !important; font-size: 1rem !important;
  box-shadow: none !important; padding: 0 !important;
}
.search-modal .modal-body { padding: 0.5rem 0; }
.search-modal .product {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem;
  text-decoration: none; color: var(--text-hi); transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-modal .product:hover { background: var(--surface-2); }
.search-modal .product .image {
  width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden;
  flex-shrink: 0; background: var(--surface-3);
}
.search-modal .product .image img { width: 100%; height: 100%; object-fit: cover; }
.search-modal .product h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.2rem; }
.search-modal .product p { font-size: 0.8rem; color: var(--text-mid); margin: 0; }
.search-modal .product .text-primary { color: var(--em) !important; }

.stats-wrapper { margin-top: 2.5rem; animation: heroFadeUp 0.7s 0.3s ease both; }

.stats {
  display: inline-flex; gap: 2.5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 2rem;
}
.stats div { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.stats .value {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--em); display: flex; align-items: center; gap: 0.3rem;
}
.stats .value svg { width: 18px; height: 18px; }
.stats .label { font-size: 0.72rem; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ============================================================
   ANNOUNCEMENT
   ============================================================ */
.announcement.component {
  background: linear-gradient(90deg, var(--surface-0), var(--surface-1), var(--surface-0));
  border-bottom: 1px solid var(--border);
  color: var(--text-mid); font-size: 0.8rem; text-align: center;
  padding: 0.45rem 1rem; letter-spacing: 0.03em;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products { justify-content: center; flex-wrap: wrap; gap: 0; }

/* ============================================================
   PRODUCT CARD — GRID
   ============================================================ */
.product-card-wrapper {
  width: 320px; min-width: 280px; max-width: 340px;
  transition: transform var(--transition); margin: 10px; flex: 0 0 auto;
}

.product-card-link { text-decoration: none; display: block; }

.product-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  height: 360px; display: flex; flex-direction: column; transition: all var(--transition);
}

.product-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--em-glow-sm), transparent 60%);
  opacity: 0; transition: opacity var(--transition); pointer-events: none; z-index: 0;
}

.product-card:hover {
  border-color: var(--border-em);
  box-shadow: 0 0 0 1px var(--border-em), 0 20px 48px rgba(0,0,0,0.4), 0 0 32px var(--em-glow-sm);
  transform: translateY(-4px);
}

.product-card:hover::before { opacity: 1; }

.product-card-image {
  width: 100%; height: 185px; overflow: hidden; padding: 6px;
  position: relative; z-index: 1; flex-shrink: 0;
}

.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px); transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border-radius: calc(var(--radius-lg) - 4px); color: var(--em); opacity: 0.5;
}

.product-card-content {
  display: flex; padding: 14px 18px 18px; gap: 10px;
  flex: 1; position: relative; z-index: 1; min-height: 0;
}

.product-card-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.product-name {
  font-family: var(--font-display) !important;
  font-weight: 700 !important; font-size: 0.975rem !important;
  line-height: 1.3 !important; color: var(--text-hi) !important;
  margin: 0 !important; letter-spacing: -0.02em !important;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.product-badges { display: flex; flex-wrap: wrap; gap: 4px; }

.product-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--em-glow); border: 1px solid var(--border-em);
  color: var(--em) !important; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

.product-stock { font-size: 0.78rem !important; color: var(--text-lo) !important; margin: 0 !important; font-weight: 400 !important; }

.product-price-section { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

.price-label { font-size: 0.75rem; color: var(--text-lo); font-weight: 400; }

.price-value { font-family: var(--font-display) !important; font-size: 0.95rem; font-weight: 700; color: var(--em) !important; }

.price-slashed { font-size: 0.78rem; color: var(--text-lo); text-decoration: line-through; }

.product-card-action { display: flex; align-items: flex-end; padding-bottom: 2px; }

.product-card-button {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: var(--em-glow);
  border: 1px solid var(--border-em); border-radius: 50%;
  cursor: pointer; transition: all var(--transition); color: var(--em); padding: 0;
}

.product-card-button:hover {
  background: var(--em); color: #080c10;
  box-shadow: 0 0 16px var(--em-glow); transform: scale(1.08);
}

/* ============================================================
   PRODUCT CARD — HORIZONTAL
   ============================================================ */
.product-card-horizontal {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: all var(--transition);
}

.product-card-horizontal:hover {
  border-color: var(--border-em); transform: translateX(4px);
  box-shadow: 0 0 20px var(--em-glow-sm);
}

.product-card-horizontal-link {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem;
  text-decoration: none; color: inherit;
}

.product-card-horizontal-image {
  flex-shrink: 0; width: 180px; height: 100px;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3);
}

.product-card-horizontal-image img { width: 100%; height: 100%; object-fit: cover; }

.product-img-placeholder-horizontal {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-lo);
}

.product-card-horizontal-content { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.product-card-horizontal-name {
  font-family: var(--font-display) !important; font-weight: 700; font-size: 1rem;
  color: var(--text-hi); margin: 0; letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.product-card-horizontal-badges { display: flex; flex-wrap: wrap; gap: 4px; }

.product-badge-horizontal {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--em-glow); border: 1px solid var(--border-em);
  color: var(--em); font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.product-card-horizontal-stock { font-size: 0.8rem; color: var(--text-lo); }

.product-card-horizontal-price { font-family: var(--font-display) !important; font-weight: 700; font-size: 0.875rem; color: var(--text-hi); }

.product-card-horizontal-price .price-label { color: var(--text-lo); font-weight: 400; }
.product-card-horizontal-price .price-current { color: var(--em); }
.product-card-horizontal-price .price-slashed { color: var(--text-lo); text-decoration: line-through; margin-left: 0.5rem; }

.product-card-horizontal-arrow { flex-shrink: 0; color: var(--em); transition: transform var(--transition); }
.product-card-horizontal:hover .product-card-horizontal-arrow { transform: translateX(4px); }

/* ============================================================
   GROUP MODAL
   ============================================================ */
.group-modal .modal-dialog { max-width: 700px; margin: 1.75rem auto; }
.group-modal-dialog { min-width: min(660px, 95vw); }

.group-modal-content {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.group-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1rem; }

.group-modal-title { font-size: 1.5rem !important; font-weight: 800 !important; color: var(--text-hi) !important; margin: 0 !important; }

.group-modal-close {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-mid);
  font-size: 1.2rem; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); padding: 0; line-height: 1;
}

.group-modal-close:hover { background: var(--surface-3); color: var(--text-hi); border-color: var(--border-em); }
.group-modal-close span { display: block; margin-top: -2px; }

.group-modal-body { padding: 0.5rem 1.5rem 1.5rem; }
.group-products-list { display: flex; flex-direction: column; gap: 0.75rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features .feature {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem; text-align: center;
  transition: all var(--transition); height: 100%; position: relative; overflow: hidden;
}

.features .feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
  opacity: 0; transition: opacity var(--transition);
}

.features .feature:hover { border-color: var(--border-em); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 24px var(--em-glow-sm); }
.features .feature:hover::before { opacity: 1; }

.features .feature i { font-size: 2rem; color: var(--em); margin-bottom: 1rem; display: block; }

.features .feature .title { font-family: var(--font-display) !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--text-hi) !important; margin-bottom: 0.6rem !important; }

.features .feature .description { font-size: 0.875rem !important; color: var(--text-mid) !important; line-height: 1.6 !important; margin: 0 !important; }

/* ============================================================
   FEEDBACK / GENERAL CARDS
   ============================================================ */
.feedback-card, .card {
  background: var(--surface-1) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important; color: var(--text-hi) !important; transition: all var(--transition) !important;
}
.feedback-card:hover, .card:hover { border-color: var(--border-em) !important; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer.component {
  background: var(--surface-1); border-top: 1px solid var(--border); position: relative;
}

.footer.component::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--em-dim), transparent);
  opacity: 0.25;
}

.footer .logo p { font-family: var(--font-display) !important; font-weight: 800 !important; font-size: 1.1rem !important; color: var(--text-hi) !important; }

.footer h5 { font-family: var(--font-display) !important; font-size: 0.7rem !important; font-weight: 700 !important; color: var(--text-lo) !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; margin-bottom: 1rem !important; }

.footer .nav-link { color: var(--text-mid) !important; font-size: 0.875rem !important; padding: 0.2rem 0 !important; transition: color var(--transition) !important; }
.footer .nav-link::after { display: none !important; }
.footer .nav-link:hover { color: var(--em) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--em), #00c8d4) !important;
  border: none !important; color: #080c10 !important; font-weight: 700 !important;
  border-radius: var(--radius-md) !important; transition: all var(--transition) !important;
}
.btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 0 24px var(--em-glow), 0 6px 20px rgba(0,0,0,0.3) !important; }

.btn-outline-primary { border-color: var(--border-em) !important; color: var(--em) !important; border-radius: var(--radius-md) !important; transition: all var(--transition) !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--em-glow) !important; box-shadow: 0 0 16px var(--em-glow-sm) !important; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  color: var(--text-hi) !important; border-radius: var(--radius-sm) !important; transition: all var(--transition) !important;
}
.form-control:focus, .form-select:focus {
  background: var(--surface-3) !important; border-color: var(--border-em) !important;
  box-shadow: 0 0 0 3px var(--em-glow-sm) !important; color: var(--text-hi) !important;
}
.form-control::placeholder { color: var(--text-lo) !important; }
.form-check-input { background: var(--surface-2) !important; border-color: var(--border) !important; }
.form-check-input:checked { background-color: var(--em) !important; border-color: var(--em) !important; }
.form-range::-webkit-slider-thumb { background-color: var(--em) !important; }
.form-range::-moz-range-thumb { background-color: var(--em) !important; }
label { color: var(--text-mid) !important; font-size: 0.875rem; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content { background: var(--surface-1) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-lg) !important; color: var(--text-hi) !important; }
.modal-header { border-bottom: 1px solid var(--border) !important; padding: 1.25rem 1.5rem !important; }
.modal-footer { border-top: 1px solid var(--border) !important; padding: 1rem 1.5rem !important; }
.modal-title { font-family: var(--font-display) !important; font-weight: 700 !important; color: var(--text-hi) !important; }
.btn-close { filter: invert(1) opacity(0.5) !important; transition: opacity var(--transition) !important; }
.btn-close:hover { filter: invert(1) opacity(1) !important; }
.modal-backdrop { background: rgba(0,0,0,0.75) !important; }

/* ============================================================
   TEXT COLORS / BADGES
   ============================================================ */
.text-primary { color: var(--em) !important; }
.bg-primary { background: var(--em) !important; color: #080c10 !important; }
.badge { font-family: var(--font-body) !important; font-weight: 600; border-radius: var(--radius-sm); }

/* ============================================================
   TABLES
   ============================================================ */
.table { color: var(--text-hi) !important; }
.table th { font-family: var(--font-display) !important; font-weight: 700; color: var(--text-mid) !important; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; border-color: var(--border) !important; padding: 0.75rem 1rem !important; }
.table td { border-color: var(--border) !important; color: var(--text-hi) !important; padding: 0.9rem 1rem !important; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(255,255,255,0.02) !important; }
.table-hover > tbody > tr:hover > * { background: var(--surface-2) !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: var(--radius-md) !important; border: 1px solid var(--border) !important; background: var(--surface-2) !important; color: var(--text-hi) !important; }
.alert-success { border-color: var(--border-em) !important; background: var(--em-glow-sm) !important; color: var(--em) !important; }
.alert-danger { border-color: rgba(239,68,68,0.3) !important; background: rgba(239,68,68,0.06) !important; color: #f87171 !important; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text-mid) !important; border-radius: var(--radius-sm) !important; margin: 0 2px; transition: all var(--transition) !important; }
.pagination .page-link:hover { background: var(--em-glow) !important; border-color: var(--border-em) !important; color: var(--em) !important; }
.pagination .active .page-link { background: var(--em) !important; border-color: var(--em) !important; color: #080c10 !important; font-weight: 700; }

/* ---- Shimmer: clip to the card inner surface, not the outer wrapper ---- */
.button-shimmer { position: relative; }
.button-shimmer::before { display: none; }  /* disable the wrapper-level shimmer */
/* Apply shimmer via the .product-card pseudo instead */
.product-card { position: relative; overflow: hidden; }
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 3;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(0,229,160,0.12), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.product-card-wrapper:hover .product-card::after {
  animation: cardShine 0.65s ease forwards;
}
@keyframes cardShine { 0% { left: -75%; opacity: 1; } 100% { left: 125%; opacity: 1; } }

/* ============================================================
   SOCIALS
   ============================================================ */
.socials a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important; color: var(--text-mid) !important;
  padding: 0.65rem 1.25rem !important; text-decoration: none !important;
  transition: all var(--transition) !important; font-size: 0.875rem; font-weight: 500;
}
.socials a:hover { border-color: var(--border-em) !important; color: var(--em) !important; background: var(--em-glow-sm) !important; transform: translateY(-2px); }

/* ============================================================
   CHOICES.JS OVERRIDE
   ============================================================ */
.choices__inner { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text-hi) !important; border-radius: var(--radius-sm) !important; font-size: 0.8rem !important; min-height: unset !important; padding: 4px 8px !important; }
.choices__list--dropdown { background: var(--surface-2) !important; border-color: var(--border) !important; border-radius: var(--radius-sm) !important; }
.choices__item--choice:hover, .choices__item--choice.is-highlighted { background: var(--surface-3) !important; color: var(--em) !important; }
.choices__item { color: var(--text-hi) !important; }

/* ============================================================
   MISC
   ============================================================ */
.stock-unlimited svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero { padding: 4rem 0 3.5rem; }
  .stats { flex-wrap: wrap; gap: 1.5rem; padding: 1rem 1.5rem; }
  .navbar-collapse { background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin-top: 0.5rem; }
  .nav-link::after { display: none; }
  .nav-link { padding: 0.5rem 0 !important; }
}

@media (max-width: 768px) {
  .product-card-wrapper { min-width: 260px; max-width: 100%; margin: 6px; }
  .product-card { height: auto; min-height: 330px; }
  .product-card-image { height: 165px; }
  .product-name { font-size: 0.9rem !important; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem) !important; }
  .stats { gap: 1rem; padding: 0.75rem 1rem; }
  .stats .value { font-size: 1.1rem; }
  .px-32 { padding-left: 1rem; padding-right: 1rem; }
  .group-modal-dialog { min-width: auto; }
  .product-card-horizontal-link { flex-direction: column; align-items: flex-start; padding: 0.9rem 1rem; }
  .product-card-horizontal-image { width: 100%; height: 160px; }
  .product-card-horizontal-name { white-space: normal; }
  .product-card-horizontal-arrow { align-self: flex-end; }
}

@media (max-width: 480px) { .product-card-wrapper { width: 100%; min-width: 100%; } }

/* ============================================================
   BUG FIXES
   ============================================================ */

/* --- Search bar: no icon, clean text input --- */
.fake-searchbar { cursor: pointer; }
.fake-searchbar .form-control { pointer-events: none; flex: 1; }

/* --- Currency selector: match navbar button height, emerald border, no purple --- */
.currency-selector .choices__inner {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-em) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--em) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  min-height: unset !important;
  height: auto !important;
  padding: 0.4rem 0.9rem !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
}
.currency-selector .choices.is-open .choices__inner { border-color: var(--em) !important; border-radius: var(--radius-sm) !important; }
.currency-selector .choices__inner .symbol { color: var(--em) !important; }
.currency-selector .choices__list--dropdown { background: var(--surface-2) !important; border: 1px solid var(--border-em) !important; border-radius: var(--radius-sm) !important; }
.currency-selector .choices__item--choice:hover,
.currency-selector .choices__item--choice.is-highlighted { background: var(--surface-3) !important; color: var(--em) !important; }

/* --- Product cards: prevent top-edge clipping on hover ---
     Root cause: the flex .row wrapping .product-card-wrappers doesn't have
     enough breathing room above. We add padding on both the row AND its parent
     div, and ensure no ancestor clips overflow. */
.products { padding-top: 16px !important; padding-bottom: 16px !important; overflow: visible !important; }
.products > div,
section.container.py-20 { overflow: visible !important; }
/* product-card-wrapper: no transform on the wrapper — hover is pure CSS on the card inside */
.product-card-wrapper { margin-top: 16px !important; }

/* --- Variant buttons: neutralise the hardcoded btn-primary gradient fill ---
     The Nunjucks template sets class="variant btn-primary" with no way to
     remove it, so we must defeat the !important gradient with higher specificity. */
.variants .variant,
.variants .variant.btn-primary,
.variants .variant.btn-primary:not(:disabled):not(.disabled) {
  background: var(--surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-hi) !important;
  box-shadow: none !important;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition) !important;
  position: relative;
}
/* Hover state */
.variants .variant:hover,
.variants .variant.btn-primary:hover {
  background: var(--surface-3) !important;
  background-image: none !important;
  border-color: var(--border-em) !important;
  box-shadow: 0 0 14px var(--em-glow-sm) !important;
  color: var(--text-hi) !important;
  transform: none !important;
}
/* Active — full gradient fill via ::before, text forced dark for contrast */
.variants .variant.active,
.variants .variant.btn-primary.active {
  background: var(--surface-3) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px var(--em-glow) !important;
  transform: none !important;
}
/* Full gradient flood fill */
.variants .variant::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--em) 0%, #00c8d4 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.variants .variant.active::before { opacity: 1; }
/* Keep all inner content above the gradient */
.variants .variant > * { position: relative; z-index: 1; }

/* Inactive sub-elements */
.variants .variant .name { color: var(--text-hi) !important; margin-bottom: 0 !important; font-weight: 600 !important; }
.variants .variant .stock { color: var(--text-mid) !important; font-size: 0.75rem !important; }
.variants .variant .description { color: var(--text-mid) !important; }
.variants .variant .price {
  color: var(--em) !important;
  background: var(--em-glow-sm) !important;
  border: 1px solid var(--border-em) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.2rem 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}
.variants .variant .price s { color: var(--text-lo) !important; }
.variants .variant .active-indicator { color: var(--em) !important; background: var(--surface-3) !important; }
.variants .variant .active-indicator svg { color: var(--em) !important; }

/* Active state — dark text + dark accents so everything reads on the bright teal */
.variants .variant.active .name  { color: rgba(0,0,0,0.85) !important; }
.variants .variant.active .stock { color: rgba(0,0,0,0.55) !important; }
.variants .variant.active .description { color: rgba(0,0,0,0.55) !important; }
.variants .variant.active .price {
  color: rgba(0,0,0,0.8) !important;
  background: rgba(0,0,0,0.15) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.variants .variant.active .price s { color: rgba(0,0,0,0.4) !important; }
.variants .variant.active .active-indicator {
  background: rgba(0,0,0,0.18) !important;  /* dark bg so green pops on teal */
  color: var(--em) !important;
}
.variants .variant.active .active-indicator svg { color: var(--em) !important; }

/* --- Product page description: full height, no clipping, no mobile overlap ---
     Root cause: Bootstrap's .row is display:flex + align-items:stretch by default,
     so the left col (description) is clamped to the right col's height. The text
     then visually overflows but the right col still starts at the wrong offset on
     mobile, causing the overlap. Fix: drop to align-items:flex-start on that row,
     and let each col size to its own content. */
.product-wrapper .row.gx-4,
.product-wrapper .row.gx-lg-5 { align-items: flex-start !important; }

/* The col itself: let it be as tall as its content needs */
.product-wrapper .col-lg-6:first-child { height: auto !important; overflow: visible !important; }

/* Remove all height/overflow constraints from the tab + editor chain */
.product-tabs,
.product-tabs .content,
.product-tabs .content .editor,
.product-tabs .editor {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Editor typography */
.product-tabs .editor p { margin-bottom: 0.75rem !important; color: var(--text-hi) !important; }
.product-tabs .editor li,
.product-tabs .editor span { color: var(--text-hi) !important; }
.product-tabs .editor h1,
.product-tabs .editor h2,
.product-tabs .editor h3,
.product-tabs .editor h4 {
  font-family: var(--font-display) !important;
  color: var(--text-hi) !important;
  margin-bottom: 0.5rem !important;
}

/* Mobile: ensure the two cols stack with a gap so description doesn't butt up against the form */
@media (max-width: 991px) {
  .product-wrapper .col-lg-6:first-child { margin-bottom: 2rem !important; }
}

/* --- Quantity input group: proper separation between buttons and field --- */
.input-group .input-group-btn {
  flex-shrink: 0;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 !important;
  z-index: 0 !important;
}
.input-group .input-group-btn svg {
  width: 16px !important;
  height: 16px !important;
}
.input-group .form-control {
  height: 44px !important;
  text-align: center !important;
  border-radius: var(--radius-sm) !important;
  margin: 0 0.5rem !important;
  flex: 1 !important;
}
/* Remove Bootstrap's border-radius overrides on input-group children */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-radius: var(--radius-sm) !important;
}
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
  border-radius: var(--radius-sm) !important;
}

/* --- Variant price: better contrast, slightly separated from name block --- */
.variants .variant .price {
  min-width: 80px !important;
  text-align: right !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ============================================================
   ROBUX INTEGRATION STYLES
   Consistent with RBXKEY Obsidian + Emerald theme
   ============================================================ */

/* ── Robux price badge on product cards ── */
.rbx-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(0, 229, 160, 0.06);
  border: 1px solid rgba(0, 229, 160, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--em);
  letter-spacing: 0.01em;
}

.rbx-price-badge-sm {
  margin-top: 4px;
  font-size: 0.68rem;
}

.rbx-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.rbx-icon-xs {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  vertical-align: middle;
}

.rbx-icon-sm {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Variant Robux price ── */
.variant-rbx-price {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--em);
  opacity: 0.85;
  font-weight: 500;
}

/* ── Robux total hint on product form ── */
.rbx-total-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 0.25rem;
}

.rbx-total-display strong { color: var(--em); }

/* ── Pay with Robux button ── */
.btn-robux {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 229, 160, 0.07) !important;
  border: 1px solid rgba(0, 229, 160, 0.35) !important;
  color: var(--em) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.6rem 1.25rem !important;
  transition: all var(--transition) !important;
  cursor: pointer;
}

.btn-robux:hover:not(:disabled) {
  background: rgba(0, 229, 160, 0.14) !important;
  border-color: var(--em) !important;
  box-shadow: 0 0 20px var(--em-glow) !important;
  transform: translateY(-1px);
}

.btn-robux:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.rbx-icon-btn {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rbx-btn-price {
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ── Cart robux equivalent row ── */
.rbx-cart-robux {
  font-size: 0.8rem;
  color: var(--em);
}

/* ══════════════════════════════════════════════════════════
   ROBUX CHECKOUT PAGE
   ══════════════════════════════════════════════════════════ */

.robux-checkout-section {
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.rbx-checkout-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.rbx-checkout-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  animation: fadeSlideUp 0.38s cubic-bezier(0.4,0,0.2,1);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.rbx-checkout-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rbx-checkout-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.rbx-checkout-logo {
  width: 30px;
  height: 30px;
  color: var(--em);
}

.rbx-checkout-title {
  font-family: var(--font-display) !important;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-hi);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.rbx-checkout-subtitle {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* Order summary */
.rbx-order-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.rbx-summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lo);
  margin-bottom: 0.75rem;
}

.rbx-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.25rem 0;
}

.rbx-summary-key {
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
}

.rbx-summary-val {
  font-size: 0.85rem;
  color: var(--text-hi);
  text-align: right;
  font-weight: 500;
}

.rbx-summary-divider {
  height: 1px;
  background: var(--border);
  margin: 0.6rem 0;
}

.rbx-summary-total { padding: 0.35rem 0; }

.rbx-usd-price {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.rbx-robux-total-row .rbx-summary-key { color: var(--em); font-weight: 500; }
.rbx-robux-price {
  font-family: var(--font-display) !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--em) !important;
}

/* Email input */
.rbx-email-section { margin-bottom: 1.5rem; }

.rbx-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.3rem;
}

.rbx-req { color: var(--em); }

.rbx-hint {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.rbx-input {
  width: 100%;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-hi) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  font-family: var(--font-body) !important;
}

.rbx-input:focus {
  outline: none !important;
  border-color: var(--border-em) !important;
  box-shadow: 0 0 0 3px var(--em-glow-sm) !important;
}

.rbx-field-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* Error box */
.rbx-error-box {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* Action row */
.rbx-action-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.rbx-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-mid);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.rbx-back-btn:hover {
  color: var(--text-hi);
  border-color: rgba(255,255,255,0.15);
}

.rbx-confirm-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--em) !important;
  color: #080c10 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 1.5rem !important;
  cursor: pointer;
  transition: all var(--transition) !important;
  text-decoration: none;
}

.rbx-confirm-btn:hover:not(:disabled) {
  background: var(--em-dim) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--em-glow);
}

.rbx-confirm-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.rbx-security-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-lo);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Step-by-step pending UI ── */
.rbx-pending-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: rgba(0,229,160,0.12);
  border: 1px solid rgba(0,229,160,0.3);
  animation: rbxPulse 2s ease-in-out infinite;
}

.rbx-pending-logo { animation: none; }

@keyframes rbxPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,160,0.25); }
  50%       { box-shadow: 0 0 0 14px rgba(0,229,160,0); }
}

.rbx-payment-steps {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.rbx-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rbx-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--em);
  color: #080c10;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-display) !important;
}

.rbx-step-num-wait {
  background: var(--surface-3);
  color: var(--text-mid);
}

.rbx-step-content { flex: 1; padding-bottom: 0.5rem; }

.rbx-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.25rem;
}

.rbx-step-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.rbx-step-connector {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin-left: 14px;
}

.rbx-gamepass-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--em);
  color: #080c10 !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}

.rbx-gamepass-btn:hover {
  background: var(--em-dim);
  box-shadow: 0 4px 16px var(--em-glow);
  transform: translateY(-1px);
  color: #080c10 !important;
}

.rbx-gamepass-price {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Order meta */
.rbx-order-meta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.rbx-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.rbx-mono {
  font-family: monospace;
  color: var(--text-hi);
  font-size: 0.82rem;
}

.rbx-em { color: var(--em); font-weight: 600; }

.rbx-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.8rem;
}

.rbx-status-pending::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: statusBlink 1.2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.rbx-timer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-lo);
}

.rbx-timer-row strong { color: var(--text-mid); }

/* Success / Error states */
.rbx-success-card {
  text-align: center;
  border-color: rgba(0,229,160,0.2) !important;
}

.rbx-error-card {
  text-align: center;
  border-color: rgba(248,113,113,0.2) !important;
}

.rbx-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,229,160,0.12);
  border: 1px solid rgba(0,229,160,0.3);
  margin: 0 auto 1.25rem;
  color: var(--em);
}

.rbx-success-icon svg { width: 32px; height: 32px; }

.rbx-error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  margin: 0 auto 1.25rem;
  color: #f87171;
}

.rbx-error-icon svg { width: 32px; height: 32px; }

.rbx-success-detail {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-mid);
}

.rbx-success-detail strong { color: var(--text-hi); }

@media (max-width: 576px) {
  .rbx-checkout-card { padding: 1.5rem 1.25rem; }
  .rbx-action-row { flex-direction: column; }
  .rbx-back-btn { width: 100%; justify-content: center; }
  .rbx-confirm-btn { width: 100%; }
}

/* ── Propagation wait bar ── */
.rbx-propagation-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.5rem 0 1rem;
}
.rbx-propagation-bar {
  height: 100%;
  background: var(--em);
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--em-glow);
}
.rbx-propagation-note {
  font-size: 0.8rem;
  color: var(--text-mid);
  text-align: center;
  margin: 0;
}

/* ── Hero trust / feature strip ─────────────────────────────────────────── */
.hero-trust-strip {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}
.hero-trust-inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 0.65rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,229,160,0.06);
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.5rem;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  white-space: nowrap;
}
.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--em-glow-sm);
  color: var(--em);
  flex-shrink: 0;
  transition: background var(--transition);
}
.hero-trust-item:hover .hero-trust-icon {
  background: var(--em-glow);
}
.hero-trust-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.hero-trust-item:hover .hero-trust-label {
  color: var(--text-hi);
}
.hero-trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .hero-trust-inner { padding: 0.65rem 1rem; }
  .hero-trust-item  { padding: 0 0.75rem; }
  .hero-trust-label { font-size: 0.75rem; }
  .hero-trust-divider:nth-child(6) { display: none; } /* hide last divider on wrap */
}

/* ═══════════════════════════════════════════════════════════════════════════
   How It Works
   ═══════════════════════════════════════════════════════════════════════════ */
.hiw-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hiw-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0,229,160,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(0,200,212,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hiw-header {
  text-align: center;
  margin-bottom: 3rem;
}
.hiw-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--em);
  background: var(--em-glow-sm);
  border: 1px solid var(--border-em);
  border-radius: 100px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 0.75rem;
}
.hiw-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-hi);
  margin: 0;
  letter-spacing: -0.02em;
}

.hiw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Individual step card */
.hiw-step {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.hiw-step:hover {
  border-color: var(--border-em);
  box-shadow: 0 0 32px var(--em-glow-sm);
  transform: translateY(-4px);
}

.hiw-step-icon-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.hiw-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--em);
  background: var(--surface-1);
  border: 1px solid var(--border-em);
  border-radius: 100px;
  padding: 0.1rem 0.4rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  z-index: 1;
}
.hiw-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,229,160,0.12), rgba(0,200,212,0.08));
  border: 1px solid var(--border-em);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em);
  transition: background var(--transition), box-shadow var(--transition);
}
.hiw-step:hover .hiw-step-icon {
  background: linear-gradient(135deg, rgba(0,229,160,0.2), rgba(0,200,212,0.14));
  box-shadow: 0 0 20px var(--em-glow-sm);
}
.hiw-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 0.5rem;
}
.hiw-step-desc {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* Connector between steps */
.hiw-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 0.5rem;
  flex-shrink: 0;
  color: var(--border-em);
}
.hiw-connector-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-em), rgba(0,229,160,0.1));
}
.hiw-connector-arrow {
  color: var(--em);
  opacity: 0.5;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .hiw-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 380px;
    margin: 0 auto;
  }
  .hiw-step     { max-width: none; }
  .hiw-connector { flex-direction: column; padding: 0; }
  .hiw-connector-line  { width: 1px; height: 24px; background: linear-gradient(180deg, var(--border-em), rgba(0,229,160,0.1)); }
  .hiw-connector-arrow { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SellAuth purchase notification — restyled to match theme
   ═══════════════════════════════════════════════════════════════════════════ */
.notification-popup {
  bottom: 1.25rem !important;
  left: 1.25rem !important;
  z-index: 1050 !important;
}
.notification-content {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-em) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(0,229,160,.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 0.6rem !important;
  gap: 0.75rem !important;
  animation: notifSlideIn .35s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes notifSlideIn {
  from { opacity: 0; transform: translateX(-20px) scale(.97); }
  to   { opacity: 1; transform: translateX(0)      scale(1);  }
}
.notification-image {
  border-radius: 10px !important;
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
}
.notification-text {
  padding-right: 0.75rem !important;
}
.notification-text-primary {
  color: var(--text-mid) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
}
.notification-text-secondary {
  color: var(--text-hi) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}
.notification-text-tertiary {
  color: var(--em) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}
@media (max-width: 480px) {
  .notification-popup { left: 1rem !important; right: 1rem !important; bottom: 1rem !important; }
}

/* ── Payment method hint (below Buy Now / Checkout) ────────────────────── */
.pay-method-hint {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  justify-content: center;
}
.pay-method-hint-label {
  font-size: .72rem;
  color: var(--text-lo);
  letter-spacing: .01em;
}
.pay-method-chip {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 100px;
  letter-spacing: .03em;
  line-height: 1;
}
.pay-method-chip.ltc {
  background: rgba(191,187,187,.08);
  border: 1px solid rgba(191,187,187,.18);
  color: #bfbbbb;
}
.pay-method-chip.btc {
  background: rgba(247,147,26,.08);
  border: 1px solid rgba(247,147,26,.22);
  color: #f7931a;
}
.pay-method-chip.card {
  background: rgba(0,229,160,.06);
  border: 1px solid var(--border-em);
  color: var(--em);
}
.pay-method-chip.paypal {
  background: rgba(0,156,222,.08);
  border: 1px solid rgba(0,156,222,.25);
  color: #009cde;
}
.crypto-btn-note {
  font-size: .7rem;
  color: var(--text-lo);
  text-align: center;
  margin: .35rem 0 0;
}
.crypto-btn-note strong {
  color: var(--text-mid);
}

/* ── Crypto checkout — BTC/LTC alt note ────────────────────────────────── */
.crypto-alt-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: .7rem .9rem;
  margin-top: .75rem;
}
.crypto-alt-note-text {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-mid, rgba(255,255,255,.5));
  line-height: 1.45;
  flex: 1;
}
.crypto-alt-note-text strong { color: var(--text-hi, #f0f4f8); }
.crypto-alt-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: var(--text-hi, #f0f4f8);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .75rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.crypto-alt-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
}

/* ── Secure Payment strip ───────────────────────────────────────────────── */
.prod-secure-payment {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.prod-secure-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-lo, rgba(255,255,255,.35));
}
.prod-payment-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  height: 28px;
  min-width: 36px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
}
.crypto-alt-btn:disabled { opacity: .5; cursor: not-allowed; }
