﻿/* =========================================================
   Aunny Terminal — Mint & White Aesthetic Pro Stylesheet
   ========================================================= */

:root {
  --bg-main: #060a0f;
  --bg-surface: #0a111a;
  --bg-card: #0f1824;
  --bg-card-hover: #142233;
  --border-stroke: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(0, 245, 160, 0.4);

  --accent-mint: #00f5a0;
  --accent-mint-soft: #4efac0;
  --accent-mint-glow: rgba(0, 245, 160, 0.35);
  --accent-mint-bg: rgba(0, 245, 160, 0.12);

  --accent-pink: #ff3b69;
  --accent-pink-glow: rgba(255, 59, 105, 0.35);

  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-faint: #334155;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
}

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

body.terminal-body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

.grid-background {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 160, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.radial-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.glow-top-left { top: -150px; left: 10%; background: var(--accent-mint); }
.glow-bottom-right { bottom: -200px; right: 5%; background: #ffffff; }

.text-mint { color: var(--accent-mint) !important; }
.text-white { color: var(--text-white) !important; }
.text-pink { color: var(--accent-pink) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-right { text-align: right; }
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 0.75rem; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.terminal-layout { display: flex; height: 100vh; position: relative; z-index: 1; }

/* SIDEBAR */
.terminal-sidebar {
  width: 250px;
  background: rgba(10, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-stroke);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.terminal-sidebar.collapsed { width: 72px; }
.terminal-sidebar.collapsed .brand-title,
.terminal-sidebar.collapsed .nav-label,
.terminal-sidebar.collapsed .nav-badge,
.terminal-sidebar.collapsed .nav-pill-rewards,
.terminal-sidebar.collapsed #sidebarWalletText,
.terminal-sidebar.collapsed .sidebar-user-box { display: none; }

.sidebar-header {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-stroke);
}

.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-white); }
.brand-bolt-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  filter: drop-shadow(0 0 10px var(--accent-mint-glow));
}
.bolt-svg { width: 26px; height: 26px; }
.brand-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover { color: var(--accent-mint); background: var(--bg-card); }

.btn-icon-xs {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon-xs:hover { color: var(--accent-pink); background: rgba(255, 59, 105, 0.15); }

.sidebar-nav {
  padding: 16px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--bg-card-hover); color: var(--text-white); border-color: var(--border-stroke); }
.nav-item.active { background: var(--bg-card); color: var(--text-white); border-color: var(--border-highlight); box-shadow: 0 0 15px rgba(0, 245, 160, 0.08); }

.nav-icon-box { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.nav-item:hover .nav-icon-box { color: var(--accent-mint); }
.active-icon { color: var(--accent-mint) !important; }

.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-mint-bg);
  color: var(--accent-mint);
  border: 1px solid var(--border-highlight);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}

.nav-pill-rewards {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--accent-mint);
  color: #060a0f;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.active-indicator-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
}

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border-stroke); }

.sidebar-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-mint);
  color: #060a0f;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta-sm { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }

.btn-connect-wallet-sidebar {
  width: 100%;
  background: var(--accent-mint);
  color: #060a0f;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-connect-wallet-sidebar:hover { background: var(--accent-mint-soft); box-shadow: 0 0 18px var(--accent-mint-glow); }

/* MAIN AREA & HEADER */
.terminal-main-area { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }

.terminal-header {
  height: 64px;
  padding: 0 24px;
  background: rgba(10, 17, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-white); cursor: pointer; }

.header-search-wrapper { position: relative; width: 380px; cursor: pointer; }
.header-search-wrapper input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 34px;
  color: var(--text-white);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.header-search-wrapper:hover input { border-color: var(--border-highlight); background: var(--bg-card); }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); }
.hotkey-badge {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 0.68rem; font-family: var(--font-mono); background: var(--bg-card);
  border: 1px solid var(--border-stroke); padding: 2px 6px; border-radius: var(--radius-xs); color: var(--text-muted);
}

.oracle-status-group { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-stroke); padding: 6px 12px; border-radius: var(--radius-full);
}
.pulse-mint {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mint); box-shadow: 0 0 8px var(--accent-mint); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0% { opacity: 0.7; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.7; transform: scale(0.9); } }
.fuel-icon { width: 14px; height: 14px; color: var(--accent-mint); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-telegram {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg-surface); border: 1px solid var(--border-stroke); color: var(--text-white);
  text-decoration: none; font-size: 0.82rem; font-weight: 600; transition: var(--transition);
}
.btn-telegram:hover { background: var(--bg-card); border-color: var(--accent-mint); color: var(--accent-mint); }
.btn-telegram i { width: 15px; height: 15px; }

.user-profile-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-surface);
  border: 1px solid var(--border-highlight); border-radius: var(--radius-sm); font-size: 0.82rem;
}

.btn-connect-wallet {
  display: flex; align-items: center; gap: 8px; background: var(--accent-mint); color: #060a0f;
  border: none; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-connect-wallet:hover { background: var(--accent-mint-soft); box-shadow: 0 0 18px var(--accent-mint-glow); }

/* CONTENT & PORTFOLIO */
.terminal-content { flex-grow: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }

.portfolio-summary-card {
  background: var(--bg-card); border: 1px solid var(--border-stroke); border-radius: var(--radius-lg);
  padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-label-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.subtext { font-size: 0.75rem; letter-spacing: 0.08em; font-weight: 700; color: var(--text-muted); }
.live-dot-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--accent-mint);
  background: var(--accent-mint-bg); padding: 2px 8px; border-radius: var(--radius-full); border: 1px solid var(--border-highlight);
}
.live-dot-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-mint); }

.portfolio-main-balance { font-size: 2.8rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }

.pnl-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; flex-wrap: wrap; }
.pnl-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-xs); font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; }
.pnl-badge.positive { background: var(--accent-mint-bg); color: var(--accent-mint); border: 1px solid var(--border-highlight); }
.pnl-badge.negative { background: rgba(255, 59, 105, 0.12); color: var(--accent-pink); border: 1px solid rgba(255, 59, 105, 0.3); }

.summary-right-metrics { display: flex; gap: 16px; }
.metric-box { background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-md); padding: 16px 20px; min-width: 180px; display: flex; flex-direction: column; }
.m-label { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.m-val { font-size: 1.3rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: 6px; }
.m-sub { font-size: 0.75rem; }

.btn-deposit-quick {
  margin-top: 4px; background: var(--accent-mint-bg); border: 1px solid var(--border-highlight);
  color: var(--accent-mint); padding: 4px 10px; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-deposit-quick:hover { background: var(--accent-mint); color: #060a0f; }

/* PERFORMANCE CHART */
.chart-container-card { background: var(--bg-card); border: 1px solid var(--border-stroke); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.chart-controls-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.chart-heading-group { display: flex; align-items: center; gap: 16px; }
.chart-heading-group h3 { font-size: 1.1rem; font-weight: 700; }
.chart-hover-indicator {
  font-size: 0.85rem; font-family: var(--font-mono); color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-stroke); padding: 4px 10px; border-radius: var(--radius-xs);
}
.chart-hover-indicator strong { color: var(--accent-mint); }

.timeframe-buttons { display: flex; background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-sm); padding: 2px; }
.tf-btn {
  background: transparent; border: none; color: var(--text-muted); font-size: 0.76rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-xs); cursor: pointer; transition: var(--transition);
}
.tf-btn:hover { color: var(--text-white); }
.tf-btn.active { background: var(--bg-card-hover); color: var(--accent-mint); border: 1px solid var(--border-highlight); }

.chart-canvas-wrapper { height: 240px; width: 100%; position: relative; }
#portfolioCanvas { width: 100%; height: 100%; display: block; }
.chart-crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0, 245, 160, 0.5); pointer-events: none; display: none; }

/* TABLES & TABS */
.tables-card { background: var(--bg-card); border: 1px solid var(--border-stroke); border-radius: var(--radius-lg); overflow: hidden; }
.tables-nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-stroke); flex-wrap: wrap; gap: 16px; }
.table-tabs-group { display: flex; gap: 8px; }
.tbl-tab {
  display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-size: 0.86rem; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.tbl-tab:hover { color: var(--text-white); background: var(--bg-surface); }
.tbl-tab.active { background: var(--bg-surface); color: var(--text-white); border-color: var(--border-highlight); }
.tab-count { background: var(--bg-card-hover); font-size: 0.72rem; font-family: var(--font-mono); padding: 1px 7px; border-radius: var(--radius-full); color: var(--accent-mint); }

.table-actions-group { display: flex; align-items: center; gap: 12px; }
.table-search-box { position: relative; width: 220px; }
.table-search-box input {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-sm);
  padding: 6px 12px 6px 32px; color: var(--text-white); font-size: 0.8rem; outline: none;
}
.table-search-box input:focus { border-color: var(--border-highlight); }
.table-search-box i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-muted); }

.btn-new-trade {
  background: var(--accent-mint); color: #060a0f; border: none; padding: 7px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.82rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: var(--transition);
}
.btn-new-trade:hover { background: var(--accent-mint-soft); box-shadow: 0 0 14px var(--accent-mint-glow); }

.responsive-table-wrapper { overflow-x: auto; }
.terminal-table { width: 100%; border-collapse: collapse; text-align: left; }
.terminal-table th {
  padding: 12px 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-muted); background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid var(--border-stroke);
}
.terminal-table td { padding: 16px 20px; font-size: 0.88rem; border-bottom: 1px solid var(--border-stroke); vertical-align: middle; }
.terminal-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.market-cell { display: flex; align-items: center; gap: 12px; }
.market-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-surface);
  border: 1px solid var(--border-stroke); display: flex; align-items: center; justify-content: center; color: var(--accent-mint); font-size: 1.1rem;
}
.market-name-wrap strong { display: block; font-size: 0.9rem; color: var(--text-white); }
.market-name-wrap span { font-size: 0.75rem; color: var(--text-muted); }

.outcome-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-xs); font-size: 0.78rem; font-weight: 800; font-family: var(--font-mono); }
.outcome-pill.yes { background: var(--accent-mint-bg); color: var(--accent-mint); border: 1px solid var(--border-highlight); }
.outcome-pill.no { background: rgba(255, 59, 105, 0.15); color: var(--accent-pink); border: 1px solid rgba(255, 59, 105, 0.3); }

.tbl-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-tbl-action { padding: 5px 12px; border-radius: var(--radius-xs); font-size: 0.78rem; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); }
.btn-tbl-buy { background: var(--accent-mint-bg); color: var(--accent-mint); border: 1px solid var(--border-highlight); }
.btn-tbl-buy:hover { background: var(--accent-mint); color: #060a0f; }
.btn-tbl-sell { background: rgba(255, 59, 105, 0.12); color: var(--accent-pink); border: 1px solid rgba(255, 59, 105, 0.3); }
.btn-tbl-sell:hover { background: var(--accent-pink); color: #fff; }

.table-view { display: none; }
.table-view.active { display: block; }

.strategies-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.strategy-card { background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; }
.strat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.strat-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800;
  color: var(--accent-mint); background: var(--accent-mint-bg); padding: 3px 8px; border-radius: var(--radius-xs); border: 1px solid var(--border-highlight);
}
.strat-type { font-size: 0.75rem; color: var(--text-muted); }
.strategy-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.strategy-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.strat-metrics { display: flex; justify-content: space-between; border-top: 1px solid var(--border-stroke); padding: 14px 0; font-size: 0.85rem; font-family: var(--font-mono); }
.strat-actions { display: flex; gap: 10px; }
.btn-strat-action {
  flex: 1; padding: 8px; background: var(--bg-card); border: 1px solid var(--border-stroke);
  color: var(--text-white); border-radius: var(--radius-xs); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-strat-action:hover { background: var(--bg-card-hover); border-color: var(--accent-mint); }
.btn-strat-action.pause { color: var(--accent-pink); border-color: rgba(255, 59, 105, 0.3); }

/* MODALS & AUTH */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(4, 8, 14, 0.88); backdrop-filter: blur(10px);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; animation: modalFadeIn 0.2s ease; }
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.modal-box {
  background: var(--bg-card); border: 1px solid var(--border-highlight); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-sub { font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700; }
.modal-title-group h3 { font-size: 1.15rem; margin-top: 4px; }
.modal-close-btn { background: transparent; border: none; font-size: 1.6rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-close-btn:hover { color: var(--text-white); }

/* EMAIL AUTH */
.auth-label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; }
.email-input-wrapper { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.email-input-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--accent-mint); }
.email-input-wrapper input {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-sm);
  padding: 12px 14px 12px 42px; color: var(--text-white); font-size: 0.95rem; outline: none; transition: var(--transition);
}
.email-input-wrapper input:focus { border-color: var(--accent-mint); box-shadow: 0 0 12px rgba(0, 245, 160, 0.2); }

.btn-auth-submit {
  width: 100%; background: var(--accent-mint); color: #060a0f; border: none; padding: 12px;
  border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 800; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px; transition: var(--transition); margin-bottom: 10px;
}
.btn-auth-submit:hover { background: var(--accent-mint-soft); box-shadow: 0 0 18px var(--accent-mint-glow); }

.btn-social-auth {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border-stroke); color: var(--text-white);
  padding: 10px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition);
}
.btn-social-auth:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.2); }

.auth-divider {
  display: flex; align-items: center; text-align: center; margin: 18px 0; color: var(--text-muted);
  font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-stroke); }
.auth-divider span { padding: 0 10px; }

.wallets-grid-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wallet-compact-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-surface);
  border: 1px solid var(--border-stroke); border-radius: var(--radius-sm); color: var(--text-white);
  font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.wallet-compact-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-mint); }
.wallet-icon-circle {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem;
}
.bg-orange { background: #f97316; }
.bg-purple { background: #8b5cf6; }
.bg-blue { background: #3b82f6; }

.otp-container { text-align: center; padding: 10px 0; }
.otp-icon-wrap {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-mint-bg); color: var(--accent-mint);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.otp-inputs-row { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.otp-digit {
  width: 44px; height: 50px; background: var(--bg-surface); border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm); color: var(--accent-mint); font-size: 1.4rem; font-weight: 800;
  font-family: var(--font-mono); text-align: center; outline: none;
}
.otp-digit:focus { border-color: var(--accent-mint); box-shadow: 0 0 12px rgba(0, 245, 160, 0.3); }

.btn-link-text { background: transparent; border: none; cursor: pointer; font-size: 0.8rem; margin-top: 10px; transition: var(--transition); }
.btn-link-text:hover { color: var(--text-white); text-decoration: underline; }
.auth-footnote { font-size: 0.72rem; line-height: 1.4; text-align: center; margin-top: 14px; }

/* TRADE MODAL CONTROLS */
.outcome-toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.outcome-btn {
  padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-stroke);
  background: var(--bg-surface); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: var(--transition);
}
.outcome-name { font-size: 1.1rem; font-weight: 800; }
.outcome-prob { font-size: 1.3rem; font-weight: 800; font-family: var(--font-mono); }
.outcome-btn.yes-btn { color: var(--accent-mint); }
.outcome-btn.yes-btn.active { background: var(--accent-mint-bg); border-color: var(--accent-mint); box-shadow: 0 0 18px var(--accent-mint-glow); }
.outcome-btn.no-btn { color: var(--accent-pink); }
.outcome-btn.no-btn.active { background: rgba(255, 59, 105, 0.15); border-color: var(--accent-pink); box-shadow: 0 0 18px var(--accent-pink-glow); }

.form-field-group { margin-bottom: 20px; }
.field-label-row { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 8px; color: var(--text-secondary); }
.avail-balance strong { color: var(--text-white); font-family: var(--font-mono); }

.input-with-currency { position: relative; display: flex; align-items: center; }
.currency-symbol { position: absolute; left: 14px; font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.input-with-currency input {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-sm);
  padding: 12px 14px 12px 30px; color: var(--text-white); font-size: 1.3rem; font-weight: 700; font-family: var(--font-mono); outline: none;
}
.input-with-currency input:focus { border-color: var(--accent-mint); }

.quick-amt-pills { display: flex; gap: 8px; margin-top: 10px; }
.amt-pill {
  flex: 1; background: var(--bg-surface); border: 1px solid var(--border-stroke); color: var(--text-secondary);
  padding: 6px 0; border-radius: var(--radius-xs); font-size: 0.76rem; font-weight: 700; font-family: var(--font-mono); cursor: pointer; transition: var(--transition);
}
.amt-pill:hover { background: var(--bg-card-hover); color: var(--accent-mint); border-color: var(--border-highlight); }

.order-summary-box {
  background: var(--bg-surface); border: 1px solid var(--border-stroke); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem;
}
.sum-row { display: flex; justify-content: space-between; align-items: center; }
.sum-row strong { font-family: var(--font-mono); }

.btn-execute-order {
  width: 100%; background: var(--accent-mint); color: #060a0f; border: none; padding: 14px;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 800; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px; transition: var(--transition);
}
.btn-execute-order:hover { background: var(--accent-mint-soft); box-shadow: 0 0 20px var(--accent-mint-glow); }
.btn-execute-order.btn-danger { background: var(--accent-pink); color: #fff; }
.btn-execute-order.btn-danger:hover { box-shadow: 0 0 20px var(--accent-pink-glow); }

/* SEARCH PALETTE */
.search-palette-box { max-width: 600px; padding: 0; overflow: hidden; }
.search-input-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-stroke); }
.search-input-header input { flex-grow: 1; background: transparent; border: none; color: var(--text-white); font-size: 1rem; outline: none; }
.esc-badge { font-size: 0.7rem; background: var(--bg-surface); border: 1px solid var(--border-stroke); padding: 2px 6px; border-radius: var(--radius-xs); color: var(--text-muted); }
.search-results-list { max-height: 360px; overflow-y: auto; padding: 10px; }
.search-result-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.search-result-item:hover { background: var(--bg-surface); }
.search-result-title { font-size: 0.88rem; font-weight: 600; color: var(--text-white); }
.search-result-tag { font-size: 0.72rem; color: var(--accent-mint); background: var(--accent-mint-bg); padding: 2px 8px; border-radius: var(--radius-xs); }

/* TOASTS */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border-highlight); border-radius: var(--radius-sm);
  padding: 12px 18px; color: var(--text-white); font-size: 0.88rem; font-weight: 600; display: flex;
  align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: toastSlideIn 0.3s ease;
}
.toast.success { border-color: var(--accent-mint); color: var(--accent-mint); }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .portfolio-summary-card { flex-direction: column; align-items: flex-start; }
  .summary-right-metrics { width: 100%; flex-wrap: wrap; }
  .metric-box { flex: 1; }
}

@media (max-width: 768px) {
  .terminal-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 500; transition: left 0.3s ease; }
  .terminal-sidebar.mobile-open { left: 0; }
  .mobile-menu-btn { display: block; }
  .header-search-wrapper { width: 180px; }
  .hide-mobile { display: none; }
  .portfolio-main-balance { font-size: 2.2rem; }
}

/* HEADER DEPOSIT & WITHDRAW BUTTONS */
.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-header-deposit {
  background: var(--accent-mint-bg);
  color: var(--accent-mint);
  border-color: var(--border-highlight);
}
.btn-header-deposit:hover {
  background: var(--accent-mint);
  color: #060a0f;
  box-shadow: 0 0 14px var(--accent-mint-glow);
}
.btn-header-withdraw {
  background: rgba(255, 59, 105, 0.12);
  color: var(--accent-pink);
  border-color: rgba(255, 59, 105, 0.3);
}
.btn-header-withdraw:hover {
  background: var(--accent-pink);
  color: #ffffff;
  box-shadow: 0 0 14px var(--accent-pink-glow);
}

/* QUICK METRIC BUTTONS */
.metric-btn-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.btn-deposit-quick {
  flex: 1;
  background: var(--accent-mint-bg);
  border: 1px solid var(--border-highlight);
  color: var(--accent-mint);
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-deposit-quick:hover { background: var(--accent-mint); color: #060a0f; }

.btn-withdraw-quick {
  flex: 1;
  background: rgba(255, 59, 105, 0.1);
  border: 1px solid rgba(255, 59, 105, 0.3);
  color: var(--accent-pink);
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-withdraw-quick:hover { background: var(--accent-pink); color: #ffffff; }

/* CRYPTO DROPDOWN & NETWORK SELECTOR */
.crypto-select-wrapper select.crypto-dropdown {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-white);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.crypto-select-wrapper select.crypto-dropdown:focus { border-color: var(--accent-mint); }
.crypto-select-wrapper select option { background: var(--bg-card); color: var(--text-white); padding: 10px; }

.network-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.net-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.net-pill:hover { border-color: var(--accent-mint); color: var(--text-white); }
.net-pill.active { background: var(--accent-mint-bg); border-color: var(--accent-mint); color: var(--accent-mint); }

/* DEPOSIT QR CARD */
.deposit-address-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
}
.qr-mockup-frame { display: flex; align-items: center; gap: 16px; }
.qr-code-box {
  width: 84px;
  height: 84px;
  background: #060a0f;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 6px;
  flex-shrink: 0;
}
.qr-svg { width: 100%; height: 100%; }
.qr-info-right { flex-grow: 1; min-width: 0; }
.qr-sub { font-size: 0.68rem; letter-spacing: 0.06em; font-weight: 700; }
.copy-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-xs);
  padding: 6px 8px;
  margin-top: 6px;
}
.address-str { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.btn-copy-address {
  background: transparent;
  border: none;
  color: var(--accent-mint);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}
.btn-copy-address:hover { color: var(--accent-mint-soft); }

.instant-test-deposit {
  border-top: 1px solid var(--border-stroke);
  padding-top: 14px;
  margin-top: 10px;
}
.input-with-action { display: flex; gap: 10px; margin-top: 6px; }
.input-with-action input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  outline: none;
}
.input-with-action input:focus { border-color: var(--accent-mint); }
.btn-execute-deposit {
  background: var(--accent-mint);
  color: #060a0f;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-execute-deposit:hover { background: var(--accent-mint-soft); box-shadow: 0 0 14px var(--accent-mint-glow); }

/* WITHDRAW CONTROLS */
.custom-text-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 0.88rem;
  outline: none;
}
.custom-text-input:focus { border-color: var(--accent-mint); }
.btn-paste-address {
  background: transparent;
  border: none;
  color: var(--accent-mint);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-paste-address:hover { text-decoration: underline; }
.withdraw-percent-pill {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  color: var(--text-secondary);
  padding: 6px 0;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition);
}
.withdraw-percent-pill:hover {
  background: var(--bg-card-hover);
  color: var(--accent-mint);
  border-color: var(--border-highlight);
}
/* LIVE POLYMARKET & WEB3 SDK STYLING */
.btn-live-metamask {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--text-white);
  transition: var(--transition);
  text-align: left;
  margin-bottom: 6px;
}
.btn-live-metamask:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
  box-shadow: 0 0 16px var(--accent-mint-glow);
}
.web3-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-mint-bg);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.web3-btn-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.btn-refresh-feed {
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  color: var(--accent-mint);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-refresh-feed:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
}
.live-count {
  background: rgba(0, 245, 160, 0.15) !important;
  color: var(--accent-mint) !important;
}
.polymarket-meta-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.poly-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-mint);
  background: var(--accent-mint-bg);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.poly-token-id {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.odd-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
}
.odd-pill.yes {
  background: var(--accent-mint-bg);
  color: var(--accent-mint);
  border: 1px solid var(--border-highlight);
}
.odd-pill.no {
  background: rgba(255, 59, 105, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 59, 105, 0.3);
}
/* HEADER COPYABLE ADDRESS PILL */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.user-profile-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
  box-shadow: 0 0 12px var(--accent-mint-glow);
}
#headerCopyAddressBtn {
  background: transparent;
  border: none;
  color: var(--accent-mint);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: var(--transition);
}
#headerCopyAddressBtn:hover {
  color: #ffffff;
  transform: scale(1.15);
}
/* ================= COPY TRADE VIEW & STYLES ================= */
.route-view { display: none; }
.route-view.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.copytrade-header-card { margin-bottom: 20px; }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px 0;
}
.section-title-row h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.copy-bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 245, 160, 0.06);
  position: relative;
}

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

.bot-trader-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-mint);
  background: var(--accent-mint-bg);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-highlight);
}

.bot-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-size: 0.8rem;
}
.bot-metrics-row div { display: flex; flex-direction: column; }
.bot-metrics-row span { font-size: 0.7rem; color: var(--text-muted); }
.bot-metrics-row strong { font-family: var(--font-mono); }

.bot-actions-row {
  display: flex;
  gap: 8px;
}
.btn-bot-action {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-stroke);
  background: var(--bg-surface);
  color: var(--text-white);
  transition: var(--transition);
}
.btn-bot-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
}
.btn-bot-action.stop-bot {
  color: var(--accent-pink);
  border-color: rgba(255, 59, 105, 0.3);
}
.btn-bot-action.stop-bot:hover {
  background: rgba(255, 59, 105, 0.15);
}

/* WHALE LEADERBOARD */
.btn-copy-trader {
  background: var(--accent-mint);
  color: #060a0f;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-copy-trader:hover {
  background: var(--accent-mint-soft);
  box-shadow: 0 0 16px var(--accent-mint-glow);
}

.trader-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rank-badge {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-mint);
  width: 24px;
}

/* LIVE WHALE TRADE FEED */
.whale-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.whale-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
}
.whale-feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.whale-tag {
  background: var(--accent-mint-bg);
  color: var(--accent-mint);
  border: 1px solid var(--border-highlight);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* COPY MODAL STYLES */
.trader-card-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}
.trader-meta-preview { flex-grow: 1; display: flex; flex-direction: column; }
.pulse-mint-badge {
  background: var(--accent-mint);
  color: #060a0f;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.copy-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.copy-radio-card {
  border: 1px solid var(--border-stroke);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--transition);
}
.copy-radio-card.active {
  border-color: var(--accent-mint);
  background: var(--accent-mint-bg);
}
.mode-title { font-size: 0.84rem; font-weight: 700; color: var(--text-white); }
.mode-desc { font-size: 0.72rem; color: var(--text-muted); }
/* MINT COPY ICON & CUSTOM ACCOUNT MIRROR */
.copy-nav-icon {
  color: var(--accent-mint) !important;
}
.nav-item:hover .copy-nav-icon {
  color: var(--accent-mint-soft) !important;
  filter: drop-shadow(0 0 8px var(--accent-mint-glow));
}

.custom-account-mirror-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.05);
}

.custom-mirror-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.custom-mirror-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-mirror-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-mirror-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  max-width: 520px;
}

.custom-mirror-form input {
  flex-grow: 1;
}
/* CUSTOM ADDRESS INPUT & TIP STYLES */
.address-input-group {
  margin-top: 14px;
}
.custom-address-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.custom-address-form input {
  flex-grow: 1;
}
.btn-sync-address {
  background: var(--accent-mint);
  color: #060a0f;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-sync-address:hover {
  background: var(--accent-mint-soft);
  box-shadow: 0 0 16px var(--accent-mint-glow);
}

.tip-polymarket-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
}
.tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
/* GOOGLE AUTH ACCOUNT PICKER MODAL */
.google-modal-box {
  background: #ffffff;
  color: #1f1f1f;
  max-width: 440px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 28px 24px;
}
.google-modal-box .modal-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 14px;
}
.google-modal-box .modal-close-btn {
  color: #5f6368;
}
.google-modal-box .modal-close-btn:hover {
  color: #000;
}
.google-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 18px;
}
.google-brand-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #202124;
}
.google-brand-header p {
  font-size: 0.86rem;
  color: #5f6368;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.google-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  border: none;
  width: 100%;
}
.google-account-item:last-child {
  border-bottom: none;
}
.google-account-item:hover {
  background: #f8f9fa;
}
.google-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-avatar-circle.avatar-green { background: #34a853; }
.google-avatar-circle.avatar-purple { background: #8e24aa; }
.google-avatar-circle.avatar-add { background: #f1f3f4; color: #5f6368; }

.google-account-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.google-account-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #202124;
}
.google-account-email {
  font-size: 0.78rem;
  color: #5f6368;
}

.google-custom-input-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
}
.google-input-field {
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #202124;
  outline: none;
  background: #fff;
}
.google-input-field:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
.btn-google-continue {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-google-continue:hover {
  background: #1557b0;
}
/* OTP & VERIFICATION ERROR STYLES */
.otp-inputs-row .otp-digit {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-mint);
  background: var(--bg-surface);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.otp-inputs-row .otp-digit:focus {
  border-color: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint-glow);
  outline: none;
}
.otp-inputs-row .otp-digit.error {
  border-color: var(--accent-pink);
  box-shadow: 0 0 10px rgba(255, 59, 105, 0.3);
}

.verification-notice-card {
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.verification-code-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-mint);
  letter-spacing: 2px;
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-highlight);
}

.google-otp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 10px 0;
}
.google-otp-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.google-otp-row input {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-family: monospace;
  font-weight: 700;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
}
.google-otp-row input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
  outline: none;
}
/* REAL EMAIL DISPATCH & INBOX BUTTONS */
.inbox-quick-links {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 12px 0 8px 0;
}
.btn-open-inbox {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  color: var(--accent-mint);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-open-inbox:hover {
  background: var(--accent-mint-bg);
  box-shadow: 0 0 12px var(--accent-mint-glow);
}

.resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.btn-resend-link {
  background: none;
  border: none;
  color: var(--accent-mint);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
}
.btn-resend-link:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: none;
}
/* ================= POLYMARKET ULTRA-CLEAN ENHANCEMENTS ================= */
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 160, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 245, 160, 0.08);
}

.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.market-cat-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.market-vol-pill {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Polymarket Dynamic Chance Bar */
.market-chance-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market-chance-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.chance-yes-val {
  color: var(--accent-mint);
}
.chance-no-val {
  color: var(--accent-pink);
}
.chance-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 59, 105, 0.25);
  overflow: hidden;
  display: flex;
}
.chance-fill-yes {
  height: 100%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint-glow);
  transition: width 0.3s ease;
}

/* Dual-Action Yes / No Buttons */
.market-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-trade-outcome {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}
.btn-trade-outcome.buy-yes {
  background: rgba(0, 245, 160, 0.08);
  border-color: rgba(0, 245, 160, 0.3);
  color: var(--accent-mint);
}
.btn-trade-outcome.buy-yes:hover {
  background: var(--accent-mint);
  color: #060a0f;
  box-shadow: 0 0 16px var(--accent-mint-glow);
  border-color: var(--accent-mint);
}
.btn-trade-outcome.buy-no {
  background: rgba(255, 59, 105, 0.08);
  border-color: rgba(255, 59, 105, 0.3);
  color: var(--accent-pink);
}
.btn-trade-outcome.buy-no:hover {
  background: var(--accent-pink);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-pink-glow);
  border-color: var(--accent-pink);
}
.btn-trade-outcome .outcome-price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Polished Metrics Cards */
.hero-overview-card {
  background: linear-gradient(135deg, rgba(15, 24, 36, 0.85) 0%, rgba(10, 17, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}
.stat-card-clean {
  background: var(--bg-card);
  border: 1px solid var(--border-stroke);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease;
}
.stat-card-clean:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

/* Tables & Grid Clean Styling */
.polymarket-table {
  width: 100%;
  border-collapse: collapse;
}
.polymarket-table th {
  padding: 12px 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-stroke);
  text-align: left;
}
.polymarket-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.polymarket-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}