/* ============================================================
   NARKH — Premium Persian RTL Gold Trading Platform
   Design System — style.css
   ============================================================ */

/* ============================================================
   1. FONT FACE — Vazirmatn (Self-hosted)
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:          #0d0d0d;
  --bg-1:        #111111;
  --bg-2:        #141414;
  --bg-card:     #1a1a1a;
  --bg-card-2:   #1c1c1c;

  /* Gold Palette */
  --gold:        #c9a24b;
  --gold-2:      #d4af37;
  --gold-dark:   #a07830;
  --gold-light:  #e8c97a;
  --gold-glow:   rgba(201, 162, 75, 0.15);
  --gold-border: rgba(201, 162, 75, 0.25);

  /* Text */
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --text-dim:    #666666;
  --white:       #ffffff;

  /* Borders & Shadows */
  --border:       rgba(255, 255, 255, 0.06);
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold:  0 0 30px rgba(201, 162, 75, 0.12);

  /* Radii */
  --radius:      8px;
  --radius-lg:   12px;
  --radius-pill: 100px;

  /* Type scale */
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-card: 18px;
  --fs-h2: clamp(24px, 3.5vw, 34px);
  --fs-hero: clamp(30px, 5vw, 52px);
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

/* Selection */
::selection {
  background: rgba(201, 162, 75, 0.3);
  color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 75, 0.35);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 162, 75, 0.55);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

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

.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0;
}

.navbar-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--gold);
  background: rgba(201, 162, 75, 0.08);
}

.navbar-auth {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d0d0d;
  font-weight: 600;
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 162, 75, 0.1);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  padding: 4px;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.65) 0%,
    rgba(13, 13, 13, 0.80) 60%,
    rgba(13, 13, 13, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold) 50%,
    var(--gold-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Price Widget */
.price-widget {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(201, 162, 75, 0.06);
}

.price-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.price-widget-title {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

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

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  font-size: 14px;
  color: var(--text-muted);
}

.price-buy {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

.price-sell {
  font-size: 15px;
  color: var(--text);
  text-align: left;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   8. TRUST STRIP
   ============================================================ */

.trust-strip {
  background: var(--bg-1);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

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

.stat:last-child {
  border-left: none;
}

.stat-num {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   9. FEATURES SECTION
   ============================================================ */

.features {
  background: var(--bg-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ============================================================
   9A. ECOSYSTEM SECTION
   ============================================================ */

.ecosystem {
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 162, 75, 0.08), transparent 34%),
    var(--bg);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ecosystem-card,
.role-panel-card,
.role-workflow {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(201, 162, 75, 0.06),
    0 8px 24px rgba(201, 162, 75, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.22);
}

.ecosystem-card {
  padding: 24px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.ecosystem-icon,
.role-panel-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.ecosystem-card h3,
.role-panel-card h3 {
  font-size: var(--fs-card);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.ecosystem-card p,
.role-panel-card p,
.role-workflow p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

.role-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.role-panel-card {
  padding: 24px 20px;
}

.role-workflow {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 24px;
  align-items: center;
}

.gold-panel-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 40px;
  align-items: center;
}

.role-workflow h2 {
  color: var(--gold);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.transfer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.transfer-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: 13px;
}

/* ============================================================
   10. HOW IT WORKS
   ============================================================ */

.how-it-works {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(
    to left,
    var(--gold) 0,
    var(--gold) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d0d0d;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.3);
}

.step-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin: 0 auto 12px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ============================================================
   11. PRICING SECTION
   ============================================================ */

.pricing {
  background: var(--bg-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}

.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201, 162, 75, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.plan-price {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.plan-price-free {
  font-size: 18px;
  color: #22c55e;
  font-weight: 600;
}

.plan-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-cta {
  width: 100%;
  text-align: center;
}

/* ============================================================
   12. CTA BANNER
   ============================================================ */

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: var(--bg-1);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/cta.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.5),
    rgba(13, 13, 13, 0.9)
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-line {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.site-footer h3,
.footer h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   14. UTILITY CLASSES
   ============================================================ */

.d-none {
  display: none;
}

.text-gold {
  color: var(--gold);
}

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

/* ============================================================
   15. RESPONSIVE — 1200px
   ============================================================ */

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .role-panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   16. RESPONSIVE — 900px
   ============================================================ */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-workflow {
    grid-template-columns: 1fr;
  }

  .gold-panel-intro {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--border);
  }

  /* Remove left borders on second column in 2-col layout */
  .stat:nth-child(even) {
    border-left: none;
  }

  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ============================================================
   17. RESPONSIVE — 600px (Mobile / 390px safe)
   ============================================================ */

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: 60px 16px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid,
  .role-panel-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-widget {
    padding: 20px 16px;
  }

  /* Hamburger menu */
  .hamburger {
    display: block;
  }

  .navbar-nav,
  .navbar-auth {
    display: none;
  }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.98);
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--gold-border);
    gap: 4px;
  }

  .navbar-nav.open ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .navbar-nav.open a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  .navbar-auth.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px 20px;
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.98);
    z-index: 998;
    gap: 10px;
  }

  .navbar-auth.open .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 22px;
  }

  .footer-grid {
    gap: 24px;
  }

  .trust-badges {
    gap: 10px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================================
   18. PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: var(--bg-1);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,9,0,.92) 0%, rgba(26,17,8,.88) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================================
   19. TWO-COLUMN GRID (about, wallet, credit)
   ============================================================ */

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-text { order: 1; }
.two-col-img  { order: 2; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-icon {
  color: var(--gold);
  font-size: 10px;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============================================================
   20. SHOP
   ============================================================ */

.cat-tabs {
  display: flex;
  gap: 4px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.cat-tab:hover  { color: var(--text); }
.cat-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.shop-card-img-link { display: block; }

.shop-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-2);
}

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

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

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

.shop-card-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.shop-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.shop-card-name a { color: inherit; }
.shop-card-name a:hover { color: var(--gold); }

.shop-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.shop-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================================
   21. PRODUCT DETAIL
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery {}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 12px;
  aspect-ratio: 4/3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s;
  aspect-ratio: 1;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }

.product-info {}

.product-price-box {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.product-price {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--gold);
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-border);
}

textarea.form-input { resize: vertical; }

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-opt {
  cursor: pointer;
}

.size-opt input[type="radio"] { display: none; }

.size-opt span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.size-opt input[type="radio"]:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.size-opt:hover span { border-color: var(--gold-border); color: var(--text); }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text);
  font-size: 18px;
  width: 40px;
  height: 42px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--gold-glow); color: var(--gold); }

.qty-input {
  width: 56px;
  height: 42px;
  text-align: center;
  background: var(--bg-1);
  border: none;
  border-right: 1px solid rgba(255,255,255,.08);
  border-left: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.product-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}

.product-meta span:first-child {
  color: var(--text-dim);
  margin-left: 8px;
}

/* ============================================================
   22. CART
   ============================================================ */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.cart-table th {
  text-align: right;
  padding: 12px 0;
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.cart-row td {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.qty-form { display: inline-block; }

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.cart-remove-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--text-muted);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   23. CHECKOUT
   ============================================================ */

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkout-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   24. ACCOUNT
   ============================================================ */

.account-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {}

.account-main {}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ============================================================
   25. FLASH MESSAGES
   ============================================================ */

.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.6;
}

.flash p { margin: 4px 0 0; }
.flash p:first-child { margin-top: 0; }

.flash-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.flash-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ============================================================
   26. NAVBAR CART BADGE
   ============================================================ */

.navbar-cart {
  position: relative;
  padding: 8px 14px;
}

.cart-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   28. RESPONSIVE — new components
   ============================================================ */

@media (max-width: 1100px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col-img { order: -1; }
}

@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .cart-table th:last-child, .cart-row td:last-child { display: none; }
  .checkout-form { padding: 20px; }
  .account-card { padding: 16px; }
}

/* ============================================================
   29. ALIAS & MISSING CLASSES
   ============================================================ */

/* Step aliases (HTML uses step-card/step-number, CSS has step/step-num) */
.step-card { text-align: center; padding: 24px 16px; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0d0d0d; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.3);
}

/* Plan image wrapper */
.plan-img-wrap {
  width: 100%; height: 160px; border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
  border: 1px solid var(--border);
}
.plan-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-body { /* no extra padding needed */ }

/* Button variants */
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover { background: rgba(201, 162, 75, 0.1); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-block { width: 100%; justify-content: center; }

/* Nav link class (used on navbar anchors) */
.nav-link { display: block; padding: 8px 14px; border-radius: 6px; font-size: 14.5px; color: var(--text-muted); transition: color 0.2s, background 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201,162,75,0.08); }

/* Footer aliases */
.footer-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; color: var(--gold); }
.footer-phone { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-heading { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.footer-address { font-style: normal; color: var(--text-muted); font-size: 14px; line-height: 2; }
.footer-address a { color: var(--text-muted); transition: color 0.2s; }
.footer-address a:hover { color: var(--gold); }
.footer-nav { }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copyright { font-size: 13px; color: var(--text-dim); text-align: center; }
.footer-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
