/* ===================================================
   TRUVERA — Complete Stylesheet
   Dark + Light Mode · Mobile Responsive · Final
   =================================================== */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Light Mode */
  --bg:        #f4f4f5;
  --bg-2:      #ffffff;
  --bg-3:      #f9f9fb;
  --bg-4:      #ededef;
  --border:    #e4e4e7;
  --border-2:  #d1d1d6;

  --text-1:    #09090b;
  --text-2:    #52525b;
  --text-3:    #a1a1aa;

  --accent:    #2563eb;
  --accent-light: rgba(37,99,235,0.1);
  --accent-hover: #1d4ed8;

  --green:     #16a34a;
  --green-bg:  #f0fdf4;
  --green-bd:  #bbf7d0;
  --red:       #dc2626;
  --red-bg:    #fef2f2;
  --red-bd:    #fecaca;
  --yellow:    #d97706;
  --yellow-bg: #fffbeb;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --bg:        #09090b;
  --bg-2:      #18181b;
  --bg-3:      #1c1c1f;
  --bg-4:      #27272a;
  --border:    #27272a;
  --border-2:  #3f3f46;

  --text-1:    #fafafa;
  --text-2:    #a1a1aa;
  --text-3:    #52525b;

  --accent:    #3b82f6;
  --accent-light: rgba(59,130,246,0.12);
  --accent-hover: #2563eb;

  --green:     #22c55e;
  --green-bg:  #052e16;
  --green-bd:  #14532d;
  --red:       #ef4444;
  --red-bg:    #1f0a0a;
  --red-bd:    #7f1d1d;
  --yellow:    #f59e0b;
  --yellow-bg: #1c1000;

  --shadow:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.6; min-height: 100vh; transition: background 0.2s, color 0.2s; }
img  { max-width: 100%; }
a    { color: var(--accent); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.82em; background: var(--bg-4); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
button { cursor: pointer; font-family: var(--font); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ── LOADER ── */
.loader-overlay { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0; }
.loader-box { text-align: center; padding: 2rem 1rem; }
.loader-chain { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.8rem; margin-bottom: 1.5rem; }
.lc-block { opacity: 0.25; }
.lc-arrow { font-size: 1rem; color: var(--accent); opacity: 0.4; }
.lc-pulse { opacity: 1; animation: lPulse 0.7s infinite alternate; }
@keyframes lPulse { from { opacity:0.3; transform:scale(0.85); } to { opacity:1; transform:scale(1.1); } }
.loader-title { font-size: 22px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.loader-msg   { font-size: 12px; font-family: var(--mono); color: var(--accent); min-height: 18px; margin-bottom: 6px; }
.loader-sub   { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: 56px; gap: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { width: 30px; height: 30px; background: linear-gradient(135deg, var(--accent), #7c3aed); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.nav-logo svg { width: 16px; height: 16px; }
.nav-title { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-1); }
.nav-badge { font-size: 10px; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(37,99,235,0.2); padding: 2px 7px; border-radius: 99px; display: none; }
@media (min-width: 480px) { .nav-badge { display: inline-flex; } }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* P2P Status */
.p2p-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.health-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.health-dot.valid   { background: var(--green); box-shadow: 0 0 5px var(--green); animation: blink 2s infinite; }
.health-dot.syncing { background: var(--yellow); animation: blink 0.5s infinite; }
.health-dot.invalid { background: var(--red); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.peer-pill { font-size: 10px; font-family: var(--mono); background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); padding: 2px 6px; border-radius: 99px; display: none; }
@media (min-width: 480px) { .peer-pill { display: inline; } }
.health-text { display: none; }
@media (min-width: 600px) { .health-text { display: inline; } }

/* Theme Toggle */
.theme-toggle { background: var(--bg-4); border: 1px solid var(--border); border-radius: 99px; padding: 5px 10px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 4px; transition: all 0.15s; white-space: nowrap; }
.theme-toggle:hover { border-color: var(--border-2); color: var(--text-1); }

/* Wallet Button */
.nav-wallet { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 5px 10px; font-size: 11px; font-family: var(--mono); color: var(--text-2); display: flex; align-items: center; gap: 5px; transition: all 0.15s; overflow: hidden; max-width: 130px; }
.nav-wallet:hover { border-color: var(--border-2); color: var(--text-1); }
.nav-wallet-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nav-wallet-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── HERO ── */
.hero { position: relative; padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }

.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--mono); color: var(--accent); background: var(--accent-light); border: 1px solid rgba(37,99,235,0.2); padding: 3px 10px; border-radius: 99px; margin-bottom: 1rem; }

.hero-title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.5px; color: var(--text-1); margin-bottom: 0.75rem; line-height: 1.2; }
.hero-title span { background: linear-gradient(135deg, var(--accent), #7c3aed); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.hero-desc { font-size: 15px; color: var(--text-2); max-width: 560px; margin-bottom: 1.75rem; line-height: 1.7; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary { background: var(--accent); color: #fff; border: none; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: var(--radius-md); transition: all 0.15s; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--text-1); border: 1px solid var(--border-2); font-size: 14px; font-weight: 500; padding: 9px 20px; border-radius: var(--radius-md); transition: all 0.15s; }
.btn-outline:hover { background: var(--bg-3); }

.hero-tab-btn.active,
.hero-tab-btn:focus {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.hero-tab-btn.active:hover,
.hero-tab-btn:focus:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hstat { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.hstat-num   { font-size: 1.6rem; font-weight: 700; font-family: var(--mono); color: var(--text-1); line-height: 1; }
.hstat-label { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── MAIN ── */
.main-app { padding: 1.5rem 0 4rem; }

/* ── TABS ── */
.tabs-wrapper { margin-bottom: 1.5rem; }
.tabs { display: flex; gap: 3px; background: var(--bg-2); border: 1px solid var(--border); padding: 4px; border-radius: var(--radius-lg); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--text-2); background: transparent; border: none; transition: all 0.15s; flex-shrink: 0; white-space: nowrap; }
.tab svg { width: 14px; height: 14px; opacity: 0.7; }
.tab:hover  { color: var(--text-1); background: var(--bg-3); }
.tab.active { background: var(--bg-4); color: var(--text-1); border: 1px solid var(--border-2); }
.tab.active svg { opacity: 1; }

/* ── PANELS ── */
.panel { display: none; animation: panelIn 0.2s ease; }
.panel.active { display: block; }
@keyframes panelIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── CARDS ── */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.card-header { margin-bottom: 1.25rem; }
.card-header h2 { font-size: 17px; font-weight: 600; color: var(--text-1); }
.card-header p  { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* ── PANEL GRID ── */
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 840px) { .panel-grid { grid-template-columns: 1fr 300px; } }

/* ── WALLET BAR ── */
.wallet-bar { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 1.25rem; }
.wallet-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.wallet-info   { flex: 1; min-width: 0; }
.wallet-label  { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.wallet-addr   { font-family: var(--mono); font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-badge  { font-size: 10px; background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); padding: 2px 8px; border-radius: 99px; flex-shrink: 0; white-space: nowrap; }

/* ── CATEGORY SCROLL BAR ── */
.cat-scroll-wrap { position: relative; margin-bottom: 1rem; }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--bg-2); font-size: 13px; font-weight: 500; color: var(--text-2); flex-shrink: 0; transition: all 0.15s; white-space: nowrap; }
.cat-pill .cp-icon { font-size: 16px; line-height: 1; }
.cat-pill .cp-name { font-size: 13px; }
.cat-pill:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cat-pill.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }

/* ── SUBCAT PILLS ── */
.subcat-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; animation: slideIn 0.2s ease; }
@keyframes slideIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.subcat-pill { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--bg-3); font-size: 12px; font-weight: 500; color: var(--text-2); flex-shrink: 0; transition: all 0.15s; white-space: nowrap; }
.subcat-pill .sp-icon { font-size: 14px; }
.subcat-pill:hover  { border-color: var(--accent); color: var(--accent); }
.subcat-pill.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* ── BRAND GRID ── */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 1rem; animation: slideIn 0.2s ease; }
.brand-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg-3); font-size: 12px; color: var(--text-2); text-align: center; transition: all 0.15s; }
.brand-card .bc-icon  { font-size: 20px; line-height: 1; }
.brand-card .bc-name  { font-weight: 600; color: var(--text-1); font-size: 12px; }
.brand-card .bc-count { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.brand-card:hover  { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.brand-card.active { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }

/* ── MODEL DROPDOWN ── */
.model-row { margin-bottom: 1rem; animation: slideIn 0.2s ease; }
.cascade-path { font-size: 11px; font-family: var(--mono); color: var(--text-3); margin-left: 6px; font-weight: 400; }

/* ── PRODUCT PREVIEW ── */
.product-preview { display: flex; align-items: center; gap: 12px; background: var(--accent-light); border: 1.5px solid rgba(37,99,235,0.25); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 1.25rem; animation: slideIn 0.2s ease; }
.pp-icon  { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.pp-info  { flex: 1; min-width: 0; }
.pp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.pp-name  { font-size: 14px; font-weight: 700; color: var(--text-1); }
.pp-sub   { font-size: 11px; color: var(--text-2); font-family: var(--mono); margin-top: 2px; }
.pp-change { font-size: 11px; font-weight: 500; background: transparent; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 9px; flex-shrink: 0; transition: all 0.15s; }
.pp-change:hover { border-color: var(--accent); color: var(--accent); }

/* ── FORM ── */
.form-group  { margin-bottom: 1.1rem; }
.form-label  { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.step-badge  { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 10px; font-weight: 700; margin-right: 5px; }

input[type="text"], textarea, select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-1); font-family: var(--font); font-size: 14px; padding: 9px 12px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.char-count { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 3px; font-family: var(--mono); }

/* Custom option separator */
.custom-sep { border: 0; border-top: 1px solid var(--border); margin: 2px 0; }

/* ── STAR SELECTOR ── */
.star-row   { display: flex; align-items: center; gap: 6px; }
.stars-wrap { display: flex; gap: 3px; }
.star { font-size: 26px; cursor: pointer; color: var(--border-2); transition: all 0.1s; line-height: 1; user-select: none; }
.star.on, .star.hover { color: #f59e0b; transform: scale(1.1); }
.star-txt { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* ── MINE BUTTON ── */
.btn-mine { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; letter-spacing: 0.2px; }
.btn-mine:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }
.btn-mine:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── MINING LOG ── */
.mining-log { margin-top: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.log-hdr    { font-family: var(--mono); font-size: 10px; color: var(--text-3); padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--bg-2); text-transform: uppercase; letter-spacing: 0.5px; }
.log-body   { padding: 8px 10px; max-height: 110px; overflow-y: auto; }
.log-line   { font-family: var(--mono); font-size: 11px; color: var(--text-2); line-height: 1.9; }
.log-line.success { color: var(--green); }
.log-line.error   { color: var(--red); }
.log-line.info    { color: var(--accent); }

/* ── INFO SIDEBAR ── */
.info-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 0.85rem; }
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step-item  { display: flex; gap: 10px; align-items: flex-start; }
.step-no    { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-text  { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* Chain mini */
.chain-mini      { display: flex; flex-direction: column; gap: 3px; }
.cmb             { display: flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }
.cmb-idx         { font-family: var(--mono); font-size: 9px; background: var(--accent-light); color: var(--accent); padding: 1px 5px; border-radius: 4px; flex-shrink: 0; }
.cmb-hash        { font-family: var(--mono); font-size: 10px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cmb-arrow       { font-size: 9px; color: var(--text-3); text-align: center; padding: 1px 0; font-family: var(--mono); }

/* ── FEED PANEL ── */
.feed-top    { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; align-items: flex-end; }
.fg          { display: flex; flex-direction: column; gap: 4px; }
.fg-lbl      { font-size: 10px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; }
.fg select, .fg input { font-size: 13px; padding: 7px 10px; min-width: 0; }
.fg.fg-search input { min-width: 160px; }
.fg.fg-sort select { min-width: 120px; }
.results-count { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-bottom: 1rem; }

/* ── REVIEW GRID ── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.review-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; transition: all 0.15s; box-shadow: var(--shadow); }
.review-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-card.tampered { border-color: var(--red-bd); background: var(--red-bg); }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 8px; }
.rc-product { font-size: 14px; font-weight: 600; color: var(--text-1); }
.rc-breadcrumb { font-size: 11px; color: var(--text-3); margin-top: 2px; font-family: var(--mono); }
.rc-stars { font-size: 13px; flex-shrink: 0; }
.rc-title  { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 5px; }
.rc-body   { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.rc-meta   { font-size: 11px; color: var(--text-3); font-family: var(--mono); margin-bottom: 8px; }
.rc-footer { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; border-top: 1px solid var(--border); }
.pill { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 99px; border: 1px solid; }
.pill-block    { background: var(--accent-light); color: var(--accent); border-color: rgba(37,99,235,0.2); }
.pill-hash     { background: var(--bg-4); color: var(--text-3); border-color: var(--border); }
.pill-valid    { background: var(--green-bg); color: var(--green); border-color: var(--green-bd); }
.pill-tampered { background: var(--red-bg); color: var(--red); border-color: var(--red-bd); }

/* ── EMPTY STATE ── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 3.5rem 1rem; color: var(--text-3); }
.empty-icon  { font-size: 2.8rem; margin-bottom: 0.75rem; }

/* ── BLOCK EXPLORER ── */
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.exp-title  { font-size: 18px; font-weight: 600; color: var(--text-1); }
.exp-sub    { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.exp-pills  { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-pill   { font-size: 11px; font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 99px; color: var(--text-2); }

.block-list { display: flex; flex-direction: column; gap: 5px; }
.block-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.15s; }
.block-item:hover { border-color: var(--border-2); }
.block-item.invalid { border-color: var(--red-bd); }
.block-item.open    { border-color: var(--accent); }

.block-row  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; overflow: hidden; }
.block-num  { font-family: var(--mono); font-size: 10px; background: var(--accent-light); color: var(--accent); padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.block-hash { font-family: var(--mono); font-size: 11px; color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.block-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; display: none; }
@media (min-width: 500px) { .block-time { display: block; } }
.block-badge { font-size: 10px; padding: 2px 7px; border-radius: 99px; flex-shrink: 0; font-family: var(--mono); }
.bb-valid   { background: var(--green-bg); color: var(--green); }
.bb-invalid { background: var(--red-bg); color: var(--red); }
.block-arrow { font-size: 10px; color: var(--text-3); transition: transform 0.2s; flex-shrink: 0; }
.block-item.open .block-arrow { transform: rotate(180deg); }

.block-detail { display: none; border-top: 1px solid var(--border); padding: 14px; background: var(--bg); }
.block-item.open .block-detail { display: block; }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .bd-grid { grid-template-columns: 1fr; } }
.bd-full { grid-column: 1/-1; }
.bd-key  { font-size: 10px; font-family: var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.bd-val  { font-family: var(--mono); font-size: 11px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; padding: 6px 8px; word-break: break-all; max-height: 120px; overflow-y: auto; }
.bd-val.link { color: var(--accent); }
.bd-val.ghost { color: var(--text-3); font-style: italic; }

/* ── INTEGRITY ── */
.integrity-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 840px) { .integrity-layout { grid-template-columns: 1fr 300px; } }

.result-ok  { display: flex; align-items: flex-start; gap: 14px; background: var(--green-bg); border: 1px solid var(--green-bd); border-radius: var(--radius-md); padding: 1.1rem; }
.result-bad { display: flex; align-items: flex-start; gap: 14px; background: var(--red-bg); border: 1px solid var(--red-bd); border-radius: var(--radius-md); padding: 1.1rem; }
.r-icon     { font-size: 1.8rem; flex-shrink: 0; }
.r-title    { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.result-ok  .r-title { color: var(--green); }
.result-bad .r-title { color: var(--red); }
.r-desc     { font-size: 12px; color: var(--text-2); line-height: 1.6; }

.btn-verify { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-1); font-size: 13px; font-weight: 500; border-radius: var(--radius-md); transition: all 0.15s; }
.btn-verify:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.verify-log { margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px; max-height: 180px; overflow-y: auto; }
.vl { font-family: var(--mono); font-size: 11px; line-height: 1.9; }
.vl-ok   { color: var(--green); }
.vl-fail { color: var(--red); }
.vl-info { color: var(--accent); }
.vl-dim  { color: var(--text-3); }

.tamper-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.tamper-info { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.tamper-info strong { color: var(--text-1); }
.btn-tamper  { width: 100%; padding: 9px; font-size: 13px; font-weight: 600; background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bd); border-radius: var(--radius-md); transition: all 0.15s; }
.btn-tamper:hover { background: var(--red); color: #fff; }
.btn-restore { width: 100%; padding: 9px; font-size: 13px; font-weight: 600; background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); border-radius: var(--radius-md); transition: all 0.15s; margin-top: 8px; }
.btn-restore:hover { background: var(--green); color: #fff; }
.tamper-status { font-size: 11px; font-family: var(--mono); color: var(--text-2); margin-top: 8px; min-height: 16px; }

/* ── ABOUT ── */
.about-layout  { display: flex; flex-direction: column; gap: 1.25rem; }
.about-hrow    { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.about-logo    { width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-light), rgba(124,58,237,0.1)); border: 1px solid rgba(37,99,235,0.25); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.about-hrow h2 { font-size: 20px; color: var(--text-1); }
.about-hrow p  { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.about-desc    { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.how-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.how-card h3   { font-size: 14px; color: var(--text-1); margin: 8px 0 6px; }
.how-card p    { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.how-icon      { font-size: 1.8rem; }
.tech-grid     { display: flex; flex-direction: column; gap: 9px; }
.tech-row      { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.tech-tag      { font-family: var(--mono); font-size: 10px; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(37,99,235,0.2); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.footer-name  { font-weight: 700; color: var(--text-1); }
.footer-note  { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--bg-4); border: 1px solid var(--border-2); color: var(--text-1); font-size: 13px; padding: 9px 18px; border-radius: 99px; box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 9998; white-space: nowrap; max-width: calc(100vw - 2rem); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 400px) {
  .hero-title { font-size: 1.5rem; }
  .tab { padding: 6px 10px; font-size: 12px; }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .card { padding: 1rem; }
}
