/* ═══════════════════════════════════════
   FLAREBUS — style.css
═══════════════════════════════════════ */

:root {
  --fire:     #ff6000;
  --amber:    #ffab00;
  --bg:       #0b0c0e;
  --surface:  #111318;
  --surface2: #181b22;
  --surface3: #1e2128;
  --border:   rgba(255, 96, 0, 0.18);
  --border-s: rgba(255, 255, 255, 0.07);
  --text:     #f0ece4;
  --muted:    #7a7570;
  --green:    #4ade80;
  --red:      #f87171;
  --glow:     0 0 40px rgba(255, 96, 0, 0.25);
}

/* Light mode */
:root.light {
  --bg:       #f5f2ee;
  --surface:  #ffffff;
  --surface2: #f0ece8;
  --surface3: #e8e4df;
  --border:   rgba(255, 96, 0, 0.2);
  --border-s: rgba(0, 0, 0, 0.08);
  --text:     #1a1714;
  --muted:    #8a8480;
  --glow:     0 0 40px rgba(255, 96, 0, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo span { font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-del-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--fire), var(--amber));
  color: #0b0c0e; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 0.78rem; letter-spacing: 0.04em;
  border: none; border-radius: 7px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(255, 96, 0, 0.3);
}
.nav-del-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255, 96, 0, 0.45); }

.theme-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border-s);
  cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-btn:hover { background: var(--surface3); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; overflow: hidden;
}
.hero-orb {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,96,0,0.18) 0%, rgba(255,96,0,0.06) 50%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; animation: pulse 6s ease-in-out infinite;
}
.hero-orb2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,171,0,0.12) 0%, transparent 70%);
  top: 30%; left: 60%;
  pointer-events: none; animation: pulse 8s ease-in-out infinite reverse;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,96,0,0.1); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 2rem; animation: fadeUp 0.6s ease both;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fire); animation: blink 1.5s ease-in-out infinite; }
.hero-logo {
  width: 120px; height: 120px; border-radius: 28px; margin-bottom: 2rem;
  box-shadow: var(--glow), 0 8px 40px rgba(0,0,0,0.6);
  animation: fadeUp 0.6s 0.1s ease both; position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.2s ease both; position: relative; z-index: 1;
}
.grad {
  background: linear-gradient(90deg, var(--fire), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted); max-width: 520px;
  line-height: 1.6; margin-bottom: 3rem;
  animation: fadeUp 0.6s 0.3s ease both; position: relative; z-index: 1; font-weight: 400;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s 0.4s ease both; position: relative; z-index: 1;
}
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  animation: fadeUp 0.6s 0.8s ease both; z-index: 1;
}
.scroll-hint span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--fire), transparent); animation: scrollAnim 1.5s ease-in-out infinite; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 0 3rem; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--fire), var(--amber));
  color: #0b0c0e; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; border-radius: 8px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,96,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,96,0,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; background: transparent; color: var(--text);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--fire); background: rgba(255,96,0,0.06); transform: translateY(-2px); }

/* ── MAIN ── */
main { max-width: 1000px; margin: 0 auto; padding: 5rem 2rem; position: relative; z-index: 1; }
.sec-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fire); margin-bottom: 1rem;
}
.sec-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--fire); }
.sec-heading { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.5rem; }
.sec-sub { color: var(--muted); max-width: 540px; font-size: 1rem; font-weight: 400; line-height: 1.7; margin-top: 0.5rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.about-card:hover { border-color: rgba(255,96,0,0.4); transform: translateY(-3px); }
.about-card:hover::before { opacity: 1; }
.about-card .icon { font-size: 1.8rem; margin-bottom: 1rem; }
.about-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.6rem; }
.about-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; font-weight: 400; }

/* ── STATS ── */
.stats-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 3rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; margin-top: 2rem; position: relative; overflow: hidden; flex-wrap: wrap;
}
.stats-card::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,96,0,0.07), transparent 70%);
  pointer-events: none;
}
.stats-card h3 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.stats-card p { color: var(--muted); font-size: 0.95rem; max-width: 400px; font-weight: 400; line-height: 1.6; }

/* ── CONTACT ── */
.address-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.address-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem; transition: border-color 0.3s; }
.address-card:hover { border-color: rgba(255,96,0,0.4); }
.net-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.badge-flare { background: rgba(255,96,0,0.15); color: var(--amber); border: 1px solid rgba(255,171,0,0.2); }
.address-card h4 { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.address-card a { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text); text-decoration: none; word-break: break-all; line-height: 1.6; transition: color 0.2s; display: block; }
.address-card a:hover { color: var(--amber); }
.social-row { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.8rem; }
.social-row span { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.social-row a { color: var(--amber); text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.social-row a:hover { opacity: 0.75; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; position: relative; z-index: 1; margin-top: 4rem;
}
.footer-left { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.footer-left strong { color: var(--text); }
.footer-right { color: var(--muted); font-size: 0.82rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  width: 100%; max-width: 680px; max-height: 92vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(22px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), var(--glow);
}
.overlay.open .modal { transform: translateY(0) scale(1); }

/* Modal header */
.m-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-s); flex-shrink: 0; }
.m-header-left { display: flex; align-items: center; gap: 0.85rem; }
.m-header-left img { width: 30px; height: 30px; border-radius: 7px; }
.m-title { font-size: 0.95rem; font-weight: 800; }
.m-sub { font-size: 0.7rem; color: var(--muted); font-weight: 400; margin-top: 0.1rem; }
.m-close { width: 28px; height: 28px; border-radius: 7px; background: transparent; border: 1px solid var(--border-s); color: var(--muted); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background 0.18s, color 0.18s; }
.m-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* Wallet bar */
.wallet-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--border-s); flex-shrink: 0; flex-wrap: wrap; }
.wallet-bar-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wallet-info { display: flex; align-items: center; gap: 0.65rem; font-size: 0.8rem; }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.wallet-dot.connected { background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,0.5); }
#walletAddr { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
#wflrBal    { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--amber); }
.connect-btn { padding: 0.4rem 0.95rem; background: rgba(255,96,0,0.12); border: 1px solid var(--border); border-radius: 7px; color: var(--amber); font-family: 'Syne', sans-serif; font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: background 0.18s; }
.connect-btn:hover { background: rgba(255,96,0,0.22); }
.connect-btn.connected { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: var(--red); }
.connect-btn.connected:hover { background: rgba(239,68,68,0.18); }

/* Search */
.m-controls { display: flex; align-items: center; gap: 0.65rem; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--border-s); flex-shrink: 0; }
.srch-wrap { position: relative; flex: 1; }
.srch-wrap svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); opacity: 0.3; pointer-events: none; }
.srch-in { width: 100%; padding: 0.45rem 0.9rem 0.45rem 2.2rem; background: var(--surface2); border: 1px solid var(--border-s); border-radius: 7px; color: var(--text); font-family: 'Syne', sans-serif; font-size: 0.82rem; outline: none; transition: border-color 0.18s; }
.srch-in::placeholder { color: var(--muted); }
.srch-in:focus { border-color: rgba(255,96,0,0.4); }

/* Provider list */
.m-providers { flex: 1; overflow-y: auto; padding: 0.65rem 1.4rem; }
.m-providers::-webkit-scrollbar { width: 4px; }
.m-providers::-webkit-scrollbar-track { background: transparent; }
.m-providers::-webkit-scrollbar-thumb { background: rgba(255,96,0,0.22); border-radius: 2px; }
.prov-list { display: flex; flex-direction: column; gap: 0.45rem; }
.prov-row { background: var(--surface2); border: 1px solid var(--border-s); border-radius: 11px; padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.8rem; transition: border-color 0.18s; }
.prov-row.pinned { border-color: rgba(255,96,0,0.32); background: rgba(255,96,0,0.05); }
.prov-row:hover { border-color: rgba(255,96,0,0.24); }
.p-logo    { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface3); }
.p-logo-ph { width: 34px; height: 34px; border-radius: 8px; background: var(--surface3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.p-info { flex: 1; min-width: 0; }
.p-name-row { display: flex; align-items: center; gap: 0.38rem; margin-bottom: 0.08rem; }
.p-name { font-size: 0.86rem; font-weight: 800; }
.pin-badge    { background: rgba(255,96,0,0.16);     border: 1px solid rgba(255,96,0,0.28);    border-radius: 3px; padding: 0.06rem 0.35rem; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); flex-shrink: 0; }
.listed-badge { background: rgba(255,255,255,0.05);  border: 1px solid rgba(255,255,255,0.1);  border-radius: 3px; padding: 0.06rem 0.35rem; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);  flex-shrink: 0; }
.p-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.pct-wrap { position: relative; }
.pct-in { width: 60px; padding: 0.35rem 1.2rem 0.35rem 0.5rem; background: var(--surface3); border: 1px solid var(--border-s); border-radius: 6px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.8rem; text-align: right; outline: none; transition: border-color 0.18s; -moz-appearance: textfield; }
.pct-in::-webkit-outer-spin-button, .pct-in::-webkit-inner-spin-button { -webkit-appearance: none; }
.pct-in:focus { border-color: rgba(255,96,0,0.5); }
.pct-sym { position: absolute; right: 0.42rem; top: 50%; transform: translateY(-50%); font-size: 0.65rem; color: var(--muted); pointer-events: none; }
.add-btn { padding: 0.35rem 0.7rem; background: rgba(255,96,0,0.12); border: 1px solid var(--border); border-radius: 6px; color: var(--amber); font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: background 0.18s, transform 0.12s; white-space: nowrap; }
.add-btn:hover:not(.added) { background: rgba(255,96,0,0.22); transform: translateY(-1px); }
.add-btn.added { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.25); color: var(--green); cursor: default; }

/* Loading / error states */
.list-state { padding: 2.5rem; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0.85rem; font-size: 0.85rem; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--fire); animation: spin 0.7s linear infinite; }
.no-res { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* Basket */
.m-basket { border-top: 1px solid var(--border-s); flex-shrink: 0; }
.bskt-hdr { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.4rem; border-bottom: 1px solid var(--border-s); }
.bskt-title { font-size: 0.78rem; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.total-pill { font-family: 'DM Mono', monospace; font-size: 0.76rem; padding: 0.2rem 0.6rem; border-radius: 5px; background: var(--surface3); transition: background 0.22s, color 0.22s; }
.total-pill.ok   { background: rgba(74,222,128,0.14);  color: var(--green); }
.total-pill.over { background: rgba(248,113,113,0.14); color: var(--red); }
.bskt-empty { padding: 1rem 1.4rem; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.bskt-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 1.4rem; border-bottom: 1px solid var(--border-s); }
.bskt-row:last-child { border-bottom: none; }
.b-logo    { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; background: var(--surface3); flex-shrink: 0; }
.b-logo-ph { width: 26px; height: 26px; border-radius: 6px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; flex-shrink: 0; }
.b-name { flex: 1; font-size: 0.82rem; font-weight: 700; }
.b-pct-wrap { position: relative; flex-shrink: 0; }
.b-pct { width: 58px; padding: 0.28rem 1.2rem 0.28rem 0.5rem; background: var(--surface3); border: 1px solid var(--border-s); border-radius: 5px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.8rem; text-align: right; outline: none; transition: border-color 0.18s; -moz-appearance: textfield; }
.b-pct::-webkit-outer-spin-button, .b-pct::-webkit-inner-spin-button { -webkit-appearance: none; }
.b-pct:focus { border-color: rgba(255,96,0,0.5); }
.b-pct-sym { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 0.62rem; color: var(--muted); pointer-events: none; }
.rm-btn { width: 22px; height: 22px; border-radius: 5px; background: transparent; border: 1px solid var(--border-s); color: var(--muted); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: background 0.18s, color 0.18s; flex-shrink: 0; }
.rm-btn:hover { background: rgba(248,113,113,0.1); color: var(--red); border-color: rgba(248,113,113,0.3); }

/* Submit footer */
.m-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border-s); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.m-hint { font-size: 0.7rem; color: var(--muted); font-weight: 400; line-height: 1.5; max-width: 300px; }
.del-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--fire), var(--amber));
  color: #0b0c0e; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.82rem;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 3px 14px rgba(255,96,0,0.25); white-space: nowrap;
}
.del-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(255,96,0,0.4); }
.del-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── TX TOAST ── */
.tx-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 700; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1.4rem;
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 280px; max-width: 90vw;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tx-toast.show    { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.tx-toast.success { border-color: rgba(74,222,128,0.3); }
.tx-toast.error   { border-color: rgba(248,113,113,0.3); }
.tx-toast.pending { border-color: rgba(255,171,0,0.3); }
.toast-icon  { font-size: 1.1rem; flex-shrink: 0; }
.toast-text  { flex: 1; }
.toast-link  { color: var(--amber); text-decoration: none; font-size: 0.72rem; display: block; margin-top: 0.15rem; opacity: 0.8; }
.toast-link:hover { opacity: 1; }
.toast-close { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0; flex-shrink: 0; }

/* ── WC QR MODAL ── */
.qr-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(7,8,10,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.qr-overlay.open { opacity: 1; pointer-events: all; }
.qr-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.qr-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1rem;
}
.qr-title { font-size: 0.95rem; font-weight: 800; }
#qrCode canvas, #qrCode img { border-radius: 8px; display: block; }
.qr-hint { font-size: 0.75rem; color: var(--muted); text-align: center; max-width: 240px; }

/* ── LIGHT MODE OVERRIDES ── */
:root.light body::before { opacity: 0.015; }
:root.light nav { background: rgba(245, 242, 238, 0.88); }
:root.light .hero { background: transparent; }
:root.light .grain { opacity: 0; }
:root.light .btn-ghost { border-color: rgba(0,0,0,0.15); color: var(--text); }
:root.light .btn-ghost:hover { border-color: var(--fire); background: rgba(255,96,0,0.06); }
:root.light .srch-in { background: var(--surface2); color: var(--text); }
:root.light .connect-btn { background: rgba(255,96,0,0.1); }
:root.light .connect-btn.connected { background: rgba(239,68,68,0.08); }
:root.light .pct-in,
:root.light .b-pct { background: var(--surface3); color: var(--text); }
:root.light .total-pill { background: var(--surface3); color: var(--text); }
:root.light .total-pill.ok { background: rgba(74,222,128,0.15); }
:root.light .total-pill.over { background: rgba(248,113,113,0.15); }
:root.light .tx-toast { box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
:root.light .address-card a { color: var(--text); }
:root.light #walletAddr,
:root.light #wflrBal { color: var(--muted); }
:root.light #wflrBal { color: var(--fire); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav — keep theme toggle and delegate button, hide text links */
  nav { padding: 0.85rem 1.25rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links li.nav-text-link { display: none; }
  .nav-logo span { font-size: 0.95rem; }

  /* Hero */
  .hero { padding: 6.5rem 1.25rem 2.5rem; min-height: auto; }
  .hero-orb  { width: 300px; height: 300px; }
  .hero-orb2 { display: none; }
  .scroll-hint { display: none; }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }

  /* Divider */
  .divider { margin: 0 1.25rem; }

  /* Main */
  main { padding: 3rem 1.25rem; }
  .about-grid    { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .address-cards { grid-template-columns: 1fr; gap: 1rem; }
  .stats-card { padding: 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .stats-card h3 { font-size: 1.3rem; }
  .stats-card .btn-primary { width: 100%; justify-content: center; }
  footer { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; gap: 0.5rem; }

  /* Modal — bottom sheet */
  .overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }

  /* Wallet bar — stack vertically */
  .wallet-bar { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.75rem 1rem; }
  .wallet-info { justify-content: space-between; }
  .wallet-bar-right { display: flex; }
  .connect-btn { width: 100%; text-align: center; padding: 0.55rem; }

  /* Provider list */
  .m-providers { padding: 0.5rem 0.75rem; }
  .prov-row { padding: 0.6rem 0.75rem; gap: 0.6rem; }
  .p-logo, .p-logo-ph { width: 30px; height: 30px; }
  .p-name { font-size: 0.8rem; }
  .pct-in { width: 52px; font-size: 0.75rem; }
  .add-btn { padding: 0.3rem 0.55rem; font-size: 0.65rem; }

  /* Basket */
  .bskt-hdr { padding: 0.6rem 0.75rem; }
  .bskt-row { padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .m-controls { padding: 0.65rem 0.75rem; }
  .m-footer { padding: 0.85rem 0.75rem; flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .m-hint { max-width: 100%; font-size: 0.68rem; }
  .del-btn { width: 100%; justify-content: center; padding: 0.75rem; }

  /* QR */
  .qr-box { width: calc(100vw - 2rem); }
  #qrCode canvas, #qrCode img { width: 100% !important; height: auto !important; }

  /* Toast */
  .tx-toast { bottom: 1rem; left: 1rem; right: 1rem; width: auto; min-width: unset; transform: translateY(8px); }
  .tx-toast.show { transform: translateY(0); }
}

@media (max-width: 480px) {
  .hero-logo { width: 80px; height: 80px; border-radius: 20px; }
  .hero-badge { font-size: 0.65rem; padding: 0.28rem 0.85rem; }
  .about-card { padding: 1.25rem; }
  .about-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .address-card { padding: 1.25rem; }
  .address-card a { font-size: 0.65rem; }
  .social-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem 1.25rem; }
  .m-header { padding: 0.85rem 0.75rem; }
  .m-title { font-size: 0.85rem; }
  .m-sub { font-size: 0.65rem; }
  .pin-badge, .listed-badge { display: none; }
  .bskt-empty { font-size: 0.75rem; padding: 0.85rem 0.75rem; }
}