/* XM Mobile Web App Clone Stylesheet */
:root {
  --bg-primary: #07090e;
  --bg-surface: #0d121c;
  --bg-card: rgba(14, 21, 35, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  --bg-card-elevated: rgba(19, 28, 46, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(56, 189, 248, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-red: #ef4444;
  --accent-red-dark: #dc2626;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bottom-nav-height: 64px;
  --top-header-height: 56px;
  --banner-height: 38px;
}

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

body {
  font-family: var(--font-family);
  background-color: #06080e;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(56, 189, 248, 0.07), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(16, 185, 129, 0.05), transparent 60%);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Mobile Shell Container (Centered Phone Mockup on Desktop) */
#app-container {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  body {
    background-color: #06090e;
    min-height: 100vh;
    display: block;
  }
  #app-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

@media (min-width: 1200px) {
  #app-container {
    max-width: 1560px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Header Styles */
.app-header {
  height: var(--top-header-height);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 30;
  flex-shrink: 0;
}

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

.header-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.account-chip:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.account-chip .badge-r {
  background-color: var(--accent-green);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s, background-color 0.15s;
}

.icon-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  border-radius: 50%;
  border: 1.5px solid var(--bg-primary);
}

.profile-avatar-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Viewport / Scroll Content Area */
.app-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px calc(88px + env(safe-area-inset-bottom, 0px)) 16px;
  display: none;
  scroll-behavior: smooth;
}

.view-page.active {
  display: block;
  animation: pageFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
.view-page::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar,
.category-pills::-webkit-scrollbar {
  display: none;
}
.view-page, .horizontal-scroll, .category-pills {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Sub-page headers with Back Button */
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 4px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

/* Sticky Verification Bonus Banner */
.verification-banner {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1e1b18;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 25;
  cursor: pointer;
}

.verification-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-banner .banner-badge {
  background-color: #000;
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  min-height: var(--bottom-nav-height);
  background-color: #080b11;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  align-items: center;
  justify-content: space-around;
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-item.active {
  color: var(--accent-green);
  font-weight: 600;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

/* HOME VIEW STYLES */
/* Responsive Dashboard Container */
.home-dashboard-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 900px) {
  .home-dashboard-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) !important;
    gap: 24px !important;
    align-items: start !important;
  }
}

@media (min-width: 1300px) {
  .home-dashboard-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.75fr) !important;
    gap: 30px !important;
  }
}

/* Hero Balance Card - Executive Obsidian Fintech */
.hero-balance-card {
  background: 
    radial-gradient(circle at 95% 5%, rgba(56, 189, 248, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(16, 185, 129, 0.12) 0%, transparent 35%),
    linear-gradient(145deg, rgba(16, 25, 42, 0.95) 0%, rgba(9, 14, 24, 0.98) 100%);
  border-radius: 20px;
  padding: 22px 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-balance-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(56, 189, 248, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.card-ambient-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.live-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 2s infinite ease-in-out;
  display: inline-block;
  margin-right: 4px;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10b981; }
}

.account-selector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.account-selector-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.add-account-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
}

.add-account-circle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.card-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.badge-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-tag.demo {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

.badge-tag.live, .badge-tag.real {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.card-balance-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.balance-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.balance-cents {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.toggle-eye-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.toggle-eye-btn:hover {
  color: #ffffff;
}

.card-subtext {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

/* Server Latency & Status Pill */
.server-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.server-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Hero KPI 4-Metric Strip */
.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

@media (max-width: 520px) {
  .hero-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.kpi-box {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease;
}

.kpi-box:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Hero Card Action Buttons Strip */
.hero-card-actions-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 2;
}

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

.btn-hero-action {
  border: none;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn-hero-action.primary-deposit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-action.primary-deposit:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-hero-action.secondary-action {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-hero-action.secondary-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-hero-action .bonus-tag {
  font-size: 8.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 2px;
}

/* Quick Actions Hub 6-Item Grid */
.quick-actions-hub-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .quick-actions-hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.quick-hub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-hub-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

.hub-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-hub-item:hover .hub-icon-circle {
  transform: scale(1.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hub-icon-trade { color: #f59e0b; }
.hub-icon-deposit { color: #10b981; }
.hub-icon-withdraw { color: #38bdf8; }
.hub-icon-refer { color: #a855f7; }
.hub-icon-copy { color: #ec4899; }
.hub-icon-bonus { color: #eab308; }

.hub-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.15s ease;
}

.quick-hub-item:hover .hub-label {
  color: #ffffff;
}

/* Daily Trade Setup / Signal Spotlight Card */
.trade-signal-spotlight-card {
  background: 
    radial-gradient(circle at 95% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    linear-gradient(145deg, rgba(16, 24, 40, 0.85) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.trade-signal-spotlight-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 28px -2px rgba(0, 0, 0, 0.65), 0 0 20px -4px rgba(245, 158, 11, 0.15);
}

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

.signal-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.signal-target-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.signal-target-row strong {
  color: #ffffff;
}

.btn-signal-trade {
  width: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-signal-trade:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff;
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* Economic Calendar Radar Card */
.economic-radar-card {
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eco-event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.eco-flag {
  font-size: 18px;
}

.eco-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eco-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.eco-meta {
  font-size: 10.5px;
  color: #94a3b8;
}

.eco-time-badge {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

.eco-time-badge.high-vol {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Card Sparkline Row & Prices in Movers */
.card-sparkline-row {
  margin: 6px 0;
  display: flex;
  align-items: center;
}

.mini-sparkline-svg {
  width: 100%;
  height: 20px;
  overflow: visible;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 2px;
}
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.action-icon-promos { color: #a855f7; }
.action-icon-refer { color: #38bdf8; }
.action-icon-bonus { color: #f59e0b; }
.action-icon-copy { color: #10b981; }

.quick-action-item:hover .action-icon-circle {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.action-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.15s ease;
}

.quick-action-item:hover .action-label {
  color: #ffffff;
}

/* Promo Carousel */
.promo-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.promo-card {
  min-width: 260px;
  max-width: 260px;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.promo-card-1 {
  background: linear-gradient(140deg, #0f1f38 0%, #081120 100%);
  border-color: rgba(56, 189, 248, 0.2);
}
.promo-card-1:hover { border-color: rgba(56, 189, 248, 0.45); }

.promo-card-2 {
  background: linear-gradient(140deg, #1f1238 0%, #0d081a 100%);
  border-color: rgba(168, 85, 247, 0.2);
}
.promo-card-2:hover { border-color: rgba(168, 85, 247, 0.45); }

.promo-card-3 {
  background: linear-gradient(140deg, #2e0f19 0%, #15060c 100%);
  border-color: rgba(244, 63, 94, 0.2);
}
.promo-card-3:hover { border-color: rgba(244, 63, 94, 0.45); }

.promo-card-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.promo-card-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  margin-bottom: 12px;
}

.promo-badge-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

/* Standard Section Container */
.section-container {
  margin-bottom: 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.section-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

/* Seamless Card Surfaces */
.empty-state-card {
  background: rgba(14, 21, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-state-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--text-muted);
  opacity: 0.6;
}

.empty-state-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* XM Traders Club Card */
.traders-club-card {
  background: 
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    linear-gradient(145deg, rgba(20, 28, 46, 0.85) 0%, rgba(13, 18, 30, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-top: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.traders-club-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.7), 0 0 24px -4px rgba(245, 158, 11, 0.2);
}

.traders-club-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.club-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a3b5c, #1a253a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.club-balance-info {
  display: flex;
  flex-direction: column;
}

.club-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.club-value {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.club-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.status-text-group {
  display: flex;
  flex-direction: column;
}

.status-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

.status-tier {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.tier-medal {
  font-size: 32px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  border-radius: 4px;
  position: relative;
}

.progress-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.progress-meta-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Horizontal Market Cards (Gainers, Losers, Long, Short) */
.market-cards-horizontal {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  overflow-x: auto !important;
  overflow-y: hidden;
  padding: 6px 2px 14px 2px;
  -webkit-overflow-scrolling: touch;
}

.market-cards-horizontal::-webkit-scrollbar {
  display: none;
}

.mini-market-card {
  min-width: 145px;
  max-width: 145px;
  flex-shrink: 0;
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-symbol-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.symbol-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.symbol-name-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.symbol-code {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.symbol-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-price, .mini-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  margin-bottom: 2px;
}

.card-change, .mini-card-change {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.change-up {
  color: var(--accent-green);
}

.change-down {
  color: var(--accent-red);
}

.mini-sparkline {
  width: 100%;
  height: 28px;
}

.sentiment-bar-mini {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}

.bar-ratio-track {
  width: 100%;
  height: 4px;
  background-color: var(--accent-red);
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
  display: flex;
}

.bar-ratio-buy {
  background-color: var(--accent-green);
  height: 100%;
}

/* News List on Home */
.news-item-card {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.news-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Category Filter Pills (Used in Markets, More, News) */
.category-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px 0;
  flex-shrink: 0;
}

.filter-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.active {
  background-color: #ffffff;
  color: #0b0e14;
  border-color: #ffffff;
}

/* MARKETS VIEW STYLES */
.market-search-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.market-search-box input {
  background: none;
  border: none;
  color: white;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.market-instrument-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background-color 0.1s;
}

.market-instrument-row:active {
  background-color: rgba(255, 255, 255, 0.03);
}

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

.instrument-flag-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.instrument-title-col {
  display: flex;
  flex-direction: column;
}

.instrument-symbol {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.instrument-name {
  font-size: 11.5px;
  color: var(--text-muted);
}

.instrument-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.instrument-price {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.instrument-change {
  font-size: 11.5px;
  font-weight: 600;
}

/* TRADE VIEW STYLES */
.trade-top-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 10px;
}

/* Dedicated Exit / Back to Markets Chart Button */
.btn-exit-chart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-exit-chart:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  transform: translateX(-1px);
}

.btn-exit-chart:active {
  transform: scale(0.97);
}

.btn-exit-chart svg {
  stroke-width: 2.5;
}

/* Quick Public Site Return Link */
.btn-public-quicklink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-public-quicklink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}

.symbol-selector-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.symbol-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.chart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Prominent Full Screen Chart Button */
.btn-fullscreen-prominent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-fullscreen-prominent:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.45));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-fullscreen-prominent.active-fullscreen {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.35));
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.btn-fullscreen-prominent.active-fullscreen:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.55));
  color: #ffffff;
}

/* Corner Fullscreen Button Inside Chart Box */
.chart-corner-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
  user-select: none;
}

.chart-corner-fullscreen-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.03);
}

.chart-fullscreen-mode .chart-corner-fullscreen-btn {
  display: none !important;
}

.chart-container-box {
  width: 100%;
  height: 340px;
  background-color: #0c121d;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

#trading-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none !important;
  overscroll-behavior: contain !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Floating Exit Fullscreen Button in Chart */
.floating-exit-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.15s ease;
}

.chart-fullscreen-mode .floating-exit-fullscreen-btn {
  display: inline-flex !important;
}

.floating-exit-fullscreen-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.04);
}

/* Immersive Fullscreen Mode */
.chart-fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* Predictive Back Floating Indicator Cue */
.predictive-back-cue {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) translateX(-40px);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.predictive-back-cue.cue-active {
  opacity: 1;
}

.predictive-back-cue .cue-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(16px);
  transition: all 0.15s ease;
}

.predictive-back-cue.cue-ready .cue-pill {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #10b981;
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
}

#trading-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-timeframe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background-color: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 12px;
}

.timeframe-group {
  display: flex;
  gap: 6px;
}

.tf-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.tf-btn.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.chart-mode-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Instant Order Execution Bar */
.order-execution-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-sell-action {
  flex: 1;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-buy-action {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.trade-btn-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.trade-btn-price {
  font-size: 15.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.spread-badge-box {
  background-color: #1a2436;
  border: 1px solid var(--border-color);
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* AI Overview Panel */
.ai-overview-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.ai-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-title-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: white;
}

.ai-sentiment-chip {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.ai-sentiment-chip.bearish {
  background-color: var(--accent-red-bg);
  color: var(--accent-red);
}

.ai-sentiment-chip.bullish {
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
}

.ai-desc-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}

.ai-timestamp {
  font-size: 10px;
  color: var(--text-muted);
}

/* Technical Details Grid */
.sentiment-indicator-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.sentiment-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sentiment-track {
  width: 100%;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  margin-bottom: 14px;
}

.sentiment-buy-fill {
  background-color: var(--accent-green);
  height: 100%;
  width: 60%;
}

.price-range-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.range-slider-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 2px;
  position: relative;
}

.range-dot {
  position: absolute;
  top: -4px;
  left: 65%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Score Rows */
.score-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.mini-score-bar {
  width: 40px;
  height: 5px;
  background-color: #243048;
  border-radius: 2px;
  overflow: hidden;
}

.mini-score-fill {
  height: 100%;
}

/* PORTFOLIO VIEW STYLES */
.portfolio-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.trade-position-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.pos-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pos-symbol-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
}

.pos-type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.pos-type-badge.buy {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.pos-type-badge.sell {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.pos-pl-val {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pos-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 11.5px;
  color: var(--text-secondary);
  row-gap: 4px;
  margin-bottom: 12px;
}

.pos-btn-close {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: white;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* MORE VIEW STYLES */
.more-category-section {
  margin-bottom: 22px;
}

.more-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

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

.more-tile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, background-color 0.15s;
}

.more-tile-card:hover {
  background-color: var(--bg-card-hover);
}

.tile-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 20px;
}

.tile-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

/* SUBPAGE LIST CARDS (Settings, Profile, etc.) */
.settings-group {
  margin-bottom: 20px;
}

.settings-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}

.settings-list-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.settings-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background-color 0.15s;
}

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

.settings-row-item:active {
  background-color: rgba(255, 255, 255, 0.04);
}

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

.row-icon {
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
}

.row-title-text {
  font-size: 13px;
  font-weight: 500;
}

.row-right-content {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

/* MODALS & BOTTOM SHEETS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #121927;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border-light);
  padding: 12px 18px 24px 18px;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  max-height: 85vh;
  overflow-y: auto;
}

.bottom-sheet.open {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .bottom-sheet {
    max-width: 520px;
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
  }
  .bottom-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.sheet-handle-bar {
  width: 36px;
  height: 4px;
  background-color: var(--border-light);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.sheet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
}

/* Order Execution Modal Drawer */
.order-input-group {
  margin-bottom: 14px;
}

.order-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stepper-input {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  height: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.stepper-input input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.btn-primary-block {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary-block.buy {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-primary-block.sell {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Toast Notifications */
#toast-container {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.2s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   PUBLIC WEBSITE & AUTHENTICATION STYLES (XM.COM 1:1 CLONE)
   ========================================================== */

/* Public Site Navigation Header */
.public-header {
  height: 60px;
  background-color: #0a0e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.xm-brand-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.xm-svg-logo {
  display: block;
}

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

/* Header Bypass Button */
.btn-header-bypass {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border: none;
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
  transition: transform 0.15s ease;
}

.btn-header-bypass:active {
  transform: scale(0.96);
}

.btn-header-bypass-small {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border: none;
  color: #ffffff;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.public-menu-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

/* ==========================================================
   PUBLIC MOBILE DRAWER NAVIGATION MENU (1:1 from Screenshots)
   ========================================================== */
.public-drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background-color: #ffffff;
  color: #111827;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.public-drawer-menu.open {
  transform: translateX(0);
}

.drawer-header-row {
  height: 60px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #111827;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.drawer-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 30px 18px;
  display: flex;
  flex-direction: column;
}

.drawer-accordion-group {
  border-bottom: 1px solid #f1f5f9;
}

.drawer-accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.drawer-accordion-header .chevron-icon {
  transition: transform 0.2s ease;
  color: #64748b;
}

.drawer-accordion-header.active .chevron-icon {
  transform: rotate(180deg);
}

.drawer-accordion-body {
  display: none;
  padding-bottom: 14px;
}

.drawer-accordion-body.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-subgroup-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.drawer-sub-link {
  font-size: 13.5px;
  color: #334155;
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
}

.drawer-sub-link:hover {
  color: #1d70f5;
}

.drawer-direct-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.drawer-partnership-box {
  background-color: #f0f7ff;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1d70f5;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 14px;
  cursor: pointer;
}

.drawer-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 18px 0;
}

.drawer-lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-bottom: 18px;
}

.drawer-app-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.store-badge-btn {
  flex: 1;
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.badge-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.badge-sub {
  font-size: 8.5px;
  color: #94a3b8;
}

.badge-title {
  font-size: 11px;
  font-weight: 700;
}

.btn-drawer-bypass {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-drawer-primary {
  width: 100%;
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  margin-bottom: 8px;
}

.btn-drawer-secondary {
  width: 100%;
  background-color: #ffffff;
  color: #111827;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

/* ==========================================================
   COOKIE CONSENT & RISK WARNING BAR (1:1 from Screenshots)
   ========================================================== */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.cookie-consent-card {
  background-color: #ffffff;
  color: #111827;
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: modalScaleIn 0.25s ease forwards;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cookie-icon-wrapper {
  margin-bottom: 14px;
}

.cookie-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.cookie-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 22px;
}

.cookie-desc a {
  color: #1d70f5;
  text-decoration: none;
  font-weight: 600;
}

.cookie-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cookie-modify {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-accept {
  width: 100%;
  background: #0f172a;
  border: none;
  color: #ffffff;
  border-radius: 10px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Sticky Bottom Risk Warning Bar */
.risk-warning-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  color: #475569;
  font-size: 11px;
  line-height: 1.4;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  z-index: 60;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.risk-warning-text strong {
  color: #0f172a;
}

.risk-warning-text a {
  color: #1d70f5;
  text-decoration: underline;
}

.risk-warning-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

/* Floating Live Support Chat Bubble */
.floating-chat-bubble {
  position: fixed;
  bottom: 60px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1d70f5;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(29, 112, 245, 0.45);
  cursor: pointer;
  z-index: 70;
  transition: transform 0.2s ease;
}

.floating-chat-bubble:active {
  transform: scale(0.92);
}

/* Chat Dialog */
.chat-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chat-modal-card {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 16px;
  color: #111827;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.support {
  background-color: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background-color: #1d70f5;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.btn-chat-chip {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  color: #1d70f5;
  cursor: pointer;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.chat-input-row button {
  background-color: #1d70f5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================
   HOMEPAGE HERO SECTION (Curved Dark Container 1:1)
   ========================================================== */
.xm-hero-container {
  background: radial-gradient(circle at 50% 25%, #101c33 0%, #0a0e17 80%);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 28px 16px;
}

.hero-chart-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  pointer-events: none;
  overflow: hidden;
}

.hero-waves-svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.chart-animated-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: waveDraw 3.5s ease-in-out infinite alternate;
}

.chart-animated-path-delay {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: waveDraw 4.2s ease-in-out infinite alternate-reverse;
}

@keyframes waveDraw {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

.floating-price-tag {
  position: absolute;
  font-size: 9.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.floating-price-tag.tag-1 { top: 90px; left: 35%; animation: floatUpDown 3s ease-in-out infinite alternate; }
.floating-price-tag.tag-2 { top: 60px; right: 10%; animation: floatUpDown 2.5s ease-in-out infinite alternate-reverse; }
.floating-price-tag.tag-3 { top: 130px; left: 60%; animation: floatUpDown 3.8s ease-in-out infinite alternate; }

@keyframes floatUpDown {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

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

.hero-trust-header {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.hero-trust-header strong {
  color: #ffffff;
}

.hero-main-headline {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero-main-subtext {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 320px;
  margin: 0 auto 22px auto;
}

/* 100% Bonus CTA Button */
.btn-bonus-primary {
  width: 100%;
  background-color: #1d70f5;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(29, 112, 245, 0.45);
  transition: background-color 0.15s;
}

.btn-bonus-primary:active {
  background-color: #175cd3;
}

.hero-limited-offer {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  margin-bottom: 18px;
}

/* Prominent Live Bypass Callout Card */
.bypass-live-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.bypass-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bypass-pulse-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0b111c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.bypass-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bypass-card-badge {
  background: #38bdf8;
  color: #090e17;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

.bypass-card-desc {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.bypass-arrow-circle {
  color: #38bdf8;
  font-size: 18px;
  font-weight: 800;
}

/* Horizontal Global Assets Carousel */
.hero-assets-wrapper {
  margin-bottom: 24px;
  text-align: left;
}

.hero-assets-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
  text-align: center;
}

.hero-assets-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.hero-assets-carousel::-webkit-scrollbar {
  display: none;
}

.asset-card {
  min-width: 175px;
  background-color: #121a2b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.asset-card-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.badge-mini {
  background: #1e293b;
  color: #38bdf8;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.asset-symbol {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.asset-name {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-price-box {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.asset-price {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.asset-change {
  font-size: 10.5px;
  font-weight: 700;
}

.change-up { color: #00c076; }
.change-down { color: #ff3b30; }

/* Award Ribbon Sliding Marquee (Continuous Motion) */
.hero-award-ribbon-block {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ribbon-center-heading {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.ribbon-center-heading span {
  font-weight: 800;
  color: #ffffff;
}

.award-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.award-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: awardMarquee 22s linear infinite;
}

@keyframes awardMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.award-ribbon-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
}

.ribbon-badge-icon {
  font-size: 16px;
}

.ribbon-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ribbon-badge-text strong {
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.ribbon-badge-text span {
  font-size: 9px;
  color: #94a3b8;
}

/* ==========================================================
   SECTION 2: DISCOVER OUR TRADERS' FAVOURITES (White Section)
   ========================================================== */
.xm-section-white {
  background-color: #ffffff;
  color: #0f172a;
  padding: 36px 16px;
}

.section-title-white {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 10px;
}

.highlight-blue {
  color: #1d70f5;
}

.section-subtext-dark {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 24px;
}

/* Favourites Cards */
.fav-card {
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fav-card:active {
  transform: scale(0.98);
}

.fav-card-dark {
  background-color: #0b111c;
  color: #ffffff;
}

.fav-card-blue {
  background: linear-gradient(135deg, #0e3778 0%, #1b60d4 100%);
  color: #ffffff;
}

.fav-card-ocean {
  background: linear-gradient(135deg, #0a2544 0%, #103c6b 100%);
  color: #ffffff;
}

.fav-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: inherit;
}

.fav-card-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  max-width: 250px;
}

.fav-app-stores {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.store-badge-rating {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-logo-icon {
  font-size: 14px;
}

.store-rating-info {
  display: flex;
  flex-direction: column;
}

.store-label {
  font-size: 8.5px;
  color: #94a3b8;
}

.store-stars {
  font-size: 8.5px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.fav-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 14px;
}

.fav-card-action .action-arrow {
  font-size: 16px;
}

.fav-bonus-highlight {
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 10px;
}

/* Mockup & 3D Accent Graphics */
.fav-mockup-graphic {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 110px;
  height: 140px;
}

.phone-frame {
  width: 90px;
  height: 140px;
  background: #1e293b;
  border-radius: 16px;
  border: 3px solid #334155;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.phone-notch {
  width: 30px;
  height: 6px;
  background: #0f172a;
  border-radius: 4px;
  margin: 4px auto;
}

.phone-screen {
  background: #0b0e14;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-app-icon {
  font-weight: 900;
  color: #e51921;
  font-size: 14px;
}

.fav-gift-graphic {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 55px;
}

.fav-trophy-graphic {
  position: absolute;
  right: 18px;
  bottom: 18px;
  text-align: center;
}

.trophy-cup {
  font-size: 45px;
}

.coins-stack {
  font-size: 16px;
  margin-top: -8px;
}

.copy-stat-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.trader-gain {
  color: #00c076;
  font-size: 13px;
  font-weight: 800;
}

.trader-period {
  color: #94a3b8;
  font-size: 9.5px;
}

/* ==========================================================
   SECTION 3: OUR RESULTS ARE PROVEN IN NUMBERS (Dark Section)
   ========================================================== */
.xm-section-dark {
  background-color: #0a0e17;
  color: #ffffff;
  padding: 36px 16px;
}

.section-title-dark {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtext-light {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 30px;
  text-align: center;
}

/* MOVING ROLLING ODOMETER COUNTERS (1:1 from Screenshot 131126) */
.rolling-stats-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.rolling-stat-block {
  text-align: center;
}

.odometer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.odometer-slot {
  height: 48px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.odometer-wheel {
  display: flex;
  flex-direction: column;
}

.odometer-slot span {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.odometer-dot {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.odometer-suffix {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-left: 6px;
}

.stat-number-static {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
}

.stat-caption {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Advantage Cards Grid */
.advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.adv-card {
  background-color: #101726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adv-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #182338;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
}

.adv-desc {
  font-size: 12px;
  color: #94a3b8;
}

.btn-start-trading-dark {
  width: 100%;
  background-color: #1d70f5;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 112, 245, 0.4);
}

/* ==========================================================
   SECTION 4: FUNDS SAFE AND SECURE (Security Section)
   ========================================================== */
.xm-section-security {
  background-color: #070a10;
  color: #ffffff;
  padding: 30px 16px;
}

.security-hero-card {
  background: linear-gradient(135deg, #10213d 0%, #0a1120 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 16px;
  text-align: center;
}

.security-shield-glow {
  font-size: 42px;
  margin-bottom: 12px;
}

.security-main-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.security-main-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.security-features-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-card {
  background-color: #0e1524;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.sec-icon-circle {
  margin-bottom: 8px;
}

.sec-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.sec-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================
   SECTION 5: SUCCEED WITH XM & SUPPORT
   ========================================================== */
.succeed-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.succeed-card {
  border-radius: 18px;
  padding: 20px 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.succeed-card.light-theme {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.succeed-card.dark-theme {
  background-color: #0c1a2e;
  color: #ffffff;
}

.succeed-card-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: inherit;
}

.succeed-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 14px;
  max-width: 260px;
}

.succeed-action-link {
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.succeed-action-link.blue { color: #1d70f5; }
.succeed-action-link.green { color: #00e676; }

.experienced-graphic {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 42px;
}

.xm-section-support {
  background-color: #ffffff;
  color: #0f172a;
  padding: 24px 16px 36px 16px;
  text-align: center;
}

.btn-support-dark {
  width: 100%;
  background-color: #1b2230;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================
   AUTHENTIC 1:1 FOOTER (Screenshots 131217 - 131229)
   ========================================================== */
.xm-public-footer {
  background-color: #ffffff;
  color: #334155;
  padding: 30px 16px 60px 16px;
  border-top: 1px solid #f1f5f9;
}

.footer-top-brand {
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 10px;
}

.footer-accordions-group {
  margin-bottom: 24px;
  border-top: 1px solid #f1f5f9;
}

.footer-acc-item {
  border-bottom: 1px solid #f1f5f9;
}

.footer-acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.footer-acc-header .chevron-icon {
  transition: transform 0.2s ease;
  color: #64748b;
}

.footer-acc-header.active .chevron-icon {
  transform: rotate(180deg);
}

.footer-acc-content {
  display: none;
  padding-bottom: 14px;
  flex-direction: column;
  gap: 8px;
}

.footer-acc-content.open {
  display: flex;
}

.footer-acc-content a {
  color: #475569;
  font-size: 13px;
  text-decoration: none;
}

.footer-store-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-policy-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-policy-links a {
  color: #1d70f5;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.footer-regulatory-box {
  font-size: 10.5px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-regulatory-box a {
  color: #1d70f5;
  text-decoration: underline;
}

.footer-partner-strip {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.partner-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 12px;
}

.best-workplaces-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workplace-pill {
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  color: #ffffff;
}

.workplace-pill.red { background-color: #ef4444; }
.workplace-pill.cyan { background-color: #06b6d4; }
.workplace-pill.orange { background-color: #f97316; }
.workplace-pill.blue { background-color: #2563eb; }

.footer-copyright-row {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================
   AUTHENTICATION VIEWS (LOGIN & REGISTER - 1:1 FROM SCREENSHOTS)
   ========================================================== */
.xm-auth-page-dark {
  background-color: #0a0e17;
  min-height: 100%;
  color: #ffffff;
  padding: 16px 16px 40px 16px;
}

.auth-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  margin-bottom: 20px;
}

.auth-top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn-plain {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.auth-form-container {
  max-width: 380px;
  margin: 0 auto;
}

.auth-main-heading {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.auth-sub-link-row {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.auth-sub-link-row a {
  color: #2979ff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.btn-bypass-prominent {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.auth-clean-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clean-input-box {
  position: relative;
  background-color: #0f1624;
  border: 1px solid #1f293d;
  border-radius: 10px;
  padding: 4px 12px;
}

.clean-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  color: #ffffff;
  outline: none;
}

.clean-input-box.with-icon {
  display: flex;
  align-items: center;
}

.eye-toggle-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
}

.auth-forgot-link {
  text-align: left;
  margin-top: -4px;
  margin-bottom: 8px;
}

.auth-forgot-link a {
  color: #2979ff;
  font-size: 12.5px;
  text-decoration: none;
}

.btn-auth-primary-blue {
  width: 100%;
  background-color: #1d70f5;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(29, 112, 245, 0.35);
}

.auth-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 11.5px;
  margin: 22px 0;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #1f293d;
}

.auth-or-divider span {
  padding: 0 10px;
}

.btn-google-auth {
  width: 100%;
  background-color: #1a2233;
  border: 1px solid #2d3748;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.auth-bottom-back {
  text-align: center;
  margin-top: 24px;
}

.auth-bottom-back a {
  color: #64748b;
  font-size: 12px;
  text-decoration: none;
}

/* Register Top Banner */
.register-promo-banner {
  background: linear-gradient(135deg, #0e1e38 0%, #17386d 100%);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.promo-banner-text {
  display: flex;
  flex-direction: column;
}

.promo-text-line {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.promo-text-amount {
  font-size: 18px;
  font-weight: 900;
  color: #38bdf8;
}

.promo-3d-number {
  font-size: 32px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: -1px;
}

.clean-select-box {
  background-color: #0f1624;
  border: 1px solid #1f293d;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  margin-bottom: 14px;
}

.select-label-small {
  font-size: 10px;
  color: #64748b;
}

.select-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.select-country-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.select-chevron {
  color: #64748b;
}

.auth-partner-toggle {
  font-size: 11.5px;
  color: #94a3b8;
}

.auth-partner-toggle a {
  color: #2979ff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  cursor: pointer;
}

.auth-legal-disclaimer {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 16px;
  text-align: center;
}

.auth-legal-disclaimer a {
  color: #2979ff;
  text-decoration: none;
}

/* ==========================================================
   PUBLIC FOREX MARKETS & PLATFORMS VIEWS
   ========================================================== */
.xm-markets-page-clean, .xm-platforms-page-clean {
  background-color: #ffffff;
  color: #0f172a;
  min-height: 100%;
  padding-bottom: 40px;
}

.markets-header-bar, .platforms-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.back-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markets-header-title {
  font-size: 16px;
  font-weight: 800;
}

.platforms-title-tag {
  font-size: 13px;
  font-weight: 700;
  color: #1d70f5;
}

.markets-table-wrapper {
  padding: 16px;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}

.forex-symbols-list {
  display: flex;
  flex-direction: column;
}

.forex-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f8fafc;
}

.forex-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forex-chevron {
  color: #94a3b8;
  font-size: 14px;
}

.forex-sym-names {
  display: flex;
  flex-direction: column;
}

.forex-sym {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.forex-full {
  font-size: 10px;
  color: #64748b;
}

.btn-forex-trade {
  background: #ffffff;
  border: 1.5px solid #1d70f5;
  color: #1d70f5;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Platforms View Styles */
.platforms-hero-block {
  padding: 24px 16px;
  text-align: center;
}

.platform-main-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.platform-main-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  max-width: 320px;
  margin: 0 auto 18px auto;
}

.platform-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.btn-platform-outline {
  flex: 1;
  max-width: 150px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-platform-primary {
  width: 100%;
  max-width: 310px;
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 24px;
}

.platform-preview-graphic {
  background: #0b111c;
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
}

.mockup-screen-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.mockup-candle-bars {
  display: flex;
  align-items: flex-end;
  height: 60px;
  gap: 8px;
  justify-content: center;
}

.mockup-candle-bars span {
  width: 12px;
  border-radius: 2px;
}

.bar-g { background: #00c076; height: 45px; }
.bar-r { background: #ff3b30; height: 30px; }

.platform-features-container {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-feature-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pf-icon-box {
  font-size: 20px;
}

.pf-feature-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* Price Flash Animations */
.price-flash-up {
  animation: flashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-flash-down {
  animation: flashDown 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flashUp {
  0% { 
    color: #10b981; 
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.7); 
    background-color: rgba(16, 185, 129, 0.18);
    border-radius: 4px;
  }
  100% { 
    color: #ffffff; 
    text-shadow: none; 
    background-color: transparent;
  }
}

@keyframes flashDown {
  0% { 
    color: #ef4444; 
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.7); 
    background-color: rgba(239, 68, 68, 0.18);
    border-radius: 4px;
  }
  100% { 
    color: #ffffff; 
    text-shadow: none; 
    background-color: transparent;
  }
}

/* Toast System Styling */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-success {
  border-color: rgba(0, 192, 118, 0.4);
}

.toast-error {
  border-color: rgba(255, 59, 48, 0.4);
}

/* Transactions History Rows */
.transaction-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tx-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.tx-type-badge.deposit { color: var(--accent-green); }
.tx-type-badge.withdrawal { color: var(--accent-gold); }
.tx-type-badge.trade-settlement { color: var(--text-primary); }

.tx-method-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-date-text {
  font-size: 11px;
  color: var(--text-muted);
}

.tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tx-amount {
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tx-credit { color: var(--accent-green); }
.tx-debit { color: var(--accent-red); }

.tx-status-pill {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.status-completed { background: rgba(0, 192, 118, 0.12); color: var(--accent-green); }
.status-settled { background: rgba(37, 99, 235, 0.12); color: var(--accent-blue); }
.status-processing { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); }

/* Quick Action Chips */
.quick-amount-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-amount-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-amount-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.btn-amount-chip:active {
  background: var(--accent-blue);
  color: white;
}

.btn-amount-chip.chip-test {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.btn-amount-chip.chip-test:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.pulsing-dot {
  animation: pulseDot 1.8s infinite ease-in-out;
}

/* ================= MODERN PREMIUM DEPOSIT UI ================= */
.deposit-sheet-container {
  padding: 4px 2px;
}

.dep-account-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.dep-account-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.dep-account-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.dep-currency-segmented {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  gap: 4px;
}

.dep-currency-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dep-currency-btn.active {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dep-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.dep-method-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}

.dep-method-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.dep-method-card.selected {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.dep-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dep-method-icon {
  font-size: 18px;
}

.dep-method-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s;
}

.dep-method-card.selected .dep-method-check {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0b0e14;
  font-weight: 800;
}

.dep-method-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.dep-method-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.dep-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.dep-amount-field {
  display: flex;
  align-items: center;
  background: #0b0e14;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dep-amount-field:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.dep-curr-sym {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
}

.dep-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-family: inherit;
  padding: 8px 0;
  width: 100%;
}

.dep-curr-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
}

.dep-chips-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dep-chip-btn {
  flex: 1;
  min-width: 68px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
}

.dep-chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.dep-chip-btn.test-chip {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 800;
}

.dep-chip-btn.test-chip:hover {
  background: rgba(16, 185, 129, 0.22);
}

.dep-breakdown-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.dep-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}

.dep-breakdown-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.dep-breakdown-val {
  font-weight: 600;
  color: #fff;
}

/* CoinRemitter Invoice Styling */
.cr-invoice-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.cr-qr-container {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  width: fit-content;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cr-address-display {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cr-address-text {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
  color: #38bdf8;
  word-break: break-all;
  user-select: all;
  background: transparent;
  border: none;
  outline: none;
}

.cr-steps-tracker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
}

.cr-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
}

.cr-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.cr-step-item.active .cr-step-circle {
  background: #f59e0b;
  color: #0b0e14;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.cr-step-item.completed .cr-step-circle {
  background: #10b981;
  color: #fff;
}

.btn-sm-danger {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--accent-red);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-sm-danger:hover {
  background: rgba(255, 59, 48, 0.25);
}

.btn-trade-shortcut {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-trade-shortcut:hover {
  background: var(--accent-blue-hover);
}

/* ================= ADMIN BACK-OFFICE PORTAL STYLES ================= */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.admin-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge-pill {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: #131d2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.admin-stat-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 600;
}

.admin-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.admin-nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.admin-nav-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.admin-tab-btn.active {
  background: #38bdf8;
  color: #0b0f19;
  border-color: #38bdf8;
}

.admin-panel-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.admin-card-header {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
}

.admin-input {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.admin-input:focus {
  border-color: #38bdf8;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.admin-table th {
  text-align: left;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ==========================================================
   DESKTOP & WIDESCREEN ENHANCEMENTS (TABLET & PC RESPONSIVENESS)
   ========================================================== */

/* Desktop Top Navigation Bar */
.desktop-brand-logo {
  display: none;
}

.desktop-nav-bar {
  display: none;
}

.desktop-deposit-btn {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-brand-logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
  }
  
  .desktop-nav-bar {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
  }
  
  .desk-nav-item {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  .desk-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
  }
  
  .desk-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
  }

  .desk-admin-chip {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
  }
  
  .desk-admin-chip:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    color: #ffffff !important;
  }

  .desktop-deposit-btn {
    display: inline-flex !important;
  }

  /* Hide bottom nav on desktop since top navigation is prominent */
  .bottom-nav {
    display: none !important;
  }

  /* Roomy desktop padding */
  .view-page {
    padding: 20px 32px 36px 32px !important;
  }
}

/* Indicators toolbar buttons */
.btn-indicator-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-indicator-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.btn-indicator-chip.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Quick Symbol Buttons in Watchlist */
.btn-quick-symbol {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.btn-quick-symbol:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* Fullscreen Immersive Chart Mode */
.chart-fullscreen-mode {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: #080c14 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Responsive WebTrader Terminal Grid */
.trade-layout-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .trade-layout-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 370px !important;
    gap: 20px !important;
    align-items: start !important;
  }
  
  .chart-container-box {
    height: 520px !important;
  }

  .trade-deck-column {
    position: sticky;
    top: 10px;
  }
}

@media (min-width: 1400px) {
  .trade-layout-grid {
    grid-template-columns: minmax(0, 1fr) 410px !important;
    gap: 24px !important;
  }
  
  .chart-container-box {
    height: 600px !important;
  }
}

/* Widescreen Public Homepage and Promos Grid */
@media (min-width: 768px) {
  .xm-hero-container {
    padding: 40px 32px;
  }
  .promo-carousel {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    overflow-x: visible !important;
  }
  .promo-card {
    min-width: 0 !important;
    max-width: none !important;
  }
  .fav-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .rolling-stats-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
  }
  .more-grid-3col {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .fav-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .public-header {
    padding: 0 32px !important;
    height: 68px !important;
  }
  .more-grid-3col {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* Widescreen Markets Responsive Grid */
@media (min-width: 850px) {
  #markets-list-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .market-instrument-row {
    background: rgba(14, 21, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .market-instrument-row:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
  }
}

@media (min-width: 1300px) {
  #markets-list-container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

/* Widescreen Portfolio Responsive Grid */
@media (min-width: 850px) {
  #portfolio-positions-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  #portfolio-positions-list .empty-state-card {
    grid-column: 1 / -1;
  }
  #portfolio-history-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  #portfolio-history-list > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1300px) {
  #portfolio-positions-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  #portfolio-history-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}




