/* ===== VICEPUMP — GTA Phone UI + Desktop ===== */

:root {
  --bg: #0a0a1a;
  --bg2: #12122a;
  --card: rgba(18, 18, 42, 0.85);
  --card-border: rgba(255, 45, 123, 0.15);
  --pink: #ff2d7b;
  --cyan: #00f0ff;
  --purple: #b026ff;
  --gold: #ffd700;
  --orange: #ff6b35;
  --text: #e0e0ff;
  --text2: #8888aa;
  --text3: #555577;
  --danger: #ff3b3b;
  --success: #00ff88;
  --glow-pink: 0 0 20px rgba(255, 45, 123, 0.4), 0 0 60px rgba(255, 45, 123, 0.1);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --phone-bar: 40px;
  --phone-nav: 60px;
}

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

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.mono { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ===== PHONE STATUS BAR (hidden on desktop) ===== */

.phone-status-bar {
  display: none;
}

/* ===== HEADER ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 45, 123, 0.15), rgba(176, 38, 255, 0.1), rgba(10, 10, 26, 0.95));
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 45, 123, 0.6), 0 0 40px rgba(255, 45, 123, 0.2);
  flex-shrink: 0;
}
.logo-dot {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.2);
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 16px;
}
.header-stat {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.header-stat-label { font-size: 0.8rem; color: var(--text2); }

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.btn-wallet {
  background: rgba(255, 45, 123, 0.15);
  color: var(--pink);
  border: 1px solid rgba(255, 45, 123, 0.3);
}
.btn-wallet:hover {
  background: rgba(255, 45, 123, 0.25);
  box-shadow: var(--glow-pink);
}
.btn-wallet.connected {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
}
.btn-wallet.connected:hover { box-shadow: var(--glow-cyan); }

.wallet-icon { font-size: 1.1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 1rem;
  padding: 12px 28px;
  box-shadow: 0 0 20px rgba(255, 45, 123, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 45, 123, 0.5), 0 0 60px rgba(176, 38, 255, 0.2);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.loading .btn-text { visibility: hidden; }
.btn-primary.loading .btn-loader { display: block; }
.btn-loader {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-event-launch {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.btn-event-launch:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: var(--glow-cyan);
}

/* ===== MAIN LAYOUT ===== */

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ===== SECTION BAR ===== */

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 8px rgba(255, 45, 123, 0.2);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 5px 12px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: rgba(18, 18, 42, 0.6);
  color: var(--text2);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: rgba(255, 45, 123, 0.4); color: var(--text); }
.filter-chip.active {
  background: rgba(255, 45, 123, 0.15);
  border-color: var(--pink);
  color: var(--pink);
}

/* ===== TOKEN GRID ===== */

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.token-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.token-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255, 45, 123, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.token-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 123, 0.35);
  box-shadow: 0 8px 32px rgba(255, 45, 123, 0.15), 0 0 60px rgba(176, 38, 255, 0.05);
}
.token-card:hover::before { opacity: 1; }

.token-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.token-card-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg2);
  flex-shrink: 0;
}

.token-card-info { flex: 1; min-width: 0; }

.token-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-card-symbol {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.token-card-price {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 4px;
}

.token-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.token-card-cat {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(176, 38, 255, 0.15);
  color: var(--purple);
  white-space: nowrap;
}

.token-card-age {
  font-size: 0.72rem;
  color: var(--text3);
}

.progress-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 2px;
  transition: width 0.5s;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ===== EVENTS SIDEBAR ===== */

.events-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}

.events-list { display: flex; flex-direction: column; gap: 12px; }

.event-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: border-color 0.2s;
}
.event-card:hover { border-color: rgba(0, 240, 255, 0.3); }

.event-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.event-card-icon { font-size: 1.2rem; }
.event-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-time { font-size: 0.7rem; color: var(--text3); }

.event-card-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-source {
  font-size: 0.72rem;
  color: var(--cyan);
  text-decoration: none;
}
.event-source:hover { text-decoration: underline; }

/* ===== FAB ===== */

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255, 45, 123, 0.4), 0 0 60px rgba(255, 45, 123, 0.15);
  transition: all 0.2s;
  animation: fabPulse 3s ease-in-out infinite;
}
.fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 32px rgba(255, 45, 123, 0.5), 0 0 80px rgba(176, 38, 255, 0.2);
}
.fab-icon { font-size: 1.3rem; line-height: 1; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 45, 123, 0.4), 0 0 60px rgba(255, 45, 123, 0.15); }
  50% { box-shadow: 0 4px 32px rgba(255, 45, 123, 0.6), 0 0 80px rgba(255, 45, 123, 0.25); }
}

/* ===== MODALS ===== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 45, 123, 0.1);
  animation: modalIn 0.25s;
}
.modal-wide { max-width: 740px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--card-border);
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 45, 123, 0.3);
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255, 45, 123, 0.15); color: var(--pink); }

/* ===== FORM ===== */

.create-form { padding: 20px 24px 24px; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field-label { font-size: 0.78rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.field input, .field textarea, .field select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 45, 123, 0.15);
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 60px; }

.form-row { display: flex; gap: 12px; }
.form-row.two > * { flex: 1; }

.image-drop {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-drop:hover, .image-drop.dragover { border-color: var(--cyan); }
.image-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-drop-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text2); font-size: 0.85rem; }
.image-drop-icon { font-size: 2rem; }
.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  display: none;
}
.image-preview.visible { display: block; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.form-msg { font-size: 0.82rem; flex: 1; }
.form-msg.error { color: var(--danger); }
.form-msg.success { color: var(--success); }

.btn-launch { min-width: 160px; justify-content: center; }

/* ===== TOKEN DETAIL ===== */

.token-detail {
  padding: 20px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.token-detail-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg);
  margin-bottom: 12px;
}

.token-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.token-symbol-big {
  font-family: monospace;
  font-size: 1.3rem;
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.token-cat-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(176, 38, 255, 0.15);
  color: var(--purple);
}
.token-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.token-links {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.token-links a {
  font-size: 0.78rem;
  color: var(--cyan);
  text-decoration: none;
}
.token-links a:hover { text-decoration: underline; }

.token-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.stat {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

/* ===== TRADE ===== */

.trade-col {
  display: flex;
  flex-direction: column;
}

.trade-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
}
.trade-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text2);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.trade-tab.active {
  background: rgba(255, 45, 123, 0.2);
  color: var(--pink);
}
.trade-tab[data-side="sell"].active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.trade-balance {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trade-input-wrap {
  position: relative;
  margin-bottom: 12px;
}
.trade-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 60px 14px 16px;
  color: var(--text);
  font-family: monospace;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}
.trade-input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255, 45, 123, 0.15); }
.trade-input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text3);
  font-weight: 600;
}

.trade-input::-webkit-inner-spin-button,
.trade-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.trade-input[type=number] { -moz-appearance: textfield; }

.pct-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.pct-btn {
  flex: 1;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pct-btn:hover {
  border-color: rgba(255, 45, 123, 0.3);
  color: var(--text);
}

.slip-field { margin-bottom: 14px; }
.slip-field input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: monospace;
  outline: none;
  width: 80px;
}

.btn-trade {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ===== TOAST ===== */

.toast-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastIn 0.3s;
  max-width: 340px;
}
.toast.error { border-color: rgba(255, 59, 59, 0.4); color: var(--danger); }
.toast.success { border-color: rgba(0, 255, 136, 0.3); color: var(--success); }
.toast.out { animation: toastOut 0.3s forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ===== EMPTY STATE ===== */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-state.small { padding: 30px 10px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== PHONE BOTTOM NAV (hidden on desktop) ===== */

.phone-nav {
  display: none;
}

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

.site-footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 45, 123, 0.1);
  position: relative;
  z-index: 1;
}
.site-footer p {
  color: var(--text3);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.site-footer .disclaimer {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #444466;
}

/* ===== RESPONSIVE - TABLET ===== */

@media (max-width: 860px) {
  .main {
    grid-template-columns: 1fr;
  }
  .events-sidebar {
    position: static;
    max-height: none;
  }
  .events-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .event-card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .token-detail {
    grid-template-columns: 1fr;
  }
  .modal-wide { max-width: 520px; }
  .fab { bottom: 16px; right: 16px; padding: 12px 20px; }
}

/* ===== RESPONSIVE - GTA iFruit PHONE UI ===== */

@media (max-width: 520px) {
  body {
    background: #000;
    padding-top: var(--phone-bar);
    padding-bottom: var(--phone-nav);
    overflow-x: hidden;
    max-width: 100vw;
  }

  body::before {
    background:
      linear-gradient(170deg, rgba(176, 38, 255, 0.04) 0%, transparent 40%),
      linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
  }

  /* ---- Phone status bar ---- */
  .phone-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: var(--phone-bar);
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.98), rgba(10, 10, 26, 0.92));
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .phone-sb-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .phone-signal {
    letter-spacing: 2px;
    color: var(--text3);
    font-size: 0.6rem;
  }
  .phone-carrier {
    font-family: 'Courier New', monospace;
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .phone-time {
    font-family: monospace;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .phone-sb-right {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .phone-battery {
    color: var(--success);
    font-family: monospace;
    font-size: 0.7rem;
  }

  /* ---- Header (phone) ---- */
  .header {
    position: static;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-inner {
    height: 44px;
    padding: 0 16px;
    justify-content: center;
  }
  .header-nav { display: none; }
  .btn-wallet { display: none; }

  /* ---- Main (phone) ---- */
  .main {
    padding: 8px 12px 16px;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  /* Tab switching via data-view attribute */
  .main[data-view="events"] .tokens-section { display: none; }
  .main[data-view="tokens"] .events-sidebar { display: none; }

  .tokens-section, .events-sidebar { min-width: 0; overflow: hidden; }
  .section-bar { margin-bottom: 12px; overflow: hidden; }
  .section-title {
    font-size: 0.95rem;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { padding: 4px 10px; font-size: 0.72rem; }

  /* ---- Token grid (phone) ---- */
  .token-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .token-card {
    padding: 10px;
    border-radius: var(--radius-sm);
  }
  .token-card:hover { transform: none; }

  .token-card-img { width: 40px; height: 40px; border-radius: 8px; }
  .token-card-name { font-size: 0.85rem; }
  .token-card-symbol { font-size: 0.72rem; }
  .token-card-price { font-size: 0.78rem; }
  .token-card-cat { font-size: 0.65rem; }
  .token-card-age { font-size: 0.65rem; }

  /* ---- Events (phone) ---- */
  .events-sidebar {
    position: static;
    max-height: none;
  }
  .events-list {
    flex-direction: column;
    gap: 10px;
  }
  .event-card { padding: 10px; }
  .event-card-title { font-size: 0.82rem; }
  .event-card-desc { font-size: 0.75rem; -webkit-line-clamp: 2; }

  /* ---- FAB hidden (replaced by phone nav) ---- */
  .fab { display: none; }

  /* ---- Footer hidden ---- */
  .site-footer { display: none; }

  /* ---- Phone bottom nav ---- */
  .phone-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: var(--phone-nav);
    background: linear-gradient(0deg, rgba(10, 10, 26, 0.98), rgba(10, 10, 26, 0.92));
    border-top: 1px solid rgba(255, 45, 123, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .phone-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    transition: color 0.2s;
    padding: 6px 2px;
    -webkit-tap-highlight-color: transparent;
  }
  .phone-nav-btn.active {
    color: var(--pink);
  }
  .phone-nav-btn.connected {
    color: var(--cyan);
  }

  .phone-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }
  .phone-nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
  }

  /* Center launch button */
  .phone-nav-center .phone-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: -12px;
    box-shadow: 0 2px 16px rgba(255, 45, 123, 0.5), 0 0 30px rgba(255, 45, 123, 0.15);
    animation: navPulse 3s ease-in-out infinite;
  }
  .phone-nav-center .phone-nav-label {
    color: var(--pink);
  }

  @keyframes navPulse {
    0%, 100% { box-shadow: 0 2px 16px rgba(255, 45, 123, 0.5), 0 0 40px rgba(255, 45, 123, 0.15); }
    50% { box-shadow: 0 2px 24px rgba(255, 45, 123, 0.7), 0 0 60px rgba(255, 45, 123, 0.25); }
  }

  /* ---- Modals (phone - bottom sheet) ---- */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
  }
  .modal-wide {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
  }

  .modal-header { padding: 16px 20px 12px; }
  .modal-title { font-size: 1.05rem; }

  .create-form { padding: 12px 20px 20px; }
  .token-detail { padding: 12px 20px 20px; grid-template-columns: 1fr; }
  .form-row.two { flex-direction: column; gap: 0; }
  .token-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 8px; }
  .stat-label { font-size: 0.65rem; }
  .stat-value { font-size: 0.82rem; }

  /* ---- Toast (phone) ---- */
  .toast-container {
    top: calc(var(--phone-bar) + 8px);
    right: 12px;
    left: 12px;
  }
  .toast { max-width: 100%; }

  /* ---- Empty state (phone) ---- */
  .empty-state { padding: 40px 16px; }
  .empty-icon { font-size: 2.5rem; }
}
