:root {
  --bg: #0e0f1a;
  --bg2: #13141f;
  --bg3: #1a1b2e;
  --card: #16172a;
  --card2: #1e1f35;
  --border: #2a2b45;
  --border2: #353660;
  --accent: #7c6fff;
  --accent2: #4ecdc4;
  --green: #00d68f;
  --green2: #00ff9d;
  --red: #ff4d6a;
  --yellow: #ffd166;
  --gold: #f7b731;
  --text: #e8eaf6;
  --text2: #7b7e9e;
  --text3: #4a4c6a;
  --radius: 16px;
  --radius2: 12px;
  --radius3: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --glow-accent: 0 0 20px rgba(124,111,255,0.3);
  --glow-green: 0 0 20px rgba(0,214,143,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.avatar-wrap { position: relative; }
.avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), #5a4ff0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--glow-accent);
}
.level-badge {
  position: absolute; bottom: -3px; right: -3px;
  background: var(--yellow);
  color: #0e0f1a;
  font-size: 9px; font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg2);
}
.user-name { font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.user-xp { font-size: 11px; color: var(--text2); margin-top: 1px; }
.balance-chip {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 6px 12px;
  text-align: right;
}
.balance-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.8px; }
.balance-value { font-size: 17px; font-weight: 800; color: var(--accent2); letter-spacing: -0.5px; }

/* ── NETWORTH STRIP ── */
.networth-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: linear-gradient(90deg, rgba(124,111,255,0.08), rgba(78,205,196,0.06));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nw-label { font-size: 11px; color: var(--text2); }
.nw-value { font-size: 13px; font-weight: 800; color: var(--gold); flex: 1; }
.nw-streak { font-size: 12px; color: var(--text2); }

/* ── TABS ── */
.tabs {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 600;
}
.tab span { font-size: 9px; }
.tab:first-child { font-size: 18px; }
.tab > :first-child { font-size: 18px; line-height: 1; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── CONTENT ── */
.content { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.content::-webkit-scrollbar { width: 3px; }
.content::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.tab-content { display: none; padding: 12px 14px 80px; }
.tab-content.active { display: block; }

/* ── NEWS TICKER ── */
.news-ticker {
  background: linear-gradient(90deg, var(--bg3), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── MARKET TOOLBAR ── */
.market-toolbar { display: flex; gap: 8px; margin-bottom: 8px; }
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 0 12px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-icon { font-size: 13px; }
.search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 9px 0;
}
.filter-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 9px 8px;
  color: var(--text);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* UPDATE BAR */
.update-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 10px;
  padding: 0 2px;
}
.update-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── COIN LIST ── */
.coin-list { display: flex; flex-direction: column; gap: 8px; }
.coin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.coin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,111,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.coin-card:active { transform: scale(0.98); }
.coin-card:active::before { opacity: 1; }
.coin-card.legendary {
  border-color: rgba(247,183,49,0.4);
  background: linear-gradient(135deg, #1c1a10, var(--card));
}
.coin-card.rare { border-color: rgba(155,89,182,0.35); }
.coin-card.locked-coin { opacity: 0.35; cursor: default; }

.coin-emoji { font-size: 30px; width: 40px; text-align: center; flex-shrink: 0; }
.coin-mid { flex: 1; min-width: 0; }
.coin-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.coin-id { font-weight: 800; font-size: 15px; letter-spacing: -0.3px; }
.coin-badge {
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.b-base { background: rgba(0,214,143,0.15); color: var(--green); }
.b-rare { background: rgba(155,89,182,0.2); color: #c084fc; }
.b-legendary { background: rgba(247,183,49,0.2); color: var(--gold); }
.coin-fullname { font-size: 11px; color: var(--text2); }
.mini-chart { display: block; margin-top: 4px; border-radius: 3px; }

.coin-right { text-align: right; flex-shrink: 0; }
.coin-price { font-weight: 800; font-size: 14px; letter-spacing: -0.3px; }
.coin-chg {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}
.chg-up { background: rgba(0,214,143,0.15); color: var(--green); }
.chg-down { background: rgba(255,77,106,0.15); color: var(--red); }
.coin-vol { font-size: 10px; color: var(--text3); margin-top: 3px; }

/* ── PORTFOLIO ── */
.pf-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.pf-summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 10px 10px 8px;
}
.pf-s-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pf-s-value { font-size: 14px; font-weight: 800; }

.portfolio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pf-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pf-item:active { border-color: var(--accent); }
.pf-coin-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pf-emoji { font-size: 24px; }
.pf-id { font-weight: 700; font-size: 14px; }
.pf-qty { font-size: 11px; color: var(--text2); }
.pf-right { text-align: right; }
.pf-val { font-weight: 700; font-size: 14px; }
.pf-pnl { font-size: 11px; font-weight: 700; margin-top: 2px; }
.pnl-pos { color: var(--green); }
.pnl-neg { color: var(--red); }

/* SECTION HEADER */
.section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* TX LIST */
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-item {
  background: var(--card);
  border-radius: var(--radius3);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tx-left { display: flex; align-items: center; gap: 8px; }
.tx-type-badge {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.tb-buy { background: rgba(0,214,143,0.15); color: var(--green); }
.tb-sell { background: rgba(255,77,106,0.15); color: var(--red); }
.tx-coin { font-size: 13px; font-weight: 600; }
.tx-qty { font-size: 10px; color: var(--text2); }
.tx-right { text-align: right; }
.tx-amount { font-weight: 700; font-size: 13px; }
.tx-date { font-size: 10px; color: var(--text3); }

/* ── INVEST ── */
.collect-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), #5a4ff0);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 4px;
  box-shadow: var(--glow-accent);
  transition: opacity 0.2s;
}
.collect-btn:active { opacity: 0.85; }

.invest-list { display: flex; flex-direction: column; gap: 10px; }
.invest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.2s;
}
.invest-card.owned { border-color: rgba(0,214,143,0.3); }
.invest-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.invest-ico { font-size: 28px; }
.invest-name { font-weight: 700; font-size: 14px; }
.invest-desc { font-size: 11px; color: var(--text2); margin-top: 1px; }
.invest-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ist { background: var(--bg3); border-radius: var(--radius3); padding: 7px; text-align: center; }
.ist-label { font-size: 9px; color: var(--text2); text-transform: uppercase; margin-bottom: 2px; }
.ist-val { font-size: 13px; font-weight: 800; }
.invest-buy-btn {
  width: 100%;
  padding: 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius3);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.invest-buy-btn:hover { border-color: var(--accent); color: var(--accent); }

.cases-list { display: flex; gap: 8px; flex-wrap: wrap; }
.case-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}
.case-item:active { transform: scale(0.95); border-color: var(--gold); }
.case-item.rare { border-color: rgba(155,89,182,0.4); }
.case-emoji { font-size: 30px; }
.case-type { font-size: 10px; color: var(--text2); margin-top: 4px; font-weight: 600; }
.booster-info {
  background: var(--card);
  border-radius: var(--radius2);
  padding: 12px;
  color: var(--text2);
  font-size: 12px;
}

/* ── QUESTS ── */
.daily-card {
  background: linear-gradient(135deg, rgba(124,111,255,0.15), rgba(78,205,196,0.08));
  border: 1px solid rgba(124,111,255,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.daily-title { font-size: 14px; font-weight: 700; }
.daily-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
.daily-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.daily-btn:disabled { opacity: 0.4; cursor: default; }

.quest-list { display: flex; flex-direction: column; gap: 8px; }
.quest-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.quest-item.done { border-color: rgba(0,214,143,0.3); }
.quest-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.quest-name { font-weight: 600; font-size: 13px; }
.quest-reward { font-size: 11px; color: var(--accent2); font-weight: 700; flex-shrink: 0; }
.quest-bar { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.quest-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; transition: width 0.5s; }
.quest-meta { font-size: 10px; color: var(--text2); margin-top: 5px; }

/* ── LEADERBOARD ── */
.my-rank-card {
  background: linear-gradient(135deg, rgba(124,111,255,0.12), rgba(78,205,196,0.06));
  border: 1px solid rgba(124,111,255,0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.7;
}
.leaderboard-list { display: flex; flex-direction: column; gap: 6px; }
.lb-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-item.me { border-color: rgba(124,111,255,0.4); background: rgba(124,111,255,0.08); }
.lb-rank { width: 30px; font-size: 16px; text-align: center; font-weight: 700; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-lvl { font-size: 10px; color: var(--text2); }
.lb-worth { font-weight: 800; font-size: 14px; color: var(--gold); flex-shrink: 0; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 0 20px 32px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-drag-handle {
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 12px auto 16px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-coin-info { display: flex; align-items: center; gap: 10px; }
.modal-coin-emoji { font-size: 34px; }
.modal-coin-name { font-weight: 800; font-size: 17px; }
.modal-coin-price { font-size: 20px; font-weight: 800; color: var(--accent2); }
.modal-coin-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 2px;
  display: inline-block;
}
.modal-close {
  width: 34px; height: 34px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text2);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

/* CHART */
.chart-container {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  position: relative;
}
#priceChart { display: block; width: 100% !important; }
.chart-range-btns {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.range-btn {
  flex: 1;
  padding: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.range-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* TRADE TABS */
.trade-mode-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.trade-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius2);
  border: 2px solid var(--border);
  background: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.trade-tab.active.buy { border-color: var(--green); color: var(--green); background: rgba(0,214,143,0.1); }
.trade-tab.active.sell { border-color: var(--red); color: var(--red); background: rgba(255,77,106,0.1); }

/* TRADE FORM */
.trade-form { display: flex; flex-direction: column; gap: 8px; }
.trade-field label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.trade-field input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 11px 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.trade-field input:focus { border-color: var(--accent); }
.trade-equals { text-align: center; color: var(--text3); font-size: 13px; margin: -2px 0; }
.quick-pct-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.quick-pct-row button {
  padding: 7px 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.quick-pct-row button:active { border-color: var(--accent); color: var(--accent); }
.trade-meta-row { display: flex; justify-content: space-between; }
.trade-meta-item { font-size: 12px; }
.tmi-label { color: var(--text2); margin-right: 4px; }
.tmi-val { font-weight: 700; }
.execute-btn {
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--green), #00a86b);
  box-shadow: var(--glow-green);
  transition: opacity 0.2s;
  letter-spacing: -0.3px;
}
.execute-btn:active { opacity: 0.85; }
.execute-btn.sell-mode { background: linear-gradient(135deg, var(--red), #cc1a35); box-shadow: 0 0 20px rgba(255,77,106,0.3); }

/* ── TUTORIAL ── */
.tut-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}
.tut-overlay.open { display: flex; }
.tut-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.tut-card {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border-top: 1px solid var(--border2);
}
.tut-skip {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: var(--text2); font-size: 12px;
  cursor: pointer; text-decoration: underline;
}
.tut-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.tut-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.tut-text { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.tut-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.tut-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border2);
  transition: all 0.3s;
}
.tut-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }
.tut-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #5a4ff0);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glow-accent);
  transition: opacity 0.2s;
}
.tut-btn:disabled { opacity: 0.5; cursor: default; }
.tut-step { font-size: 11px; color: var(--text3); margin-top: 10px; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text2);
  line-height: 2;
}
.empty-state small { font-size: 12px; color: var(--text3); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 1000;
  pointer-events: none;
  max-width: 88vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(0,214,143,0.5); color: var(--green); }
.toast.error { border-color: rgba(255,77,106,0.5); color: var(--red); }
.toast.info { border-color: rgba(124,111,255,0.5); color: var(--accent); }
