/* ============================================
   YETISCAN — ADAPTIVE THEME SYSTEM
   ============================================ */

:root {
  --bg-primary:     #08111E;
  --bg-surface:     #0D1B2A;
  --bg-elevated:    #112236;
  --bg-hover:       #162C42;
  --border:         #1A3350;
  --border-subtle:  #0F2035;
  --text-primary:   #EDF2F7;
  --text-secondary: #7A9BB5;
  --text-muted:     #3D5A73;
  --accent:         #00BFFF;
  --accent-dim:     rgba(0, 191, 255, 0.12);
  --accent-glow:    rgba(0, 191, 255, 0.25);
  --safe:           #00E5A0;
  --safe-dim:       rgba(0, 229, 160, 0.1);
  --danger:         #FF4D6D;
  --danger-dim:     rgba(255, 77, 109, 0.1);
  --warn:           #FFB347;
  --warn-dim:       rgba(255, 179, 71, 0.1);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow:    0 0 0 1px var(--accent-dim), 0 4px 24px var(--accent-glow);
  --font-display:   'Syne', sans-serif;
  --font-body:      'Epilogue', sans-serif;
  --font-mono:      'Geist Mono', monospace;
  --transition:     180ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary:     #F0F4F8;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #E8EEF5;
  --bg-hover:       #DDE6F0;
  --border:         #C8D8E8;
  --border-subtle:  #DDE6F0;
  --text-primary:   #0D1B2A;
  --text-secondary: #4A6785;
  --text-muted:     #8AAABF;
  --accent:         #0090CC;
  --accent-dim:     rgba(0, 144, 204, 0.1);
  --accent-glow:    rgba(0, 144, 204, 0.2);
  --safe:           #00A372;
  --safe-dim:       rgba(0, 163, 114, 0.1);
  --danger:         #D4003A;
  --danger-dim:     rgba(212, 0, 58, 0.08);
  --warn:           #C47F00;
  --warn-dim:       rgba(196, 127, 0, 0.1);
  --shadow-card:    0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-glow:    0 0 0 1px var(--accent-dim), 0 4px 24px var(--accent-glow);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

/* FIX: ensure [hidden] always wins over any display:flex/grid rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-wordmark .accent {
  color: var(--accent);
}

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

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.theme-icon { display: none; }
[data-theme="dark"]  .theme-icon--dark  { display: block; }
[data-theme="light"] .theme-icon--light { display: block; }

/* ============================================
   HERO
   ============================================ */

.hero {
  text-align: center;
  padding: 72px 24px 56px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================
   MODE TABS
   ============================================ */

.mode-tabs {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.mode-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.mode-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.mode-tab.active svg { stroke: #fff; }

/* ============================================
   SEARCH BOX
   ============================================ */

.search-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.search-input::placeholder { color: var(--text-muted); }

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.clear-btn:hover { color: var(--danger); }

.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.search-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: left;
  padding-left: 4px;
}

.search-hint code {
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ============================================
   IDLE STATE
   ============================================ */

.state-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
  gap: 20px;
}

.idle-icon {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  animation: idlePulse 2.5s ease-out infinite;
}

.idle-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--accent-dim);
  animation: idleRotate 8s linear infinite;
}

.idle-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

@keyframes idleRotate { to { transform: rotate(360deg); } }

@keyframes idlePulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============================================
   LOADING STATE
   ============================================ */

.state-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
  gap: 28px;
}

.scan-animation {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.scan-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanline 1.5s ease-in-out infinite;
  top: 0;
}

@keyframes scanline {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.loading-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ============================================
   ERROR STATE
   ============================================ */

.state-error {
  text-align: center;
  padding: 64px 24px;
}

.error-icon { font-size: 36px; margin-bottom: 16px; }

.error-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-msg {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   CARDS
   ============================================ */

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.card--ai {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

.card--ai::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card--score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   FROST SCAN LINE (signature effect)
   ============================================ */

.frost-scan {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  top: 0;
}

.frost-scan.scanning {
  animation: frostSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes frostSweep {
  0%   { top: 0;    opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================
   TOKEN IDENTITY
   ============================================ */

.result-grid-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

.token-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.token-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.token-avatar img { width: 100%; height: 100%; object-fit: cover; }

.token-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.token-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-top: 2px;
}

/* ============================================
   STAT GRID
   ============================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-value.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: block;
}

/* ============================================
   TRUST SCORE RING
   ============================================ */

.score-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px 0 16px;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.score-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.4s ease;
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.score-verdict {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.risk-flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.risk-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.risk-flag--safe   { background: var(--safe-dim);   color: var(--safe);   }
.risk-flag--danger { background: var(--danger-dim); color: var(--danger); }
.risk-flag--warn   { background: var(--warn-dim);   color: var(--warn);   }

.risk-flag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================
   MARKET ACTIVITY
   ============================================ */

.market-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.market-stat { display: flex; flex-direction: column; gap: 4px; }

.market-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.market-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.market-stat--buy  .market-stat-value { color: var(--safe); }
.market-stat--sell .market-stat-value { color: var(--danger); }

.buy-sell-bar-wrap { margin-top: 4px; }

.buy-sell-bar {
  display: flex;
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.buy-bar  { background: var(--safe);   transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.sell-bar { background: var(--danger); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }

.buy-sell-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ============================================
   HOLDER BARS
   ============================================ */

.holder-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holder-row {
  display: grid;
  grid-template-columns: 130px 1fr 64px;
  align-items: center;
  gap: 12px;
}

.holder-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holder-bar-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 100px;
  overflow: hidden;
}

.holder-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.holder-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

/* ============================================
   AI VERDICT
   ============================================ */

.ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 4px;
}

.ai-mode-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.ai-mode-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ai-mode-btn.fun {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.ai-verdict {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
}

.ai-verdict p + p { margin-top: 12px; }

.ai-skeleton {
  height: 80px;
  background: linear-gradient(90deg,
    var(--bg-elevated) 25%,
    var(--bg-hover) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   CONTRACT — RISK GRID
   ============================================ */

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.risk-item-icon { font-size: 16px; flex-shrink: 0; }

.risk-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.risk-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.risk-item-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.risk-item--safe   { border-color: var(--safe-dim);   }
.risk-item--danger { border-color: var(--danger-dim); background: var(--danger-dim); }
.risk-item--warn   { border-color: var(--warn-dim);   background: var(--warn-dim); }

/* ============================================
   FUNCTION LIST
   ============================================ */

.func-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.func-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.func-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.func-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.func-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 20px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner strong { color: var(--text-secondary); }
.footer-right { font-family: var(--font-mono); font-size: 11px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 680px) {
  .result-grid-top {
    grid-template-columns: 1fr;
  }

  .card--score {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 16px;
  }

  .card--score .card-header { width: 100%; margin-bottom: 0; }

  .score-ring-wrap { margin: 0; }

  .risk-flags { flex: 1; }

  .hero-title { letter-spacing: -0.8px; }

  .mode-tabs { flex-direction: column; width: 100%; }

  .mode-tab { justify-content: center; }

  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  .holder-row {
    grid-template-columns: 100px 1fr 50px;
  }

  .nav { padding: 0 16px; }

  .hero { padding: 48px 16px 40px; }

  .results { padding: 0 16px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   ASK YETISCAN
   ============================================ */

.card--ask {
  border-color: var(--border);
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.ask-chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  line-height: 1.4;
}

.ask-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.ask-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.ask-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
}

.ask-answer p + p { margin-top: 10px; }

@media (max-width: 680px) {
  .ask-chip { font-size: 12px; padding: 7px 12px; }
}

/* ============================================
   PACKAGE ID — CLICKABLE
   ============================================ */

#tokenPackage {
  cursor: pointer;
  transition: color var(--transition);
}

#tokenPackage:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

.pkg-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.copy-pkg-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0 0 0 4px;
  transition: color var(--transition);
  vertical-align: middle;
}

.copy-pkg-btn:hover { color: var(--accent); }