:root {
  --bg: #050508;
  --bg2: #09090f;
  --bg3: #0f0f1a;
  --gold: #c8a84b;
  --gold2: #f0d070;
  --gold-dim: rgba(200, 168, 75, 0.12);
  --cyan: #00e5ff;
  --orange: #f59e0b;
  --red: #ff3b5c;
  --green: #00ff88;
  --text: #e8e4d8;
  --text-dim: #7a7068;
  --border: rgba(200, 168, 75, 0.18);
  --border2: rgba(200, 168, 75, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 168, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 168, 75, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 8, 0.7);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: -1px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--text-dim);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

/* ── DROPDOWN MENU ── */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(9, 9, 15, 0.95);
  min-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 101;
  top: 100%;
  left: 0;
  padding: 10px 0;
  backdrop-filter: blur(10px);
}

.dropdown-content a {
  color: var(--text-dim) !important;
  padding: 10px 20px !important;
  text-decoration: none !important;
  display: block !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--gold-dim) !important;
  color: var(--gold2) !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ── MOBILE NAV BURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    padding: 10px 6% 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links > li {
    border-bottom: 1px solid var(--border2);
  }

  .nav-links > li > a {
    display: block;
    padding: 18px 4px;
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 16px;
  }

  .dropdown-content {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    max-height: none;
    border: none;
    border-left: 2px solid var(--gold-dim);
    background: transparent;
    box-shadow: none;
    padding: 0 0 8px 14px;
    backdrop-filter: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 12px 10px !important;
  }

  .nav-ea-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .nav-ea-toggle .caret {
    transition: transform 0.25s;
    color: var(--gold);
  }

  .dropdown.open .nav-ea-toggle .caret {
    transform: rotate(180deg);
  }
}

/* ── BREADCRUMB ── */
.breadcrumb-container {
  margin-top: 110px;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  list-style: none;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold2);
}

.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-dim);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb li.active {
  color: var(--text);
}

/* ── CONTAINER & LAYOUT ── */
.main-container {
  max-width: 1200px;
  margin: 40px auto 100px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 960px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* ── DETAIL CONTENT ── */
.ea-content {
  background: rgba(9, 9, 15, 0.6);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.ea-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 24px;
}

.ea-badge-version {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--gold-dim);
  color: var(--gold2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.ea-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text);
}

.ea-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ea-tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--gold2);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

p {
  margin-bottom: 20px;
  color: #c8c4b8;
}

ul.features-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul.features-list li {
  position: relative;
  padding-left: 28px;
  color: #c8c4b8;
}

ul.features-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}

ul.features-list li strong {
  color: var(--text);
}

/* ── SIDEBAR ── */
.ea-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: rgba(15, 15, 26, 0.8);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.sidebar-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.9rem;
}

.spec-table td:first-child {
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
}

.spec-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.btn-sidebar-cta {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.btn-sidebar-cta:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border2);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Proof Grid (MyFxBook calendar) */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 16px 0 28px;
}

.proof-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg2);
  overflow: hidden;
}

.proof-item img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-item figcaption {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-top: 1px solid var(--border2);
}
/* ═══════════════════════════════════════════
   BLOG — 108ido 108ido.com
   (Appended to EA stylesheet)
   ═══════════════════════════════════════════ */

/* ── BLOG INDEX / GRID ── */
.blog-hero {
  max-width: 1200px;
  margin: 110px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.blog-hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: 12px;
}

.blog-grid {
  max-width: 1200px;
  margin: 40px auto 100px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: rgba(9, 9, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.blog-card:hover::before { opacity: 1; }

.blog-card-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold2);
  border: 1px solid var(--border);
  background: var(--gold-dim);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}
.blog-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.blog-card h2:hover { color: var(--gold2); }
.blog-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.blog-card .blog-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ── ARTICLE LAYOUT ── */
.post-header {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 22px;
}
.post-cat {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold2);
  border: 1px solid var(--border);
  background: var(--gold-dim);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.post-title span { color: var(--gold2); }
.post-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.post-meta .updated { color: var(--gold); }

.post-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
.post-body p { margin-bottom: 18px; }
.post-body strong { color: var(--gold2); }
.post-body a {
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--gold); }
.post-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 38px 0 16px;
  color: var(--gold2);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.post-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.post-body ul, .post-body ol {
  margin: 0 0 20px 24px;
}
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--gold); }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  padding: 14px 20px;
  margin: 0 0 20px;
  border-radius: 0 6px 6px 0;
  color: var(--text-dim);
  font-style: italic;
}
.post-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 20px 0;
}

/* TOC */
.toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.toc-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--gold2); }

/* Callout boxes */
.callout {
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 20px;
  border: 1px solid;
  font-size: 0.98rem;
}
.callout.info { background: rgba(0, 229, 255, 0.06); border-color: rgba(0, 229, 255, 0.25); }
.callout.info strong { color: var(--cyan); }
.callout.warn { background: rgba(255, 59, 92, 0.06); border-color: rgba(255, 59, 92, 0.3); }
.callout.warn strong { color: var(--red); }
.callout.tip { background: rgba(0, 255, 136, 0.05); border-color: rgba(0, 255, 136, 0.25); }
.callout.tip strong { color: var(--green); }
.callout.gold { background: var(--gold-dim); border-color: var(--border); }
.callout.gold strong { color: var(--gold2); }

/* Info table */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 0.95rem;
}
.post-body th {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-align: left;
  color: var(--gold2);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 10px 14px;
}
.post-body td {
  border: 1px solid var(--border2);
  padding: 10px 14px;
  color: var(--text);
}
.post-body tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* Steps */
.steps {
  counter-reset: step;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  margin-bottom: 12px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { color: var(--gold2); }

/* CTA box */
.cta-box {
  margin: 34px 0 10px;
  background: linear-gradient(135deg, rgba(200,168,75,0.12), rgba(200,168,75,0.03));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.cta-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 8px;
}
.cta-box p { color: var(--text-dim); margin-bottom: 18px; font-size: 0.95rem; }
.cta-box .btn-sidebar-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  transition: filter 0.2s, transform 0.2s;
}
.cta-box .btn-sidebar-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Sidebar blog extras */
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.sidebar-links a:hover { color: var(--gold2); border-left-color: var(--gold); background: var(--gold-dim); }

/* Pager */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
}
.pager a {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  max-width: 45%;
}
.pager a:hover { color: var(--gold2); }
.pager .next { text-align: right; }

/* Responsive */
@media (max-width: 720px) {
  .blog-hero { margin-top: 90px; }
  .ea-content { padding: 24px 18px; }
  .blog-grid { padding: 0 16px; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
}
