/* ==========================================================================
   UPGRADE GLOBAL - MONERO (XMR) P2P & INSTANT SWAP DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-surface: #0b0f19;
  --bg-card: rgba(15, 20, 31, 0.78);
  --bg-card-hover: rgba(22, 29, 45, 0.9);
  --bg-input: #080c14;
  
  --xmr-orange: #ff6600;
  --xmr-orange-glow: rgba(255, 102, 0, 0.35);
  --xmr-orange-hover: #ff7d26;
  --xmr-orange-dark: #d95500;
  
  --accent-cyan: #00f2fe;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 102, 0, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(255, 102, 0, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 102, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 242, 254, 0.05) 0%, transparent 50%),
    linear-gradient(to bottom, #07090e, #0a0d14);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--xmr-orange);
}

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

/* ==========================================================================
   TOP TOR ANNOUNCEMENT BANNER
   ========================================================================== */
.tor-top-banner {
  background: linear-gradient(90deg, #130a21 0%, #1e1338 50%, #130a21 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #e9d5ff;
}

.tor-top-banner strong {
  color: #c084fc;
}

.tor-onion-tag {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #f3e8ff;
}

.btn-mini-copy {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mini-copy:hover {
  background: #a855f7;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #ff7a1a 0%, #ff6600 70%, #d45200 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
  font-weight: 900;
  font-size: 24px;
  color: white;
  letter-spacing: -1px;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text span {
  color: var(--xmr-orange);
  font-size: 13px;
  text-transform: uppercase;
  background: rgba(255, 102, 0, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 102, 0, 0.25);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--xmr-orange);
  background: rgba(255, 102, 0, 0.08);
}

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

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   NAVIGATION TAB BAR (P2P vs INSTANT SWAP vs ATOMIC vs LEGAL)
   ========================================================================== */
.view-tabs-container {
  padding: 24px 0 0;
  display: flex;
  justify-content: center;
}

.view-tabs {
  display: flex;
  background: #0f1422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 4px;
  max-width: 900px;
  width: 100%;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff6600 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HERO & SWAP WIDGET
   ========================================================================== */
.hero-section {
  padding: 40px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h2 .highlight-gradient {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff6600 50%, #f7931a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.trust-item i {
  color: var(--xmr-orange);
}

/* SWAP CARD */
.swap-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.swap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--xmr-orange), transparent);
}

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

.swap-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-indicator {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.price-indicator strong {
  color: var(--xmr-orange);
}

.input-block {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.input-block:focus-within {
  border-color: var(--xmr-orange);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.currency-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  width: 100%;
  outline: none;
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #172033;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.currency-selector:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.2);
}

.currency-selector select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.currency-selector select option {
  background: #0f172a;
  color: white;
}

.swap-direction-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -6px auto;
  position: relative;
  z-index: 10;
  background: #172033;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  color: var(--xmr-orange);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.swap-direction-btn:hover {
  transform: rotate(180deg) scale(1.1);
  background: var(--xmr-orange);
  color: #07090e;
}

.address-block {
  margin-top: 14px;
  margin-bottom: 20px;
}

.address-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.address-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.address-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 44px 13px 16px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.address-input:focus {
  border-color: var(--xmr-orange);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.address-status-icon {
  position: absolute;
  right: 14px;
  color: var(--text-dim);
  font-size: 16px;
}

.address-status-icon.valid {
  color: var(--accent-green);
}

.address-status-icon.invalid {
  color: var(--accent-red);
}

.address-help {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.swap-summary {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-label {
  color: var(--text-dim);
}

.summary-value {
  color: var(--text-main);
  font-weight: 600;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #ff7a1a 0%, #ff6600 50%, #d45200 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(255, 102, 0, 0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(255, 102, 0, 0.7);
}

/* ==========================================================================
   P2P MARKETPLACE STYLES
   ========================================================================== */
.p2p-section {
  padding: 40px 0 80px;
}

.p2p-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p2p-type-switch {
  display: flex;
  background: #090e18;
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-subtle);
}

.p2p-type-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.p2p-type-btn.active.buy {
  background: var(--accent-green);
  color: white;
}

.p2p-type-btn.active.sell {
  background: var(--xmr-orange);
  color: white;
}

.p2p-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p2p-select {
  background: #090e18;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.btn-create-offer {
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.4);
  color: var(--xmr-orange);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-create-offer:hover {
  background: var(--xmr-orange);
  color: white;
}

/* P2P OFFERS TABLE / CARDS */
.p2p-offers-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p2p-offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.8fr 1.6fr 1.2fr 1.2fr 1fr;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.p2p-offer-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 102, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.7);
}

.trader-info-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--xmr-orange);
  font-size: 18px;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.trader-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
}

.trader-stats-row {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  margin-top: 3px;
}

.rep-badge {
  color: var(--accent-green);
  font-weight: 700;
}

.payment-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.price-block .p2p-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.price-block .margin-tag {
  font-size: 12px;
  color: var(--text-dim);
}

.limits-block {
  font-size: 13px;
  color: var(--text-muted);
}

.limits-block strong {
  color: var(--text-main);
  display: block;
}

.btn-trade {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff6600 100%);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.btn-trade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.btn-trade.buy-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-trade.buy-btn:hover {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   ATOMIC SWAPS & TECHNOLOGY TAB
   ========================================================================== */
.atomic-section {
  padding: 40px 0 80px;
}

.atomic-banner {
  background: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.12) 0%, rgba(15, 20, 31, 0.8) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.atomic-diagram {
  background: #090e18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.atomic-step-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
  border-left: 3px solid var(--xmr-orange);
}

.atomic-step-box:last-child {
  margin-bottom: 0;
  border-left-color: var(--accent-cyan);
}

.atomic-step-num {
  width: 32px;
  height: 32px;
  background: #172033;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--xmr-orange);
}

/* ==========================================================================
   LEGAL / MICA / PRIVACY SECTION
   ========================================================================== */
.legal-section {
  padding: 40px 0 80px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.legal-card h4 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card h4 i {
  color: var(--xmr-orange);
}

.legal-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-card ul {
  list-style: none;
  margin-top: 16px;
}

.legal-card li {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legal-card li i {
  color: var(--accent-green);
  margin-top: 4px;
}

/* ==========================================================================
   STATS TICKER
   ========================================================================== */
.stats-banner {
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
  margin: 30px 0;
}

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

.stat-item h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item .stat-value.highlight {
  color: var(--xmr-orange);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #0f1524;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 102, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 6px;
}

.order-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.order-badge {
  background: rgba(255, 102, 0, 0.15);
  color: var(--xmr-orange);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.timer-pill {
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 5px;
}

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}

.qr-canvas-container {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.copy-field-wrap {
  background: #090d17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.copy-field-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.copy-field-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copy-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--xmr-orange);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--xmr-orange);
  color: #07090e;
}

.status-tracker-box {
  background: rgba(255, 102, 0, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 102, 0, 0.2);
  border-top-color: var(--xmr-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
  margin-top: 60px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 360px;
  margin-top: 14px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--xmr-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .p2p-offer-card {
    grid-template-columns: 1fr 1fr;
  }
  .atomic-banner {
    grid-template-columns: 1fr;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero-content h2 {
    font-size: 32px;
  }
  .p2p-offer-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .view-tabs {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .tab-btn {
    border-radius: var(--radius-sm);
  }
}
