*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0B0F19;
  --bg-raise: #111827;
  --bg-card: #1A2035;
  --bg-card-h: #1E2642;
  --bg-input: #1E2642;
  --border: rgba(71, 85, 125, 0.18);
  --border-h: rgba(71, 85, 125, 0.35);

  --t1: #E8ECF4;
  --t2: #9CA3B8;
  --t3: #636B82;

  --sydney:  #38BDF8;
  --tokyo:   #FB7185;
  --london:  #FBBF24;
  --newyork: #34D399;

  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.1);
  --green-border: rgba(16, 185, 129, 0.2);
  --indigo: #6366F1;
  --indigo-soft: rgba(99, 102, 241, 0.1);
  --indigo-border: rgba(99, 102, 241, 0.2);

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  --max: 1140px;
  --r: 14px;
  --r-sm: 10px;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */

.header {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px; gap: 16px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--t1);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.02em;
}
.logo svg { width: 54px; height: 54px; flex-shrink: 0; }

.nav { display: flex; gap: 2px; }
.nav a {
  color: var(--t2); text-decoration: none;
  font-size: .84rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--t1); background: rgba(99,102,241,.07); }

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

.tz-select {
  background: var(--bg-input); color: var(--t1);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-family: var(--ff);
  font-size: .8rem; cursor: pointer;
  max-width: 190px; outline: none;
}
.tz-select:focus { border-color: var(--indigo); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--t2); border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */

.hero {
  padding: 110px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(99,102,241,.07), transparent),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(16,185,129,.04), transparent);
}

.hero::after {
  content: ''; display: block;
  width: 60%; max-width: 500px;
  height: 1px; margin: 0 auto;
  margin-top: 72px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #FFF;
}

.hero-desc {
  color: var(--t2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 44px;
}

.hero-clock {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}

.clock-display {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 56px;
}

.clock-time {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .05em;
  color: #FFF;
  line-height: 1;
}

.clock-label {
  font-size: .74rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
}

.market-badge {
  display: inline-flex; align-items: center;
  gap: 8px; padding: 7px 20px;
  border-radius: 100px;
  font-size: .82rem; font-weight: 600;
}
.market-badge.open {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.market-badge.closed {
  background: rgba(99,107,130,.1);
  border: 1px solid rgba(99,107,130,.15);
  color: var(--t3);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%; background: currentColor;
}
.market-badge.open .badge-dot {
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 6px currentColor;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}

.active-sessions-list {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; font-size: .76rem;
}
.active-sessions-list span {
  padding: 4px 13px; border-radius: 100px;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  color: var(--t2);
}

/* ── Sections ── */

.section { padding: 80px 0; }

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 8px;
  color: #FFF;
}

.section-desc {
  text-align: center;
  color: var(--t2);
  margin-bottom: 44px;
  font-size: .96rem;
}

/* ── Session cards ── */

.session-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.session-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

[data-session="sydney"]  { --sc: var(--sydney); }
[data-session="tokyo"]   { --sc: var(--tokyo); }
[data-session="london"]  { --sc: var(--london); }
[data-session="newyork"] { --sc: var(--newyork); }

.card-accent { height: 3px; background: var(--sc); }

.card-top {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}
.card-title { display: flex; align-items: center; gap: 9px; }
.card-title .flag { font-size: 1.3rem; }
.card-title h3 { font-size: .98rem; font-weight: 700; color: #FFF; }

.status-badge {
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 6px;
}
.status-badge.open {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.status-badge.closed {
  background: rgba(99,107,130,.08);
  color: var(--t3);
  border: 1px solid rgba(99,107,130,.12);
}

.card-times {
  padding: 14px 18px 0;
  display: flex; flex-direction: column; gap: 7px;
}
.time-row { display: flex; justify-content: space-between; align-items: center; }
.time-label { font-size: .74rem; color: var(--t3); }
.time-value { font-size: .84rem; font-weight: 600; color: var(--t1); }

.card-progress { padding: 14px 18px 0; }
.progress-track {
  height: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: var(--sc);
  width: 0%; transition: width 1s;
}

.card-countdown {
  padding: 10px 18px 0;
  font-size: .74rem; color: var(--t3);
  min-height: 26px;
}

.card-pairs {
  padding: 12px 18px 18px;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.pair-chip {
  font-size: .67rem; font-weight: 600;
  font-family: var(--mono);
  padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: var(--t2);
  border: 1px solid var(--border);
}

/* ── Timeline ── */

.timeline-section {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 22px;
  overflow-x: auto;
}

.timeline-grid { min-width: 660px; }

.timeline-row {
  display: flex; align-items: center;
  height: 38px; margin-bottom: 8px;
}
.timeline-row:last-child { margin-bottom: 0; }

.timeline-label {
  width: 86px; flex-shrink: 0;
  font-size: .82rem; font-weight: 600;
  color: var(--t2);
}

.timeline-track {
  flex: 1; height: 30px; position: relative;
  background: rgba(255,255,255,.025);
  border-radius: 6px;
}

.timeline-bar {
  position: absolute; top: 3px; height: 24px;
  border-radius: 4px; opacity: .82;
}
.timeline-bar:hover { opacity: 1; }

.timeline-bar.sydney-bar  { background: var(--sydney); }
.timeline-bar.tokyo-bar   { background: var(--tokyo); }
.timeline-bar.london-bar  { background: var(--london); }
.timeline-bar.newyork-bar { background: var(--newyork); }

.timeline-now {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px; background: #EF4444; z-index: 5;
}
.timeline-now::before {
  content: ''; position: absolute;
  top: -2px; left: -3px;
  width: 8px; height: 8px;
  background: #EF4444; border-radius: 50%;
}

.timeline-hours {
  display: flex; margin-top: 10px;
  padding-left: 86px;
}
.timeline-hours span {
  flex: 1; text-align: left;
  font-size: .68rem; color: var(--t3);
  font-family: var(--mono);
}

.timeline-legend {
  display: flex; justify-content: center;
  gap: 22px; margin-top: 18px; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center;
  gap: 6px; font-size: .8rem; color: var(--t2);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.sydney-bg  { background: var(--sydney); }
.tokyo-bg   { background: var(--tokyo); }
.london-bg  { background: var(--london); }
.newyork-bg { background: var(--newyork); }
.overlap-bg { background: linear-gradient(135deg, var(--london), var(--newyork)); }

/* ── Overlaps ── */

.overlap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.overlap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.overlap-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.overlap-card.highlight {
  border-color: rgba(251,191,36,.18);
}

.overlap-header { margin-bottom: 12px; }
.overlap-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.overlap-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.overlap-icon svg { display: block; }
.ol-ln { background: rgba(251,191,36,.1); color: var(--london); }
.ol-st { background: rgba(56,189,248,.1); color: var(--sydney); }
.ol-tl { background: rgba(251,113,133,.1); color: var(--tokyo); }

.overlap-header h3 { font-size: 1rem; font-weight: 700; color: #FFF; }

.volume-badge {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 5px;
}
.volume-badge.high {
  background: rgba(251,191,36,.1);
  color: var(--london);
  border: 1px solid rgba(251,191,36,.15);
}
.volume-badge.medium {
  background: var(--indigo-soft);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
}

.overlap-time {
  font-family: var(--mono);
  font-size: 1.1rem; font-weight: 700;
  color: #FFF; margin-bottom: 10px;
}

.overlap-card > p:last-child {
  font-size: .86rem; color: var(--t2); line-height: 1.65;
}

/* ── Best time ── */

.best-time-section {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  display: flex; gap: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.strategy-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.strategy-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-soft);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
  border-radius: 10px;
}
.strategy-icon svg { display: block; }

.strategy-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; color: #FFF; }
.strategy-card p { font-size: .86rem; color: var(--t2); line-height: 1.6; }
.strategy-card strong { color: var(--green); font-weight: 600; }

.tip-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  font-size: .88rem; color: var(--t2);
  line-height: 1.6;
}
.tip-box strong { color: var(--green); }

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}
.about-block h2 { text-align: left; font-size: 1.2rem; margin-bottom: 14px; }
.about-block p { font-size: .9rem; color: var(--t2); line-height: 1.75; margin-bottom: 10px; }
.about-block p:last-child { margin-bottom: 0; }

/* ── Pairs ── */

.pairs-section {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pairs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pairs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sc);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .2s, box-shadow .2s;
}
.pairs-card::before { display: none; }
.pairs-card:hover {
  border-color: var(--border-h);
  border-top-color: var(--sc);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.pairs-card h3 {
  font-size: .94rem; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
  color: #FFF;
}

.pairs-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.pairs-list span {
  font-family: var(--mono);
  font-size: .73rem; font-weight: 600;
  padding: 4px 9px; border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: var(--sc);
  border: 1px solid var(--border);
}

.pairs-card > p:last-child {
  font-size: .82rem; color: var(--t3); line-height: 1.6;
}

/* ── FAQ ── */

.faq-list { max-width: 740px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-h); }

.faq-item summary {
  padding: 18px 22px;
  font-size: .94rem; font-weight: 600;
  color: var(--t1); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem; font-weight: 300;
  color: var(--t3);
  transition: transform .2s, color .2s;
  margin-left: 14px;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-item summary:hover { color: var(--green); }

.faq-answer { padding: 0 22px 18px; }
.faq-answer p { font-size: .9rem; color: var(--t2); line-height: 1.75; }

/* ── Footer ── */

.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.footer-logo { font-weight: 700; font-size: 1.05rem; color: var(--t1); }
.footer-brand p { font-size: .82rem; color: var(--t3); margin-top: 5px; }

.footer-heading {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--t1);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: var(--t2); text-decoration: none;
  font-size: .82rem; font-weight: 500;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--green); }

.footer-resources { display: flex; flex-direction: column; gap: 8px; }
.footer-resources a {
  color: var(--t2); text-decoration: none;
  font-size: .82rem; font-weight: 500;
  transition: color .15s;
}
.footer-resources a:hover { color: var(--green); }

.footer-legal-links { display: flex; flex-direction: column; gap: 8px; }
.footer-legal-links a {
  color: var(--t2); text-decoration: none;
  font-size: .82rem; font-weight: 500;
  transition: color .15s;
}
.footer-legal-links a:hover { color: var(--green); }

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-legal p { font-size: .76rem; color: var(--t3); }
.disclaimer { max-width: 560px; margin: 5px auto 0; line-height: 1.55; }

/* ── Responsive ── */

@media (max-width: 1024px) {
  .session-grid  { grid-template-columns: repeat(2, 1fr); }
  .pairs-grid    { grid-template-columns: repeat(2, 1fr); }
  .overlap-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(11,15,25,.97);
    backdrop-filter: blur(16px);
    flex-direction: column; padding: 14px 20px; gap: 2px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); opacity: 0;
    transition: transform .25s, opacity .25s;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav a { padding: 13px 16px; font-size: .95rem; width: 100%; }
  .nav-toggle { display: flex; }
  .tz-select { max-width: 130px; }
  .section { padding: 60px 0; }
  .strategy-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-legal { text-align: center; }
  .footer-nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .session-grid  { grid-template-columns: 1fr; }
  .pairs-grid    { grid-template-columns: 1fr; }
  .hero { padding: 92px 0 52px; }
  .section { padding: 48px 0; }
  .clock-display { padding: 22px 36px; }
}

/* ── Affiliate Sidebar ── */

.site-affiliate {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  border: 1px solid var(--border);
  transition: opacity .3s, box-shadow .3s;
  opacity: .85;
}
.site-affiliate:hover {
  opacity: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.site-affiliate a { display: block; line-height: 0; }
.site-affiliate img { display: block; border-radius: var(--r); }

@media (max-width: 1400px) {
  .site-affiliate { right: 4px; }
}
@media (max-width: 1200px) {
  .site-affiliate { display: none; }
}

/* Mobile bottom sticky affiliate */
.mobile-affiliate {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 8px 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.mobile-affiliate a { display: inline-block; line-height: 0; }
.mobile-affiliate img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.mobile-affiliate-close {
  position: absolute;
  top: -14px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--t2);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mobile-affiliate-close:hover {
  background: var(--bg-card-h);
  color: var(--t1);
}
.mobile-affiliate.hidden { display: none !important; }

@media (max-width: 1200px) {
  .mobile-affiliate { display: block; }
}

/* ── Scrollbar & Selection ── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }
::selection { background: rgba(99,102,241,.25); }
