/* ==============================================================================
   Piconero.cc — High-Performance Glassmorphism & Cyber Privacy Design System
   PHP 8.3 Optimized • Zero Bloat • Mobile First • Native Glass UI
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Overpass:wght@400;600;700;800;900&display=swap');

:root {
  --bg-base: #06080C;
  --bg-surface: #0B0F17;
  --bg-card: rgba(14, 20, 31, 0.72);
  --bg-card-hover: rgba(20, 28, 44, 0.82);
  --bg-card-solid: #0E1522;
  --bg-input: rgba(8, 12, 18, 0.85);
  --bg-input-focus: rgba(12, 17, 26, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(255, 102, 0, 0.35);
  
  --pico-orange: #FF6600;
  --pico-orange-light: #FF8533;
  --pico-orange-glow: rgba(255, 102, 0, 0.28);
  --pico-emerald: #00F0AA;
  --pico-emerald-glow: rgba(0, 240, 170, 0.22);
  --pico-cyan: #00D2FF;
  
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #8492A6;
  --text-subtle: #4D5B6E;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Overpass', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-subtle);
  --shadow-glow-orange: 0 0 35px -5px rgba(255, 102, 0, 0.25);
  --shadow-glow-emerald: 0 0 35px -5px rgba(0, 240, 170, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-base);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header Navigation ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 6px;
  border-radius: var(--radius-full);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-link .nav-icon {
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.nav-link:hover .nav-icon {
  color: var(--pico-orange-light);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 102, 0, 0.16);
  box-shadow: 0 0 14px rgba(255, 102, 0, 0.22);
}

.nav-link.active .nav-icon {
  color: var(--pico-orange-light);
}

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

.btn-track-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-track-order:hover {
  background: rgba(255, 102, 0, 0.14);
  border-color: var(--border-glow);
  color: var(--pico-orange-light);
}

.btn-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.btn-mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  background: rgba(8, 11, 16, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px 20px 16px;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255, 102, 0, 0.12);
  color: var(--pico-orange-light);
}

/* ─── Hero Section with Centered Luxury Privacy Dock (Option 1) ─────────── */
.hero-section {
  position: relative;
  padding: 68px 0 88px 0;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 85% at 50% 30%, rgba(6, 8, 12, 0.45) 0%, rgba(6, 8, 12, 0.90) 75%, var(--bg-base) 100%),
    url('../img/hero-bg.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Hero Split Grid Layout (Option 2 - Content Left • Exchange Form Right) */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 10;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.hero-split-grid .hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  white-space: normal;
  text-align: left;
}

.hero-split-grid .hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.55;
  max-width: 580px;
  margin: 0;
  text-align: left;
}

.hero-right-col {
  width: 100%;
}

.hero-right-col .swap-card {
  max-width: 100%;
  margin: 0;
}

@media (max-width: 1040px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right-col .swap-card {
    max-width: 540px;
    margin: 0 auto;
  }
}

/* Hero Under-Content: Real Latest Transactions (4 Rows) */
.hero-tx-box {
  background: #0B0E15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-tx-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-tx-box-title {
  font-size: 0.9375rem;
  font-weight: 750;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
}

.hero-tx-box-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-tx-list-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-tx-box .recent-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  min-height: 48px;
  background: rgba(13, 16, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.hero-tx-box .recent-tx-row:hover {
  background: rgba(22, 27, 40, 0.98);
  border-color: rgba(255, 102, 0, 0.45);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.hero-tx-box .tx-col-time {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 115px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #8E96A4;
  white-space: nowrap;
}

.hero-tx-box .tx-time-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  box-shadow: 0 0 6px #10B981;
}

.hero-tx-box .tx-col-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.hero-tx-box .tx-send-group,
.hero-tx-box .tx-receive-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tx-box .tx-amount {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #F1F3F7;
  white-space: nowrap;
}

.hero-tx-box .tx-ticker {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #FFFFFF;
  white-space: nowrap;
}

.hero-tx-box .tx-coin-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-tx-box .tx-arrow {
  color: #FF6600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0 2px;
  font-weight: 700;
}

.hero-tx-box .tx-col-duration {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 80px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #10B981;
  white-space: nowrap;
}

.hero-tx-box .tx-clock-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.85;
}

@media (max-width: 540px) {
  .hero-tx-box .recent-tx-row {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 6px;
  }
  .hero-tx-box .tx-col-time {
    width: 100%;
    order: 1;
    font-size: 0.6875rem;
  }
  .hero-tx-box .tx-col-swap {
    order: 2;
    justify-content: flex-start;
  }
  .hero-tx-box .tx-col-duration {
    order: 3;
    margin-left: auto;
  }
}

.hero-centered-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.35rem, 3.8vw, 3.35rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #FF6600 0%, #FF8533 50%, #FFA855 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 36px auto;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-metrics-centered {
  justify-content: center;
  margin-top: 36px;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid rgba(255, 102, 0, 0.22);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-val.orange { color: var(--pico-orange-light); }
.metric-val.green { color: var(--pico-emerald); }

.metric-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ─── Precision Exchange Form (Clean Monero DNA • Zero AI Glow) ───────────── */
.swap-card {
  position: relative;
  background: #0D0F14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 24px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  transition: border-color 0.2s ease;
  text-align: left;
}

.swap-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Stacked Swap Input Cards */
.swap-box-card {
  background: #07080B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.swap-box-card:focus-within {
  border-color: rgba(255, 102, 0, 0.5);
  background: #090B0F;
}

.swap-box-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.swap-box-left {
  flex: 1;
  min-width: 0;
}

.swap-box-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8F96A3;
  margin-bottom: 4px;
}

.swap-amount-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.875rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-sans);
  line-height: 1.15;
  padding: 0;
  margin: 0 0 6px 0;
}

.swap-amount-input::-webkit-inner-spin-button,
.swap-amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.swap-amount-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.swap-box-sub {
  font-size: 12.5px;
  color: #7E8695;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Coin Pill Column */
.swap-box-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.coin-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141720;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px 6px 8px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.coin-pill-btn:hover {
  background: #1B202D;
  border-color: rgba(255, 102, 0, 0.5);
}

.coin-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.coin-pill-ticker {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.coin-pill-chevron {
  color: #8F96A3;
  transition: transform 0.2s ease;
}

.coin-pill-btn:hover .coin-pill-chevron {
  color: #FFFFFF;
}

.coin-net-sub-row {
  margin-top: 5px;
  padding-right: 6px;
}

/* Center Divider with Flip Button */
.swap-card-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.swap-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.btn-flip-pair {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0D0F14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8F96A3;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  margin: 0 10px;
}

.btn-flip-pair:hover {
  border-color: #FF6600;
  color: #FFFFFF;
  background: #141720;
  transform: rotate(180deg);
}

/* Recipient Address Card */
.swap-address-card {
  background: #07080B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.swap-address-card:focus-within {
  border-color: rgba(255, 102, 0, 0.5);
  background: #090B0F;
}

.recipient-address-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  width: 100%;
}

.recipient-address-input::placeholder {
  color: #6B7280;
}

.btn-qr-scan {
  background: transparent;
  border: none;
  color: #8F96A3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.btn-qr-scan:hover {
  color: #FF6600;
}

/* Fixed Rate Switch Row */
.rate-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 4px;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  cursor: pointer;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #242936;
  border-radius: 9999px;
  transition: background-color 0.25s ease;
  display: flex;
  align-items: center;
  padding: 2px;
}

.switch-thumb {
  display: block;
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.switch-control input:checked + .switch-track {
  background-color: #FF6600;
}

.switch-control input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
}

.switch-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  user-select: none;
}

.switch-info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8F96A3;
  cursor: pointer;
  padding: 3px;
  margin: -3px 0;
  border-radius: 6px;
  transition: color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.switch-info-tooltip:hover,
.switch-info-tooltip.active,
.switch-info-tooltip:focus-visible {
  color: #FF6600;
  outline: none;
}

/* Tooltip Popover Card */
.tooltip-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: min(290px, calc(100vw - 40px));
  background: #11141D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  z-index: 200;
  text-align: left;
}

/* Hover & Active triggers */
.switch-info-tooltip:hover .tooltip-popover,
.switch-info-tooltip.active .tooltip-popover,
.switch-info-tooltip:focus-visible .tooltip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Hover bridge so moving into tooltip doesn't close it */
.tooltip-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* Tooltip Pointer Arrow */
.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #11141D;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tooltip-popover-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8E96A4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tooltip-popover-item {
  margin-bottom: 10px;
}

.tooltip-popover-item:last-of-type {
  margin-bottom: 0;
}

.tooltip-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.tooltip-badge.market {
  background: rgba(255, 102, 0, 0.15);
  color: #FFA366;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.tooltip-badge.fixed {
  background: rgba(52, 211, 153, 0.12);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tooltip-desc {
  font-size: 0.75rem;
  color: #C5CBD6;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 480px) {
  .tooltip-popover {
    left: -70px;
    transform: translateY(4px);
    width: 270px;
  }
  .switch-info-tooltip:hover .tooltip-popover,
  .switch-info-tooltip.active .tooltip-popover,
  .switch-info-tooltip:focus-visible .tooltip-popover {
    transform: translateY(0);
  }
  .tooltip-arrow {
    left: 78px;
  }
}

.rate-mode-pill {
  margin-left: auto;
  font-size: 12px;
  color: var(--pico-orange-light);
  font-weight: 600;
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.25);
  padding: 2px 10px;
  border-radius: 9999px;
}

/* Primary Execute Action Button (Monero DNA, Clean & Crisp • Zero Glow) */
.btn-exchange-action,
.btn-swap-execute {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF6600;
  border: 1px solid #FF771A;
  border-radius: 18px;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-exchange-action:hover,
.btn-swap-execute:hover {
  background: #FF771A;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-exchange-action:active,
.btn-swap-execute:active {
  transform: translateY(0);
}

/* Minimal Modern Micro-Metrics Strip (Inside Exchange Card) */
.card-micro-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.micro-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.micro-val {
  font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #F1F3F7;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.micro-lbl {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #7E8695;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .card-micro-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }
}

/* ─── Coin Selector Modal (Ultra-Fast GPU-Friendly • Styled Scrollbar) ───── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #0E1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  transform: translateZ(0);
  contain: paint;
  animation: modal-fast-in 0.15s ease-out;
}

@keyframes modal-fast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-search-box {
  padding: 16px 20px 8px 20px;
}

.modal-search-input {
  width: 100%;
  background: #07080B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
}

.modal-search-input:focus {
  border-color: var(--pico-orange);
}

/* Custom Sleek Scrollbar (Thin, Dark, Rounded) */
.modal-coins-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  overscroll-behavior: contain;
  will-change: scroll-position;
}

.modal-coins-list::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  background: transparent !important;
}

.modal-coins-list::-webkit-scrollbar-track {
  background: transparent !important;
}

.modal-coins-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
}

.modal-coins-list::-webkit-scrollbar-thumb:hover {
  background: #FF6600 !important;
}

.modal-coins-list::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.coin-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}

.coin-row .coin-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.coin-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

.coin-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-row-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.coin-row-ticker {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #FFFFFF;
}

.coin-row-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.coin-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.coin-row-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #FFFFFF;
}

.coin-network-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.coin-network-badge.XMR {
  background: rgba(255, 102, 0, 0.2);
  color: var(--pico-orange-light);
  border: 1px solid rgba(255, 102, 0, 0.35);
}

.coin-network-badge.BTC, .coin-network-badge.Native {
  background: rgba(247, 147, 26, 0.15);
  color: #F7931A;
}

.coin-network-badge.TRC-20, .coin-network-badge.TRC20 {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.coin-network-badge.ERC-20, .coin-network-badge.ERC20 {
  background: rgba(98, 126, 234, 0.15);
  color: #8C9EFF;
}

.coin-network-badge.BEP-20, .coin-network-badge.BEP20 {
  background: rgba(243, 186, 47, 0.15);
  color: #F3BA2F;
}

.coin-network-badge.SPL, .coin-network-badge.SOL {
  background: rgba(20, 241, 149, 0.15);
  color: #14F195;
}

/* ─── Network Badges ──────────────────────────────────────────────────────── */
.net-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  display: inline-block;
  font-family: var(--font-sans);
}
.net-tag.TRC20, .net-tag.TRC-20, .net-tag.TRX { background: #ff2e4b; color: #fff; }
.net-tag.ERC20, .net-tag.ERC-20, .net-tag.ETH { background: #627eea; color: #fff; }
.net-tag.BEP20, .net-tag.BEP-20, .net-tag.BSC { background: #f3ba2f; color: #000; }
.net-tag.SPL, .net-tag.SOL { background: #14f195; color: #000; }
.net-tag.TON { background: #0098ea; color: #fff; }
.net-tag.Arbitrum, .net-tag.ARB { background: #28a0f0; color: #fff; }
.net-tag.Polygon, .net-tag.POL { background: #8247e5; color: #fff; }
.net-tag.C-Chain, .net-tag.AVAX { background: #e84142; color: #fff; }
.net-tag.DASH { background: #008ce7; color: #fff; }
.net-tag.ZEC { background: #f4b728; color: #000; }
.net-tag.XMR { background: var(--pico-orange); color: #fff; }

/* ─── Recent Transactions Feed (#transactions) ────────────────────────── */
.section-recent-tx {
  position: relative;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.recent-tx-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  min-height: 56px;
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.recent-tx-row:hover {
  background: rgba(14, 18, 30, 0.96);
  border-color: rgba(255, 102, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 102, 0, 0.1);
}

/* Timestamp column (Left) */
.tx-col-time {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 150px;
  flex-shrink: 0;
  font-size: 0.84375rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tx-time-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pico-emerald);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 240, 170, 0.7);
}

/* Swap details column (Center) */
.tx-col-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.tx-send-group,
.tx-receive-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tx-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-main);
  white-space: nowrap;
}

.tx-ticker {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  white-space: nowrap;
}

.tx-coin-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tx-arrow {
  color: var(--pico-orange);
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  font-weight: 700;
}

/* Duration column (Right) */
.tx-col-duration {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 110px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--pico-emerald);
  white-space: nowrap;
}

.tx-clock-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.85;
}

/* Slide-down animation for incoming transactions */
@keyframes txSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.recent-tx-row.tx-new {
  animation: txSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-color: rgba(0, 240, 170, 0.45);
}

@media (max-width: 640px) {
  .recent-tx-row {
    padding: 10px 14px;
    gap: 8px;
    min-height: 48px;
  }
  .tx-col-time {
    width: auto;
    font-size: 0.75rem;
    min-width: 68px;
  }
  .tx-time-pulse {
    display: none;
  }
  .tx-col-swap {
    gap: 6px;
  }
  .tx-send-group, .tx-receive-group {
    gap: 5px;
  }
  .tx-amount {
    font-size: 0.8125rem;
  }
  .tx-ticker {
    font-size: 0.78125rem;
  }
  .tx-coin-img {
    width: 18px;
    height: 18px;
  }
  .tx-arrow {
    font-size: 0.75rem;
    padding: 0 1px;
  }
  .tx-col-duration {
    width: auto;
    font-size: 0.75rem;
  }
}

/* ─── Features Grid ─────────────────────────────────────────────────────── */
.section-features {
  position: relative;
  padding: 88px 0;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 85% at 50% 50%, rgba(6, 8, 12, 0.45) 0%, rgba(6, 8, 12, 0.88) 75%, var(--bg-base) 100%),
    url('../img/features-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pico-emerald);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-body);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(255, 102, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px -4px rgba(255, 102, 0, 0.15);
}

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

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pico-orange-light);
  margin-bottom: 18px;
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ─── Premium Luxury Comparison Table ─────────────────────────────────────── */
.section-compare {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 85% at 50% 50%, rgba(6, 8, 12, 0.45) 0%, rgba(6, 8, 12, 0.88) 75%, var(--bg-base) 100%),
    url('../img/compare-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.compare-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(255, 102, 0, 0.12);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.compare-table th, .compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.compare-highlight-col {
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.03) 100%);
  border-left: 1px solid rgba(255, 102, 0, 0.35);
  border-right: 1px solid rgba(255, 102, 0, 0.35);
  position: relative;
}

.pico-col-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.25), rgba(0, 240, 170, 0.2));
  border: 1px solid rgba(255, 102, 0, 0.5);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.25);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.pill-badge.pill-green {
  background: rgba(0, 240, 170, 0.12);
  color: var(--pico-emerald);
  border: 1px solid rgba(0, 240, 170, 0.35);
}

.pill-badge.pill-orange {
  background: rgba(255, 102, 0, 0.14);
  color: var(--pico-orange-light);
  border: 1px solid rgba(255, 102, 0, 0.35);
}

.pill-badge.pill-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

.pill-badge.pill-red {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ─── Premium Step Progression ───────────────────────────────────────────── */
.section-steps {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 85% at 50% 50%, rgba(6, 8, 12, 0.45) 0%, rgba(6, 8, 12, 0.88) 75%, var(--bg-base) 100%),
    url('../img/steps-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: rgba(255, 102, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px -4px rgba(255, 102, 0, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.2), rgba(255, 133, 51, 0.08));
  border: 1px solid rgba(255, 102, 0, 0.35);
  color: var(--pico-orange-light);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.step-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ─── Premium FAQ Accordion ──────────────────────────────────────────────── */
.section-faq {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 85% at 50% 50%, rgba(6, 8, 12, 0.48) 0%, rgba(6, 8, 12, 0.90) 75%, var(--bg-base) 100%),
    url('../img/faq-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
  background: rgba(18, 25, 38, 0.85);
}

.faq-item.open {
  border-color: rgba(255, 102, 0, 0.35);
  border-left: 3px solid var(--pico-orange);
  background: rgba(14, 20, 31, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 102, 0, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-main);
  transition: color 0.2s;
}

.faq-item.open .faq-question {
  color: var(--pico-orange-light);
}

.faq-answer {
  display: none;
  padding: 0 26px 24px 26px;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-caret {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-caret {
  transform: rotate(180deg);
  color: var(--pico-orange);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #040608;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 18px;
}

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

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

.footer-links a:hover {
  color: var(--pico-orange-light);
}

.footer-legal-notice {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

.footer-legal-notice .legal-company {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.footer-legal-notice .legal-address {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── Toast Notification ─────────────────────────────────────────────────── */
.pico-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid var(--pico-orange);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 102, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pico-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Order Page Specifics ──────────────────────────────────────────────── */
.order-container {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 20px;
}

.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.step-node-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-node.active .step-node-bubble {
  border-color: var(--pico-orange);
  background: rgba(255, 102, 0, 0.2);
  color: var(--pico-orange-light);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}

.step-node.completed .step-node-bubble {
  border-color: var(--pico-emerald);
  background: rgba(0, 240, 170, 0.2);
  color: var(--pico-emerald);
}

.step-node-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.order-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.deposit-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.deposit-qr-box {
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.copy-field {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
}

.copy-field input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  color: var(--text-main);
}

.copy-btn {
  color: var(--pico-orange-light);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}

.copy-btn:hover {
  background: rgba(255, 102, 0, 0.15);
}

/* ─── Responsive Media Queries ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.15rem;
    white-space: normal;
  }
  .swap-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .swap-box-card,
  .swap-address-card {
    padding: 14px 16px;
    border-radius: 14px;
  }
  .swap-amount-input {
    font-size: 1.55rem;
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
