:root {
  --bg: #0b0f14;
  --card: rgba(18, 25, 35, 0.7);
  --text: #e6f0ff;
  --muted: #9eb1c6;
  --accent: #10a37f;
  --accent-2: #2dd4bf;
  --border: rgba(255,255,255,.10);
  --blur: 20px;

  /* alerts */
  --err-bg: #2a1417;
  --err-border: #ff6b6b33;
  --err-text: #ffc4c4;
  --info-bg: #112235;
  --info-border: #6bb7ff33;
  --info-text: #cfe6ff;
}

* { box-sizing: border-box; }

/* --- PAGE-FITS-MONITOR, SCROLL ONLY AFTER ANALYSIS --- */
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  color: var(--text);
  min-height: 100svh;

  /* lock scroll by default */
  overflow-y: hidden;
}
/* unlock scroll dynamically from JS */
body.scroll-unlocked { overflow-y: auto; }

/* HEADER */
.site-header { padding: 32px 20px 16px; text-align: center; }
.site-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* LAYOUT */
.container { max-width: 1200px; margin: 24px auto 64px; padding: 0 16px; display: grid; gap: 20px; }
.two-col { grid-template-columns: 1fr; }
.col { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 24px; }
  .right { position: sticky; top: 24px; height: fit-content; }
  .container { margin-bottom: 0; }
}

/* CARDS */
.card {
  backdrop-filter: blur(var(--blur));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.45); }

/* INPUTS */
.input-card .form-row { display: flex; flex-direction: column; gap: 8px; }
label { color: var(--muted); font-size: 13px; }
input[type=text]{
  width:100%; height:48px; border-radius:999px; padding:0 16px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(13,19,28,0.9); color:var(--text); outline:none;
  transition: border .2s, box-shadow .2s;
}
input[type=text]:focus{ border-color:var(--accent-2); box-shadow:0 0 0 4px rgba(45,212,191,.15); }
input[type=text].invalid{ border-color:#ff6b6b; box-shadow:0 0 0 4px rgba(255,107,107,.15); }

/* BUTTONS */
.actions { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
button, .discord-btn{
  height:46px; border-radius:999px; min-width:150px;
  border:none; color:#fff; text-decoration:none;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition: transform .2s ease, filter .2s ease;
}
button:hover, .discord-btn:hover{ filter:brightness(1.1); transform:translateY(-1px); }
button.ghost{ background:transparent; border:1px solid var(--border); color:var(--text); }

/* ALERTS */
.hidden { display: none !important; }
.alert {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 14px;
  line-height: 1.4;
}
.alert strong { font-weight: 700; }
.alert.error {
  border-color: var(--err-border);
  background: var(--err-bg);
  color: var(--err-text);
}
.alert .hint { margin-top: 6px; color: #cfd7e7; opacity: .85; font-size: 13px; }
.alert code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

/* PROGRESS */
.progress-wrap { margin-top: 10px; }
.progress{ margin-top:8px; height:12px; background:#0d131c; border-radius:999px; overflow:hidden; }
.progress .bar{ height:100%; width:0%; background:linear-gradient(90deg, var(--accent), var(--accent-2)); transition:width .4s ease; animation:pulse 2s infinite; }
@keyframes pulse{0%{opacity:.9}50%{opacity:.6}100%{opacity:.9}}
.status{ margin-top:8px; color:var(--muted); font-size:13px; }

/* RESULTS */
.result-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.result-header h2{ margin:0; font-size:20px; }

/* Sections grid */
.sections{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }

/* Normal dropdown section */
details.section{ border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(14,21,31,0.8); overflow:hidden; transition:all .3s ease; }
details.section[open]{ border-color:var(--accent-2); }
details.section > summary{ list-style:none; padding:14px 16px; cursor:pointer; font-weight:600; background:linear-gradient(180deg, #0f171f, #0e151f); }
details.section > summary::-webkit-details-marker{ display:none; }
.section-body{ padding:14px 16px; border-top:1px solid rgba(255,255,255,.06); }

/* Disabled (empty) section styling */
.section.disabled{ border:1px solid rgba(255, 255, 255, 0.08); border-radius:14px; background:rgba(14, 21, 31, 0.8); opacity:.6; pointer-events:none; }
.section.disabled .section-head{ padding:14px 16px; font-weight:600; background:linear-gradient(180deg, #0f171f, #0e151f); }
.section.disabled .section-body{ padding:14px 16px; }

/* TABLES */
.table-wrap{
  overflow-x: auto; /* enable horizontal scroll on narrow phones */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius:12px;
}
table{ width:100%; border-collapse:collapse; }
th, td{ padding:10px 12px; font-size:14px; }
thead th{ background:#0f1620; color:var(--muted); text-align:left; position:sticky; top:0; }
tbody tr:nth-child(odd){ background:#0d131c; }
tbody tr:nth-child(even){ background:#0b1119; }

/* Value highlighting (numbers, %, ratios) */
td.value, .value{ color:var(--accent-2); font-weight:600; }

/* FAQ & Discord */
.faq-card details.section > summary{ font-weight:500; font-size:15px; }
.discord-card{ text-align:center; }
.discord-card .actions{ justify-content:center; }
.discord-btn{ background:linear-gradient(90deg, #5865F2, #4752C4); }

/* FOOTER */
footer{
  text-align:center; margin:48px 0 32px; font-size:14px; font-weight:500;
  color:#ffffffeb; letter-spacing:.4px; text-shadow:0 0 8px rgba(0,0,0,.6);
}
footer a{ color:var(--accent-2); font-weight:600; text-decoration:none; border-bottom:1px dotted transparent; }
footer a:hover{ border-bottom-color: currentColor; }

/* ANALYSIS SECTION */
#results { max-height:none; overflow-y:visible; }

/* ---------- Mobile Tweaks ---------- */
/* ---------- Mobile Tweaks ---------- */
@media (max-width: 480px) {
  /* Allow scrolling on phones (desktop remains locked as before) */
  html, body { height: auto; }
  body {
    overflow-y: auto !important;
    min-height: 100dvh;                   /* account for mobile UI chrome */
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .site-header { padding: 24px 14px 10px; }
  .site-header h1 { font-size: 26px; }
  .sub { font-size: 13px; }

  .container { margin: 16px auto 56px; gap: 14px; padding: 0 12px; }

  .card { border-radius: 16px; padding: 16px; }

  details.section > summary { padding: 12px 12px; font-size: 14px; }
  .section-body { padding: 12px; }

  th, td { padding: 8px 10px; font-size: 13px; }

  /* Disable sticky right column on small screens to avoid “stuck at FAQ” */
  .right { position: static !important; top: auto !important; height: auto !important; }

  /* Ensure results aren’t height-limited on phones */
  #results { max-height: none; overflow: visible; }
}
.header-row {
  display: flex;
  justify-content: center; /* keep everything centered */
  align-items: center;
  gap: 40px; /* reduce or increase this to control spacing */
  flex-wrap: wrap;
}

.header-title {
  text-align: center;
  min-width: 300px; /* prevents text from squishing too much */
}

.banner-slot img {
  width: 340px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}


