/* ========================================
   胖乖积分助手 - 设计系统
   深色主题 · 毛玻璃 · 渐变
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #07090f;
  --bg-surface: #0d1117;
  --bg-card: rgba(15, 20, 30, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --accent-cyan: #22d3ee;
  --accent-violet: #a78bfa;
  --accent-blue: #60a5fa;
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  --navbar-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

a { color: var(--accent-cyan); text-decoration: none; }

/* ---------- Background Decoration ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 70%);
  top: 50%; right: -8%;
  animation-delay: -7s;
}

.bg-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1), transparent 70%);
  bottom: -5%; left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Page Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- Auth Page ---------- */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  animation: cardAppear 0.6s var(--ease-out);
}

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

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 40px;
  line-height: 1;
  animation: logoBounce 2s var(--ease-spring) infinite;
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
  position: relative;
  z-index: 1;
}

.auth-tab.active {
  color: var(--text-primary);
}

.auth-tab-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  transition: transform var(--transition-base);
}

.auth-tabs:has(.auth-tab:last-child.active) .auth-tab-indicator {
  transform: translateX(100%);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input:disabled,
.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
  filter: brightness(1.1);
}

.btn-accent {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.btn-accent:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px 8px; font-size: 1.1rem;
  transition: var(--transition-fast); border-radius: var(--radius-xs);
}
.btn-icon:hover { color: var(--text-primary); background: var(--glass-hover); }

/* Button loader */
.btn-loader {
  width: 18px; height: 18px;
  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); } }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--navbar-height);
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo { font-size: 1.5rem; }
.nav-title {
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-center { display: flex; gap: 4px; }

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-tab:hover { color: var(--text-primary); background: var(--glass-hover); }

.nav-tab.active {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.nav-tab-icon { font-size: 1rem; }

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.user-avatar { font-size: 1rem; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-nav-item span:first-child { font-size: 1.2rem; }
.mobile-nav-item.active { color: var(--accent-cyan); }

/* ---------- Main Content ---------- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 100px;
}

.view { animation: viewFade 0.3s var(--ease-out); }

@keyframes viewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.view-title {
  font-size: 1.35rem;
  font-weight: 600;
}

/* ---------- Token Acquire Card ---------- */
.token-acquire-card {
  padding: 24px;
  margin-bottom: 24px;
  animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.card-header h3 { font-size: 1.05rem; font-weight: 600; }

.token-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-base);
}

.step-dot.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

.step-dot.done {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--success);
  color: var(--success);
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  background: var(--glass-border);
  margin: 4px 0;
}

.step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.step-body label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row .input { flex: 1; }

/* Message */
.message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  animation: slideDown 0.2s var(--ease-out);
}

.message.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--success);
}

.message.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--error);
}

.message.info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--info);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.6; }
.empty-title { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Token Grid ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
  animation: cardAppear 0.3s var(--ease-out);
}

.token-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: var(--shadow-glow);
}

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

.token-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-card-label .phone {
  font-weight: 600;
  font-size: 1rem;
}

.token-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-status.active {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.token-status.expired {
  background: rgba(248, 113, 113, 0.12);
  color: var(--error);
}

.token-card-body {
  margin-bottom: 14px;
}

.token-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  word-break: break-all;
  line-height: 1.5;
  max-height: 56px;
  overflow: hidden;
}

.token-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.token-card-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Runner ---------- */
.runner-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.runner-config {
  padding: 20px;
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
}

.runner-config h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.runner-token-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.runner-token-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.runner-token-item:hover {
  background: var(--glass-hover);
  border-color: rgba(34, 211, 238, 0.15);
}

.runner-token-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.runner-token-item .label {
  font-size: 0.85rem;
  flex: 1;
}

.runner-token-item .status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.runner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.btn-run {
  padding: 10px 28px;
}

/* Run Summary */
.run-summary {
  margin-top: 16px;
  padding: 16px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius-sm);
  animation: slideDown 0.3s var(--ease-out);
}

.run-summary h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.summary-item .value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Runner Log */
.runner-log-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

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

.log-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.log-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-fast);
}

.status-dot.running {
  background: var(--accent-cyan);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.done { background: var(--success); }
.status-dot.error { background: var(--error); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

.log-output {
  flex: 1;
  min-height: 400px;
  max-height: 65vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.log-output::-webkit-scrollbar {
  width: 6px;
}

.log-output::-webkit-scrollbar-track {
  background: transparent;
}

.log-output::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.log-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: var(--text-muted);
  gap: 8px;
}

.log-placeholder span { font-size: 2rem; opacity: 0.4; }
.log-placeholder p { font-size: 0.85rem; }

.log-line {
  padding: 2px 0;
  word-break: break-all;
}

.log-line.success { color: var(--success); }
.log-line.error { color: var(--error); }
.log-line.warning { color: var(--warning); }
.log-line.info { color: var(--accent-cyan); }
.log-line.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.log-time {
  color: var(--text-muted);
  margin-right: 8px;
  opacity: 0.6;
}

/* ---------- History ---------- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  animation: cardAppear 0.3s var(--ease-out);
}

.history-card:hover {
  border-color: rgba(34, 211, 238, 0.15);
}

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

.history-phone {
  font-weight: 600;
  font-size: 0.95rem;
}

.history-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.history-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-stats {
  text-align: right;
}

.history-earned {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-total {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastIn 0.3s var(--ease-out);
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.toast.removing {
  animation: toastOut 0.3s var(--ease-out) forwards;
}

.toast.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
}

.toast.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--error);
}

.toast.info {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--info);
}

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

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

/* ---------- Scrollbar ---------- */
.runner-token-list::-webkit-scrollbar { width: 4px; }
.runner-token-list::-webkit-scrollbar-track { background: transparent; }
.runner-token-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar { display: none; }
  .mobile-nav { display: flex; }

  .main-content {
    padding: 16px 12px 90px;
  }

  .runner-layout {
    grid-template-columns: 1fr;
  }

  .runner-config {
    position: static;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .input-row {
    flex-direction: column;
  }

  .toast-container {
    left: 12px;
    right: 12px;
  }

  .toast {
    max-width: 100%;
  }

  .history-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .history-stats {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .view-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-header .btn {
    width: 100%;
  }
}
