/* ==========================================================================
   FOXCADE — 100% EXACT REPLICATION OF media_1788135412189.jpg
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --purple-brand: #5850ec;
  --purple-hover: #4338ca;
  --orange-brand: #ff6b3d;
  --green-brand: #10b981;
  --blue-brand: #0ea5e9;

  --bg-page: #f8fbff;
  --bg-white: #ffffff;
  --text-main: #1e1b4b;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.foxcade-ref-body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── 1. HEADER ── */
.ref-header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ref-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ref-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ref-brand-logo {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.ref-brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.ref-nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ref-nav-item {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ref-nav-item:hover { color: var(--purple-brand); }
.ref-caret { font-size: 11px; color: #94a3b8; }

.ref-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ref-flame-btn {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ref-flame-btn:hover { transform: scale(1.1); }

.ref-login-link {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}
.ref-login-link:hover { color: var(--purple-brand); }

.ref-btn-admin-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #4338ca;
  border: 1.5px solid #c7d2fe;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
  transition: all 0.2s ease;
}
.ref-btn-admin-header:hover {
  background: #f5f3ff;
  border-color: #6366f1;
  color: #3730a3;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
}

.ref-btn-purple {
  background: var(--purple-brand);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(88, 80, 236, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ref-btn-purple:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 80, 236, 0.4);
}

/* ── UNIFIED HERO + HIGHLIGHTS + SHOWCASE NATURE BACKGROUND (Background.png) ── */
.ref-hero-showcase-wrapper {
  position: relative;
  background: #f8fafc url('assets/images/Background.png') no-repeat bottom center;
  background-size: cover;
  overflow: visible;
  padding-bottom: 25px;
}

/* ── 2. HERO SECTION ── */
.ref-hero-section {
  padding: 48px 0 50px 0;
  position: relative;
  overflow: visible;
  background: transparent;
}

.ref-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.ref-star-bg {
  position: absolute;
  color: #fbbf24;
  font-size: 20px;
  pointer-events: none;
  opacity: 0.8;
}
.ref-star-1 { top: 20px; left: 44%; }

.ref-hero-left {
  max-width: 490px;
}

.ref-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.ref-html5-icon {
  background: #e44d26;
  color: #ffffff;
  font-weight: 900;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ref-hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.12;
  color: #0f172a;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.text-purple { color: var(--purple-brand); }
.text-orange { color: var(--orange-brand); }

.ref-hero-sub {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 450px;
}

.ref-checks-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ref-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.ref-check-circle {
  background: #d1fae5;
  color: #059669;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ref-hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ref-btn-purple-lg {
  background: var(--purple-brand);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(88, 80, 236, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.ref-btn-purple-lg:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 80, 236, 0.45);
}

.ref-btn-white-lg {
  background: #ffffff;
  color: var(--purple-brand);
  border: 1.5px solid #dbeafe;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.ref-btn-white-lg:hover {
  border-color: var(--purple-brand);
  background: #f8faff;
  transform: translateY(-2px);
}

.btn-play-icon {
  background: #ede9fe;
  color: var(--purple-brand);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ── HERO RIGHT: BROWSER MOCKUP & CENTERED FOX OVERLAY ── */
.ref-hero-right {
  position: relative;
}

.ref-mockup-wrapper {
  position: relative;
  width: 100%;
}

.ref-browser-mockup {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ref-bm-header {
  background: #f8fafc;
  padding: 10px 16px;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ref-bm-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-bm-brand-icon {
  display: flex;
  align-items: center;
}

.ref-bm-brand-text {
  font-size: 12px;
  font-weight: 900;
  color: #1e1b4b;
  letter-spacing: -0.3px;
}
.ref-bm-brand-text b { color: var(--purple-brand); }

.ref-bm-search {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  color: #94a3b8;
  flex: 1;
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ref-bm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}

.ref-bm-crown { color: #f59e0b; }

.ref-bm-user {
  background: #e2e8f0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.ref-bm-body {
  display: grid;
  grid-template-columns: 125px 1fr;
  min-height: 300px;
  background: #f8fafc;
}

.ref-bm-sidebar {
  background: #ffffff;
  border-right: 1.5px solid #f1f5f9;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-bm-nav {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ref-bm-nav.active {
  background: #5850ec;
  color: #ffffff;
}

.ref-bm-content {
  padding: 14px 16px;
}

.ref-bm-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #1e1b4b;
  margin-bottom: 10px;
}

.ref-bm-title-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ref-bm-badge-link {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
}

.ref-bm-games-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ref-bm-game-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ref-bm-thumb {
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  position: relative;
  background: #f1f5f9;
}
.ref-bm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.ref-bm-hot-tag {
  position: absolute;
  top: 3px;
  left: 3px;
  background: #ea580c;
  color: #ffffff;
  font-size: 6px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.ref-bm-game-title {
  font-size: 8.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-bm-game-meta {
  font-size: 7.5px;
  color: #64748b;
  font-weight: 600;
}

.ref-bm-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ref-pill {
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffffff;
}
.pill-orange { background: #ff6b3d; }
.pill-purple { background: #8338ec; }
.pill-blue   { background: #3a86ff; }
.pill-green  { background: #10b981; }
.pill-pink   { background: #ec4899; }
.pill-cyan   { background: #06b6d4; }

/* FOX MASCOT OVERLAY — CENTERED BETWEEN COPY & MOCKUP */
.ref-hero-fox-overlay {
  position: absolute;
  bottom: -45px;
  left: -140px;
  width: 375px;
  z-index: 10;
  pointer-events: none;
}

.ref-fox-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.16));
}

/* ── 3. 4 FLOATING HIGHLIGHT CARDS ── */
.ref-highlights-section {
  padding: 20px 0 60px 0;
  position: relative;
  z-index: 20;
}

.ref-highlights-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  border: 1.5px solid #edf2f7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ref-hl-col {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ref-hl-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hl-bg-purple { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.hl-bg-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.hl-bg-blue   { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.hl-bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.ref-hl-text h3,
.ref-hl-text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.ref-hl-text p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ── 4. WHAT PEOPLE HAVE BUILT & SOCIAL PROOF ── */
.ref-portals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ref-portal-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, border-color 0.25s;
}
.ref-portal-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-brand);
}

.ref-pc-screen {
  padding: 14px;
  min-height: 160px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pc-theme-blue   { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.pc-theme-purple { background: linear-gradient(135deg, #312e81, #7c3aed); }
.pc-theme-orange { background: linear-gradient(135deg, #9a3412, #ea580c); }
.pc-theme-green  { background: linear-gradient(135deg, #064e3b, #059669); }
.pc-theme-pink   { background: linear-gradient(135deg, #831843, #db2777); }

.ref-pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}

.ref-pc-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ref-pc-box {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ref-pc-footer {
  padding: 12px;
  text-align: center;
  background: #ffffff;
}

.ref-pc-link {
  color: #5850ec;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Social Proof Bar under Portals */
.ref-social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.ref-sp-users {
  display: flex;
  align-items: center;
  margin-left: -4px;
}

.sp-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: -8px;
}
.sp-av.av-1 { background: #e0f2fe; }
.sp-av.av-2 { background: #fce7f3; }
.sp-av.av-3 { background: #def7ec; }
.sp-av.av-4 { background: #fef3c7; }

.ref-sp-stars, .ref-testi-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ref-cartoon-star {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 2px rgba(217, 119, 6, 0.35));
  transition: transform 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}
.ref-cartoon-star:hover {
  transform: scale(1.22) rotate(6deg);
}

.ref-sp-score { color: #0f172a; font-size: 13px; }

/* ── 5. HOW IT WORKS ── */
.ref-section {
  padding: 60px 0;
}

.ref-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.ref-sub-sparkle {
  display: inline-block;
  background: #fff8eb;
  border: 1px solid #fef3c7;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ref-title-center {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.6px;
}

.ref-how-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.ref-steps-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 20px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ref-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.08);
}

.ref-step-num-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.ref-step-icon-box {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ref-step-icon-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain;
  display: block;
}

.ref-step-info {
  flex: 1;
  min-width: 0;
}
.ref-step-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
}
.ref-step-info p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.ref-step-arrow-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.arrow-btn-purple { background: #f5f3ff; }
.arrow-btn-green  { background: #f0fdf4; }
.arrow-btn-pink   { background: #fdf2f8; }
.ref-step-card:hover .ref-step-arrow-btn {
  transform: translateX(3px);
}

.ref-arcade-col {
  text-align: center;
}
.ref-arcade-img {
  max-width: 340px !important;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.12));
}

/* ── 6. EVERYTHING YOU NEED (6 FEATURES) ── */
.ref-everything-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: center;
}

.ref-ev-left h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 12px 0;
}
.ref-ev-left p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.ref-ev-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ref-feat-item {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.ref-feat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.06);
}

.ref-feat-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-feat-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
  display: block;
}

.ref-feat-text {
  flex: 1;
  min-width: 0;
}
.ref-feat-text h3,
.ref-feat-text h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}
.ref-feat-text p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* ── 7. TESTIMONIALS + THUMBS UP FOX ── */
.ref-testimonials-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
}

.ref-testi-cards-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ref-testi-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  border: 1.5px solid #edf2f7;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ref-testi-quote-icon {
  font-size: 32px;
  line-height: 1;
  color: #5850ec;
  font-family: serif;
  margin-bottom: 8px;
}

.ref-testi-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.ref-testi-stars { font-size: 12px; margin-bottom: 12px; }

.ref-testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}
.av-1 { background: #3b82f6; }
.av-2 { background: #ec4899; }
.av-3 { background: #10b981; }

.ref-testi-author b {
  font-size: 13px;
  color: #0f172a;
  display: block;
}

.ref-testi-author span {
  font-size: 11px;
  color: #94a3b8;
}

.ref-testi-dots {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.ref-dot.active { background: #5850ec; width: 22px; border-radius: 10px; }

.ref-fox-thumbs-img {
  max-width: 290px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.12));
}

/* ── 8. PRICING ── */
.ref-pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.ref-toggle-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.ref-toggle-label.active { color: #0f172a; }

.ref-price-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.ref-price-switch input { opacity: 0; width: 0; height: 0; }
.ref-price-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 30px;
  transition: 0.3s;
}
.ref-price-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .ref-price-slider { background: #5850ec; }
input:checked + .ref-price-slider:before { transform: translateX(20px); }

.ref-save-badge {
  background: #f1f5f9;
  color: #5850ec;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
}

.ref-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.ref-price-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 28px;
  border: 1.5px solid #edf2f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s;
}
.ref-price-card:hover { transform: translateY(-6px); }

.ref-price-card-pro {
  border: 2px solid #5850ec;
  box-shadow: 0 15px 40px rgba(88, 80, 236, 0.15);
}

.ref-popular-tag {
  position: absolute;
  top: -13px;
  right: 24px;
  background: #5850ec;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.ref-plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.ref-plan-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.ref-plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 24px;
}

.ref-plan-term {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.ref-plan-features {
  list-style: none;
  font-size: 13.5px;
  color: #334155;
  line-height: 2.2;
  margin-bottom: 30px;
}

.ref-check-green { color: #10b981; font-weight: 900; margin-right: 6px; }

.ref-btn-plan-outline {
  background: #ffffff;
  color: #5850ec;
  border: 1.5px solid #dbeafe;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}
.ref-btn-plan-outline:hover {
  border-color: #5850ec;
  background: #f8faff;
}

.ref-btn-plan-purple {
  background: #5850ec;
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(88, 80, 236, 0.3);
  transition: all 0.2s;
}
.ref-btn-plan-purple:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* ── 9. FAQ ACCORDION + ALIEN SUPPORT ── */
.ref-faq-main-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: flex-start;
}

.ref-faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ref-faq-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}

.ref-faq-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ref-faq-item.open {
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.ref-faq-header {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.ref-faq-item.open .ref-faq-header {
  color: #6366f1;
}

.ref-faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, color 0.25s ease;
}

.ref-faq-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.ref-faq-item.open .ref-faq-icon {
  background: #ede9fe;
  color: #6366f1;
  transform: rotate(180deg);
}

/* Butter-Smooth Grid Accordion */
.ref-faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-faq-item.open .ref-faq-collapse {
  grid-template-rows: 1fr;
}

.ref-faq-body {
  overflow: hidden;
  padding: 0 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;
}

.ref-faq-item.open .ref-faq-body {
  opacity: 1;
  transform: translateY(0);
  padding: 0 18px 16px 18px;
}

.ref-faq-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.ref-support-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  border: 1.5px solid #edf2f7;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ref-alien-img {
  width: 110px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 8px 18px rgba(124, 58, 237, 0.2));
}

.ref-support-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* ── 10. DARK PURPLE FOOTER ── */
.ref-footer {
  background: #2e2b52;
  color: #cbd5e1;
  padding: 60px 0 35px 0;
  position: relative;
}

.ref-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.ref-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ref-footer-brand img,
.ref-footer-brand-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.ref-footer-brand span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.ref-footer-bio {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 280px;
}

.ref-social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.ref-social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}
.ref-social-links a:hover { background: #5850ec; }

.ref-copyright {
  font-size: 12px;
  color: #64748b;
}

.ref-footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.ref-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.ref-footer-col a:hover { color: #ffffff; }

.ref-back-to-top {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: #ffffff;
  color: #5850ec;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .ref-hero-grid { grid-template-columns: 1fr; }
  .ref-hero-fox-overlay { position: relative; width: 280px; margin: -20px auto 0 auto; display: block; }
  .ref-highlights-card { grid-template-columns: repeat(2, 1fr); }
  .ref-how-grid { grid-template-columns: 1fr; }
  .ref-portals-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-everything-grid { grid-template-columns: 1fr; }
  .ref-testimonials-grid { grid-template-columns: 1fr; }
  .ref-pricing-grid { grid-template-columns: 1fr; }
  .ref-faq-main-layout { grid-template-columns: 1fr; }
  .ref-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ref-nav-menu { display: none; }
  .ref-hero-title { font-size: 38px; }
  .ref-highlights-card { grid-template-columns: 1fr; }
  .ref-portals-grid { grid-template-columns: 1fr 1fr; }
  .ref-ev-right { grid-template-columns: 1fr; }
  .ref-testi-cards-col { grid-template-columns: 1fr; }
  .ref-faq-columns { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ADVANCED MOBILE & TABLET RESPONSIVE STYLING (FOXCADE)
   ========================================================================== */

/* Hamburger Button & Mobile Drawer (High-Performance Touch) */
.ref-mobile-toggle {
  display: none;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4.5px;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ref-mobile-toggle:active {
  background: #f1f5f9;
  transform: scale(0.96);
}

.ref-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
  pointer-events: none;
}

.ref-mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(310px, 85vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #ffffff !important;
  z-index: 999999 !important;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px 20px !important;
  transform: translateX(105%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.ref-mobile-drawer.open {
  transform: translateX(0) !important;
}

.ref-mobile-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 999998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease !important;
}

.ref-mobile-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ref-md-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.ref-md-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ref-md-close:active {
  background: #e2e8f0;
  transform: scale(0.92);
}

.ref-md-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.ref-md-links a {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ref-md-links a:active,
.ref-md-links a:hover {
  background: #f8fafc;
  color: var(--purple-brand, #6366f1);
}

.ref-md-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1.5px solid #f1f5f9;
}

/* ── TABLET RESPONSIVE (max-width: 992px) ── */
@media (max-width: 992px) {
  .ref-nav-menu { display: none; }
  .ref-mobile-toggle { display: flex; }

  .ref-hero-section {
    padding: 40px 0 60px 0;
  }

  .ref-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .ref-hero-left {
    max-width: 100%;
    margin: 0 auto;
  }

  .ref-hero-title {
    font-size: 42px;
  }

  .ref-hero-sub {
    margin: 0 auto 20px auto;
  }

  .ref-checks-row {
    justify-content: center;
  }

  .ref-hero-buttons {
    justify-content: center;
  }

  .ref-hero-right {
    justify-content: center;
    margin-top: 10px;
  }

  .ref-mockup-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .ref-hero-fox-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    width: 240px;
    margin: -30px auto 0 auto;
  }

  .ref-highlights-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ref-how-grid {
    grid-template-columns: 1fr;
  }

  .ref-arcade-col {
    margin-top: 20px;
  }

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

  .ref-everything-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ref-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .ref-testi-fox-col {
    text-align: center;
    margin-top: 20px;
  }
  .ref-fox-thumbs-img {
    margin: 0 auto;
  }

  .ref-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .ref-faq-main-layout {
    grid-template-columns: 1fr;
  }

  .ref-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ── PHONE RESPONSIVE (max-width: 640px) ── */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  .ref-container {
    padding: 0 16px;
  }

  .ref-brand-text {
    font-size: 19px;
  }

  .ref-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ref-header-actions .ref-flame-btn {
    display: none;
  }

  .ref-header-actions .ref-login-link {
    display: none;
  }

  .ref-header-actions .ref-btn-admin-header {
    display: none; /* Prominently available inside mobile drawer */
  }

  .ref-btn-purple {
    padding: 8px 16px;
    font-size: 13px;
  }

  .ref-hero-section {
    padding: 30px 0 45px 0;
  }

  .ref-hero-title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.6px;
  }

  .ref-hero-sub {
    font-size: 14px;
    line-height: 1.55;
  }

  .ref-checks-row {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .ref-hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .ref-btn-purple-lg,
  .ref-btn-white-lg {
    width: 100%;
    justify-content: center;
  }

  .ref-bm-body {
    grid-template-columns: 1fr;
  }

  .ref-bm-sidebar {
    display: none;
  }

  .ref-bm-games-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ref-bm-game-card {
    min-width: 0;
  }

  .ref-bm-game-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ref-bm-game-meta {
    font-size: 9.5px;
  }

  .ref-highlights-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .ref-title-center {
    font-size: 26px;
  }

  .ref-portals-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ref-social-proof-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .ref-ev-right {
    grid-template-columns: 1fr;
  }

  .ref-testi-cards-col {
    grid-template-columns: 1fr;
  }

  .ref-faq-columns {
    grid-template-columns: 1fr;
  }

  .ref-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ref-footer-brand-logo {
    height: 54px;
    max-width: 210px;
  }

  .ref-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  /* Form controls font size on mobile to prevent iOS auto zoom */
  .ref-form-input, .ref-form-select {
    font-size: 16px !important;
  }
}


/* ==========================================================================
   RICH PORTAL MOCKUP CARDS — EXACT REFERENCE MATCH
   ========================================================================== */

/* Showcase Section — Sits seamlessly on Background.png */
.ref-showcase-section {
  position: relative;
  background: transparent;
  padding-top: 10px;
  padding-bottom: 60px;
  overflow: visible;
}

.ref-showcase-section::before,
.ref-showcase-section::after {
  display: none;
}

/* ── 3D COVERFLOW AUTO-SCROLLING SCREENSHOTS CAROUSEL ── */
.ref-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 32px auto 16px auto;
  overflow: hidden;
  padding: 15px 0 20px 0;
}

.ref-3d-stage {
  position: relative;
  height: 440px;
  width: 100%;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-3d-slide {
  position: absolute;
  width: 680px;
  max-width: 82vw;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12), 0 5px 15px rgba(0,0,0,0.04);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.65s ease, filter 0.65s ease;
  will-change: transform, opacity;
}

.ref-3d-slide.is-center {
  transform: translateX(0) scale(1) translateZ(0);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 28px 60px -12px rgba(15, 23, 42, 0.25), 0 10px 25px rgba(88, 80, 236, 0.1);
  border-color: #cbd5e1;
}

.ref-3d-slide.is-left {
  transform: translateX(-52%) scale(0.85) translateZ(-80px) rotateY(6deg);
  z-index: 5;
  opacity: 0.75;
  filter: brightness(0.92);
}

.ref-3d-slide.is-right {
  transform: translateX(52%) scale(0.85) translateZ(-80px) rotateY(-6deg);
  z-index: 5;
  opacity: 0.75;
  filter: brightness(0.92);
}

.ref-3d-slide.is-far-left {
  transform: translateX(-95%) scale(0.7) translateZ(-160px);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.ref-3d-slide.is-far-right {
  transform: translateX(95%) scale(0.7) translateZ(-160px);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.ref-3d-topbar {
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-3d-dots {
  display: flex;
  gap: 5px;
}

.ref-3d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ref-3d-dot.d-red    { background: #ef4444; }
.ref-3d-dot.d-yellow { background: #f59e0b; }
.ref-3d-dot.d-green  { background: #10b981; }

.ref-3d-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  display: flex;
}

.ref-3d-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Nav arrows */
.ref-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #1e293b;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.ref-carousel-arrow:hover {
  background: #ffffff;
  color: #6366f1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.28);
  border-color: #c7d2fe;
}
.ref-carousel-arrow.prev { left: 16px; }
.ref-carousel-arrow.next { right: 16px; }

/* Pagination Dots */
.ref-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.ref-c-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ref-c-dot.active {
  background: #7c3aed;
  width: 28px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.45);
}

@media (max-width: 992px) {
  .ref-3d-stage { height: 350px; }
  .ref-3d-slide { width: 520px; }
  .ref-3d-slide.is-left { transform: translateX(-46%) scale(0.82); }
  .ref-3d-slide.is-right { transform: translateX(46%) scale(0.82); }
}

@media (max-width: 640px) {
  .ref-3d-stage { height: 260px; }
  .ref-3d-slide { width: 88vw; }
  .ref-3d-slide.is-left { transform: translateX(-38%) scale(0.78); opacity: 0.35; }
  .ref-3d-slide.is-right { transform: translateX(38%) scale(0.78); opacity: 0.35; }
  .ref-carousel-arrow { width: 34px; height: 34px; font-size: 18px; }
  .ref-carousel-arrow.prev { left: 4px; }
  .ref-carousel-arrow.next { right: 4px; }
}

/* Responsive Portal Grid */
@media (max-width: 992px) {
  .ref-portals-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-portal-featured { transform: none; }
}
@media (max-width: 640px) {
  .ref-portals-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   ORDER / CHECKOUT MODAL STYLES (Full Name, Email, PayPal, Stripe)
   ══════════════════════════════════════════════════════════════ */
.ref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ref-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.ref-order-modal-box {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  padding: 28px 30px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ref-modal-backdrop.open .ref-order-modal-box {
  transform: translateY(0) scale(1);
}

.ref-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ref-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ref-order-header {
  margin-bottom: 22px;
}
.ref-order-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #6366f1;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.ref-order-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.ref-order-header p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.ref-form-group {
  margin-bottom: 20px;
}
.ref-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* Plan selector cards */
.ref-order-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ref-plan-radio-label {
  cursor: pointer;
  position: relative;
}
.ref-plan-radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ref-plan-radio-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease;
}
.ref-plan-radio-card .plan-tag {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}
.ref-plan-radio-card .plan-tag.popular {
  color: #ea580c;
  font-weight: 900;
}
.ref-plan-radio-card .plan-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}
.ref-plan-radio-card .plan-quota {
  font-size: 11px;
  color: #475569;
  margin-bottom: 4px;
}
.ref-plan-radio-card .plan-cost {
  font-size: 14px;
  font-weight: 800;
  color: #6366f1;
}
.ref-plan-radio-card .plan-cost small {
  font-size: 10px;
  color: #64748b;
}

.ref-plan-radio-label.active .ref-plan-radio-card {
  border-color: #6366f1;
  background: #f5f3ff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

/* Contact Info Inputs */
.ref-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ref-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.ref-input-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}
.ref-input-control:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Payment Method Cards (PayPal & Stripe) */
.ref-payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ref-payment-label {
  cursor: pointer;
  position: relative;
}
.ref-payment-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ref-payment-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.ref-pm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ref-pm-icon.paypal { background: #e0f2fe; }
.ref-pm-icon.stripe { background: #ede9fe; }

.ref-pm-info {
  flex: 1;
}
.ref-pm-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.ref-pm-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}
.ref-pm-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ref-payment-label.active .ref-payment-card {
  border-color: #6366f1;
  background: #f5f3ff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}
.ref-payment-label.active .ref-pm-radio-circle {
  border-color: #6366f1;
  background: #6366f1;
  box-shadow: inset 0 0 0 3px #ffffff;
}

/* Order Summary */
.ref-order-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.ref-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 6px;
}
.ref-sum-total {
  font-size: 18px;
  color: #6366f1;
  font-weight: 900;
}
.ref-sum-sub {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

/* Order Submit Button */
.ref-order-submit-btn {
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transition: all 0.25s ease;
}
.ref-order-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}
.ref-order-submit-btn:active {
  transform: translateY(0);
}
.ref-order-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success Receipt Screen */
.ref-order-success-screen {
  text-align: center;
  padding: 10px 0;
}
.ref-success-icon-badge {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
  animation: bounceSuccess 0.8s ease;
}
@keyframes bounceSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.ref-order-success-screen h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}
.ref-success-sub {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 20px;
}

.ref-order-receipt-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 24px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.receipt-row b {
  color: #0f172a;
}
.receipt-key-block {
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid #c7d2fe;
  border-radius: 12px;
  padding: 12px;
}
.key-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 6px;
}
.key-box {
  display: flex;
  gap: 8px;
}
.key-box input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 8px 10px;
}
.btn-copy-key {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copy-key:hover {
  background: #4338ca;
}

.ref-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 600px) {
  .ref-order-plans-grid {
    grid-template-columns: 1fr;
  }
  .ref-payment-options-grid {
    grid-template-columns: 1fr;
  }
  .ref-order-modal-box {
    padding: 20px 18px;
  }
}

/* Accessible Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
