:root {
  --bg: #0b1810;
  --bg2: #122218;
  --bg3: #1a2e22;
  --border: #234032;
  --text: #f1f5e8;
  --text2: #b5c4a8;
  --text3: #7d8f72;
  --blue: #3b82f6;
  --green: #a8d83a;
  --red: #ef4444;
  --yellow: #d9b53d;
  --cream: #d4c5a0;
  --accent: #a8d83a;
  --accent-dark: #6b9020;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }

/* HEADER */
header { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; height: 52px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo span { color: var(--accent); }
.last-update { font-size: 0.75rem; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.last-update--inline { justify-content: flex-end; margin-bottom: 0.5rem; font-size: 0.78rem; }
.dot-live { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* AD */
.ad-leaderboard { background: var(--bg2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; min-height: 90px; color: var(--text3); font-size: 0.75rem; }

/* MAIN */
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.78rem; color: var(--text3); margin-bottom: 1.5rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text2); }

/* HERO */
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 0.4rem; line-height: 1.2; }
.hero h1 .hl { color: var(--accent); }
.hero p { color: var(--text2); font-size: 0.95rem; max-width: 560px; }

/* FOCUS CARD */
.focus-card { background: var(--bg2); border: 2px solid var(--accent); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
.focus-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.focus-card-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.focus-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.focus-prices { display: flex; gap: 3rem; }
.focus-price-group label { display: block; font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.focus-price-value { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.focus-price-value.buy { color: var(--green); }
.focus-price-value.sell { color: var(--text); }
.focus-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.focus-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; color: var(--text2); }
.focus-badge.up { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--green); }
.focus-badge.down { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--red); }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* CONVERTER */
.converter { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.conv-input-group { margin-bottom: 0.75rem; }
.conv-input-group label { display: block; font-size: 0.75rem; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.conv-row { display: flex; gap: 0.5rem; align-items: center; }
.conv-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; color: var(--text); font-size: 1.1rem; font-weight: 600; font-family: inherit; outline: none; transition: border-color 0.2s; width: 100%; }
.conv-input:focus { border-color: var(--accent); }
.conv-input[readonly] { opacity: 0.7; cursor: default; }
.conv-tag { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 0.65rem; font-size: 0.8rem; font-weight: 700; color: var(--text2); min-width: 64px; text-align: center; flex-shrink: 0; }
.swap-btn { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem; color: var(--text2); font-size: 1rem; cursor: pointer; transition: all 0.2s; margin: 0.5rem 0; }
.swap-btn:hover { background: var(--border); color: var(--text); }
.conv-note { font-size: 0.78rem; color: var(--text3); margin-top: 0.75rem; text-align: center; }

/* TABLE SECTION */
.table-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.table-head-bar { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.table-head-bar h2 { font-size: 1rem; font-weight: 700; }
.table-head-bar p { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 0.75rem 1.5rem; text-align: left; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); background: var(--bg); border-bottom: 1px solid var(--border); }
thead th:not(:first-child) { text-align: right; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; cursor: default; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg3); }
tbody tr.highlight { background: rgba(168,216,58,0.06); border-left: 3px solid var(--accent); }
tbody td { padding: 1rem 1.5rem; font-size: 0.9rem; }
tbody td:not(:first-child) { text-align: right; }
.td-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.td-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.td-buy { color: var(--green); font-weight: 600; }
.td-sell { font-weight: 700; }
.brecha-cell { font-size: 0.82rem; font-weight: 600; color: var(--red); }
.brecha-cell.low { color: var(--green); }
.brecha-cell.mid { color: var(--yellow); }

/* INFO BOX */
.info-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.info-box h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.info-box p { font-size: 0.9rem; color: var(--text2); line-height: 1.8; margin-bottom: 0.75rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--text); }

/* FAQ */
.faq-section { margin-bottom: 2rem; }
.faq-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 600; font-size: 0.92rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.2s; }
.faq-q:hover { background: var(--bg3); }
.faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0.75rem 1.25rem 1rem; color: var(--text2); font-size: 0.88rem; line-height: 1.75; border-top: 1px solid var(--border); }

/* AD RECT */
.ad-rect { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 300px; color: var(--text3); font-size: 0.75rem; }
.ad-bottom { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 90px; color: var(--text3); font-size: 0.75rem; margin-bottom: 2rem; }

/* SKELETON */
.sk { background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; display: inline-block; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text); }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.82rem; color: var(--text3); line-height: 1.7; }
.footer-desc a { color: var(--text2); text-decoration: none; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 0.75rem; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { font-size: 0.85rem; color: var(--text2); text-decoration: none; padding: 0.2rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text3); }
.footer-bottom a { color: var(--text2); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* HAMBURGER BUTTON */
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--text2); font-size: 1.1rem; line-height: 1; transition: all 0.2s; margin-left: auto; }
.hamburger:hover { background: var(--bg3); color: var(--text); }

/* HEADER NAV — DROPDOWN */
.header-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 0 0.7rem; height: 36px;
  background: none; border: none; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text3);
  cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { background: rgba(255,255,255,0.06); color: var(--text2); }

.nav-chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s; opacity: 0.6; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 150px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  overflow: hidden;
  z-index: 300;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1rem;
  font-size: 0.85rem; font-weight: 500; color: var(--text2);
  text-decoration: none; white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-dropdown-menu a.active { color: var(--accent); background: rgba(168,216,58,0.08); font-weight: 600; }

/* MOBILE NAV */
@media (max-width: 768px) {
  .hamburger { display: flex; align-items: center; }
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .header-nav.open { display: flex; }

  .nav-dropdown { border-top: 1px solid var(--border); }
  .nav-dropdown-toggle { width: 100%; height: 44px; padding: 0 1.25rem; border-radius: 0; font-size: 0.9rem; justify-content: space-between; }
  .nav-dropdown-menu { display: none; position: static; border: none; border-radius: 0; box-shadow: none; background: rgba(255,255,255,0.03); }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 0.65rem 1.25rem 0.65rem 2rem; border-top: 1px solid var(--border); font-size: 0.88rem; }
}

