:root {
  --bg-primary: #030308;
  --bg-secondary: #07070f;
  --bg-card: #0b0b18;
  --bg-card-hover: #0f0f22;
  --neon-blue: #00d4ff;
  --neon-blue-dim: rgba(0, 212, 255, 0.15);
  --neon-blue-glow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
  --neon-green: #00ff88;
  --neon-green-dim: rgba(0, 255, 136, 0.1);
  --neon-green-glow: 0 0 20px rgba(0, 255, 136, 0.4);
  --neon-red: #ff3366;
  --neon-red-dim: rgba(255, 51, 102, 0.1);
  --text-primary: #e8e8f0;
  --text-secondary: #7a7a9a;
  --text-muted: #4a4a6a;
  --border-default: rgba(0, 212, 255, 0.1);
  --border-active: rgba(0, 212, 255, 0.4);
  --grid-color: rgba(0, 212, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.card {
  background: rgba(11, 11, 24, 0.82);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--neon-blue-glow);
  transform: translateY(-4px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled,
.navbar:has(.nav-links.open) {
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border-default);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.footer-brand .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 4px;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
  animation: pulse 1.6s ease infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  background: var(--neon-blue);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--neon-blue);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-coming-soon {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  cursor: default;
  white-space: nowrap;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px 2px;
  border: 1px solid rgba(255, 51, 102, 0.55);
  border-radius: 999px;
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.12);
}

[dir='rtl'] .soon-badge {
  transform: rotate(8deg);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle,
.hamburger {
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  background: rgba(11, 11, 24, 0.7);
  cursor: pointer;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 10px;
}

.hamburger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--neon-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particles-canvas,
.bg-chart {
  position: absolute;
  inset: 0;
}

.bg-chart {
  width: 100%;
  height: 100%;
  opacity: 0.25;
  pointer-events: none;
}

.bg-chart path {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 2;
  stroke-dasharray: 18 14;
  animation: chartMove 12s linear infinite;
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.5));
}

.brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(100%, 980px);
  padding: 0 16px;
}

.brand-letters {
  display: flex;
  gap: clamp(8px, 2vw, 24px);
  justify-content: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.brand-letter {
  position: relative;
  color: transparent;
  -webkit-text-stroke: 2px var(--neon-blue);
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.brand-letter.active,
.brand-letter:hover {
  color: var(--neon-blue);
  text-shadow: var(--neon-blue-glow);
  -webkit-text-stroke: 0;
  transform: scale(1.1) translateY(-8px);
}

.letter-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  padding: 8px 16px;
  border-radius: 8px;
  font: 14px 'JetBrains Mono', monospace;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.brand-letter.active .letter-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.brand-underline {
  height: 2px;
  width: 0;
  margin: 16px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-green), var(--neon-blue), transparent);
  box-shadow: var(--neon-blue-glow);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-underline.animate {
  width: 100%;
}

.acronym-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  direction: ltr;
  unicode-bidi: isolate;
  margin-top: 24px;
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease 1.4s both;
}

.acr-item em,
.footer-meaning em {
  color: var(--neon-blue);
  font-style: normal;
  font-weight: 700;
}

.acr-dot {
  color: var(--text-muted);
}

.typewriter-container {
  margin-top: 32px;
  min-height: 42px;
  font: clamp(16px, 2.5vw, 24px) 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.cursor {
  color: var(--neon-blue);
  animation: blink 1s step-end infinite;
}

.floating-pairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pair-float {
  position: absolute;
  font: 11px 'JetBrains Mono', monospace;
  color: rgba(0, 212, 255, 0.16);
  animation: drift 20s ease-in-out infinite alternate;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
  animation: scrollPulse 2s ease infinite;
}

.hero-section,
.comparison-section,
.calculator-section,
.brokers-section {
  padding: 120px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-active);
  border-radius: 999px;
  color: var(--neon-blue);
  background: var(--neon-blue-dim);
  font: 12px 'JetBrains Mono', monospace;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: var(--neon-green-glow);
}

.hero-headline,
.section-title {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-title {
  max-width: 880px;
  margin: 0 auto 16px;
  text-align: center;
  font-size: clamp(34px, 5vw, 62px);
}

.headline-accent {
  color: var(--neon-green);
  text-shadow: var(--neon-green-glow);
}

.hero-description,
.section-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 620px;
}

.section-subtitle {
  margin: 0 auto 42px;
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--neon-blue);
  color: #02040a;
  box-shadow: var(--neon-blue-glow);
}

.btn-ghost {
  border-color: var(--border-active);
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.05);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-item,
.result-card,
.comparison-controls,
.terminal-window,
.comp-col,
.chart-container {
  border: 1px solid var(--border-default);
  background: rgba(11, 11, 24, 0.72);
  backdrop-filter: blur(10px);
}

.stat-item {
  padding: 18px;
  border-radius: 14px;
}

.stat-value,
.result-value,
.ticker-price,
.ticker-change,
.stat-val {
  font-family: 'JetBrains Mono', monospace;
}

.stat-value {
  display: block;
  color: var(--neon-blue);
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.terminal-window {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), var(--neon-blue-glow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-default);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title,
.terminal-time {
  font: 12px 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.terminal-time {
  margin-left: auto;
}

.ticker-grid {
  display: grid;
  gap: 1px;
  background: rgba(0, 212, 255, 0.06);
}

.ticker-row {
  display: grid;
  grid-template-columns: 1.1fr 80px 1fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(7, 7, 15, 0.92);
  transition: background 0.2s ease;
}

.ticker-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13px 'JetBrains Mono', monospace;
}

.pair-category {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-blue);
}

.cat-commodity { background: var(--neon-green); }
.cat-crypto { background: var(--neon-red); }

.ticker-price,
.ticker-change {
  text-align: right;
  font-size: 13px;
}

.price-up,
.up,
.buy-label,
.green {
  color: var(--neon-green);
}

.price-down,
.down,
.sell-label {
  color: var(--neon-red);
}

.flash-up { background: rgba(0, 255, 136, 0.08); }
.flash-down { background: rgba(255, 51, 102, 0.08); }

.sentiment-bar-container {
  padding: 18px 16px 20px;
}

.sentiment-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font: 12px 'JetBrains Mono', monospace;
}

.pair-name {
  color: var(--text-secondary);
}

.sentiment-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--neon-red-dim);
}

.sentiment-buy {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  box-shadow: var(--neon-green-glow);
  transition: width 0.4s ease;
}

.comparison-controls {
  width: min(640px, 100%);
  margin: 0 auto 42px;
  padding: 18px;
  border-radius: 16px;
}

.comparison-controls label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

input[type='range'] {
  width: 100%;
  accent-color: var(--neon-blue);
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.comp-col {
  flex: 1;
  border-radius: 16px;
  padding: 26px;
}

.comp-header {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}

.comp-icon {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--neon-blue);
  background: var(--neon-blue-dim);
  font: 11px 'JetBrains Mono', monospace;
}

.comp-header h3 {
  margin: 0;
  font-size: 26px;
}

.comp-rate,
.comparison-disclaimer {
  color: var(--text-muted);
}

.comp-bars,
.comp-bar-item {
  display: grid;
  gap: 12px;
}

.comp-bar-item {
  margin-bottom: 22px;
}

.bar-wrap {
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.bar {
  position: relative;
  min-width: 70px;
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bank-bar {
  background: linear-gradient(90deg, #303044, #67677f);
}

.forex-bar {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  box-shadow: var(--neon-green-glow);
}

.forex-explosion {
  animation: glowPulse 2s ease infinite;
}

.bar-label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font: 700 13px 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--neon-red);
  font: 700 18px 'JetBrains Mono', monospace;
}

.vs-line {
  width: 80px;
  height: 1px;
  background: var(--border-active);
}

.comparison-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.input-group {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label,
.result-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.input-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.input-prefix,
.input-suffix {
  color: var(--neon-blue);
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
}

.input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  padding: 0 12px;
}

.calc-results {
  display: grid;
  gap: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  padding: 20px;
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
}

.result-card.highlight {
  grid-column: 1 / -1;
  border-color: var(--border-active);
  box-shadow: var(--neon-blue-glow);
}

.result-value {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-weight: 700;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(18px, 3.4vw, 34px);
}

.chart-container {
  border-radius: 16px;
  padding: 16px;
  min-height: 236px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.filter-btn {
  min-height: 42px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text-secondary);
  background: rgba(11, 11, 24, 0.72);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--bg-primary);
  background: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
}

.brokers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-bottom: 100px;
}

.broker-card {
  position: relative;
  display: grid;
  gap: 20px;
  opacity: 1;
}

.broker-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 9px;
  font: 11px 'JetBrains Mono', monospace;
}

.broker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 96px;
}

.broker-logo {
  width: 58px;
  height: 58px;
  border: 1px solid;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 18px 'JetBrains Mono', monospace;
}

.broker-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.broker-name {
  margin: 0 0 4px;
  font-size: 24px;
}

.broker-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.broker-rate-input {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

.broker-rate-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease;
}

.broker-rate-btn:hover {
  background: rgba(255, 215, 0, 0.18);
  transform: translateY(-1px);
}

.broker-rate-feedback {
  min-width: 42px;
  color: var(--neon-green);
  font-size: 11px;
  margin-left: 4px;
}

.stars {
  color: var(--neon-green);
}

.rating-num {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.broker-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.broker-stats .stat {
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.broker-stats .stat-label {
  margin: 0 0 2px;
}

.stat-val {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}

.stat-val.neon {
  color: var(--neon-green);
}

.broker-regulation,
.broker-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.chip-reg {
  color: var(--neon-blue);
  background: var(--neon-blue-dim);
}

.chip-feature {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.compare-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  cursor: pointer;
}

.compare-check input {
  position: absolute;
  opacity: 0;
}

.check-custom {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-active);
  border-radius: 6px;
}

.compare-check input:checked + .check-custom {
  background: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
}

.broker-payment-btn {
  justify-content: center;
}

.compare-sticky {
  position: fixed;
  bottom: 32px;
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 380px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--bg-primary);
  background: var(--neon-green);
  box-shadow: var(--neon-green-glow);
  font-weight: 700;
  animation: slideUp 0.3s ease-out;
}

.compare-sticky.hiding {
  animation: slideDown 0.22s ease-in forwards;
}

.compare-now-btn,
.compare-clear-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.compare-now-btn {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  color: #001018;
  background: var(--neon-blue);
  box-shadow: var(--neon-blue-glow);
}

.compare-clear-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #001018;
  background: rgba(255, 255, 255, 0.45);
  font-size: 18px;
}

.compare-hint {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 1100;
  max-width: min(420px, calc(100% - 32px));
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 10px;
  background: rgba(7, 7, 15, 0.96);
  color: #ff6688;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.compare-hint.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.compare-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.compare-modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-active);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.75), var(--neon-blue-glow);
}

.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-default);
}

.compare-modal-header h3 {
  margin: 0;
}

.compare-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}

.compare-modal-body {
  overflow: auto;
  padding: 22px;
}

.compare-table {
  min-width: 720px;
  display: grid;
  gap: 1px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 190px repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 212, 255, 0.08);
}

.compare-row > div {
  padding: 14px;
  background: rgba(7, 7, 15, 0.96);
}

.compare-head > div {
  color: var(--text-primary);
  font-weight: 800;
}

.compare-broker-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-broker-head img,
.compare-broker-head span {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neon-blue);
  font-weight: 800;
}

.compare-better {
  color: var(--neon-blue);
  box-shadow: inset 3px 0 0 var(--neon-blue);
}

.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.broker-payment-modal {
  width: min(720px, 100%);
}

.broker-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.broker-payment-method {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.broker-payment-method img {
  width: 92px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.broker-payment-method span {
  color: var(--text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.broker-payment-empty {
  padding: 34px 16px;
  color: var(--text-muted);
  text-align: center;
}

.broker-loading {
  grid-column: 1 / -1;
  color: var(--text-muted);
  text-align: center;
  padding: 36px;
}

.footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--border-default);
  background: rgba(7, 7, 15, 0.9);
}

.footer .container {
  display: grid;
  gap: 24px;
}

.footer-meaning,
.footer-disclaimer,
.footer-bottom {
  color: var(--text-muted);
}

.footer-meaning {
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand .footer-meaning {
  flex-basis: 100%;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--neon-blue);
}

.footer-coming-soon {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: default;
  white-space: nowrap;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
}

.footer-socials a:hover {
  color: var(--neon-blue);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.11);
}

.footer-socials a[aria-label*="WhatsApp"]:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.12);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-disclaimer {
  max-width: 900px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[dir='rtl'] body {
  font-family: 'Cairo', sans-serif;
}

[dir='rtl'] .nav-links,
[dir='rtl'] .ticker-row {
  direction: rtl;
}

[dir='rtl'] .brand-logo-container,
[dir='rtl'] .brand-letters,
[dir='rtl'] .brand-letter,
[dir='rtl'] .acronym-row {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir='rtl'] .hero-grid,
[dir='rtl'] .calc-grid,
[dir='rtl'] .comparison-grid {
  direction: rtl;
}

[dir='rtl'] .terminal-time {
  margin-left: 0;
  margin-right: auto;
}

[dir='rtl'] .broker-badge {
  right: auto;
  left: 18px;
}

[dir='rtl'] .broker-header {
  padding-right: 0;
  padding-left: 96px;
}

@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-inner {
    height: 64px;
    gap: 10px;
  }

  .nav-controls {
    gap: 8px;
    flex-shrink: 0;
  }

  .lang-toggle {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hamburger {
    display: block;
    width: 38px;
    height: 38px;
    padding: 8px;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    width: 100%;
    min-height: calc(100dvh - 64px);
    padding: 28px 16px;
    background: rgba(3, 3, 8, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 22px;
  }

  [dir='rtl'] .nav-links {
    transform: translateX(-100%);
  }

  [dir='rtl'] .nav-links.open {
    transform: translateX(0);
  }

  .brand-section {
    min-height: 620px;
  }

  .hero-section,
  .comparison-section,
  .calculator-section,
  .brokers-section {
    padding: 84px 0;
  }

  .hero-stats,
  .result-grid,
  .broker-stats {
    grid-template-columns: 1fr;
  }

  .ticker-row {
    grid-template-columns: 1fr 72px;
  }

  .sparkline,
  .ticker-change {
    display: none;
  }

  .broker-header {
    padding-right: 0;
    padding-top: 28px;
  }

  [dir='rtl'] .broker-header {
    padding-left: 0;
  }

  .compare-sticky {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 16px 16px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 8px;
    padding: 12px;
    font-size: 13px;
    text-align: start;
    box-sizing: border-box;
  }

  #compare-text {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .compare-now-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  .compare-clear-btn {
    align-self: start;
  }

  .compare-modal-overlay {
    padding: 0;
  }

  .compare-modal {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .compare-modal-header {
    padding: 14px 16px;
  }

  .compare-modal-header h3 {
    font-size: 16px;
  }

  .compare-modal-body {
    padding: 14px;
  }

  .compare-table {
    min-width: 0;
    display: grid;
    gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .compare-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
  }

  .compare-row > div {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  }

  .compare-row > div:last-child {
    border-bottom: 0;
  }

  .compare-row > div:first-child {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.06);
  }

  .compare-head {
    grid-template-columns: 1fr;
  }

  .compare-head > div:first-child {
    display: none;
  }

  .compare-broker-head {
    align-items: center;
  }

  .compare-broker-head img,
  .compare-broker-head span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .compare-better {
    box-shadow: inset 3px 0 0 var(--neon-blue);
    background: rgba(0, 212, 255, 0.06) !important;
  }

  .compare-actions > div:first-child {
    display: none;
  }
}

@media (min-width: 768px) {
  .brokers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: 60fr 40fr;
  }

  .brokers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-grid {
    flex-direction: row;
    align-items: stretch;
  }

  .vs-divider {
    flex-direction: column;
  }

  .vs-line {
    width: 1px;
    height: 120px;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.45); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, -30px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chartMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -160; }
}

@keyframes glowPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to { transform: translateX(-50%) translateY(100px); opacity: 0; }
}

@media (max-width: 640px) {
  @keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  @keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
  }
}

/* Chart Tooltip */
.chart-container {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  background: rgba(7, 7, 15, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  pointer-events: none;
  z-index: 100;
  min-width: 180px;
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.6);
  transition: opacity 0.15s ease;
}

.chart-tooltip.hidden {
  display: none !important;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.tooltip-row:last-child { margin-bottom: 0; }

.tooltip-label {
  color: rgba(122, 122, 154, 0.9);
  white-space: nowrap;
}

.tooltip-value {
  color: #e8e8f0;
  font-weight: 600;
  white-space: nowrap;
}

.tooltip-value.profit { color: #00ff88; }
.tooltip-value.year {
  color: #00d4ff;
  font-size: 13px;
  font-weight: 700;
}

.tooltip-divider {
  height: 1px;
  background: rgba(0, 212, 255, 0.15);
  margin: 8px 0;
}

.chart-hover-zone {
  fill: transparent;
  cursor: crosshair;
}

/* Milestone Markers */
.milestone-group {
  cursor: pointer;
}

.milestone-line {
  stroke-dasharray: 3, 3;
}

.milestone-hover-zone {
  fill: transparent;
  cursor: pointer;
}

@keyframes milestonePulse {
  0%, 100% {
    opacity: 1;
    r: 5;
  }
  50% {
    opacity: 0.6;
    r: 7;
  }
}

.milestone-pulse {
  animation: milestonePulse 2s ease-in-out infinite;
}

/* LOGO SIZE FIX - must stay at bottom of file */
.nav-logo img,
a.nav-logo img,
nav .nav-logo img,
#navbar .nav-logo img {
  width: 120px !important;
  height: 80px !important;
  min-width: 120px !important;
  min-height: 80px !important;
  max-width: 120px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.footer-brand img,
footer .footer-brand img,
.footer .footer-brand img {
  width: 180px !important;
  height: 120px !important;
  min-width: 180px !important;
  min-height: 120px !important;
  max-width: 180px !important;
  max-height: 120px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.nav-logo,
a.nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

.footer-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.footer-brand .footer-meaning {
  flex-basis: 100% !important;
}

@media (max-width: 768px) {
  .nav-logo img,
  a.nav-logo img,
  nav .nav-logo img,
  #navbar .nav-logo img {
    width: 90px !important;
    height: 60px !important;
    min-width: 90px !important;
    min-height: 60px !important;
    max-width: 90px !important;
    max-height: 60px !important;
  }

  .footer-brand img,
  footer .footer-brand img,
  .footer .footer-brand img {
    width: 135px !important;
    height: 90px !important;
    min-width: 135px !important;
    min-height: 90px !important;
    max-width: 135px !important;
    max-height: 90px !important;
  }
}

@media (max-width: 480px) {
  .nav-logo img,
  a.nav-logo img,
  nav .nav-logo img,
  #navbar .nav-logo img {
    width: 72px !important;
    height: 48px !important;
    min-width: 72px !important;
    min-height: 48px !important;
    max-width: 72px !important;
    max-height: 48px !important;
  }

  .footer-brand img,
  footer .footer-brand img,
  .footer .footer-brand img {
    width: 120px !important;
    height: 80px !important;
    min-width: 120px !important;
    min-height: 80px !important;
    max-width: 120px !important;
    max-height: 80px !important;
  }
}

/* ════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
   Visible ONLY on screens below 1024px
   Hidden completely on desktop
   ════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  /* Hidden on desktop */
  display: none;
}

@media (max-width: 1023px) {

  /* Show on mobile and tablet */
  .mobile-bottom-nav {
    display:         flex;
    align-items:     center;
    justify-content: space-around;

    /* Fixed at bottom of screen */
    position:   fixed;
    bottom:     20px;
    left:       50%;
    transform:  translateX(-50%);
    z-index:    999;

    /* Pill shape */
    width:         calc(100% - 40px);
    max-width:     380px;
    height:        58px;
    border-radius: 29px;
    padding:       0 8px;

    /* Glassmorphism dark style */
    background:      rgba(7, 7, 15, 0.92);
    border:          1px solid rgba(0, 212, 255, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Neon glow */
    box-shadow:
      0 0 20px rgba(0, 212, 255, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.60),
      inset 0 1px 0 rgba(0, 212, 255, 0.10);
  }

  /* Each nav button */
  .mob-nav-btn {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             3px;

    flex:            1;
    height:          100%;
    border-radius:   24px;
    text-decoration: none;
    color:           var(--text-muted, #7a7a9a);

    transition: all 0.2s ease;
    position:   relative;
  }

  /* Hover and active state */
  .mob-nav-btn:hover,
  .mob-nav-btn:active {
    color:      var(--neon-blue, #00d4ff);
    background: rgba(0, 212, 255, 0.08);
  }

  /* Tap feedback on touch */
  .mob-nav-btn:active {
    transform: scale(0.94);
  }

  /* Icon */
  .mob-nav-icon {
    width:       22px;
    height:      22px;
    line-height: 1;
    display:     block;
  }

  .mob-nav-icon img {
    width:      100%;
    height:     100%;
    display:    block;
    object-fit: contain;
  }

  /* Label */
  .mob-nav-label {
    font-family:    'Space Grotesk', sans-serif;
    font-size:      10px;
    font-weight:    600;
    letter-spacing: 0.3px;
    line-height:    1;
    display:        block;
  }

  /* Add bottom padding to body so content
     is not hidden behind the floating bar */
  body {
    padding-bottom: 90px;
  }

  /* Thin cyan divider between buttons */
  .mob-nav-btn + .mob-nav-btn::before {
    content:    '';
    position:   absolute;
    left:       0;
    top:        18px;
    bottom:     18px;
    width:      1px;
    background: rgba(0, 212, 255, 0.12);
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .mobile-bottom-nav {
    bottom:    14px;
    height:    54px;
    max-width: calc(100% - 24px);
  }
  .mob-nav-icon  { width: 20px; height: 20px; }
  .mob-nav-label { font-size: 9px;  }
}

/* RTL support */
[dir="rtl"] .mobile-bottom-nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .mob-nav-btn + .mob-nav-btn::before {
  left:  auto;
  right: 0;
}
