/* ==========================================================================
   DRX.BOT Official Website - Premium Studio Gold (Neo-Bento)
   Base Stylesheet: Variables, Reset, Typography, Header, Footer, Home Page
   ========================================================================== */

:root {
  /* Studio Gold Theme */
  --primary: #d97706; /* Deep Gold */
  --secondary: #fbbf24; /* Amber Gold */
  --cta: #eab308; /* Bright action element */
  --bg-dark: #111827; /* Gray 900 */
  --bg-darker: #030712; /* Gray 950 */
  --bg-card: rgba(31, 41, 55, 0.7); /* Gray 800 with opacity */

  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: rgba(243, 244, 246, 0.75);
  --text-muted: rgba(243, 244, 246, 0.5);

  /* Effects */
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(251, 191, 36, 0.15);
  --neon-glow: 0 0 15px rgba(251, 191, 36, 0.3);
  --cta-glow: 0 0 20px rgba(234, 179, 8, 0.4);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --bg-gradient: radial-gradient(circle at top right, #1f2937 0%, #030712 60%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

/* ===================================
   Base System
   ================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark) var(--bg-gradient) no-repeat scroll 0 0;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Global Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

/* Buttons */
.btn, .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  box-shadow: var(--cta-glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
  color: #000;
  text-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(251, 191, 36, 0.05);
}

/* ===================================
   Header & Navigation
   ================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(3, 7, 18, 0.95);
  border-bottom-color: rgba(251, 191, 36, 0.22);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  gap: 1.5rem;
}

.site-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo:hover {
  text-shadow: none;
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  text-shadow: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.nav-badge-version {
  border: 1px solid var(--glass-border);
  background: rgba(251, 191, 36, 0.08);
  color: var(--secondary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link-buy {
  background: var(--primary-gradient);
  color: #000 !important;
  font-weight: 700;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
  color: #000 !important;
  text-shadow: none;
}

.hero-purchase-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--secondary);
  font-weight: 500;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(251, 191, 36, 0.08);
}

.lang-btn.active {
  background: var(--primary-gradient);
  color: #000;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: 1px;
}

/* ===================================
   Home Page: Product Overview & Modules
   ================================== */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: #fff;
  line-height: 1.15;
  text-shadow: var(--neon-glow);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.announcement-link {
  color: #7dd3fc;
  font-weight: 700;
}

.announcement-link:hover {
  color: #fff;
}

.section-eyebrow {
  color: #7dd3fc;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Product Hero & Shared Module Catalog */
.product-hero {
  padding: 8.5rem 0 4rem;
  background: radial-gradient(ellipse at 80% 35%, rgba(56, 189, 248, 0.08), transparent 55%);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.product-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
  letter-spacing: -0.035em;
}

.product-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.product-hero .hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.product-platforms {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-platforms li {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.product-latest {
  padding: 2rem;
  background: linear-gradient(145deg, rgba(14, 50, 70, 0.6), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
}

.product-latest-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.product-latest-heading time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-latest h2 {
  font-size: 1.8rem;
  margin: 1.5rem 0 0.8rem;
  color: #fff;
}

.product-latest > p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.product-latest-links {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.product-latest-links a {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.product-latest-links a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-latest-links a:hover {
  color: #7dd3fc;
}

.product-modules {
  padding: 2rem 0 4rem;
  scroll-margin-top: 90px;
}

.product-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-module {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.75);
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-module.is-recent {
  background: linear-gradient(145deg, rgba(14, 50, 70, 0.22), rgba(17, 24, 39, 0.75));
  border-color: rgba(56, 189, 248, 0.25);
}

.product-module:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  color: var(--text-primary);
}

.product-module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 1rem;
}

.product-module-icon {
  font-size: 1.5rem;
  color: var(--secondary);
}

.product-new {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}

.product-module h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.product-module p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-module-link {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}

.product-catalog-link {
  text-align: center;
  margin-top: 1.75rem;
}

.product-catalog-link a {
  color: var(--secondary);
  font-weight: 600;
}

/* Latest News & Blog */
.updates-section {
  padding: 0 0 var(--spacing-lg);
}

.updates-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.updates-header h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.updates-header p {
  max-width: 480px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: right;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1rem;
}

.update-feature-card,
.update-list-card {
  min-height: 220px;
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.update-feature-card {
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(145deg, rgba(14, 50, 70, 0.7), rgba(17, 24, 39, 0.92));
}

.update-feature-card h3,
.update-list-card h3 {
  margin: 1rem 0 0.75rem;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.35;
}

.update-feature-card p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.update-card-meta,
.update-list-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.update-card-meta time,
.update-list-link time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.update-badge {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
}

.update-list-heading h3 {
  flex: 1;
  margin: 0;
}

.update-list-heading a {
  color: var(--secondary);
  font-size: 0.8rem;
  white-space: nowrap;
}

.update-list-icon {
  color: var(--secondary);
  font-size: 1.35rem;
}

.update-list {
  margin-top: 1.25rem;
  list-style: none;
}

.update-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.update-list .update-list-link {
  gap: 0.35rem;
  margin-top: 0;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.update-list-link {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.55;
}

.update-list-link:hover strong {
  color: var(--secondary);
}

/* Quick Start Panel */
.product-start {
  padding: 0 0 4rem;
}

.product-start-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem;
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.product-start-panel h2 {
  font-size: 1.8rem;
  margin: 0.65rem 0;
}

.product-start-panel p {
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.product-start-panel .hero-actions {
  flex-wrap: wrap;
}

.product-module:focus-visible,
.product-latest a:focus-visible,
.feature-jump-links a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 4px;
}

/* ===================================
   Footer
   ================================== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(3px);
  display: inline-block;
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===================================
   Responsive Breakpoints
   ================================== */
@media (max-width: 1000px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-hero {
    padding-top: 7rem;
  }
  .product-hero-copy {
    max-width: 760px;
  }
  .product-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .updates-grid {
    grid-template-columns: 1fr 1fr;
  }
  .update-feature-card {
    grid-column: span 2;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 7, 18, 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1.2rem;
  }
  .main-nav.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .updates-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .updates-header p {
    text-align: left;
  }
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .update-feature-card {
    grid-column: auto;
  }
  .announcement-link {
    padding: 0.5rem 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .product-hero {
    padding: 6.5rem 0 2rem;
  }
  .product-module-grid {
    grid-template-columns: 1fr;
  }
  .product-latest,
  .product-module,
  .product-start-panel {
    padding: 1.5rem;
  }
  .product-hero .hero-actions,
  .product-start-panel .hero-actions {
    width: 100%;
  }
  .product-hero .btn,
  .product-start-panel .btn {
    flex: 1 1 auto;
  }
  .product-modules .updates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .product-modules .updates-header p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-module,
  .feature-detail {
    transition: none;
  }
  .product-module:hover,
  .feature-detail:hover {
    transform: none;
  }
}

/* ==========================================================================
   Referral Promo Section (Studio Gold & Cyan Neo-Bento)
   ========================================================================== */
.nav-link-promo {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: var(--secondary) !important;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-link-promo:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--secondary);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
  color: #fff !important;
}

.referral-promo-section {
  padding: 1rem 0 3.5rem;
  scroll-margin-top: 90px;
}

.referral-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.referral-bento-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.referral-bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.referral-bento-card.is-gold {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.24), rgba(17, 24, 39, 0.92));
}

.referral-bento-card.is-cyan {
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(145deg, rgba(14, 50, 70, 0.65), rgba(17, 24, 39, 0.92));
}

.referral-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.referral-pill-gold {
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.referral-stat-big {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--secondary);
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
  margin-bottom: 0.5rem;
}

.referral-stat-big.is-cyan {
  color: #7dd3fc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.referral-bento-card h3 {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.referral-bento-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.referral-how-panel {
  padding: 2rem 2.25rem;
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.referral-steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.referral-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--secondary);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.referral-step-body h4 {
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.referral-step-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.referral-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.referral-terms {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
  margin: 0;
}

.referral-terms strong {
  color: var(--secondary);
}

@media (max-width: 960px) {
  .referral-bento-grid,
  .referral-steps-row {
    grid-template-columns: 1fr;
  }
  .referral-how-panel {
    padding: 1.5rem;
  }
  .referral-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .referral-bottom-bar .btn {
    width: 100%;
  }
}


