/* ============================================================
   Blox Fruits Calculator — design system
   Dark-first gaming/SaaS aesthetic. No frameworks, no build step.
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-2: #0e1426;
  --bg-3: #131b33;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-dim: #a7b0cc;
  --text-faint: #6d7694;
  --accent: #7c5cff;
  --accent-2: #38e1ff;
  --win: #22c55e;
  --lose: #ef4444;
  --fair: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(124, 92, 255, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(56, 225, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 10px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 14px; font-weight: 700;
  font-size: 0.98rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important; line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3df0);
  color: #fff; box-shadow: 0 8px 28px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 92, 255, 0.55); }
.btn-ghost {
  background: var(--card); color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--card-2); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; border-radius: 11px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent-2); margin-bottom: 0.6em;
}

.section { padding: 72px 0; }
.section-title { margin-bottom: 0.4em; }
.section-sub { color: var(--text-dim); max-width: 720px; margin-bottom: 2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text strong {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.main-nav a.active { color: var(--text); background: var(--card-2); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 11px 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav { border-top: 1px solid var(--border); padding: 10px 20px 20px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: 12px 8px; color: var(--text); font-weight: 600; border-radius: 10px; }
.mobile-nav a:hover { background: var(--card); text-decoration: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 22px; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  margin: 0; padding: 0; font-size: 0.88rem; color: var(--text-faint);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-dim); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; position: relative; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #b9c2e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.35em;
}
.hero-lede { font-size: 1.12rem; color: var(--text-dim); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.trust-chips li {
  font-size: 0.84rem; font-weight: 600; color: var(--text-dim);
  background: var(--card); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.trust-chips li::before { content: "✓"; color: var(--win); font-weight: 800; }

/* Floating hero visual — pure CSS/SVG, no heavy libraries */
.hero-visual { position: relative; min-height: 420px; perspective: 1000px; }
.float-el {
  position: absolute; border-radius: 50%;
  filter: blur(1px);
  animation: floaty 7s ease-in-out infinite;
}
.float-el.f1 { width: 130px; height: 130px; top: 4%; left: 8%;
  background: radial-gradient(circle at 30% 30%, #a78bff, #5a3df0 70%);
  box-shadow: 0 0 44px rgba(124, 92, 255, 0.55); }
.float-el.f2 { width: 84px; height: 84px; top: 58%; left: 2%;
  background: radial-gradient(circle at 30% 30%, #7df3ff, #1e9fd8 70%);
  box-shadow: 0 0 34px rgba(56, 225, 255, 0.5); animation-delay: -2s; }
.float-el.f3 { width: 104px; height: 104px; top: 12%; right: 6%;
  background: radial-gradient(circle at 30% 30%, #ffd166, #f59e0b 70%);
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.45); animation-delay: -4s; }
.float-el.f4 { width: 60px; height: 60px; bottom: 6%; right: 22%;
  background: radial-gradient(circle at 30% 30%, #7dffa8, #22c55e 70%);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.45); animation-delay: -1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}
.hero-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-8deg);
  width: min(340px, 80%);
  background: linear-gradient(160deg, rgba(30, 38, 70, 0.92), rgba(16, 22, 44, 0.94));
  border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow), var(--glow);
  transition: transform 0.35s ease;
}
.hero-card:hover { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
.hero-card .hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.hero-card .hc-row:last-child { border-bottom: 0; }
.hero-card .hc-val { font-weight: 800; }
.hc-win { color: var(--win); }

/* ---------- Calculator ---------- */
.calc-section { padding: 8px 0 40px; }
.calc-shell {
  background: linear-gradient(180deg, rgba(20, 28, 58, 0.75), rgba(12, 17, 36, 0.85));
  border: 1px solid var(--border-strong);
  border-radius: 26px; padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
  position: relative; overflow: clip;
}
.calc-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
}
.calc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 6px; position: relative;
}
.calc-title { margin: 0; font-size: 1.5rem; }
.calc-sub { color: var(--text-dim); margin: 6px 0 0; max-width: 640px; font-size: 0.96rem; }
.calc-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-note { font-size: 0.85rem; color: var(--text-faint); position: relative; }
.calc-note a { color: var(--text-dim); text-decoration: underline; }

.calc-grid {
  display: grid; grid-template-columns: 1fr 300px 1fr;
  gap: 22px; align-items: start; position: relative; margin-top: 18px;
}

.calc-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  min-width: 0;
}
.panel-head { margin-bottom: 14px; }
.panel-head h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.08rem; }
.panel-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.panel-dot.you { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.panel-dot.them { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.panel-totals { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--text-dim); }
.panel-totals strong { color: var(--text); }

.slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.slot {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm); border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px; overflow: hidden;
}
.slot.filled { border-style: solid; border-color: var(--border-strong); background: var(--card-2); }
.slot img { width: 44px; height: 44px; object-fit: contain; }
.slot .slot-name { font-size: 0.68rem; font-weight: 700; text-align: center; line-height: 1.25; color: var(--text); }
.slot .slot-val { font-size: 0.66rem; color: var(--accent-2); font-weight: 700; }
.slot .slot-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(239, 68, 68, 0.18); color: #ff9d9d;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-size: 0.8rem; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.slot .slot-remove:hover { background: rgba(239, 68, 68, 0.4); color: #fff; }
.slot-hint { font-size: 0.85rem; color: var(--text-faint); margin: 4px 0 12px; }

.picker-search {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.picker-search::placeholder { color: var(--text-faint); }
.picker-search:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.picker-filters { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); cursor: pointer;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #5a3df0);
  color: #fff; border-color: transparent;
}
.picker-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-height: 300px; overflow-y: auto; padding-right: 4px;
}
.pick-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 6px; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit; color: var(--text); text-align: center;
}
.pick-item:hover, .pick-item:focus-visible {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.25);
}
.pick-item img { width: 40px; height: 40px; object-fit: contain; }
.pick-item .pi-name { font-size: 0.7rem; font-weight: 700; line-height: 1.25; }
.pick-item .pi-meta { font-size: 0.64rem; color: var(--text-faint); }
.pick-item .pi-val { font-size: 0.68rem; color: var(--accent-2); font-weight: 700; }
.pick-item:disabled { opacity: 0.45; cursor: default; transform: none; }
.picker-empty { grid-column: 1 / -1; text-align: center; color: var(--text-faint); font-size: 0.9rem; padding: 18px; }

/* Result column */
.calc-result { position: relative; }
.versus {
  text-align: center; font-weight: 900; letter-spacing: 0.2em;
  color: var(--text-faint); font-size: 0.85rem; margin-bottom: 12px;
}
.verdict-card {
  background: linear-gradient(170deg, rgba(28, 36, 68, 0.9), rgba(14, 19, 40, 0.92));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: sticky; top: 90px;
}
.verdict-card[data-state="win"]  { border-color: rgba(34, 197, 94, 0.6);  box-shadow: var(--shadow), 0 0 34px rgba(34, 197, 94, 0.22); }
.verdict-card[data-state="fair"] { border-color: rgba(245, 158, 11, 0.6); box-shadow: var(--shadow), 0 0 34px rgba(245, 158, 11, 0.2); }
.verdict-card[data-state="lose"] { border-color: rgba(239, 68, 68, 0.6);  box-shadow: var(--shadow), 0 0 34px rgba(239, 68, 68, 0.22); }
.verdict-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); margin: 0 0 8px; }
.verdict-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 2rem; font-weight: 900; letter-spacing: 0.04em;
  margin: 0 0 10px; padding: 8px 26px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--border-strong);
}
.verdict-badge .v-icon { font-size: 1.6rem; }
.verdict-card[data-state="win"] .verdict-badge  { color: var(--win);  border-color: rgba(34, 197, 94, 0.5); }
.verdict-card[data-state="fair"] .verdict-badge { color: var(--fair); border-color: rgba(245, 158, 11, 0.5); }
.verdict-card[data-state="lose"] .verdict-badge { color: var(--lose); border-color: rgba(239, 68, 68, 0.5); }
.verdict-explain { font-size: 0.9rem; color: var(--text-dim); margin: 0 0 16px; }
.verdict-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.verdict-numbers > div {
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 8px;
}
.verdict-numbers dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 4px; }
.verdict-numbers dd { margin: 0; font-weight: 800; font-size: 1.02rem; }
.verdict-numbers dd.pos { color: var(--win); }
.verdict-numbers dd.neg { color: var(--lose); }
.demand-compare { text-align: left; margin-bottom: 12px; }
.demand-row { display: grid; grid-template-columns: 44px 1fr 52px; gap: 10px; align-items: center; font-size: 0.82rem; margin-bottom: 8px; color: var(--text-dim); }
.demand-row strong { color: var(--text); text-align: right; }
.demand-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.demand-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s ease; }
.verdict-fair-note { font-size: 0.76rem; color: var(--text-faint); margin: 0; }
.share-status { min-height: 1.4em; font-size: 0.88rem; color: var(--win); margin-top: 12px; text-align: center; }

/* ---------- Ad slots ---------- */
.ad-slot-wrap { padding-top: 8px; padding-bottom: 8px; }
.ad-slot {
  min-height: 110px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative; background: rgba(255, 255, 255, 0.015);
}
.ad-slot-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-faint);
}

/* ---------- Prose (articles, guides, legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; padding-top: 0.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent-2); }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 1.4em 0; padding: 0.6em 1.2em;
  background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--card-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-faint); font-size: 0.88rem; margin-bottom: 1.6em; }
.toc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.6em 0;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.6em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.3em; font-size: 0.93rem; }

/* ---------- Cards & grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.g-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.g-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.g-card h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.g-card p { margin: 0; font-size: 0.9rem; color: var(--text-dim); flex-grow: 1; }
.g-card .card-link { font-weight: 700; font-size: 0.9rem; }
.g-card img.card-art { border-radius: var(--radius-sm); width: 100%; height: 130px; object-fit: cover; }

.fruit-card { align-items: center; text-align: center; }
.fruit-card img { width: 72px; height: 72px; object-fit: contain; }
.fruit-card .f-value { font-weight: 800; color: var(--accent-2); font-size: 1.05rem; }
.fruit-card .f-demand { font-size: 0.82rem; color: var(--text-dim); }

.rarity-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px; border: 1px solid;
}
.rarity-common    { color: #9fb3c8; border-color: rgba(159,179,200,.4); background: rgba(159,179,200,.08); }
.rarity-uncommon  { color: #4ade80; border-color: rgba(74,222,128,.4);  background: rgba(74,222,128,.08); }
.rarity-rare      { color: #60a5fa; border-color: rgba(96,165,250,.4);  background: rgba(96,165,250,.08); }
.rarity-legendary { color: #c084fc; border-color: rgba(192,132,252,.45); background: rgba(192,132,252,.1); }
.rarity-mythical  { color: #f472b6; border-color: rgba(244,114,182,.5);  background: rgba(244,114,182,.1); }

/* ---------- Value table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 760px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th {
  background: rgba(0, 0, 0, 0.3); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); position: sticky; top: 0;
}
.data-table th button {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; padding: 0;
  text-transform: inherit; letter-spacing: inherit;
}
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.data-table .cell-item { display: flex; align-items: center; gap: 12px; }
.data-table .cell-item img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.data-table .cell-item a { color: var(--text); font-weight: 700; }
.data-table .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.data-table .val { color: var(--accent-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; align-items: center; }
.toolbar .picker-search { max-width: 320px; }
.toolbar select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 11px 14px; font-family: inherit; font-size: 0.9rem;
}

/* ---------- Tier list ---------- */
.tier-row { display: grid; grid-template-columns: 90px 1fr; gap: 0; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.tier-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; min-height: 96px;
}
.tier-S { background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff; }
.tier-A { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a1206; }
.tier-B { background: linear-gradient(135deg, #22c55e, #4ade80); color: #06210f; }
.tier-C { background: linear-gradient(135deg, #38bdf8, #818cf8); color: #0a1030; }
.tier-D { background: linear-gradient(135deg, #64748b, #94a3b8); color: #0b0e14; }
.tier-items { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; align-items: center; }
.tier-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px 8px 8px; color: var(--text);
  font-size: 0.85rem; font-weight: 700;
}
.tier-chip:hover { border-color: var(--accent); text-decoration: none; }
.tier-chip img { width: 34px; height: 34px; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q .faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease; font-size: 1.1rem; color: var(--accent-2); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 20px; color: var(--text-dim); font-size: 0.96rem; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Fruit detail ---------- */
.fruit-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 26px; padding: 32px; margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.fruit-hero img { width: 180px; height: 180px; object-fit: contain; justify-self: center;
  filter: drop-shadow(0 12px 28px rgba(124, 92, 255, 0.35)); }
.fruit-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-box { background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat-box .s-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.stat-box .s-val { font-size: 1.15rem; font-weight: 800; }
.stat-box .s-val.accent { color: var(--accent-2); }
.update-stamp { font-size: 0.85rem; color: var(--text-faint); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cta-band {
  margin: 48px 0; text-align: center; padding: 48px 24px;
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(56,225,255,0.1));
  border: 1px solid var(--border-strong); border-radius: 26px;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 1.6em; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 640px; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 0.98rem; font-family: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(124,92,255,0.25); }
.field .error { color: var(--lose); font-size: 0.85rem; margin-top: 6px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.95rem; }
.form-alert.success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.5); color: #9df0bd; }
.form-alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.5); color: #ffb4b4; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; background: rgba(0, 0, 0, 0.25); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px; padding: 56px 0 36px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; }
.footer-col h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 1em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0 36px; }
.disclaimer-line { font-size: 0.82rem; color: var(--text-faint); max-width: 900px; }
.copyright { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 80px 0; }
.error-code {
  font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Notice boxes ---------- */
.notice {
  border: 1px solid var(--border-strong); border-left: 4px solid var(--accent-2);
  background: var(--card); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 1.6em 0; color: var(--text-dim);
}
.notice strong { color: var(--text); }
.notice.warn { border-left-color: var(--fair); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-result { grid-column: 1 / -1; order: -1; }
  .verdict-card { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { order: 0; }
  .picker-results { grid-template-columns: repeat(3, 1fr); }
  .fruit-hero { grid-template-columns: 1fr; text-align: center; }
  .fruit-hero img { width: 130px; height: 130px; }
  .verdict-numbers { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .calc-head { flex-direction: column; }
}

@media (max-width: 420px) {
  .picker-results { grid-template-columns: repeat(2, 1fr); }
  .slot-row { grid-template-columns: repeat(3, 1fr); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .float-el { animation: none; }
}

/* ---------- Sample trade demo ---------- */
.sample-demo-section { padding-top: 8px; }
.sample-trade {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}
.sample-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}
.sample-side h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sample-side select {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 48px;
}
.sample-side select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sample-vs {
  align-self: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  padding: 0 4px;
}
.sample-result { margin-top: 18px; }
.sample-verdict {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--bg-2);
}
.sample-verdict .verdict-badge {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 8px 22px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
}
.sample-verdict[data-state="win"] .verdict-badge  { color: var(--win);  border-color: rgba(34, 197, 94, 0.5); }
.sample-verdict[data-state="fair"] .verdict-badge { color: var(--fair); border-color: rgba(245, 158, 11, 0.5); }
.sample-verdict[data-state="lose"] .verdict-badge { color: var(--lose); border-color: rgba(239, 68, 68, 0.5); }
.sample-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  margin: 14px 0 0;
}
.sample-nums > div { display: flex; gap: 8px; align-items: baseline; }
.sample-nums dt { color: var(--text-dim); font-size: 0.9rem; }
.sample-nums dd { margin: 0; font-weight: 700; font-size: 1.05rem; }

/* ---------- Why-use cards ---------- */
.why-grid .why-card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.why-grid .why-card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }

/* ---------- Popular values card CTA ---------- */
.fruit-card .pop-cta { margin-top: 10px; align-self: center; }

/* ---------- Editorial byline ---------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin: 0 0 22px;
}
.byline strong { color: var(--text); }

/* ---------- Quick facts (fruit pages) ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0 26px;
}
.quick-facts .qf {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.quick-facts .qf dt { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.quick-facts .qf dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; }

/* ---------- Example trade scenarios ---------- */
.scenario {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 14px;
}
.scenario h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.scenario p { margin: 0.4em 0; color: var(--text-dim); }
.scenario p strong { color: var(--text); }
.scenario .verdict-mini { font-weight: 800; }
.scenario .verdict-mini.win { color: var(--win); }
.scenario .verdict-mini.fair { color: var(--fair); }
.scenario .verdict-mini.lose { color: var(--lose); }

@media (max-width: 640px) {
  .sample-cols { grid-template-columns: 1fr; }
  .sample-vs { text-align: center; padding: 2px 0; }
}
