/* ==========================================================================
   IK Network Balance Breakdown Stylesheet
   Theme: Royal Dark Purple (#190A38, #6A3199), Emerald Green (#22C55E), Gold (#F59E0B)
   ========================================================================== */

:root {
  --bg-deep: #0e0520;
  --bg-dark: #190a38;
  --bg-surface: #22104b;
  --bg-card: #281457;
  --bg-card-hover: #311a68;
  --border-subtle: rgba(147, 51, 234, 0.22);
  --border-bright: rgba(168, 85, 247, 0.45);

  --accent-purple: #8b5cf6;
  --accent-purple-light: #c4b5fd;
  --accent-primary: #6a3199;
  --accent-green: #22c55e;
  --accent-emerald: #10b981;
  --accent-emerald-light: #4ade80;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;

  --text-pure: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #c4b5fd;
  --text-muted: #9ca3af;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(106, 49, 153, 0.35);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(106, 49, 153, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 14px 60px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.app-container {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(34, 16, 75, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

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

.nav-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-back-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
  transform: translateX(-2px);
}

.nav-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.token-mini-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #190a38;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-purple-light);
}

.nav-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald-light);
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--text-pure);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}

.nav-link-btn.explorer {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.nav-link-btn.explorer:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
}

.download-app-btn,
.mobile-only-download-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  min-height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.download-app-btn:hover,
.mobile-only-download-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .download-app-btn,
  .mobile-only-download-btn {
    display: inline-flex;
    min-height: 42px;
  }
}

html.is-mobile-device .download-app-btn,
html.is-mobile-device .mobile-only-download-btn {
  display: inline-flex;
}

html.is-desktop-device .download-app-btn,
html.is-desktop-device .mobile-only-download-btn {
  display: none;
}

/* Error Banner */
.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.retry-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   1. Dashboard Hero Card & Total Balance
   ========================================================================== */

.dashboard-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(40, 20, 87, 0.95), rgba(25, 10, 56, 0.98));
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6a3199);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.user-handle {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple-light);
}

.session-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-emerald-light);
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hero-balance-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.balance-caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-purple-light);
  text-transform: uppercase;
}

.balance-display-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.token-coin-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  color: #190a38;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.total-balance-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
}

.hero-subheading {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.5;
  max-width: 620px;
}

/* ==========================================================================
   2. Visual Multi-Segmented Progress Bar
   ========================================================================== */

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(147, 51, 234, 0.18);
}

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

.progress-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.progress-sync-info {
  font-size: 11px;
  color: var(--text-muted);
}

.segmented-bar-container {
  width: 100%;
  height: 26px;
  background: rgba(14, 5, 32, 0.7);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 9999px;
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
}

.segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment.unverified {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.segment.transferable {
  background: linear-gradient(90deg, #10b981, #22c55e);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
}

.segment.migrated {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.segment-label {
  font-size: 11px;
  font-weight: 800;
  color: #190a38;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.9;
}

.progress-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-unverified { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.dot-transferable { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.dot-migrated { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }

.legend-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legend-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-pure);
}

.legend-stat {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ==========================================================================
   3. Dynamic Balance Cards (Grid)
   ========================================================================== */

.balance-cards-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.2px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.section-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-family: 'JetBrains Mono', monospace;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.balance-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  overflow: hidden;
}

.balance-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.card-unverified .card-accent-line { background: var(--accent-amber); }
.card-transferable .card-accent-line { background: var(--accent-green); }
.card-migrated .card-accent-line { background: var(--accent-purple); }

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

.card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pure);
}

.amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.5px;
}

.card-unit {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-purple-light);
}

.percentage-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.pill-amber { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.pill-emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.pill-purple { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }

.card-description {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 52px;
}

.card-footer {
  margin-top: auto;
}

.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.7);
  color: #fff;
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.7);
  color: #fff;
}

.btn-purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.btn-purple:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.7);
  color: #fff;
}

/* ==========================================================================
   4. Quick Action Menu
   ========================================================================== */

.quick-actions-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.action-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-green-bg { background: rgba(34, 197, 94, 0.15); }
.icon-purple-bg { background: rgba(139, 92, 246, 0.15); }
.icon-gold-bg { background: rgba(234, 179, 8, 0.15); }

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

.action-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
}

.action-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.badge-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-gold { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }

.action-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.action-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-action-card:hover .action-arrow {
  transform: translateX(3px);
  color: var(--text-pure);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  margin-top: 10px;
  padding: 16px 20px;
  background: rgba(34, 16, 75, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-pure);
}

.footer-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-sync {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 3, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.modal-badge.amber { color: #fbbf24; }
.modal-badge.purple { color: #c084fc; }
.modal-badge.emerald { color: #4ade80; }

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-pure);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-pure);
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
}

.modal-explain {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.team-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.stat-label { color: var(--text-muted); }
.stat-val { font-weight: 700; color: var(--text-pure); }
.stat-val.amber { color: #fbbf24; }

.ping-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ping-all-btn:hover {
  background: rgba(234, 179, 8, 0.35);
  color: #fff;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(40, 20, 87, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  gap: 8px;
}

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

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #c4b5fd;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pure);
}

.member-role {
  font-size: 11px;
  color: var(--text-muted);
}

.member-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-contrib {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple-light);
}

.status-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
}

.status-chip.verified { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-chip.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-chip.unverified { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.ping-single-btn {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.ping-single-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

.ping-single-btn.pinged {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
  cursor: default;
}

/* Lockup Form in Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pure);
}

.slider-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-purple-light);
}

.form-slider {
  width: 100%;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.duration-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.dur-pill {
  padding: 8px;
  border-radius: 8px;
  background: rgba(40, 20, 87, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dur-pill:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.dur-pill.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.booster-calc-box {
  padding: 12px 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booster-calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-pure);
}

.booster-result {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-emerald-light);
}

.booster-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Wallet Modal Details */
.wallet-address-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.address-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.address-text {
  font-size: 12px;
  color: var(--text-pure);
  word-break: break-all;
  line-height: 1.4;
}

.copy-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.copy-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-pure);
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wstat-item {
  padding: 10px 12px;
  background: rgba(40, 20, 87, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wstat-label { font-size: 11px; color: var(--text-muted); }
.wstat-val { font-size: 14px; font-weight: 700; }
.wstat-val.green { color: #4ade80; }
.wstat-val.purple { color: #c4b5fd; }

.modal-footer {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.modal-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-pure);
}

.modal-btn.outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--accent-purple-light);
}

.modal-btn.outline:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.modal-btn.primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-primary));
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(106, 49, 153, 0.4);
}

.modal-btn.primary:hover {
  background: linear-gradient(135deg, #9d71fa, #7b3bb0);
  transform: translateY(-1px);
}

/* ==========================================================================
   Toast System
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(25, 10, 56, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-pure);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: rgba(34, 197, 94, 0.6); }
.toast.info { border-color: rgba(139, 92, 246, 0.6); }

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  body {
    padding: 12px 10px 50px;
  }

  .top-nav {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-title {
    font-size: 17px;
  }

  .total-balance-value {
    font-size: 30px;
  }

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

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

  .progress-legend {
    grid-template-columns: 1fr;
  }

  .duration-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .wallet-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-card {
    padding: 18px 16px;
  }

  .modal-footer {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .modal-footer .modal-btn {
    flex: 1 1 120px;
    text-align: center;
  }
}

