/* 🇵🇭 Bayanihan Quantum Commerce Chain - Stylesheet */

:root {
  /* Harmonious Color Palette matching the Logo aesthetics */
  --dark-bg: #070d19;
  --card-bg: rgba(13, 25, 48, 0.75);
  --card-hover: rgba(22, 42, 80, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 56, 168, 0.25);
  
  --primary: #0038A8; /* Steel Flag Blue */
  --primary-hover: #004cda;
  --primary-glow: rgba(0, 56, 168, 0.4);
  
  --accent-blue: #0038A8;
  --gold: #FFC72C; /* Philippine Gold */
  --gold-glow: rgba(255, 199, 44, 0.3);
  --red: #CE1126; /* Crimson Red */
  --red-glow: rgba(206, 17, 38, 0.35);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 56, 168, 0.15);
}

/* Base resets & scrollbar styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 56, 168, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 199, 44, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(206, 17, 38, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 2rem;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-glow);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header & Top Navigation */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 13, 25, 0.8);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

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

.brand-logo {
  filter: drop-shadow(0 0 8px rgba(255, 199, 44, 0.3));
}

.logo-text h1 {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #ffffff 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.25em;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.network-badge {
  background: rgba(255, 199, 44, 0.1);
  border: 1px solid rgba(255, 199, 44, 0.25);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(255, 199, 44, 0.1);
  transition: var(--transition-fast);
}

.network-badge.web3-connected {
  background: rgba(0, 56, 168, 0.15);
  border: 1px solid rgba(0, 56, 168, 0.35);
  color: #58a6ff;
  box-shadow: 0 0 10px rgba(0, 56, 168, 0.2);
}

.connect-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #002270 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.connect-btn:active {
  transform: translateY(0);
}

/* Simulation Portal Link Button */
.sim-portal-btn {
  background: linear-gradient(135deg, rgba(255,199,44,0.15) 0%, rgba(206,17,38,0.1) 100%);
  border: 1px solid rgba(255, 199, 44, 0.35);
  color: var(--gold);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 199, 44, 0.1);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.sim-portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 199, 44, 0.3);
  background: linear-gradient(135deg, rgba(255,199,44,0.25) 0%, rgba(206,17,38,0.15) 100%);
  border-color: rgba(255, 199, 44, 0.6);
  color: #ffe06e;
}


.stats-bar {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
  background: var(--gold);
  height: 50%;
}

.stat-card:nth-child(2)::before { background: var(--gold); }
.stat-card:nth-child(3)::before { background: var(--red); }
.stat-card:nth-child(4)::before { background: #58a6ff; }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dashboard Layout */
.dashboard-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar & Cards generic styling */
.card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.section-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

/* Profile Sidebar specific */
.identity-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.avatar-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.avatar-circle {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #132448 0%, #1e3b75 100%);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 10px var(--gold-glow);
}

.id-details h3 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
}

.badge {
  background: rgba(255, 199, 44, 0.12);
  border: 1px solid rgba(255, 199, 44, 0.3);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.info-row span:first-child {
  color: var(--text-secondary);
}

.info-row code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: #58a6ff;
}

.status-verified {
  color: #34d399;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-verified::before {
  content: '●';
  font-size: 0.6rem;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.badge-algo {
  background: rgba(206, 17, 38, 0.1);
  border: 1px solid rgba(206, 17, 38, 0.25);
  color: #ff6b7d;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}

.role-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.role-selector label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Inputs & Forms */
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 56, 168, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.form-input option {
  background: var(--dark-bg);
  color: #ffffff;
}

/* Tab Navigation */
.content-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-link.active {
  color: var(--gold);
  background: rgba(255, 199, 44, 0.08);
  border: 1px solid rgba(255, 199, 44, 0.2);
  box-shadow: 0 0 10px rgba(255, 199, 44, 0.05);
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  animation: fadeIn var(--transition-normal);
}

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

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

/* Portal Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 576px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.input-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.4rem 0;
}

/* Custom Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  margin-bottom: 2px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Button styles */
.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #002270 100%);
  border: 1px solid rgba(255,255,255,0.05);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.danger-btn {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  border: 1px solid rgba(255,255,255,0.05);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.danger-btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}

.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Card titles, headers and custom details */
.card-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.sub-heading {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  color: #ffffff;
}

.separator {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 1.2rem 0;
}

/* Marketplace forward contracts list */
.marketplace-listings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.listing-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.listing-item:hover {
  border-color: rgba(255, 199, 44, 0.2);
  background: rgba(255, 199, 44, 0.02);
}

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

.listing-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
}

.listing-price {
  color: var(--gold);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1rem;
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.listing-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Credit Rating Gauge (MSME Tab) */
.credit-rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.credit-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.ring-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#goldGradient);
  stroke-linecap: round;
  stroke-width: 8;
  transition: stroke-dashoffset 1s ease-in-out;
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
  line-height: 1.1;
}

.score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.tier-info {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: 8px;
  text-align: left;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.tier-perk {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Rating Stars Widget */
.rating-stars {
  display: flex;
  gap: 0.4rem;
  margin: 0.25rem 0 0.5rem 0;
}

.star-btn {
  background: none;
  border: none;
  color: #334155;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.star-btn:hover,
.star-btn.active {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* Escrow & Dynamic Fee */
.fee-estimate {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 56, 168, 0.08);
  border: 1px dashed rgba(0, 56, 168, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.fee-val {
  color: var(--gold);
  font-weight: 600;
}

.escrow-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.escrow-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.escrow-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.escrow-row.title-row {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
}

.escrow-status-badge {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: rgba(0, 56, 168, 0.15);
  border: 1px solid rgba(0, 56, 168, 0.3);
  color: #60a5fa;
}

.status-completed {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.status-disputed {
  background: rgba(206, 17, 38, 0.12);
  border: 1px solid rgba(206, 17, 38, 0.3);
  color: #ff6b7d;
}

.escrow-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* DAO Voting Power Widget */
.voting-power-widget {
  background: rgba(0, 56, 168, 0.08);
  border: 1px solid rgba(0, 56, 168, 0.2);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.vp-val {
  color: #ffffff;
  font-weight: 600;
}

.total-power {
  border-top: 1px solid rgba(0, 56, 168, 0.25);
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.total-power .vp-val {
  color: var(--gold);
  font-size: 0.95rem;
  text-shadow: 0 0 10px var(--gold-glow);
}

.treasury-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.treasury-val {
  color: var(--gold);
  font-family: var(--font-header);
  font-size: 1.05rem;
  text-shadow: 0 0 8px var(--gold-glow);
}

/* Proposals List */
.proposals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.proposal-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proposal-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.vote-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Diaspora Network Impact & Lending */
.diaspora-impact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.impact-gauge {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f1c3a 0%, #15274f 100%);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--gold-glow);
  flex-shrink: 0;
}

.impact-val {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.impact-lbl {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.05rem;
}

.impact-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.lending-list,
.rwa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lending-card,
.rwa-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lending-details,
.rwa-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.lending-title,
.rwa-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  max-width: 400px;
}

.toast {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 25, 48, 0.9);
  border: 1px solid var(--primary);
  border-left: 5px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transition: var(--transition-normal);
}

.toast.success {
  border-color: #34d399;
  border-left-color: #34d399;
}

.toast.error {
  border-color: var(--red);
  border-left-color: var(--red);
}

.toast-header {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast-msg {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* SVG Gradients declaration helper */
.hidden-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* =============================================================
   INSTRUCTIONS, GUIDED TOUR & HELP STYLING
   ============================================================= */

/* Guide Toggle Button in Header */
.guide-toggle-btn {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  font-family: var(--font-header);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.08);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.guide-toggle-btn:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
  transform: translateY(-1px);
}
.guide-toggle-btn:active {
  transform: translateY(0);
}

/* Help Section Container */
.help-section-container {
  max-width: 1400px;
  margin: 0 auto 1.5rem auto;
  padding: 0 2rem;
  animation: fadeIn var(--transition-normal);
}

.help-guide-card {
  border-left: 4px solid #34d399 !important;
  background: rgba(13, 25, 48, 0.9) !important;
}

.help-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.help-guide-title-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-guide-title-area h3 {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.help-guide-icon {
  font-size: 1.4rem;
}

.close-help-btn {
  background: rgba(206, 17, 38, 0.1);
  border: 1px solid rgba(206, 17, 38, 0.3);
  color: #ff6b7d;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-header);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-help-btn:hover {
  background: rgba(206, 17, 38, 0.25);
  border-color: rgba(206, 17, 38, 0.5);
  box-shadow: 0 0 10px rgba(206, 17, 38, 0.15);
}

.help-guide-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Guide Steps Grid */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.guide-step {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.guide-step:hover {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.02);
}

.step-header-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-badge {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #070d19;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.guide-step h4 {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.guide-step p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Glossary Section */
.help-glossary-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.glossary-header {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.glossary-term {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.glossary-definition {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Pure CSS Tooltip Styling */
.help-tooltip-trigger {
  cursor: help;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 4px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  text-align: center;
  line-height: 12px;
  font-style: normal;
  font-weight: normal !important;
  transition: var(--transition-fast);
}

.help-tooltip-trigger:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 199, 44, 0.1);
  box-shadow: 0 0 5px var(--gold-glow);
}

.help-tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 220px;
  background: #0d1930;
  border: 1px solid rgba(255, 199, 44, 0.4);
  color: #ffffff;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 199, 44, 0.15);
}

.help-tooltip-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   📱 MOBILE-FIRST RESPONSIVE DESIGN SYSTEM
   Breakpoints: 768px (tablet) | 480px (mobile) | 360px (small)
   ===================================================== */

/* --- Hamburger / Mobile Menu Button --- */
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.open {
  background: rgba(255, 199, 44, 0.12);
  border-color: rgba(255, 199, 44, 0.35);
  color: var(--gold);
}

/* --- Mobile Dropdown Menu --- */
.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(7, 13, 25, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideDown 0.2s ease;
}

.mobile-dropdown.open {
  display: flex;
}

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

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: rgba(255,255,255,0.06);
  color: var(--gold);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}

/* --- Sidebar Mobile Behaviour --- */
.sidebar-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.sidebar-mobile-header .section-title {
  margin-bottom: 0;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* --- Sidebar Overlay Backdrop --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 149;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
}

/* --- Mobile Bottom Navigation Bar --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(7, 13, 25, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.mobile-bottom-nav > * {
  /* 5 equal columns */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.5rem 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav {
  display: none;
  flex-direction: row;
}

.mob-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.55rem 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  border-top: 2px solid transparent;
}

.mob-nav-btn.active {
  color: var(--gold);
  border-top-color: var(--gold);
}

.mob-nav-btn:hover {
  color: var(--text-primary);
}

.mob-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mob-nav-label {
  font-family: var(--font-header);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================================================
   TABLET BREAKPOINT — 992px (existing, enhanced)
   ===================================================== */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .header-container {
    padding: 0.85rem 1.25rem;
  }

  .stats-bar {
    padding: 0 1.25rem;
    margin: 1rem auto;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide desktop tab nav on mobile (replaced by bottom bar) */
  .dashboard-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dashboard-tabs::-webkit-scrollbar { display: none; }

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

/* =====================================================
   MOBILE BREAKPOINT — 768px
   ===================================================== */
@media (max-width: 768px) {
  /* Show hamburger button */
  .mobile-menu-btn { display: flex; }

  /* Show bottom nav */
  .mobile-bottom-nav { display: flex; }

  /* Hide desktop tab nav buttons — use bottom bar instead */
  .dashboard-tabs {
    display: none;
  }

  /* Show sidebar close btn */
  .sidebar-close-btn { display: flex; }

  /* Reserve space at the bottom for the nav bar */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 1rem);
  }

  /* Header — tighter on mobile */
  .header-container {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  /* Hide desktop-only header buttons */
  .guide-toggle-btn,
  .sim-portal-btn {
    display: none;
  }

  /* Logo scaling */
  .logo-text h1 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .logo-text p {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  /* Connect button — compact */
  .connect-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
  }

  .network-badge {
    display: none; /* shown inside dropdown on mobile */
  }

  /* Stats bar — 2 columns on mobile */
  .stats-bar {
    padding: 0 1rem;
    margin: 0.75rem auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.9rem 1rem;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  /* Dashboard */
  .dashboard-layout {
    padding: 0 1rem;
    gap: 1rem;
  }

  /* Profile Sidebar — slide-in panel on mobile */
  .profile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 92vw);
    height: 100dvh;
    overflow-y: auto;
    z-index: 150;
    border-radius: 0;
    border-left: 1px solid var(--border-color);
    border-right: none;
    border-top: none;
    border-bottom: none;
    padding: 1.25rem;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    max-height: 100%;
  }

  .profile-sidebar.mobile-open {
    right: 0;
  }

  /* Card padding tighter on mobile */
  .card {
    padding: 1.1rem;
    border-radius: 12px;
  }

  /* Full-width cards inside grids */
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Form inputs — larger touch target */
  .form-input,
  select.form-input {
    padding: 0.75rem 0.9rem;
    font-size: 1rem; /* prevents iOS zoom on focus */
    border-radius: 8px;
  }

  /* Buttons — full width & min height 48px */
  .primary-btn,
  .secondary-btn,
  .danger-btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .btn-group {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* Checkbox — larger tap area */
  .checkbox-container {
    padding-left: 32px;
    font-size: 0.85rem;
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  .checkmark {
    width: 22px;
    height: 22px;
    top: 50%;
    transform: translateY(-50%);
  }

  .checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
  }

  /* Section titles */
  .section-title {
    font-size: 1rem;
  }

  .card-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  /* Listing items */
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .listing-actions {
    flex-direction: column;
  }

  .listing-actions .secondary-btn,
  .listing-actions .danger-btn {
    width: 100%;
  }

  /* Marketplace listings max height reduced */
  .marketplace-listings {
    max-height: 280px;
  }

  /* Tab Content spacing */
  .tab-content {
    padding-top: 0.25rem;
  }

  /* Credit ring on MSME — smaller */
  .credit-ring, .ring-svg {
    width: 120px;
    height: 120px;
  }

  /* Help guide columns */
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }

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

  /* Tooltip adjustments on mobile */
  .help-tooltip-trigger::after {
    width: 200px;
    left: 0;
    transform: none;
    bottom: 130%;
  }

  .help-tooltip-trigger:hover::after {
    transform: none;
  }
}

/* =====================================================
   SMALL MOBILE — 480px
   ===================================================== */
@media (max-width: 480px) {
  /* Stats to 2 columns but smaller */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .dashboard-layout {
    padding: 0 0.75rem;
  }

  .card {
    padding: 1rem;
    border-radius: 10px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text p {
    display: none;
  }

  .header-container {
    padding: 0.65rem 0.75rem;
  }

  .connect-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }

  /* Credit gauge smaller */
  .credit-ring, .ring-svg {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 1.5rem;
  }

  /* Mobile bottom nav smaller text */
  .mob-nav-icon {
    font-size: 1.1rem;
  }

  .mob-nav-label {
    font-size: 0.55rem;
  }
}

/* =====================================================
   VERY SMALL — 360px (Galaxy S series, etc.)
   ===================================================== */
@media (max-width: 360px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .logo-text {
    display: none; /* just show icon on very small screens */
  }

  .mobile-bottom-nav {
    height: 60px;
  }
}

/* =============================================================
   ONBOARDING KYC REGISTRATION MODAL STYLES
   ============================================================= */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
}

.onboarding-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 56, 0.96) 0%, rgba(8, 16, 32, 0.99) 100%);
  border: 1.5px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 2.2rem;
  border-radius: 12px;
  animation: modalScaleIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.onboarding-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.onboarding-logo {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.onboarding-header h2 {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, #fff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.onboarding-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Biometric Scanner styling */
.biometric-scanner-box {
  border: 1.5px dashed rgba(255, 199, 44, 0.25);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.1rem;
  border-radius: 8px;
  margin: 1.4rem 0;
  position: relative;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-secondary);
}

.scanner-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  border: 1px solid;
  text-transform: uppercase;
  font-weight: 700;
}

.scanner-badge.badge-pending {
  background: rgba(255, 199, 44, 0.1);
  color: var(--gold);
  border-color: rgba(255, 199, 44, 0.25);
}

.scanner-badge.badge-active {
  background: rgba(0, 225, 255, 0.15);
  color: #00e1ff;
  border-color: #00e1ff;
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

.scanner-badge.badge-success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: #34d399;
}

.scanner-screen {
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  margin: 0.8rem 0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 199, 44, 0.08) 1px, transparent 0);
  background-size: 14px 14px;
  pointer-events: none;
}

.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: laserScan 2.2s infinite linear;
}

.scanner-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 199, 44, 0.2));
  z-index: 1;
  transition: transform 0.3s;
}

.scanner-emoji.scanning {
  animation: scanPulse 1.2s infinite alternate ease-in-out;
}

.onboarding-status-log {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin: 1.2rem 0;
}

.status-log-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 199, 44, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

#onboardStatusMsg {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.skip-btn {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  text-decoration: underline;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: var(--transition-normal);
}

.skip-btn:hover {
  color: var(--gold);
}

@keyframes laserScan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes scanPulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 199, 44, 0.25));
  }
  to {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 199, 44, 0.75));
  }
}

@keyframes modalScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Tesseract OCR Styling */
.input-with-button-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.input-with-button-row input {
  flex: 1;
  min-width: 0;
}

.ocr-scan-btn-label {
  background: rgba(255, 199, 44, 0.1);
  border: 1px solid rgba(255, 199, 44, 0.25);
  color: var(--gold);
  padding: 0.6rem 0.95rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-header);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.ocr-scan-btn-label:hover {
  background: rgba(255, 199, 44, 0.2);
  border-color: rgba(255, 199, 44, 0.45);
  transform: translateY(-1px);
}

.ocr-scan-btn-label:active {
  transform: translateY(0);
}



