:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #f8fafc;
  --border-light: #e2e8f0;
  --border-focus: #00b4d8;
  
  --cyan-primary: #00b4d8;
  --cyan-dark: #0077b6;
  --cyan-deep: #023e8a;
  --cyan-subtle: rgba(0, 180, 216, 0.08);
  --cyan-border: rgba(0, 180, 216, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 10px 30px rgba(0, 180, 216, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================================= */
/* NAVBAR (WHITE & CLEAN CYAN) */
/* ========================================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2.2rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-gem {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 216, 0.25));
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-highlight {
  color: var(--cyan-primary);
  margin-left: 2px;
}

.brand-tagline {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* NAV LINKS (UNISWAP STYLE) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
}

.nav-link {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  background: var(--bg-card);
  color: var(--cyan-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.token-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.token-pill:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.15);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-primary);
}

.pill-fee {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.pill-edit {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.nav-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-guide-btn:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  background: rgba(0, 180, 216, 0.08);
}

.nav-guide-btn:hover svg {
  stroke: var(--cyan-dark);
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.network-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.network-indicator.local {
  background-color: var(--accent-gold);
}

.network-indicator.sepolia {
  background-color: var(--cyan-primary);
  box-shadow: 0 0 6px var(--cyan-primary);
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-connect {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  border: 1px solid var(--cyan-border);
}

.btn-connect:hover {
  background: var(--cyan-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.25);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.25);
}

.btn-primary-gradient:hover {
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
  transform: translateY(-1px);
}

.btn-secondary-clean {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary-clean:hover {
  background: #e2e8f0;
}

.btn-swap-action {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  margin-top: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

.btn-swap-action:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
}

.btn-icon:hover {
  border-color: var(--cyan-primary);
  background: var(--cyan-subtle);
}

.btn-link {
  background: none;
  border: none;
  color: var(--cyan-dark);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

/* SIMULATION BANNER */
.simulation-banner {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 8px 2rem;
  font-size: 0.8rem;
  color: #1e40af;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* MAIN CONTAINER */
.main-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.card-title-bar h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* METRICS GRID (TAB 1) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card.primary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}

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

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.live-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
}

.metric-value-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0;
}

.metric-big-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-dark);
  letter-spacing: -1px;
}

.metric-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
}

.fee-origin-badge {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.7rem;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-pill.ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-pill.gold {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.stealth-input-group {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.stealth-input-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan-dark);
  outline: none;
}

.governance-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

/* SWEEP ACTION CARD */
.sweep-action-card {
  background: #ffffff;
  border: 1px solid var(--cyan-border);
  box-shadow: 0 6px 25px rgba(0, 180, 216, 0.06);
}

.paymaster-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
}

.paymaster-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.sweep-form-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.form-block label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.input-with-pill {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  align-items: center;
}

.input-with-pill input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.btn-pill-max {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.sweep-actions {
  display: flex;
  gap: 10px;
}

/* CLEAN TABLE */
.table-responsive {
  overflow-x: auto;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.clean-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clean-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.clean-table tr:hover {
  background: #f8fafc;
}

.table-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--cyan-dark);
  font-weight: 600;
}

.badge-status-green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-inspect {
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-dark);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-inspect:hover {
  background: var(--cyan-primary);
  color: #fff;
}

/* ========================================================================= */
/* TAB 2: STEALTH SWAP (UNISWAP CLEAN WHITE & CYAN) */
/* ========================================================================= */
.swap-centered-container {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.swap-card {
  width: 100%;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.swap-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.swap-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.swap-badges {
  display: flex;
  gap: 6px;
}

.badge-clean {
  font-size: 0.72rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-cyan {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
}

.swap-box {
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  transition: all 0.2s;
}

.swap-box:focus-within {
  border-color: var(--cyan-primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.1);
}

.swap-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.swap-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swap-box-row input {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  outline: none;
  width: 60%;
}

.token-select-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.swap-arrow-divider {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 2;
}

.btn-arrow {
  background: var(--bg-card);
  border: 3px solid var(--bg-page);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.btn-arrow:hover {
  transform: rotate(180deg);
}

.swap-details-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 1rem;
  font-size: 0.78rem;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.detail-line:last-child {
  margin-bottom: 0;
}

/* ========================================================================= */
/* TAB 3: SCANNER FORENSE (ANTI-ARKHAM & BUBBLEMAPS) */
/* ========================================================================= */
.scanner-container {
  max-width: 900px;
  margin: 0 auto;
}

.scanner-search-bar {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.scanner-search-bar input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 0.9rem;
  outline: none;
}

.scanner-search-bar input:focus {
  border-color: var(--cyan-primary);
  background: #ffffff;
}

.scanner-results {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-top: 1.5rem;
}

.scanner-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.score-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.score-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-red);
}

.verdict-pill {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.78rem;
}

.alert-box {
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.alert-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.forensic-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.matrix-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.matrix-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.matrix-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ========================================================================= */
/* TAB 4: PAYMASTER & FLUXO PONTA A PONTA */
/* ========================================================================= */
.card-wide-layout {
  max-width: 960px;
  margin: 0 auto;
}

.paymaster-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.flow-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.flow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan-primary);
  margin-bottom: 8px;
}

.flow-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.flow-status {
  font-size: 0.72rem;
  font-weight: 700;
}

.paymaster-test-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 1rem;
}

.paymaster-test-box h4 {
  font-size: 0.95rem;
  color: #0f766e;
  margin-bottom: 10px;
}

.sub-note {
  font-size: 0.78rem;
  color: #115e59;
  margin-top: 8px;
  line-height: 1.4;
}

/* ========================================================================= */
/* MODALS */
/* ========================================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.modal-card-wide {
  max-width: 820px;
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
}

.form-group input:focus {
  border-color: var(--cyan-primary);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* FORENSIC COMPARISON GRID IN MODAL */
.forensic-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.forensic-side {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.side-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.badge-public {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-private {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.forensic-side h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.forensic-metric {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.f-label {
  color: var(--text-muted);
  margin-bottom: 2px;
}

.f-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.callout-box {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #14532d;
  margin-top: auto;
  line-height: 1.4;
}

.clean-callout {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

/* UTILITIES */
.text-cyan { color: var(--cyan-dark); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-bold { font-weight: 700; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--accent-green);
  color: var(--text-main);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 1000;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ========================================================================= */
/* REFINED UNISWAP INSTITUTIONAL DESIGN: MODES & TICKER */
/* ========================================================================= */

.mode-switcher-container {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.mode-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: var(--text-main);
}

.mode-tab-btn.active {
  background: #ffffff;
  color: var(--cyan-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* LIVE TICKER BAR */
.live-market-ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 2.2rem;
  font-size: 0.78rem;
  overflow-x: auto;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-sep {
  color: var(--border-light);
}

.t-token {
  font-weight: 800;
  color: var(--text-main);
}

.t-price {
  font-weight: 700;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

.t-change {
  font-weight: 700;
  font-size: 0.72rem;
}

.t-muted {
  color: var(--text-muted);
}

/* VIEW PANELS */
.view-panel {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.view-panel.active {
  display: block;
}

/* SWAP & TRADER DESK INTEGRATED LAYOUT */
.trader-shell {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.trader-overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  gap: 1rem;
  flex-wrap: wrap;
}

.desk-jump-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.desk-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.desk-jump-btn:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.desk-jump-btn.active {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.25);
}

.desk-jump-btn.active svg {
  stroke: #ffffff;
}

.desk-status-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-tour-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 180, 216, 0.35);
  background: rgba(0, 180, 216, 0.08);
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tour-pill:hover {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
}

.btn-tour-pill:hover svg {
  stroke: #ffffff;
}

.trader-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.trader-desk-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trader-desk-right {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 85px;
  z-index: 15;
}

.swap-layout-centered {
  max-width: 480px;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.market-info-card {
  width: 100%;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.market-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.market-info-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.market-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.m-metric {
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.m-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.m-val {
  font-size: 0.95rem;
  font-weight: 700;
}

/* CREATOR STUDIO SHELL & SUB-NAV */
.creator-shell {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.creator-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.c-tab {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.c-tab:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.c-tab.active {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.25);
}

.creator-panel {
  display: none;
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.creator-panel.active {
  display: block;
}

.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.creator-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.creator-card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.launch-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.features-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.feature-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.feature-box .f-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}

.feature-box strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.feature-box small {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: block;
}

.terminal-log-box {
  background: #0f172a;
  color: #38bdf8;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  margin-top: 1.2rem;
}

.pool-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1.5rem;
}

.pool-stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.p-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.p-val {
  font-size: 1.3rem;
  font-weight: 800;
  display: block;
}

.injection-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 1.5rem;
}

.injection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.market-governance-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.gov-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* ========================================================================= */
/* TRADER SUBNAV & ADVANCED TRADER FEATURES */
/* ========================================================================= */
.trader-subnav-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.8rem;
}

.t-subnav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.t-subnav-btn:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.t-subnav-btn.active {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}

/* Slippage Bar Container & Framing */
.swap-slippage-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 1rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.slippage-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slippage-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.slippage-tip {
  font-size: 0.7rem;
  color: var(--cyan-dark);
  font-weight: 600;
}

.slippage-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.slip-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.slip-btn:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  background: var(--cyan-subtle);
}

.slip-btn.active {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.25);
}

.slip-custom-wrap {
  flex: 1.25;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 6px;
  height: 31px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.slip-custom-wrap:focus-within {
  border-color: var(--cyan-primary);
  background: #ffffff;
}

.slip-custom-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  padding: 2px 0;
}

.slip-custom-input:focus {
  outline: none;
}

.slip-pct-sym {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 2px;
}

/* Header Settings Button */
.btn-swap-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-swap-settings:hover {
  background: var(--bg-card);
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.active-slip-indicator {
  color: var(--cyan-dark);
  font-weight: 800;
}

/* Launchpad Fee Controls */
.fee-control-group {
  grid-column: 1 / -1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.fee-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fee-label-row label {
  font-weight: 700;
  font-size: 0.85rem;
}

.fee-cap-hint {
  font-size: 0.72rem;
  color: var(--cyan-dark);
  font-weight: 700;
  background: var(--cyan-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.fee-input-with-presets {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.fee-input-with-presets input {
  width: 90px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  text-align: center;
  background: var(--bg-card);
}

.fee-presets-row {
  display: flex;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.fee-preset-pill {
  flex: 1;
  min-width: 95px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fee-preset-pill:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.fee-preset-pill.active {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.25);
}

.fee-helper-text {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Allocation & Timelock Strategy */
.allocation-model-section {
  margin-bottom: 1.5rem;
}

.allocation-title {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.allocation-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.allocation-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.allocation-card:hover {
  border-color: var(--cyan-primary);
  transform: translateY(-1px);
}

.allocation-card.active {
  background: rgba(0, 180, 216, 0.04);
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.12);
}

.alloc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.alloc-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.allocation-card.active .alloc-radio-dot {
  border-color: var(--cyan-primary);
  background: var(--cyan-primary);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.alloc-card-header strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.alloc-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.alloc-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.allocation-card.active .alloc-badge {
  background: var(--cyan-subtle);
  color: var(--cyan-dark);
  border-color: var(--cyan-primary);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--cyan-dark);
}

.lang-btn.active {
  background: var(--cyan-subtle);
}

.lang-sep {
  color: var(--border-light);
  font-size: 0.68rem;
}

[data-lang-block] {
  display: none;
}
[data-lang-block].active {
  display: block;
}

/* DKSAP Stealth Destination Option */
.stealth-dest-box {
  background: #f0fdfa;
  border: 1px dashed #5eead4;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0;
}

.stealth-dest-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stealth-dest-text strong {
  display: block;
  font-size: 0.82rem;
  color: #0f766e;
}

.stealth-dest-text p {
  font-size: 0.72rem;
  color: #115e59;
  line-height: 1.35;
  margin-top: 2px;
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--cyan-primary);
}

input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.stealth-dest-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.stealth-dest-input-wrap input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #0f766e;
}

/* Interactive Swap Arrow Hover */
.swap-arrow-divider {
  display: flex;
  justify-content: center;
  position: relative;
  margin: -10px 0;
  z-index: 5;
}

.btn-arrow {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cyan-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-arrow:hover {
  transform: rotate(180deg) scale(1.1);
  border-color: var(--cyan-primary);
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
}

/* ========================================================================= */
/* CHART & ORDER BOOK VIEW */
/* ========================================================================= */
.chart-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.chart-pair-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-pair-title h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.chart-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.chart-big-price {
  font-size: 1.6rem;
  font-weight: 800;
}

.chart-timeframe-picker {
  display: flex;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.tf-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
}

.tf-btn.active {
  background: #ffffff;
  color: var(--cyan-dark);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.candle-canvas-wrap {
  width: 100%;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

#candleChartCanvas {
  width: 100%;
  height: 300px;
}

.chart-stats-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

.c-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.c-stat strong {
  font-size: 0.95rem;
}

/* Tape / Order Book */
.tape-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.tape-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tape-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.live-dot-pulse {
  font-size: 0.72rem;
  color: var(--accent-green);
  font-weight: 700;
}

.tape-table-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.tape-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.tape-table th {
  text-align: left;
  color: var(--text-subtle);
  padding: 6px 8px;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--border-light);
}

.tape-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #f8fafc;
}

.tape-tag-buy {
  color: var(--accent-green);
  font-weight: 700;
}

.tape-tag-sell {
  color: var(--accent-red);
  font-weight: 700;
}

/* ========================================================================= */
/* HONEYPOT & RUGCHECK SCANNER VIEW */
/* ========================================================================= */
.security-scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
}

.sec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.audit-summary-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}

.score-circle-box {
  text-align: center;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--accent-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.score-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-green);
}

.score-max {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.score-verdict {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 6px;
}

.audit-banner-details h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.audit-banner-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.audit-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tag-pass {
  background: #dcfce7;
  color: #15803d;
}

.sec-grid-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sec-check-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sec-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sec-data {
  flex: 1;
}

.sec-data strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.sec-data span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ========================================================================= */
/* BONDING CURVE FAIRLAUNCH (PUMP.FUN STYLE) */
/* ========================================================================= */
.bonding-curve-box {
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.12);
}

.bc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.bc-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bc-fire-icon {
  font-size: 1.8rem;
}

.bc-title-wrap h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.bc-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
  max-width: 680px;
}

.bc-progress-container {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 1.4rem;
}

.bc-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.bc-progress-bar {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b4d8, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.bc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.4rem;
}

.bc-stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.bc-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bc-stat-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.bc-stat-box small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
}

.bc-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ========================================================================= */
/* UNISWAP-STYLE UNICOLOR SVG ICONS & LOGO */
/* ========================================================================= */
.icon-svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-svg-sm {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-svg-arrow {
  width: 18px;
  height: 18px;
  color: var(--cyan-dark);
}

.token-svg-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
  color: var(--cyan-dark);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.dest-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-tab {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-connect {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-swap-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}




/* ========================================================================= */
/* DEBUGGER & DIAGNOSTICS VIEW STYLING */
/* ========================================================================= */
.debugger-container {
  max-width: 1100px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.debugger-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.debugger-banner-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.debugger-banner-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rpc-status-chips {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rpc-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rpc-chip strong {
  color: var(--cyan-dark);
}

.debugger-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.debug-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.debug-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debug-card-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.debug-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.debug-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
}

.debug-card-row:last-child {
  border-bottom: none;
}

.debugger-actions-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.debugger-actions-panel h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.debugger-actions-panel p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.debugger-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-debug {
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-debug:hover {
  background: #ffffff;
  border-color: var(--cyan-dark);
  color: var(--cyan-dark);
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.15);
}

.btn-debug-danger {
  color: var(--accent-red);
}
.btn-debug-danger:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.live-log-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.live-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.live-log-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-log-terminal {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-height: 260px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-time {
  color: #64748b;
  margin-right: 8px;
}

.terminal-tag-buy {
  color: #4ade80;
  font-weight: 700;
}

.terminal-tag-fee {
  color: #38bdf8;
  font-weight: 700;
}

.terminal-tag-grad {
  color: #fbbf24;
  font-weight: 700;
}

.terminal-tag-rpc {
  color: #a78bfa;
}

/* ========================================================================= */
/* DOCS & WHITEPAPER VIEW STYLING */
/* ========================================================================= */
.docs-container {
  max-width: 1040px;
  width: 100%;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

.docs-hero {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.docs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-hero h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.docs-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.docs-section-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.docs-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-p strong {
  color: var(--text-main);
}

.docs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.pillar-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pillar-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pillar-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.docs-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.docs-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-light);
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.docs-table tr:hover td {
  background: #f8fafc;
}

.docs-table strong {
  color: var(--text-main);
}

.tokenomics-visual {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.t-bar-wrap {
  height: 24px;
  width: 100%;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.t-bar-bc {
  background: var(--cyan-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-bar-lp {
  background: #0077b6;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.t-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.t-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.faq-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.faq-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.faq-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================================= */
/* WALLET CONNECTION & ACCOUNT MODALS */
/* ========================================================================= */
.modal-wallet-card,
.modal-account-card {
  max-width: 440px;
  width: 95%;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.modal-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.wallet-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.25rem 0;
}

.wallet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.wallet-option-item:hover {
  background: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.12);
  transform: translateY(-1px);
}

.wallet-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-svg {
  width: 24px;
  height: 24px;
  color: var(--cyan-dark);
}

.wallet-info {
  display: flex;
  flex-direction: column;
}

.wallet-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.wallet-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.wallet-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.wallet-badge.badge-detected {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--accent-green);
}

.wallet-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* WALLETCONNECT QR MODAL & FALLBACK */
.modal-wc-card,
.modal-fallback-card {
  max-width: 440px;
  width: 95%;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.wc-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.2rem;
}

.wc-qr-box {
  width: 200px;
  height: 200px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.wc-qr-svg {
  width: 100%;
  height: 100%;
  color: #0f172a;
}

.wc-center-icon {
  position: absolute;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wc-center-icon svg {
  width: 24px;
  height: 24px;
  color: var(--cyan-dark);
}

.wc-session-info {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wc-session-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-dark);
  background: var(--cyan-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.wc-uri-row {
  width: 100%;
  display: flex;
  gap: 6px;
  box-sizing: border-box;
}

.wc-uri-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  outline: none;
}

.wc-mobile-links {
  width: 100%;
  margin-top: 1rem;
}

.wc-links-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.wc-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wc-app-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.wc-app-btn:hover {
  background: #ffffff;
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

/* ACCOUNT MODAL */
.account-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.account-identicon-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-details-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-address-formatted {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.account-network-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.account-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.account-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-account-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-account-action:hover {
  background: var(--bg-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
}

.network-switcher-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-sublabel {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.network-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.network-switch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.network-switch-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.network-switch-btn.active {
  background: var(--cyan-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  font-weight: 700;
}

.net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.net-dot.local {
  background: var(--accent-gold);
}

.net-dot.sepolia {
  background: var(--cyan-primary);
}

.net-dot.mainnet {
  background: var(--accent-green);
}

.account-modal-footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-disconnect {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-disconnect:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* ========================================================================= */
/* MODAL: WELCOME & ONBOARDING TOUR (UNISWAP STYLE) */
/* ========================================================================= */
.modal-welcome-card {
  max-width: 580px;
  width: 94%;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border-light);
  animation: modalScaleIn 0.25s ease-out;
}

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

.welcome-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.welcome-header-group h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.welcome-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.welcome-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}

.welcome-pillar-item:hover {
  border-color: var(--cyan-primary);
  background: #ffffff;
}

.pillar-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.pillar-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.welcome-notice-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 180, 216, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.welcome-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.welcome-actions-row .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.9rem;
}

.welcome-modal-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.welcome-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.welcome-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--cyan-primary);
}

/* ========================================================================= */
/* COMPREHENSIVE RESPONSIVE STYLING (SMARTPHONES & TABLETS) */
/* ========================================================================= */

/* TABLETS & SMALL DESKTOPS (<= 1024px) */
@media (max-width: 1024px) {
  .main-container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .trader-desk-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trader-desk-right {
    position: static;
    order: -1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .trader-overview-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .desk-jump-links {
    justify-content: flex-start;
  }
  
  .features-highlight-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bc-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .debugger-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .paymaster-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLETS PORTRAIT & MOBILE LANDSCAPE (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0.75rem 1rem;
  }
  
  .nav-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .nav-left .brand-logo {
    justify-content: center;
  }

  .mode-switcher-container {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .mode-tab-btn {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .nav-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .token-pill {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .network-badge {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .btn-connect {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .live-market-ticker {
    padding: 6px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ticker-track {
    white-space: nowrap;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .trader-subnav-bar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .t-subnav-btn {
    flex-shrink: 0;
  }

  .creator-subnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .c-tab {
    flex-shrink: 0;
  }

  .swap-layout-centered {
    margin: 1rem auto;
    padding: 0 4px;
  }

  .swap-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .swap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .slippage-picker {
    width: 100%;
    gap: 4px;
  }

  .slip-btn {
    padding: 5px 2px;
    font-size: 0.7rem;
  }

  .allocation-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .creator-card {
    padding: 1.25rem;
  }

  .launch-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features-highlight-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pool-metrics-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bc-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bc-actions-row {
    flex-direction: column;
    gap: 10px;
  }

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

  .gov-buttons-row {
    flex-direction: column;
    gap: 8px;
  }

  .sweep-actions {
    flex-direction: column;
    gap: 10px;
  }

  .scanner-checks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paymaster-flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .debugger-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 1.25rem;
  }

  .rpc-status-chips {
    flex-wrap: wrap;
    width: 100%;
  }

  .debugger-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .debugger-btn-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .btn-debug {
    width: 100%;
    justify-content: flex-start;
  }

  .docs-hero {
    padding: 1.5rem 1rem;
  }

  .docs-hero h2 {
    font-size: 1.35rem;
  }

  .docs-section-card {
    padding: 1.25rem;
  }

  .docs-pillars-grid {
    grid-template-columns: 1fr;
  }

  .crypto-spec-grid {
    grid-template-columns: 1fr !important;
  }

  .tokenomics-visual .t-bar-wrap {
    flex-direction: column;
    height: auto;
  }

  .tokenomics-visual .t-bar-wrap > div {
    width: 100% !important;
    padding: 10px;
    text-align: center;
  }

  .table-responsive,
  .docs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .clean-table th,
  .clean-table td,
  .docs-table th,
  .docs-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* SMARTPHONES PORTRAIT (<= 480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none;
  }

  .token-pill .pill-fee {
    display: none;
  }

  .swap-box {
    padding: 0.75rem 0.9rem;
  }

  .swap-box-row input {
    font-size: 1.35rem;
    width: 55%;
  }

  .token-select-pill {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .token-icon {
    width: 20px;
    height: 20px;
  }

  .token-svg-icon {
    width: 16px;
    height: 16px;
  }

  .stealth-dest-box {
    padding: 0.85rem;
  }

  .stealth-input-group {
    flex-direction: column;
  }

  .stealth-input-group input {
    font-size: 0.72rem;
  }

  .stealth-input-group .btn-icon {
    width: 100%;
    height: 36px;
  }

  .scanner-search-bar {
    flex-direction: column;
    gap: 8px;
  }

  .scanner-search-bar input {
    width: 100%;
  }

  .scanner-search-bar button {
    width: 100%;
  }

  .modal-card {
    padding: 1.25rem;
    width: 96%;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .modal-actions button {
    width: 100%;
  }

  .account-quick-actions {
    grid-template-columns: 1fr;
  }

  .welcome-actions-row {
    flex-direction: column;
  }

  .modal-welcome-card {
    padding: 1.25rem;
  }

  .welcome-pillar-item {
    padding: 0.85rem;
    gap: 10px;
  }

  .desk-jump-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

