/* ==========================================================================
   TRADEX PRO - LANDING PAGE & FRONT POSITION SIZE CALCULATOR STYLES
   Ultra-modern Fintech Dark Aesthetic, Glassmorphism, Cyber-Glow & Micro-interactions
   ========================================================================== */

.tradex-landing {
  min-height: 100vh;
  background-color: #080c16;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: #f8fafc;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Hide Chrome, Safari, Edge, Opera number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
.calc-number-input::-webkit-outer-spin-button,
.calc-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

/* Hide Firefox number input spinner arrows */
input[type="number"],
.calc-number-input {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Landing Navigation */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(12, 16, 29, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.landing-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.45);
  flex-shrink: 0;
}

.landing-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.landing-logo-text .brand-x {
  color: #f97316;
}

.landing-logo-text .brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  letter-spacing: 0.5px;
  white-space: nowrap;
  vertical-align: middle;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav-links > li {
  position: relative;
}

.landing-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  padding: 8px 12px;
  border-radius: 8px;
}

.landing-nav-links a:hover,
.landing-nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-micro-badge {
  font-size: 0.60rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.3));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* Mega Dropdown for Calculators */
.nav-dropdown-item {
  position: relative;
}

.nav-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 480px;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(249, 115, 22, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10002;
  margin-top: 6px;
}

.nav-dropdown-item:hover .nav-mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mega-drop-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.mega-drop-card:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  transform: translateY(-1px);
}

.mega-drop-card i {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drop-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: #fff;
  line-height: 1.2;
}

.drop-sub {
  font-size: 0.70rem;
  color: #94a3b8;
  margin-top: 2px;
}

.mega-dropdown-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-dropdown-footer a {
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  color: #f97316 !important;
  padding: 4px 8px !important;
}

.mega-dropdown-footer a:hover {
  color: #ff9d5c !important;
  background: transparent !important;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.landing-nav-actions .btn {
  padding: 7px 14px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px;
}

.landing-nav-actions .btn-hero-demo {
  padding: 7px 13px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  height: 36px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  color: #38bdf8 !important;
  transition: all 0.2s ease !important;
}

.landing-nav-actions .btn-hero-demo:hover {
  background: rgba(6, 182, 212, 0.22) !important;
  border-color: rgba(6, 182, 212, 0.6) !important;
  transform: translateY(-1px);
}

.landing-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.landing-mobile-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-mobile-menu-btn:hover,
.landing-mobile-menu-btn:active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #fb923c;
}

.btn-mobile-demo-pill {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  height: 36px !important;
  border-radius: 8px !important;
}

/* Mobile Drawer */
.landing-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  background: #090e1a;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.9);
  z-index: 10001;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-mobile-drawer.open {
  transform: translateX(0);
}

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

.landing-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.landing-drawer-links a:hover,
.landing-drawer-links a:active {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fff;
}

.landing-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.landing-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #ff9d5c;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.15);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.2); }
  50% { box-shadow: 0 0 35px rgba(249, 115, 22, 0.45); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #f97316 75%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.55);
}

.btn-hero-secondary {
  background: rgba(21, 29, 48, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(30, 41, 69, 0.95);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hero-demo {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 14px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-hero-demo:hover {
  background: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.btn-hero-quiz {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 14px 26px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 1.05rem;
}

.btn-hero-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.55);
  color: #fff;
}

/* Hero Stats Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-stat-card {
  background: rgba(18, 25, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-3px);
  background: rgba(25, 35, 58, 0.8);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  margin-bottom: 4px;
}

.stat-number.text-orange { color: #f97316; }
.stat-number.text-cyan { color: #06b6d4; }
.stat-number.text-green { color: #10b981; }
.stat-number.text-purple { color: #c084fc; }

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   FRONT POSITION SIZE & RISK CALCULATOR SECTION
   ========================================================================== */
.front-calc-section {
  max-width: 1280px;
  margin: 40px auto 80px;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

.calc-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
}

/* Calculator Wrapper */
.front-calc-box {
  background: rgba(15, 21, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(249, 115, 22, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.front-calc-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Tool Nav Tabs */
.calc-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-tabs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
}

.calc-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.calc-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.calc-tab-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.25) 100%);
  border-color: #f97316;
  color: #ff9d5c;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

/* Exchange / Broker Selector Grid */
.calc-broker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.calc-broker-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 68px;
}

.calc-broker-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.calc-broker-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: #f97316;
  color: #ff9d5c;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.25);
}

.calc-broker-btn i {
  font-size: 1.15rem;
}

.calc-broker-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  text-transform: uppercase;
}

/* Live Market Ticker & Pulse Banner */
.live-ticker-banner {
  background: rgba(11, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.live-ticker-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.5s infinite;
}

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

.live-ticker-symbol {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.live-ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.btn-refresh-live {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-refresh-live:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

/* Asset Chips Bar */
.calc-asset-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 38px;
}

.calc-asset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.calc-asset-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.calc-asset-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #38bdf8;
}

/* Stable Layout Grid */
.calc-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  gap: 24px;
  align-items: stretch;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
}

.calc-results-col {
  display: flex;
  flex-direction: column;
}

/* 2-Column Responsive Form Rows */
.calc-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-row-capital-rate {
  grid-template-columns: 1.4fr 1fr;
}

.calc-compounding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Form Styles */
.front-form-group {
  margin-bottom: 16px;
}

.front-form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

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

.front-input-prefix {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
}

.front-input-suffix {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.front-input {
  width: 100%;
  background: #0b101e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s ease;
}

.front-input.has-prefix {
  padding-left: 36px;
}

.front-input.has-suffix {
  padding-right: 48px;
}

.front-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  background: #0f1629;
}

.front-select {
  width: 100%;
  background: #0b101e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.front-select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Direction Switcher */
.direction-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #0b101e;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.direction-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.direction-btn.long.active {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.direction-btn.short.active {
  background: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  border: 1px solid #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

/* Quick Chips */
.quick-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.quick-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.quick-chip-btn.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #f97316;
}

/* Leverage Slider */
.leverage-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.leverage-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #1e293b;
  outline: none;
}

.leverage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f97316;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Currency Mode Badge */
.curr-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Calc Results Panel */
.calc-results-card {
  background: linear-gradient(145deg, #131a2e 0%, #0d1222 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(249, 115, 22, 0.1);
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.calc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.results-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-lot-display {
  text-align: center;
  background: rgba(11, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hero-lot-display::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #06b6d4, #10b981);
}

.lot-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lot-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #ff8533;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
}

.lot-unit {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Metric Items */
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.metric-item-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-item-val {
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.metric-item-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.metric-item-val.loss { color: #f43f5e; }
.metric-item-val.profit { color: #10b981; }
.metric-item-val.cyan { color: #38bdf8; }
.metric-item-val.gold { color: #fbbf24; }

/* Visual R:R Bar */
.rr-visual-wrap {
  margin: 12px 0;
}

.rr-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rr-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.35);
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rr-risk-fill {
  background: #f43f5e;
  height: 100%;
  width: 25%;
}

.rr-reward-fill {
  background: #10b981;
  height: 100%;
  flex: 1;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Result Actions */
.calc-result-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.btn-calc-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-calc-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-calc-action.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-calc-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* ==========================================================================
   PARTIAL TAKE PROFIT LADDER STYLES
   ========================================================================== */
.partial-ladder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.partial-leg-card {
  background: rgba(11, 16, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partial-leg-card.tp1 { border-color: rgba(16, 185, 129, 0.3); }
.partial-leg-card.tp2 { border-color: rgba(56, 189, 248, 0.3); }
.partial-leg-card.tp3 { border-color: rgba(245, 158, 11, 0.3); }

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

.ladder-summary-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

/* Multi-Tier Matrix Table (Zero Scrollbars, Perfect Fit) */
.matrix-table-wrap {
  overflow: visible;
  background: rgba(11, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 8px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.74rem;
  table-layout: fixed;
}

.matrix-table th {
  padding: 6px 6px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.70rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  line-height: 1.25;
}

/* ==========================================================================
   FEATURES & ECOSYSTEM SECTION
   ========================================================================== */
.landing-features-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

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

.feature-card {
  background: rgba(15, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.08);
  background: rgba(20, 28, 50, 0.85);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon-box.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.feature-icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.feature-icon-box.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.feature-icon-box.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-icon-box.pink {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.feature-icon-box.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE DASHBOARD SHOWCASE SECTION
   ========================================================================== */
.landing-showcase-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.showcase-tab-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}

.showcase-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.showcase-pill-btn.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.showcase-frame {
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.showcase-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.showcase-content-area {
  min-height: 380px;
}

/* ==========================================================================
   TESTIMONIALS & SOCIAL PROOF
   ========================================================================== */
.landing-testimonials-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

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

.testimonial-card {
  background: rgba(15, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.author-info p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

/* ==========================================================================
   PRICING & MEMBERSHIP PLANS
   ========================================================================== */
.landing-pricing-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  background: rgba(15, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  background: linear-gradient(145deg, #18233d 0%, #0e1629 100%);
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.15);
  transform: scale(1.03);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.pricing-plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin: 16px 0;
  color: #fff;
}

.pricing-price span {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-list li i {
  color: #10b981;
  font-size: 1rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.landing-faq-section {
  max-width: 880px;
  margin: 80px auto;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(15, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(21, 29, 52, 0.85);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.6;
  display: none;
}

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

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #f97316;
}

.faq-arrow {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060911;
  padding: 60px 24px 30px;
  margin-top: 80px;
}

.landing-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f97316;
}

.footer-bottom-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Auth Modal Backdrop & Drawer */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-card {
  max-width: 480px;
  width: 100%;
  background: #0f1629;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(249, 115, 22, 0.12);
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .calc-grid-layout {
    grid-template-columns: 1fr;
  }
  .partial-ladder-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .landing-nav-container {
    padding: 0 16px;
    height: 58px;
  }
  .landing-nav-links {
    display: none !important;
  }
  .landing-nav-actions,
  .landing-nav-actions.hide-mobile {
    display: none !important;
  }
  .landing-mobile-actions,
  .landing-mobile-actions.show-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

@media (max-width: 768px) {
  .landing-nav-container {
    padding: 0 14px;
    height: 56px;
  }
  .landing-nav-links {
    display: none !important;
  }
  .landing-nav-actions,
  .landing-nav-actions.hide-mobile {
    display: none !important;
  }
  .landing-mobile-actions,
  .landing-mobile-actions.show-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .landing-hero {
    padding: 34px 14px 24px;
  }
  .hero-pill-badge {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.6rem);
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.5;
  }
  
  /* 2x2 Hero CTA Grid on Mobile */
  .hero-cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto 32px !important;
  }
  .hero-cta-group .btn-hero-primary,
  .hero-cta-group .btn-hero-demo,
  .hero-cta-group .btn-hero-secondary,
  .hero-cta-group .btn-hero-quiz {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 8px !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .hero-cta-group i {
    font-size: 0.95rem !important;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 10px;
  }
  .hero-stat-card {
    padding: 12px 8px;
  }
  .stat-number {
    font-size: 1.35rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .landing-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .front-calc-section {
    padding: 0 10px !important;
    margin: 20px auto 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .front-calc-box {
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }
  
  /* Calculator Sub-Tabs - Sleek Segmented 3-Column Pill Grid */
  .calc-nav-tabs {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .calc-tabs-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    padding: 3px !important;
    background: rgba(11, 16, 30, 0.9) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
  }
  .calc-tab-btn {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 1 1 0 !important;
    padding: 7px 2px !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border-radius: 7px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    min-height: 48px !important;
    border: 1px solid transparent !important;
    overflow: hidden !important;
  }
  .calc-tab-btn i {
    font-size: 1rem !important;
  }
  .calc-tab-btn span {
    font-size: 0.66rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .curr-mode-pill {
    font-size: 0.70rem !important;
    padding: 4px 8px !important;
    align-self: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Broker Selection Compact 4-Column Grid (2 rows of 4 - 100% visible, zero scroll, zero clipping!) */
  .calc-broker-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .calc-broker-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 52px !important;
    padding: 5px 2px !important;
    border-radius: 8px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: center !important;
    overflow: hidden !important;
  }
  .calc-broker-btn i {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }
  .calc-broker-btn span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
  }
  .calc-broker-badge {
    font-size: 0.54rem !important;
    padding: 1px 2px !important;
    border-radius: 3px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  /* Live Market Ticker */
  .live-ticker-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .live-ticker-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .live-ticker-symbol {
    font-size: 0.78rem !important;
    font-weight: 750 !important;
  }
  .live-ticker-price {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }
  .btn-refresh-live {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Asset Quick Chips - Clean Responsive 4-Column Grid */
  .calc-asset-chips-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
  }
  .calc-asset-chip {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: unset !important;
    padding: 6px 2px !important;
    font-size: 0.68rem !important;
    border-radius: 7px !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .calc-asset-chip span,
  .calc-asset-chip strong,
  .calc-asset-chip small {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Form Rows on Mobile */
  .calc-form-row-2col,
  .calc-row-direction-order,
  .calc-row-capital-rate,
  .calc-row-risk,
  #frontCapitalRateGrid,
  #frontRiskCashGrid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .calc-row-entry-sl,
  .calc-row-rr-tp {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Trade Direction Full 50/50 Mobile Split */
  .direction-toggle-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px !important;
  }
  .direction-btn {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 4px !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    min-height: 38px !important;
    border-radius: 7px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Quick Chips Grid (Balance, Risk, Leverage, RR) */
  .quick-chips-row {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 5px !important;
    overflow: hidden !important;
  }
  #frontRiskChipsRow,
  .leverage-chips-row,
  .rr-chips-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .quick-chip-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 5px 1px !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Compounding Grid */
  .calc-compounding-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Calculation Outputs Summary Card */
  .calc-results-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .matrix-view-toggle-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px !important;
  }
  .matrix-toggle-btn {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 6px 2px !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hero-lot-display {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .lot-value {
    font-size: 2.2rem !important;
  }
  .lot-unit {
    font-size: 0.76rem !important;
  }
  .metric-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .metric-item {
    padding: 8px 8px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .metric-item-label {
    font-size: 0.68rem !important;
  }
  .metric-item-val {
    font-size: 0.92rem !important;
  }
  .metric-item-sub {
    font-size: 0.65rem !important;
  }
  .calc-result-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-calc-action {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px 6px !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
  }
  .auth-modal-card {
    padding: 22px 16px;
    border-radius: 18px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .front-calc-section {
    padding: 0 6px !important;
    margin: 16px auto 32px !important;
  }
  .front-calc-box {
    padding: 10px 6px !important;
    border-radius: 12px !important;
  }
  .calc-broker-grid {
    gap: 4px !important;
  }
  .calc-broker-btn {
    padding: 4px 1px !important;
    min-height: 48px !important;
  }
  .calc-broker-btn i {
    font-size: 0.92rem !important;
  }
  .calc-broker-btn span {
    font-size: 0.60rem !important;
  }
  .calc-broker-badge {
    font-size: 0.50rem !important;
  }
  .calc-asset-chips-wrap {
    gap: 4px !important;
  }
  .calc-asset-chip {
    padding: 5px 1px !important;
    font-size: 0.64rem !important;
  }
  .landing-nav-container {
    padding: 0 10px;
  }
  .landing-logo-text {
    font-size: 1.1rem;
  }
  .landing-logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .hero-cta-group {
    gap: 8px !important;
  }
  .hero-cta-group .btn-hero-primary,
  .hero-cta-group .btn-hero-demo,
  .hero-cta-group .btn-hero-secondary,
  .hero-cta-group .btn-hero-quiz {
    font-size: 0.78rem !important;
    padding: 10px 4px !important;
    min-height: 42px !important;
  }
  .hero-cta-group i {
    font-size: 0.88rem !important;
  }
  .landing-footer-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   PWA & MOBILE APP INSTALL BANNER STYLES (Desktop & Mobile)
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  width: auto;
  min-width: 320px;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(249, 115, 22, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100000;
  animation: pwaSlideUpDesktop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pwa-install-banner.hidden {
  display: none !important;
}

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

@media (max-width: 768px) {
  .pwa-install-banner {
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    animation: pwaSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes pwaSlideUpMobile {
    from {
      transform: translate(-50%, 60px);
      opacity: 0;
    }
    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pwa-banner-icon img {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  display: block;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-text strong {
  font-size: 0.84rem;
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-text span {
  font-size: 0.70rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-pwa-later {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pwa-later:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-pwa-action {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  color: #fff;
  font-weight: 750;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  white-space: nowrap;
}

.pwa-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.pwa-close-btn:hover {
  color: #fff;
}

body.pwa-standalone-mode .landing-nav {
  padding-top: max(14px, env(safe-area-inset-top));
}



