/* ============================================================
   FOREX SPREADS PAGE — spreads.css
   Zevivo brand colours (matching main.css / markets.css / swap-rates.css):
     Dark BG         : #1a2830 / #222c30  (deep green-grey, NOT blue)
     Dark Mid        : #2c393e
     Accent / CTA    : #FF4521  (orange-red)
     Green confirm   : #4ecb71
     Light section   : #f7f9fa / #fff
     Text dark       : #2c393e
     Text mid        : #4c575c
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.spreads-hero {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 50%, #1a2830 100%);
  /* LAYOUT SYSTEM: padding-top = var(--hero-padding-top) from layout-system.css */
  /* TRANSITION: was 150px (magic number) — now token-driven */
  padding: var(--hero-padding-top, 175px) 0 70px;
  position: relative;
  overflow: hidden;
}

.spreads-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,69,33,0.09) 0%, transparent 60%);
  pointer-events: none;
}

/* Breadcrumb */
.market-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.market-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.market-breadcrumb a:hover { color: #fff; }
.market-breadcrumb .breadcrumb-item.active { color: #FF4521; }
.market-breadcrumb .breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 10px; }

/* Hero Title */
.spreads-hero .market-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: 'Catamaran', sans-serif;
}
.spreads-hero .text-accent { color: #FF4521; }

/* Hero desc */
.spreads-hero .market-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}

/* Feature list */
.spreads-hero .market-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.spreads-hero .market-features-list li {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spreads-hero .market-features-list li i {
  color: #4ecb71;
  font-size: 1rem;
  flex-shrink: 0;
}

/* CTA buttons */
.spreads-hero .market-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.spreads-hero .market-hero-cta .btn {
  min-width: 160px;
  text-align: center;
}

/* Risk note */
.spreads-hero .risk-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---- Spread Ticker Board ---- */
.spreads-hero-visual {
  width: 100%;
  max-width: 480px;
}

.spread-ticker-board {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.spread-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.board-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.board-live-dot {
  font-size: 11px;
  color: #4ecb71;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.board-live-dot i { font-size: 8px; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.spread-ticker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spread-ticker-row:last-of-type { border-bottom: none; }

.ticker-pair {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  width: 72px;
  font-family: 'Catamaran', sans-serif;
}

.ticker-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.ticker-bid, .ticker-ask {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-family: 'Courier New', monospace;
}

.ticker-spread-badge {
  background: #FF4521;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  min-width: 36px;
  text-align: center;
}

.spread-badge-gold {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #222c30;
}

.ticker-pip-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  width: 24px;
  text-align: right;
}

.spread-board-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.spread-board-footer i { color: rgba(255,255,255,0.4); margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   STATS BAR  — matches market-stats-bar in markets.css
   ============================================================ */
/* market-stats-bar already defined in markets.css; no override needed */

/* ============================================================
   ACCOUNT COMPARISON
   ============================================================ */
.spreads-accounts-section {
  background: #f7f9fa;
  padding: var(--space-xxl) 0;
}

/* Section label tag */
.section-label-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FF4521;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* Override section-header for this page (light sections) */
.spreads-accounts-section .section-header,
.spreads-explainer-section .section-header,
.spreads-why-section .section-header,
.spreads-faq-section .section-header {
  color: #2c393e;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
  font-family: 'Catamaran', sans-serif;
}
.spreads-accounts-section .section-header strong,
.spreads-explainer-section .section-header strong,
.spreads-why-section .section-header strong,
.spreads-faq-section .section-header strong { font-weight: 800; }

.section-subheader {
  font-size: 1rem;
  color: #4c575c;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Account Cards */
.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid #dde2e5;
  height: 100%;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.account-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.account-card-featured {
  border-color: #FF4521;
}

.account-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF4521;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.account-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4c575c;
  flex-shrink: 0;
}
.account-icon-featured {
  background: #FF4521;
  color: #fff;
}

.account-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c393e;
  margin: 0 0 4px;
  font-family: 'Catamaran', sans-serif;
}
.account-tagline {
  font-size: 0.82rem;
  color: #7c898d;
  margin: 0;
}

.account-spread-highlight {
  background: #f7f9fa;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.account-spread-featured {
  background: linear-gradient(135deg, #FF4521, #e03a1a);
  color: #fff;
}

.spread-from-label {
  font-size: 0.8rem;
  color: #7c898d;
  font-weight: 500;
}
.account-spread-featured .spread-from-label { color: rgba(255,255,255,0.8); }

.spread-from-value {
  font-size: 2rem;
  font-weight: 800;
  color: #FF4521;
  font-family: 'Catamaran', sans-serif;
  line-height: 1;
}
.account-spread-featured .spread-from-value { color: #fff; }
.spread-from-value small {
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 4px;
}

.account-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.account-features li {
  font-size: 0.9rem;
  color: #4c575c;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-features li:last-child { border-bottom: none; }
.account-features li i { color: #4ecb71; font-size: 0.85rem; flex-shrink: 0; }

/* ============================================================
   SPREADS TABLE
   ============================================================ */
.spreads-table-section {
  background: #222c30;
  padding: var(--space-xxl) 0;
}

.spreads-table-section .section-label-tag { color: #FF4521; }

.spreads-table-title {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
  font-family: 'Catamaran', sans-serif;
}
.spreads-table-title strong { color: #FF4521; font-weight: 800; }

.spreads-table-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tab Nav */
.spreads-tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.spreads-tab-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Catamaran', sans-serif;
  letter-spacing: 0.5px;
}
.spreads-tab-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.spreads-tab-btn.active {
  background: #2c393e;
  border-color: #FF4521;
  color: #FF4521;
}

/* Tab Content */
.spreads-tab-content { display: none; }
.spreads-tab-content.active { display: block; }

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.spreads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spreads-table thead tr {
  background: #2c393e;
}

.spreads-table th {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.spreads-table th small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.spreads-table td {
  padding: 14px 18px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  background: rgba(255,255,255,0.02);
}

.spreads-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.04);
}

.spreads-table tbody tr:hover td {
  background: rgba(255,69,33,0.06);
}

.spreads-table tbody tr:last-child td {
  border-bottom: none;
}

.symbol-cell {
  font-weight: 700;
  color: #fff !important;
  font-family: 'Catamaran', sans-serif;
  letter-spacing: 0.5px;
}

.std-col {
  text-align: center;
  color: rgba(255,255,255,0.65) !important;
}

.raw-col {
  text-align: center;
}

.highlight-raw {
  color: #FF4521 !important;
  font-weight: 700;
}

.pip-col {
  text-align: center;
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.85rem;
}

.spreads-disclaimer-note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   EXPLAINER SECTION (What is a Spread?)
   ============================================================ */
.spreads-explainer-section {
  background: #fff;
  padding: var(--space-xxl) 0;
}

.explainer-subheading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c393e;
  margin-bottom: 16px;
  font-family: 'Catamaran', sans-serif;
}

.section-body-text {
  font-size: 0.97rem;
  color: #4c575c;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Formula Box */
.spread-formula-box {
  background: #f7f9fa;
  border-left: 4px solid #FF4521;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.formula-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FF4521;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.formula-text {
  font-size: 1rem;
  font-weight: 700;
  color: #2c393e;
  font-family: 'Courier New', monospace;
  margin: 0;
}

/* Spread Visual Example */
.spread-visual-example {
  background: #f7f9fa;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid #dde2e5;
}

.spread-example-pair {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2c393e;
  margin-bottom: 28px;
  font-family: 'Catamaran', sans-serif;
  letter-spacing: 2px;
}

.spread-example-prices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.spread-price-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  min-width: 130px;
  border: 1px solid #dde2e5;
}

.bid-box { border-top: 3px solid #e74c3c; }
.ask-box { border-top: 3px solid #4ecb71; }

.price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #7c898d;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.price-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c393e;
  font-family: 'Courier New', monospace;
}

.spread-arrow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.spread-arrow-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FF4521;
  text-transform: uppercase;
}

.spread-arrow-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FF4521;
  font-family: 'Catamaran', sans-serif;
}

.spread-arrows {
  display: flex;
  gap: 4px;
  color: #FF4521;
  font-size: 0.9rem;
}

/* Cost Calculator Box */
.spread-cost-calculator-box {
  background: #222c30;
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
  border-top: 3px solid #FF4521;
}

.calc-box-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Catamaran', sans-serif;
}

.calc-box-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Formula box inside dark section */
.spread-formula-dark {
  background: rgba(255,255,255,0.08);
  border-left: 4px solid #FF4521;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.spread-formula-dark .formula-label { color: #FF4521; }
.spread-formula-dark .formula-text { color: #fff; }

.calc-example {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px 24px;
}

.calc-example-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.calc-row:last-child { border-bottom: none; }

.calc-label { color: rgba(255,255,255,0.5); }
.calc-val { color: rgba(255,255,255,0.85); font-weight: 600; }

.calc-row-result {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  border-bottom: none !important;
}
.calc-row-result .calc-label { color: rgba(255,255,255,0.7); font-weight: 700; }
.calc-result-val { color: #FF4521 !important; font-size: 1.1rem; }

/* ============================================================
   WHY / WHAT AFFECTS SPREADS SECTION
   (Dark background with readable text)
   ============================================================ */
.spreads-why-section {
  background: #2c393e;
  padding: var(--space-xxl) 0;
}

/* Section header inside dark section */
.spreads-why-section .section-header {
  color: #fff !important;
}
.spreads-why-section .section-label-tag {
  color: #FF4521;
}
.spreads-why-section .section-subheader {
  color: rgba(255,255,255,0.65);
}



.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: 'Catamaran', sans-serif;
}

.why-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.spreads-faq-section {
  background: #f7f9fa;
  padding: var(--space-xxl) 0;
}

.spreads-faq-item {
  border: 1px solid #dde2e5;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.spreads-faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  color: #2c393e;
  text-align: left;
  gap: 16px;
  font-family: 'Work Sans', sans-serif;
  transition: background 0.2s;
}
.spreads-faq-toggle:hover { background: #f7f9fa; }
.spreads-faq-toggle[aria-expanded="true"] { color: #FF4521; }
.spreads-faq-toggle[aria-expanded="true"] i { transform: rotate(180deg); color: #FF4521; }

.spreads-faq-toggle i {
  color: #7c898d;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
}

.spreads-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.spreads-faq-body.open {
  max-height: 400px;
  padding: 0 24px 20px;
}

.spreads-faq-body p {
  font-size: 0.92rem;
  color: #4c575c;
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.spreads-cta-section {
  background: linear-gradient(135deg, #1a2830 0%, #222c30 100%);
  padding: var(--space-xl) 0;
  border-top: 3px solid #FF4521;
}

.spreads-cta-section .cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-family: 'Catamaran', sans-serif;
}
.spreads-cta-section .text-accent { color: #FF4521; }

.spreads-cta-section .cta-desc {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
}

.spreads-cta-section .d-flex.gap-3 {
  gap: 14px !important;
}

/* ============================================================
   APP INVITATION / FOOTER TOP
   ============================================================ */
.app-invitation-btns {
  background: #1a2830;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 52px; }

.social-links { gap: 12px; }

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover {
  background: #FF4521;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .spreads-hero { padding: 80px 0 60px; }
  .spread-cost-calculator-box { padding: 28px 24px; }
}

@media (max-width: 767px) {
  .spreads-hero { padding: 70px 0 50px; }
  .spreads-accounts-section,
  .spreads-table-section,
  .spreads-explainer-section,
  .spreads-why-section,
  .spreads-faq-section { padding: var(--space-xl) 0; }
  .spreads-cta-section { padding: var(--space-xl) 0; }

  .spreads-hero .market-features-list {
    grid-template-columns: 1fr;
  }

  .spreads-tab-btn { padding: 8px 16px; font-size: 0.82rem; }

  .spreads-table th,
  .spreads-table td { padding: 12px 12px; font-size: 0.82rem; }

  .spread-example-prices { flex-direction: column; gap: 12px; }
  .spread-arrow-box { flex-direction: row; gap: 12px; }

  .spreads-cta-section .d-flex { justify-content: center !important; }
  .spreads-cta-section .cta-title { text-align: center; }
  .spreads-cta-section .cta-desc { text-align: center; }

  .spread-ticker-board { padding: 18px; }
  .ticker-pair { width: 60px; font-size: 0.82rem; }
  .ticker-bid, .ticker-ask { font-size: 0.75rem; }

  .spread-cost-calculator-box { padding: 24px 18px; }
}
