/* ==========================================================================
   CryptoICE 5.0 — Global Crypto & Cash Exchange
   Exact Figma Visual Language + Full Mobile & Tablet Adaptation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-root: #060911;
  --bg-stage: rgba(11, 15, 25, 0.84);
  --bg-surface: rgba(16, 21, 34, 0.78);
  --bg-surface-hi: rgba(22, 29, 46, 0.88);
  --bg-input: rgba(9, 13, 22, 0.86);

  --blue-core: #2563EB;
  --blue-bright: #3B82F6;
  --blue-soft: #60A5FA;
  --blue-pale: #93C5FD;

  --text-1: #FFFFFF;
  --text-2: #8E9BAE;
  --text-3: #525E73;

  --green: #34D399;
  --orange: #F97316;
  --red: #EF4444;

  --hairline: rgba(255, 255, 255, 0.065);
  --rim-light: rgba(255, 255, 255, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-root);
  color: var(--text-1);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

/* ==========================================================================
   1. FIGMA BACKGROUND (Deep Obsidian + Orbital Rings + Soft Cobalt Spheres)
   ========================================================================== */
.ice-cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle 520px at 82% 8%, rgba(29, 78, 216, 0.24) 0%, transparent 72%),
    radial-gradient(circle 480px at 8% 78%, rgba(29, 78, 216, 0.18) 0%, transparent 72%),
    radial-gradient(circle 600px at 92% 88%, rgba(37, 99, 235, 0.2) 0%, transparent 70%),
    #060911;
}

.cosmos-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.orb-sphere {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-sphere.s1 {
  width: 110px;
  height: 110px;
  top: 8%;
  left: 11.5%;
  background: radial-gradient(circle at 32% 28%, rgba(96, 165, 250, 0.5) 0%, rgba(29, 78, 216, 0.32) 42%, rgba(6, 9, 17, 0.95) 78%);
  filter: blur(7px);
}

.orb-sphere.s2 {
  width: 220px;
  height: 220px;
  bottom: 6%;
  left: -35px;
  background: radial-gradient(circle at 68% 28%, rgba(59, 130, 246, 0.45) 0%, rgba(23, 55, 160, 0.28) 48%, rgba(6, 9, 17, 0.96) 82%);
  filter: blur(11px);
}

.orb-sphere.s3 {
  width: 170px;
  height: 170px;
  top: -35px;
  right: 17%;
  background: radial-gradient(circle at 35% 70%, rgba(96, 165, 250, 0.42) 0%, rgba(29, 78, 216, 0.25) 50%, rgba(6, 9, 17, 0.96) 84%);
  filter: blur(9px);
}

.orb-sphere.s4 {
  width: 260px;
  height: 260px;
  bottom: -65px;
  right: -55px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.38) 0%, rgba(19, 46, 138, 0.22) 55%, rgba(6, 9, 17, 0.96) 85%);
  filter: blur(14px);
}

/* ==========================================================================
   2. DESKTOP SHELL & SIDEBAR
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1560px;
  margin: 0 auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 24px 18px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 26px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-squircle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #4F86FF 0%, #2563EB 60%, #1D4ED8 100%);
  box-shadow:
    0 0 20px rgba(37, 99, 235, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-collapse {
  color: var(--text-3);
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.brand-collapse:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.menu-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 13px;
  background: rgba(16, 21, 33, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.65;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(22, 29, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.09);
}

.nav-btn.active {
  color: #fff;
  font-weight: 600;
  background:
    radial-gradient(85% 110% at 52% 105%, rgba(96, 165, 250, 0.28) 0%, rgba(29, 78, 216, 0.12) 50%, rgba(16, 21, 34, 0.9) 100%);
  border-color: rgba(147, 197, 253, 0.2);
  box-shadow: inset 0 -1px 0 rgba(191, 219, 254, 0.42);
}

.nav-btn.active svg {
  opacity: 1;
}

/* Sidebar Bottom Card (Figma "Upgrade Pro!") */
.sidebar-promo {
  margin-top: auto;
  position: relative;
  border-radius: 18px;
  padding: 18px 15px 15px;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(37, 99, 235, 0.16) 0%, rgba(13, 17, 28, 0.92) 72%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  text-align: center;
}

.sidebar-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
}

.promo-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.promo-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
  margin-bottom: 14px;
}

.promo-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #070A12;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}
.promo-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. TOPBAR (Search Capsule with CDN Coin Stack + Wallet Pill)
   ========================================================================== */
.main-area {
  display: flex;
  flex-direction: column;
  padding: 18px 28px 44px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-capsule {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 410px;
  height: 46px;
  padding: 0 12px 0 15px;
  border-radius: 13px;
  background:
    radial-gradient(75% 130% at 62% 100%, rgba(37, 99, 235, 0.24) 0%, rgba(14, 19, 32, 0.9) 75%);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.search-capsule:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
}

.search-capsule svg.search-ic {
  width: 17px;
  height: 17px;
  color: var(--text-2);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-capsule input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
}
.search-capsule input::placeholder {
  color: var(--text-2);
}

.stacked-mini-coins {
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
}

.stacked-mini-coins img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  margin-left: -6px;
  border: 1.5px solid #0A0E19;
  background: #0A0E19;
  display: block;
}
.stacked-mini-coins img:first-child {
  margin-left: 0;
}

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

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
}
.wallet-pill:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wallet-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #3B82F6 0%, #1D4ED8 62%, #0F2670 100%);
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   4. MAIN GLASS STAGE CONTAINER
   ========================================================================== */
.stage-card {
  position: relative;
  border-radius: 26px;
  padding: 26px 28px 32px;
  background:
    radial-gradient(60% 50% at 16% 94%, rgba(29, 78, 216, 0.2) 0%, transparent 70%),
    rgba(10, 14, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(22px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}

.stage-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.stage-greeting h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.stage-greeting h1 .accent-handle {
  color: #7AA2F7;
}

.stage-greeting p {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Mode Switcher Pills */
.mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.mode-tab svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}
.mode-tab:hover {
  color: #fff;
}
.mode-tab.active {
  color: #fff;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.mode-tab.active svg {
  opacity: 1;
  color: #60A5FA;
}

/* ==========================================================================
   5. EXCHANGE TERMINAL GRID (Left Cobalt Card + Right Asset List)
   ========================================================================== */
.exchange-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.cobalt-hero-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(56% 58% at 50% 22%, rgba(59, 130, 246, 0.48) 0%, rgba(29, 78, 216, 0.24) 44%, rgba(10, 14, 26, 0.95) 78%),
    #0B0F1C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.cobalt-hero-card::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  top: -180px;
  left: -110px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cobalt-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.swap-box {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: border-color 0.18s;
}
.swap-box:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
}

.swap-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.network-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.net-chip {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 2.5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.net-chip:hover {
  color: #fff;
}
.net-chip.active {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.5);
  color: #fff;
}

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

.amount-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.asset-selector-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border-radius: 12px;
  background: rgba(20, 28, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}
.asset-selector-btn:hover {
  background: rgba(28, 39, 66, 0.96);
  border-color: rgba(96, 165, 250, 0.4);
}

.cdn-token-img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.swap-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  gap: 8px;
  flex-wrap: wrap;
}

.quick-pct-row {
  display: flex;
  gap: 5px;
}
.quick-pct-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
}
.quick-pct-btn:hover {
  background: rgba(37, 99, 235, 0.22);
  color: #fff;
}

.swap-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -10px 0;
}

.flip-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #1D4ED8;
  border: 2px solid #0A0F1D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.28s ease;
}
.flip-btn:hover {
  transform: rotate(180deg);
}

/* Cash City Selector */
.location-selector-bar {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.loc-field label {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 5px;
}

.loc-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(16, 23, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.order-inputs-row {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 10px;
}

.glass-input-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.075);
  gap: 9px;
}
.glass-input-wrap:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
}
.glass-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
}
.glass-input-wrap input::placeholder {
  color: var(--text-3);
}

/* Figma Action Buttons ("Scan | Withdraw" Dark Glass Buttons) */
.hero-actions-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ice-action-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(9, 13, 24, 0.88);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s;
}
.ice-action-btn:hover {
  background: rgba(18, 26, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
}

.ice-action-btn.primary {
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(59, 130, 246, 0.45), rgba(15, 23, 44, 0.95));
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: inset 0 -1px 0 rgba(147, 197, 253, 0.4);
}
.ice-action-btn.primary:hover {
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(59, 130, 246, 0.62), rgba(20, 31, 58, 0.98));
}

/* Bottom Metrics Row inside Cobalt Card ("Found today | Hits | Best") */
.hero-metrics-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.metric-cell.center {
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.metric-cell.right {
  align-items: flex-end;
}
.metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric-label .blue-txt {
  color: #60A5FA;
}
.metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Right Asset List Panel (Exact match to Figma Screen 2 Right Card) */
.asset-list-panel {
  position: relative;
  border-radius: 24px;
  padding: 16px 20px;
  background: rgba(12, 16, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: opacity 0.15s;
}
.asset-row:last-child {
  border-bottom: none;
}
.asset-row:hover {
  opacity: 0.88;
}

.asset-row-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.asset-row-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.asset-row-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.asset-row-right {
  text-align: right;
  flex-shrink: 0;
}

.asset-row-price {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   6. NETWORK CARDS GRID (Exact Match to Figma Screen 1)
   ========================================================================== */
.section-heading {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 24px 0 14px;
}
.section-heading:first-child {
  margin-top: 0;
}
.section-heading .blue-accent {
  color: #3B82F6;
}

.networks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.net-card {
  position: relative;
  height: 188px;
  border-radius: 20px;
  padding: 20px 16px 16px;
  background:
    radial-gradient(82% 82% at 88% 16%, rgba(37, 99, 235, 0.5) 0%, rgba(19, 44, 128, 0.22) 48%, rgba(12, 16, 28, 0.95) 85%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.net-card::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  top: -36px;
  left: 38%;
  pointer-events: none;
}

.net-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  bottom: 20px;
  left: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.4), transparent 75%);
  filter: blur(3px);
  pointer-events: none;
}

.net-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.4);
}

.net-card-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.net-card-title {
  position: relative;
  z-index: 1;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.net-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}

/* Figma Micro Pills (Popular, Top profit, New, Premium) */
.micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}
.micro-pill svg {
  width: 10px;
  height: 10px;
}
.micro-pill.popular { background: #D946EF; }
.micro-pill.profit  { background: #EF4444; }
.micro-pill.new     { background: #22C55E; }
.micro-pill.vip     { background: #0EA5E9; }

/* ==========================================================================
   7. COUNTRIES & CITIES DIRECTORY
   ========================================================================== */
.country-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(15, 20, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.country-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.country-chip:hover {
  color: #fff;
}
.country-chip.active {
  color: #fff;
  font-weight: 600;
  background: radial-gradient(90% 120% at 50% 100%, rgba(37, 99, 235, 0.38), rgba(16, 24, 46, 0.94));
  border-color: rgba(96, 165, 250, 0.42);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.city-card {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(80% 80% at 90% 15%, rgba(37, 99, 235, 0.3) 0%, rgba(12, 17, 30, 0.94) 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: border-color 0.2s, transform 0.2s;
}
.city-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.38);
}

.city-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-flag-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.city-flag-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.city-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}
.city-country {
  font-size: 12px;
  color: var(--text-2);
}

.city-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(7, 10, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.city-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}
.city-stat strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
  display: block;
}

.city-currencies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.curr-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.curr-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* ==========================================================================
   8. ACTIVITY TAB (Exact Match to Figma Screen 3)
   ========================================================================== */
.activity-banner {
  position: relative;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  background:
    radial-gradient(42% 88% at 18% 35%, rgba(59, 130, 246, 0.58) 0%, rgba(29, 78, 216, 0.22) 52%, transparent 80%),
    radial-gradient(42% 85% at 88% 75%, rgba(37, 99, 235, 0.46) 0%, transparent 75%),
    #090D19;
  border: 1px solid rgba(255, 255, 255, 0.085);
  overflow: hidden;
  margin-bottom: 20px;
}

.activity-banner-sub {
  font-size: 14.5px;
  font-weight: 500;
  color: #D1E0FF;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.activity-banner-val {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.activity-pills-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.act-stat-pill {
  min-width: 180px;
  padding: 11px 20px;
  border-radius: 13px;
  background:
    radial-gradient(80% 120% at 50% 100%, rgba(59, 130, 246, 0.25), rgba(11, 16, 30, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.085);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.act-feed-card {
  border-radius: 24px;
  padding: 20px 24px;
  background: rgba(12, 16, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.feed-day-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 6px;
}
.feed-day-label:first-child {
  margin-top: 0;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}
.feed-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   9. SETTINGS TAB (Exact Match to Figma Screen 4)
   ========================================================================== */
.settings-panel {
  border-radius: 24px;
  padding: 24px 28px;
  background:
    radial-gradient(55% 65% at 85% 90%, rgba(37, 99, 235, 0.14), transparent 70%),
    rgba(12, 16, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.settings-group-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #3B82F6;
  margin: 20px 0 8px;
}
.settings-group-title:first-child {
  margin-top: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  gap: 14px;
}

.settings-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.settings-row-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.settings-row-sub svg {
  width: 14px;
  height: 14px;
  color: #60A5FA;
  flex-shrink: 0;
}

.ice-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ice-switch.on {
  background: rgba(37, 99, 235, 0.38);
}
.ice-switch-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.2s ease, background 0.2s;
}
.ice-switch.on .ice-switch-knob {
  transform: translateX(20px);
  background: #3B82F6;
}

/* ==========================================================================
   10. MODALS & MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 6, 13, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 490px;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(37, 99, 235, 0.24), rgba(11, 15, 26, 0.98) 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

/* Mobile Bottom Nav (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   11. TABLET & PHONE ADAPTATION
   ========================================================================== */
@media (max-width: 1180px) {
  .networks-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .exchange-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-area {
    padding: 14px 14px 96px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .mobile-brand-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
  }

  .search-capsule {
    max-width: 100%;
    order: 3;
    height: 44px;
  }

  .stage-card {
    padding: 18px 15px 22px;
    border-radius: 22px;
  }

  .stage-greeting {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .stage-greeting h1 {
    font-size: 19px;
  }

  .mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .mode-tab {
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .cobalt-hero-card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .amount-input {
    font-size: 22px;
  }

  .location-selector-bar,
  .order-inputs-row {
    grid-template-columns: 1fr;
  }

  .networks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .net-card {
    height: 166px;
    padding: 16px 12px;
  }

  .net-card-icon {
    width: 50px;
    height: 50px;
  }

  .cities-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .activity-banner {
    padding: 24px 16px;
  }

  .activity-banner-val {
    font-size: 30px;
  }

  .act-stat-pill {
    min-width: 140px;
    flex: 1;
    padding: 10px 12px;
  }

  .act-feed-card,
  .settings-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 28px;
  }

  /* Fixed Frosted Glass Bottom Dock on Phone */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    height: 68px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .mob-nav-item {
    border: none;
    background: transparent;
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    cursor: pointer;
  }

  .mob-nav-item svg {
    width: 19px;
    height: 19px;
    opacity: 0.7;
  }

  .mob-nav-item.active {
    color: #fff;
    font-weight: 600;
    background: radial-gradient(80% 100% at 50% 100%, rgba(59, 130, 246, 0.32), transparent);
  }
  .mob-nav-item.active svg {
    opacity: 1;
    color: #60A5FA;
  }
}

@media (max-width: 400px) {
  .networks-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics-bar {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .metric-val {
    font-size: 15px;
  }
}
