/* ==========================================================================
   AjoReserve Premium Style Sheet
   ========================================================================== */

/* --- 1. Global Reset & Variables --- */
:root {
  --bg-color: #070b15;
  --bg-grid: rgba(59, 130, 246, 0.03);
  --card-bg: rgba(16, 24, 48, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Accent Colors */
  --primary-rgb: 59, 130, 246; /* Blue */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  
  --success-rgb: 16, 185, 129; /* Emerald */
  --success: #10b981;
  --success-hover: #059669;

  --accent-rgb: 236, 72, 153; /* Pink/Rose */
  --accent: #ec4899;

  --warning-rgb: 245, 158, 11; /* Amber */
  --warning: #f59e0b;

  --error-rgb: 239, 68, 68; /* Coral Red */
  --error: #ef4444;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- 2. Scrollbars --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- 3. Utility Components & Layouts --- */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-gray { color: var(--text-muted); }
.text-gray-dim { color: var(--text-dim); }
.text-emerald { color: var(--success); }
.text-coral { color: var(--error); }
.text-blue { color: var(--primary); }
.text-amber { color: var(--warning); }
.text-emerald-dim { color: rgba(16, 185, 129, 0.7); }

.border-glow-emerald {
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-l2 {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}
.badge-accent {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-inner {
  background: rgba(8, 12, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
}

/* --- 4. Header & Navigation --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.highlight-text {
  color: var(--success);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active-nav {
  color: var(--primary);
  font-weight: 600;
}

.live-network-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- 5. Hero & Landing Page Section --- */
.hero-section {
  position: relative;
  min-height: 550px;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: 
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

.radial-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  z-index: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 80%);
  top: 10%;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.hero-cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

/* --- 6. Comparative Grid Section --- */
.comparisons-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.comparison-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.comparison-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.card-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1.25rem 0;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.comparison-list li {
  position: relative;
  padding-left: 1.75rem;
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
  font-size: 1rem;
}

.bullet-cross::before {
  content: "✕";
  color: var(--error);
}

.bullet-warning::before {
  content: "⚠";
  color: var(--warning);
}

.bullet-check::before {
  content: "✓";
  color: var(--success);
}

.card-glass.text-muted {
  background: rgba(16, 24, 48, 0.4);
}

.card-glass.text-blue {
  border-color: rgba(59, 130, 246, 0.2);
}

.card-premium {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 24, 48, 0.85) 0%, rgba(8, 30, 25, 0.85) 100%);
  box-shadow: 0 4px 30px rgba(16, 185, 129, 0.05);
}

.premium-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success);
  color: #070b15;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* --- 7. Interactive Workspace Section --- */
.workspace-section {
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.workspace-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Sidebar Layout */
.workspace-sidebar {
  background: rgba(10, 15, 30, 0.9);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-header h4 {
  font-size: 0.85rem;
  letter-spacing: 0.75px;
  font-weight: 700;
}

.sub-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.125rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.nav-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-tab-btn.active {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
  padding-left: 0.8125rem;
}

.nav-tab-btn[data-tab="defi-vault"].active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border-left-color: var(--success);
}

.nav-tab-btn[data-tab="auctions"].active {
  background: rgba(236, 72, 153, 0.08);
  color: var(--accent);
  border-left-color: var(--accent);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tab-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.pulse-badge {
  background: var(--accent);
  color: #fff;
  animation: pulse-opac 1.5s infinite alternate;
}

@keyframes pulse-opac {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Workspace Main Content Viewports */
.workspace-content {
  padding: 2rem;
  min-height: 520px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

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

.tab-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.tab-pane-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* --- 8. Tab: Overview --- */
.inflation-shield-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.control-status {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 120px;
}

/* Switch Toggle Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-dim);
  transition: .4s;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
.switch input:checked + .slider {
  background-color: var(--success);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Roster and Wheel Layout */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
}

/* Wheel Graphic Display */
.wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.savings-wheel {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wheel-center {
  position: absolute;
  z-index: 10;
  width: 130px;
  height: 130px;
  background: #0d1222;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.center-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.center-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.125rem 0;
}

.center-meta {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

.wheel-node {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 24, 48, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.wheel-node.active-recipient {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.wheel-node.defaulted-recipient {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Roster Table Styling */
.roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.roster-table-wrapper {
  overflow-x: auto;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.roster-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.roster-table td {
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.roster-table tr:last-child td {
  border-bottom: none;
}

.td-member {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

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

.status-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.status-paid {
  background: rgba(16,185,129,0.1);
  color: var(--success);
}
.status-pending {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}
.status-default {
  background: rgba(239,68,68,0.1);
  color: var(--error);
}

.trust-score-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 110px;
}

.trust-score-bar-bg {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  flex-grow: 1;
}

.trust-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.score-text {
  font-weight: 600;
  font-size: 0.75rem;
}

/* --- 9. Tab: DeFi Vault --- */
.vault-hero-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.vault-circle-container {
  display: flex;
  justify-content: center;
}

.vault-counter {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.counter-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.counter-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.counter-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.protection-status-box {
  background: rgba(16, 185, 129, 0.03);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-pulse-emerald {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: ripple 1.2s infinite;
}

@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.vault-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.metric-large-text {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
}

/* --- 10. Tab: Auctions --- */
.auction-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.bid-percentage-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.bid-slider-container {
  margin: 1.5rem 0;
}

.bid-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.bid-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  margin: 0.5rem 0;
}

.bid-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: var(--transition-smooth);
}

.bid-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.bid-slider-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.bid-calculation {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.calc-row:last-child {
  margin-bottom: 0;
}

.calc-hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0.5rem 0;
}

.bids-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
}

.bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.bid-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bid-rank {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.bid-row.bid-winning {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.bid-row.bid-winning .bid-rank {
  background: var(--success);
  color: #070b15;
}

.bid-amt {
  font-weight: 700;
  font-size: 0.9rem;
}

.bid-discount-label {
  font-size: 0.7rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 600;
}

/* --- 11. Tab: AI Coach --- */
.chat-simulator-container {
  display: flex;
  justify-content: center;
}

.whatsapp-mock-window {
  width: 100%;
  max-width: 580px;
  height: 480px;
  background: #0d1222;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.chat-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.avatar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.chat-title-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.chat-secure-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.chat-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: radial-gradient(circle at top, rgba(16, 24, 48, 0.5) 0%, #080c16 100%);
}

.message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

.msg-system {
  align-self: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
  border-radius: 6px;
  max-width: 90%;
  border: 1px solid rgba(255,255,255,0.02);
}

.msg-received {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.msg-sent {
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.15);
  color: #fff;
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.msg-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 0.25rem;
}

/* Chat Prompts Container */
.suggested-prompts {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.prompt-chip {
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.prompt-chip:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--primary);
}

.chat-footer {
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input {
  flex-grow: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.chat-input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.06);
}

.chat-send-btn {
  background: var(--success);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #070b15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  background: var(--success-hover);
  transform: scale(1.05);
}

.send-icon {
  width: 18px;
  height: 18px;
}

/* --- 12. Simulation Console --- */
.simulation-controller {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  border-top: 2px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 -10px 35px rgba(0,0,0,0.5);
}

.sim-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-title h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sim-title p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pulse-red-dot {
  width: 10px;
  height: 10px;
  background-color: var(--error);
  border-radius: 50%;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sim-buttons-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sim-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-amber:hover {
  background: var(--warning);
  color: #070b15;
}

.btn-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
  background: var(--success);
  color: #070b15;
}

.btn-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-blue:hover {
  background: var(--primary);
  color: #fff;
}

.btn-reset {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-reset:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- 13. Footer --- */
.app-footer {
  background: #040811;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 1.5rem 6.5rem; /* Extra padding bottom for simulation dock */
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-tags {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-tags span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* --- 14. Responsive Queries --- */
@media (max-width: 1024px) {
  .workspace-container {
    grid-template-columns: 1fr;
  }
  .workspace-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .nav-tab-btn {
    white-space: nowrap;
    width: auto;
  }
  .overview-grid, .auction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .simulation-controller {
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
    gap: 1rem;
  }
  .sim-title {
    text-align: center;
  }
  .sim-buttons-grid {
    justify-content: center;
  }
  .vault-hero-row {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
