:root {
  /* Brand Core Colors */
  --color-ember: #fc5000;
  --color-plasma-violet: #524ae9;
  --color-sulfur: #f5f28e;
  
  /* Light Theme (Day Mode) Default */
  --color-limestone: #f7f6f2;
  --color-pumice: #e2e2df;
  --color-obsidian: #070607;
  --color-chalk: #ffffff;
  --color-card-border: transparent;
  --color-subtext: rgba(7, 6, 7, 0.78);
  --color-code-bg: #0b0a0e;
  --color-code-border: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: "PP Neue Corp Compact", "Bebas Neue", Anton, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography Scale */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 26px;
  --text-heading-sm: 30px;
  --text-heading: 32px;
  --text-heading-lg: 48px;
  --text-heading-2xl: 80px;
  --text-heading-3xl: 96px;
  --text-display: 189px;

  /* Radii */
  --radius-cards: 36px;
  --radius-pills: 800px;
  --radius-inputs: 100px;
  --radius-medium: 20px;
  --radius-small: 16px;

  /* Layout */
  --page-max-width: 1240px;
  --section-gap: 72px;
  --card-padding: 36px;
}

/* Dark Theme (Night Mode) - via explicit data-theme or system media query */
[data-theme="dark"] {
  --color-limestone: #151419;
  --color-pumice: #0a090c;
  --color-obsidian: #f5f4f0;
  --color-chalk: #ffffff;
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-subtext: rgba(245, 244, 240, 0.72);
  --color-code-bg: #09080c;
  --color-code-border: rgba(255, 255, 255, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-limestone: #151419;
    --color-pumice: #0a090c;
    --color-obsidian: #f5f4f0;
    --color-chalk: #ffffff;
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-subtext: rgba(245, 244, 240, 0.72);
    --color-code-bg: #09080c;
    --color-code-border: rgba(255, 255, 255, 0.14);
  }
}

/* Base Reset & Background */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-pumice);
  color: var(--color-obsidian);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.font-body {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Responsive display scale & typography hierarchy */
.hero-title {
  font-size: clamp(38px, 9.5vw, 130px);
  line-height: 0.94;
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  max-width: 660px;
  margin-top: 18px;
  color: rgba(7, 6, 7, 0.82);
  line-height: 1.6;
  font-weight: 450;
}

.hero-card-title {
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.hero-card-desc {
  font-size: clamp(14px, 1.4vw, 15.5px);
  line-height: 1.6;
  opacity: 0.95;
}

.stat-metric {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 8px;
}

.stat-label-dark {
  opacity: 0.65;
  color: var(--color-obsidian);
}

.stat-desc {
  font-size: 14.5px;
  opacity: 0.92;
  margin-top: 10px;
  line-height: 1.55;
}

.stat-desc-dark {
  color: rgba(7, 6, 7, 0.75);
  opacity: 1;
}

.step-num {
  font-size: 44px;
  color: var(--color-ember);
  line-height: 1;
}

.step-title {
  font-size: 24px;
  line-height: 1.15;
  margin: 14px 0 8px 0;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 14.5px;
  color: rgba(7, 6, 7, 0.78);
  line-height: 1.6;
}

.text-obsidian {
  color: var(--color-obsidian) !important;
}

/* Brand Identity & Logo Components */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.brand-logo:hover {
  opacity: 0.92;
}

.brand-logo-mark {
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--color-obsidian);
  font-size: 28px;
  text-transform: uppercase;
}

.brand-text .brand-accent {
  color: var(--color-ember);
}

.brand-text-dark {
  color: var(--color-chalk) !important;
}

/* Containers */
.caldera-container,
.hizzpay-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-ember);
  color: #070607;
  border-radius: var(--radius-pills);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(252, 80, 0, 0.25);
  user-select: none;
}

.btn-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 80, 0, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-obsidian);
  border: 1.5px solid var(--color-obsidian);
  border-radius: var(--radius-pills);
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-secondary:hover {
  background-color: rgba(7, 6, 7, 0.06);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-chalk);
  border: 1.5px solid var(--color-chalk);
  border-radius: var(--radius-pills);
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Cards & Surfaces */
.card-limestone {
  background-color: var(--color-limestone);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: 0 10px 30px rgba(7, 6, 7, 0.04);
}

.card-ember {
  background-color: var(--color-ember);
  color: var(--color-chalk);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: 0 14px 40px rgba(252, 80, 0, 0.22);
}

.card-violet {
  background-color: var(--color-plasma-violet);
  color: var(--color-chalk);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
}

.card-obsidian {
  background-color: #070607;
  color: #ffffff;
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: 0 20px 50px rgba(7, 6, 7, 0.35);
}

[data-theme="dark"] .card-obsidian,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-obsidian {
    background-color: #121116;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  }
}

/* Badges */
.badge-sulfur {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-sulfur);
  color: #070607 !important;
  border-radius: var(--radius-pills);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  user-select: none;
}

.badge-ember {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-ember);
  color: #ffffff;
  border-radius: var(--radius-pills);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  user-select: none;
}

.badge-obsidian {
  display: inline-flex;
  align-items: center;
  background-color: #070607;
  color: #ffffff;
  border-radius: var(--radius-pills);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  user-select: none;
}

[data-theme="dark"] .badge-obsidian,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-obsidian {
    background-color: #24232b;
    color: #f5f4f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Form Inputs */
.input-pill {
  width: 100%;
  background-color: var(--color-limestone);
  border: 1.5px solid rgba(7, 6, 7, 0.12);
  border-radius: var(--radius-inputs);
  padding: 13px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-obsidian);
  outline: none;
  transition: all 0.2s ease;
}

.input-pill:focus {
  border-color: var(--color-ember);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(252, 80, 0, 0.12);
}

.input-pill-dark {
  width: 100%;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-inputs);
  padding: 13px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-chalk);
  outline: none;
  transition: all 0.2s ease;
}

.input-pill-dark:focus {
  border-color: var(--color-sulfur);
  box-shadow: 0 0 0 4px rgba(245, 242, 142, 0.15);
}

.input-pill-dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Halftone Hero Motif */
.hero-halftone {
  position: relative;
  background: linear-gradient(135deg, var(--color-plasma-violet) 0%, var(--color-ember) 100%);
  border-radius: var(--radius-cards);
  overflow: hidden;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  margin-top: 36px;
  margin-bottom: 56px;
  box-shadow: 0 20px 50px rgba(82, 74, 233, 0.22);
  box-sizing: border-box;
}

.hero-halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(252, 80, 0, 0.9) 2px, transparent 2px);
  background-size: 10px 10px;
  opacity: 0.55;
  pointer-events: none;
}

/* Dotted Divider */
.dotted-divider {
  border: none;
  border-top: 1.5px dotted var(--color-obsidian);
  margin: 36px 0;
}

.dotted-divider-vertical {
  border: none;
  border-left: 1.5px dotted var(--color-obsidian);
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 12px;
}

/* Pill Navigation Header */
.nav-pill {
  background-color: var(--color-limestone);
  border-radius: var(--radius-pills);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 6px 20px rgba(7, 6, 7, 0.05);
}

.desktop-nav-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-cluster {
  display: none !important;
  align-items: center;
  gap: 8px;
}

.mobile-nav-btn {
  background: var(--color-pumice);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-obsidian);
  transition: all 0.2s ease;
}

.mobile-nav-btn:hover {
  background: rgba(7, 6, 7, 0.12);
}

.mobile-nav-btn:active {
  transform: scale(0.92);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--color-limestone);
  padding: 24px 20px;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(7, 6, 7, 0.22);
  border: 1.5px solid var(--color-pumice);
  z-index: 1000;
  animation: calderaDropdown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-drawer a {
  display: block;
  color: var(--color-obsidian);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 14px;
  transition: all 0.15s ease;
}

.mobile-nav-drawer a:hover {
  background: var(--color-pumice);
  color: var(--color-ember);
}

/* Landing Page Responsive Classes */
.landing-section {
  margin-bottom: 72px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.code-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

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

/* SVG Icon alignment */
.inline-svg {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
}

/* Language Switcher Component */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-pumice);
  border-radius: var(--radius-pills);
  padding: 4px 10px;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(7, 6, 7, 0.08);
  user-select: none;
}

.lang-switcher-pill .lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pills);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(7, 6, 7, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher-pill .lang-btn:hover {
  color: var(--color-obsidian);
}

.lang-switcher-pill .lang-btn.active {
  background: var(--color-obsidian);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(7, 6, 7, 0.2);
}

.lang-switcher-pill .lang-sep {
  color: rgba(7, 6, 7, 0.25);
  font-size: 10px;
}

[data-theme="dark"] .lang-switcher-pill,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang-switcher-pill {
    background: #1e1d24;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  :root:not([data-theme="light"]) .lang-switcher-pill .lang-btn {
    color: rgba(245, 244, 240, 0.6);
  }
  :root:not([data-theme="light"]) .lang-switcher-pill .lang-btn:hover {
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .lang-switcher-pill .lang-btn.active {
    background: var(--color-ember);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(252, 80, 0, 0.35);
  }
  :root:not([data-theme="light"]) .lang-switcher-pill .lang-sep {
    color: rgba(255, 255, 255, 0.2);
  }
}

/* Spacing & Layout Utilities (Zero-Conflict) */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mb-10 { margin-bottom: 40px !important; }
.mb-12 { margin-bottom: 48px !important; }
.mb-16 { margin-bottom: 64px !important; }
.mb-20 { margin-bottom: 80px !important; }

.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mt-12 { margin-top: 48px !important; }
.mt-16 { margin-top: 64px !important; }

.my-4 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-6 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-8 { margin-top: 32px !important; margin-bottom: 32px !important; }
.my-12 { margin-top: 48px !important; margin-bottom: 48px !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-6 { padding: 24px !important; }
.p-8 { padding: 32px !important; }

.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-6 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-8 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }

.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-6 { padding-left: 24px !important; padding-right: 24px !important; }
.px-8 { padding-left: 32px !important; padding-right: 32px !important; }

.pt-8 { padding-top: 32px !important; }
.pb-12 { padding-bottom: 48px !important; }

/* Flex & Grid Utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }

.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-6 { gap: 24px !important; }
.gap-8 { gap: 32px !important; }

.w-full { width: 100% !important; }
.max-w-full { max-width: 100% !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First, Tablet, Laptop, Desktop)
   ============================================================================== */

/* Desktop Viewport (>= 1150px) */
@media (min-width: 1150px) {
  .desktop-nav-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .mobile-nav-cluster {
    display: none !important;
  }
  .mobile-nav-drawer,
  .mobile-nav-drawer.open {
    display: none !important;
  }
}

/* Tablet, Laptop & Mobile (< 1150px) */
@media (max-width: 1149px) {
  .desktop-nav-cluster {
    display: none !important;
  }
  .mobile-nav-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .mobile-nav-drawer.open {
    display: flex !important;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 767px) {
  :root {
    --card-padding: 22px;
    --radius-cards: 24px;
    --section-gap: 44px;
  }

  body {
    font-size: 15px;
  }

  .caldera-container,
  .hizzpay-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nav-pill {
    padding: 8px 16px !important;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Responsive Spacing Overrides */
  .mb-16 { margin-bottom: 40px !important; }
  .mb-12 { margin-bottom: 32px !important; }
  .mb-8  { margin-bottom: 24px !important; }
  .py-6  { padding-top: 14px !important; padding-bottom: 14px !important; }
  .py-12 { padding-top: 24px !important; padding-bottom: 24px !important; }

  /* Hero Section Mobile */
  .hero-title {
    font-size: clamp(36px, 11vw, 68px) !important;
    line-height: 0.96 !important;
  }

  .hero-halftone {
    min-height: 220px !important;
    height: auto !important;
    padding: 22px 18px !important;
    margin-top: 24px !important;
    margin-bottom: 36px !important;
  }

  .hero-halftone h2 {
    font-size: 32px !important;
  }

  /* Buttons on mobile */
  .btn-primary, .btn-secondary, .btn-outline-white {
    padding: 11px 20px;
    font-size: 14px;
  }

  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }

  .landing-section {
    margin-bottom: 48px !important;
  }

  .section-heading {
    margin-bottom: 20px !important;
  }

  .hero-btn-group {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .hero-btn-group a,
  .hero-btn-group button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
  }

  .code-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .code-actions a,
  .code-actions button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .footer-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Code block on mobile */
  .code-block {
    padding: 16px !important;
    font-size: 12px !important;
  }

  table th, table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .font-display {
    line-height: 0.98 !important;
  }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
  .nav-pill .badge-sulfur {
    display: none !important;
  }
  .card-limestone, .card-ember, .card-obsidian, .card-violet {
    padding: 20px 16px !important;
  }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 379px) {
  :root {
    --card-padding: 18px;
    --radius-cards: 20px;
  }

  .caldera-container,
  .hizzpay-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-title {
    font-size: 34px !important;
  }
}

@keyframes calderaDropdown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated Error Surface Styles */
.error-canvas {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #070607;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 32px 16px;
}
.error-magma-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 80, 0, 0.28) 0%, rgba(245, 242, 142, 0.08) 40%, rgba(7, 6, 7, 0) 70%);
  filter: blur(40px);
  animation: magmaPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
.error-card {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  background: rgba(20, 19, 21, 0.88);
  border: 1.5px solid rgba(252, 80, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-cards);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(252, 80, 0, 0.15);
}
.error-code-glitch {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 150px);
  line-height: 0.9;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(252, 80, 0, 0.6), 0 0 60px rgba(252, 80, 0, 0.3);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.error-svg-ring {
  animation: ringRotate 24s linear infinite;
  transform-origin: center;
}
.error-svg-pulse {
  animation: ringPulse 3s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes magmaPulse {
  0% {
    transform: scale(0.85) translate(-10%, -10%);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15) translate(10%, 10%);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.9) translate(-5%, 5%);
    opacity: 0.6;
  }
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ringPulse {
  0% { transform: scale(0.97); opacity: 0.8; }
  100% { transform: scale(1.03); opacity: 1; }
}

/* ---------------------------------------------------- */
/* Official Invoice & Receipt Styles                    */
/* ---------------------------------------------------- */
.invoice-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 6, 7, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  overflow-y: auto;
}

.invoice-receipt-card {
  background: #ffffff;
  color: var(--color-obsidian);
  width: 100%;
  max-width: 640px;
  border-radius: 28px;
  border: 1.5px solid var(--color-pumice);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.invoice-receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--color-pumice);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .invoice-meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .invoice-receipt-card {
    padding: 24px 18px;
  }
}

.invoice-meta-item label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(7, 6, 7, 0.55);
  margin-bottom: 3px;
  font-weight: 600;
}

.invoice-meta-item span {
  font-weight: 600;
  color: var(--color-obsidian);
  word-break: break-word;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.invoice-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(7, 6, 7, 0.55);
  padding: 10px 12px;
  background-color: var(--color-limestone);
  border-bottom: 1.5px solid var(--color-pumice);
}

.invoice-table td {
  padding: 12px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-pumice);
  color: var(--color-obsidian);
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--color-limestone);
  border-radius: 16px;
  margin-bottom: 24px;
}

.invoice-watermark-note {
  font-size: 11px;
  color: rgba(7, 6, 7, 0.5);
  line-height: 1.5;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-pumice);
}

/* Print Stylesheet for Browser PDF Export */
@media print {
  body * {
    visibility: hidden;
  }
  
  .invoice-modal-overlay,
  #checkout-container {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    display: block !important;
  }

  .invoice-receipt-card,
  .invoice-receipt-card * {
    visibility: visible !important;
  }

  .invoice-receipt-card {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
  }

  .no-print,
  .modal-actions,
  button,
  header,
  footer,
  nav,
  .dotted-divider {
    display: none !important;
  }
}

/* ---------------------------------------------------- */
/* Theme Toggle Button & UI Controls                   */
/* ---------------------------------------------------- */
.theme-toggle-btn {
  background: transparent;
  color: var(--color-obsidian);
  border: 1.5px solid var(--color-obsidian);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-pills);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-toggle-btn:hover {
  background-color: rgba(252, 80, 0, 0.12);
  border-color: var(--color-ember);
  color: var(--color-ember);
  transform: rotate(18deg) scale(1.06);
}

[data-theme="dark"] .theme-toggle-btn,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-btn {
    color: #f5f4f0;
    border-color: rgba(255, 255, 255, 0.25);
  }
  :root:not([data-theme="light"]) .theme-toggle-btn:hover {
    border-color: var(--color-ember);
    color: var(--color-ember);
    background-color: rgba(252, 80, 0, 0.15);
  }
}

/* ---------------------------------------------------- */
/* Dark / Night Mode Comprehensive Surface Tuning      */
/* ---------------------------------------------------- */
[data-theme="dark"] .card-limestone,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-limestone {
    border: 1px solid var(--color-card-border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  }
}

[data-theme="dark"] .nav-pill,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-pill {
    border: 1px solid var(--color-card-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

[data-theme="dark"] .mobile-nav-btn,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mobile-nav-btn {
    background: #1c1b21;
    color: #f5f4f0;
  }
}

[data-theme="dark"] .mobile-nav-drawer,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mobile-nav-drawer {
    background: #141318;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  }
  :root:not([data-theme="light"]) .mobile-nav-drawer a {
    color: #f5f4f0;
  }
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .step-desc,
[data-theme="dark"] .stat-desc-dark,
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-subtitle,
  :root:not([data-theme="light"]) .step-desc,
  :root:not([data-theme="light"]) .stat-desc-dark,
  :root:not([data-theme="light"]) .legal-content p,
  :root:not([data-theme="light"]) .legal-content li {
    color: var(--color-subtext);
  }
}

[data-theme="dark"] .docs-sidebar,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .docs-sidebar {
    background: #151419;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  :root:not([data-theme="light"]) .docs-sidebar a {
    color: #f5f4f0;
  }
  :root:not([data-theme="light"]) .docs-sidebar a:hover {
    background: #201f26;
  }
}

[data-theme="dark"] .input-pill,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .input-pill {
    background-color: #1a191f;
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }
  :root:not([data-theme="light"]) .input-pill:focus {
    background-color: #212028;
    border-color: var(--color-ember);
  }
}

[data-theme="dark"] table th,
[data-theme="dark"] table td,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) table th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
  }
  :root:not([data-theme="light"]) table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ---------------------------------------------------- */
/* High-Contrast Beautiful Syntax Highlighting (Prism) */
/* ---------------------------------------------------- */
.code-block,
pre[class*="language-"] {
  background-color: #0b0a0e !important;
  color: #f3f2f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px;
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin: 14px 0 24px 0;
}

.code-block pre {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow-x: auto;
}

.code-block code,
code[class*="language-"] {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-shadow: none;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 2;
  hyphens: none;
}

/* Syntax Highlighting Color Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8b8896 !important;
  font-style: italic;
}

.token.punctuation {
  color: #d1cdd9 !important;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #ff6b81 !important; /* Coral pink / JSON keys */
  font-weight: 600;
}

.token.boolean,
.token.number {
  color: #a3e635 !important; /* Neon lime green */
  font-weight: 600;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #f5f28e !important; /* Sulfur bright yellow */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #38bdf8 !important; /* Electric cyan */
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #fc5000 !important; /* HizzPay Ember Orange */
  font-weight: 700;
}

.token.function,
.token.class-name {
  color: #c084fc !important; /* Bright violet */
  font-weight: 600;
}

.token.regex,
.token.important,
.token.variable {
  color: #fb923c !important; /* Warm amber */
}

.token.parameter {
  color: #38bdf8 !important; /* Electric cyan */
}

.token.delimiter {
  color: #fc5000 !important;
  font-weight: 700;
}

.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}
