/* ===== PASSWORD GATE ===== */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a237e 0%, #0D47A1 50%, #1565C0 100%);
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
}

.pw-gate.hidden { display: none; }

.pw-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pw-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.pw-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 6px;
}

.pw-subtitle {
  font-size: 0.875rem;
  color: #616161;
  margin-bottom: 28px;
}

.pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  outline: none;
  transition: border-color 200ms;
}

.pw-input:focus {
  border-color: #FFC107;
}

.pw-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: #1a237e;
  background: #FFC107;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 200ms;
}

.pw-btn:hover {
  background: #F59E0B;
}

.pw-error {
  color: #C62828;
  font-size: 0.813rem;
  margin-top: 12px;
}

.pw-footer {
  font-size: 0.75rem;
  color: #9E9E9E;
  margin-top: 24px;
}

/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  
  /* Amberoon Brand Colors */
  --amber: #FFC107;
  --amber-dark: #F59E0B;
  --amber-light: #FFF8E1;
  --navy: #1a237e;
  --navy-light: #283593;
  
  /* Surfaces */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --border: #E0E0E0;
  --border-light: #EEEEEE;
  
  /* Text */
  --text: #212121;
  --text-secondary: #616161;
  --text-faint: #9E9E9E;
  
  /* Semantic */
  --success: #2E7D32;
  --success-bg: #E8F5E9;
  --error: #C62828;
  --error-bg: #FFEBEE;
  --info: #1565C0;
  --info-bg: #E3F2FD;
  
  /* Ethereum brand */
  --eth-purple: #627EEA;
  --eth-dark: #1B1F36;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Type */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== HEADER (statumkpi.ai style) ===== */
.header {
  background: var(--surface);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.header-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header-tagline {
  font-size: 10px;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 0.02em;
  padding-left: 2px;
}

.header-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.header-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-link {
  color: var(--amber-dark);
  text-decoration: none;
  font-weight: 600;
}
.header-link:hover {
  text-decoration: underline;
}

.logo-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-amberoon-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ===== KPI BAR (statumkpi.ai style) ===== */
.kpi-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
}

.kpi-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

.kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.kpi-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--eth-purple);
  line-height: 1.3;
}

.kpi-detail {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Legacy badge classes (kept for compatibility) */
.badge-poc, .badge-eth { display: none; }

/* (hero section removed — replaced by KPI bar) */

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: sticky;
  top: 72px;
  z-index: 90;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

.tab-btn svg {
  flex-shrink: 0;
}

/* ===== TAB PANELS ===== */
.tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.tab-panel {
  display: none;
  padding: var(--space-8) 0 var(--space-16);
  animation: fadeIn 300ms ease;
}

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

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

/* ===== PANEL HEADER ===== */
.panel-container {
  max-width: 960px;
  margin: 0 auto;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.panel-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.university-icon {
  background: linear-gradient(135deg, var(--navy), #1565C0);
  color: white;
}

.wallet-icon {
  background: linear-gradient(135deg, #1B1F36, var(--eth-purple));
  color: white;
}

.verification-icon {
  background: linear-gradient(135deg, var(--amber-dark), var(--amber));
  color: white;
}

.panel-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.panel-desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 600px;
  line-height: 1.6;
}

/* ===== FLOW STEPS (University Tab) ===== */
.flow-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  gap: var(--space-6);
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: var(--space-2) 0;
}

.step-card {
  flex: 1;
  padding-bottom: var(--space-10);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  max-width: 560px;
  line-height: 1.6;
}

/* ===== PHONE MOCKUP ===== */
.demo-phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}

.phone-header {
  background: var(--surface-2);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.phone-brand {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.phone-url {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.phone-body {
  padding: var(--space-5);
}

.phone-section-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

/* ===== STEPPER ===== */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-5);
  gap: 0;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.stepper-step span {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}

.stepper-step.active span,
.stepper-step.completed span {
  color: var(--amber-dark);
}

.stepper-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-dot.active {
  border-color: var(--amber);
  background: var(--amber-light);
}

.stepper-dot.completed {
  border-color: var(--amber);
  background: var(--amber);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 18px;
}

.stepper-line.active {
  background: var(--amber);
}

/* ===== FORM DEMO ===== */
.form-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.demo-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.req { color: var(--error); }

.demo-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--surface-2);
  color: var(--text);
}

.demo-input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.demo-btn {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: var(--space-3);
}

.demo-btn-primary {
  background: var(--amber);
  color: var(--text);
}

.demo-btn-primary:hover {
  background: var(--amber-dark);
}

.demo-btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-row {
  display: flex;
  gap: var(--space-3);
}

.btn-row .demo-btn {
  flex: 1;
}

.demo-footnote {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-2);
}

.demo-hint {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}

.subsection-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: var(--space-3);
}

.upload-zone:hover {
  border-color: var(--amber);
  background: var(--amber-light);
}

.upload-zone.uploaded {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

/* ===== CREDENTIAL CARD ===== */
.credential-card {
  background: var(--amber-light);
  border: 1px solid #FFD54F;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 480px;
}

.cred-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cred-logo {
  flex-shrink: 0;
}

.cred-brand {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.cred-type {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.cred-actions-btn {
  margin-left: auto;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  background: none;
  border: none;
}

.cred-body {
  margin-bottom: var(--space-5);
}

.cred-id {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.cred-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.cred-meta-grid:has(.cred-meta:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}

.cred-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-meta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cred-meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.cred-status-active {
  color: var(--success);
}

.cred-issue-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cred-issue-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.cred-issue-btn.issued {
  background: var(--success);
  color: white;
  border-color: var(--success);
  pointer-events: none;
}

/* ===== INFO CALLOUT ===== */
.info-callout {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--info-bg);
  border-radius: var(--radius-md);
  margin-top: var(--space-5);
  align-items: flex-start;
}

.info-callout svg {
  flex-shrink: 0;
  color: var(--info);
  margin-top: 2px;
}

.info-callout p {
  font-size: var(--text-sm);
  color: var(--info);
  line-height: 1.5;
}

/* ===== WALLET DASHBOARD (Tab 2) ===== */
.wallet-dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--eth-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 560px;
  box-shadow: var(--shadow-lg);
}

.wallet-sidebar {
  background: #1a1e35;
  padding: var(--space-5);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.wallet-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.wallet-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--eth-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
}

.wallet-name {
  color: white;
  font-weight: 600;
  font-size: var(--text-base);
}

.wallet-id {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
}

.wallet-badge-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.wallet-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.wallet-badge.testnet {
  background: rgba(255,255,255,0.1);
  color: var(--eth-purple);
  border: 1px solid rgba(98, 126, 234, 0.3);
}

.wallet-addr {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
  padding: 3px 0;
}

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

.wallet-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.wallet-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.wallet-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.wallet-nav-item.highlight {
  color: var(--eth-purple);
}

.wallet-nav-item.highlight:hover {
  background: rgba(98, 126, 234, 0.1);
}

/* Wallet Main */
.wallet-main {
  padding: var(--space-6);
  color: white;
  overflow-x: auto;
}

.wallet-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.wallet-tabs-inner {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wallet-tab-btn {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.wallet-tab-btn:hover { color: white; }
.wallet-tab-btn.active {
  color: white;
  border-bottom-color: var(--eth-purple);
}

/* Balance Grid */
.balance-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3);
}

.balance-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.balance-card.primary {
  grid-row: span 1;
}

.balance-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.balance-info {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.balance-value {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.balance-value.green {
  color: var(--eth-purple);
}

/* TX Table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
}

.tx-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tx-table td {
  padding: var(--space-3);
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.tx-amount {
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.8);
}

.tx-to {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
}

.tx-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.tx-status.confirmed {
  background: rgba(98, 126, 234, 0.15);
  color: var(--eth-purple);
  border: 1px solid rgba(98, 126, 234, 0.3);
}

.tx-fee {
  font-family: 'Courier New', monospace;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* ===== CREDENTIALS VIEW (inside wallet) ===== */
.wallet-view.hidden { display: none; }

.vc-detail-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.vc-field {
  margin-bottom: var(--space-4);
}

.vc-field-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vc-field-value {
  font-size: var(--text-sm);
  color: white;
  word-break: break-all;
}

.vc-field-value.mono {
  font-family: 'Courier New', monospace;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
}

.vc-status-valid {
  color: var(--eth-purple);
  font-weight: 700;
}

.vc-proofs-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.proofs-table {
  width: 100%;
}

.proofs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-sm);
}

.proof-key {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  width: 80px;
}

.proof-val {
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.85);
}

/* ===== VERIFICATION TAB ===== */
.verification-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.verify-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.verify-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.verify-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.verify-input-group {
  display: flex;
  gap: var(--space-3);
}

.verify-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.verify-input:focus {
  outline: none;
  border-color: var(--amber);
}

.verify-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 24px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.verify-btn:hover {
  background: var(--navy-light);
}

.verify-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.verify-or {
  text-align: center;
  padding: var(--space-4) 0;
  color: var(--text-faint);
  font-size: var(--text-sm);
  position: relative;
}

.verify-or::before,
.verify-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}

.verify-or::before { left: 0; }
.verify-or::after { right: 0; }

.qr-scan-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.qr-scan-area:hover {
  border-color: var(--amber);
  background: var(--amber-light);
}

/* Verify Result */
.verify-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.verify-result.hidden { display: none; }

.verify-result-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.verify-status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verify-status-icon.success {
  background: var(--success);
}

.verify-status-icon.error {
  background: var(--error);
}

.verify-result-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.verify-result-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.verify-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-6);
}

.verify-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.vd-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.vd-value {
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: right;
}

.vd-status-valid {
  color: var(--success);
  font-weight: 700;
}

.mono-sm {
  font-family: 'Courier New', monospace;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Blockchain Proof */
.blockchain-proof {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.bp-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.bp-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.bp-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

.bp-value {
  font-size: var(--text-xs);
  text-align: right;
}

.bp-confirmed {
  color: var(--success);
  font-weight: 700;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  margin-top: var(--space-10);
}

.hiw-title {
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
}

.hiw-grid {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}

.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  flex: 1;
  max-width: 260px;
}

.hiw-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin: 0 auto var(--space-3);
}

.hiw-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hiw-card p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.hiw-arrow {
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  border-top: 2px solid var(--amber);
  padding: var(--space-5) var(--space-6);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-style: italic;
}

.footer-conf {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
  
  .header-center { order: 3; }
  .logo-left { order: 1; }
  .logo-right { order: 2; }
  
  .kpi-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kpi-card:last-child {
    grid-column: span 2;
  }
  
  .tab-nav {
    overflow-x: auto;
    top: 0;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
  
  .panel-header {
    flex-direction: column;
  }
  
  .wallet-dashboard {
    grid-template-columns: 1fr;
  }
  
  .wallet-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .wallet-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .balance-grid {
    grid-template-columns: 1fr;
  }
  
  .verify-input-group {
    flex-direction: column;
  }
  
  .hiw-grid {
    flex-direction: column;
  }
  
  .hiw-arrow {
    transform: rotate(90deg);
  }
  
  .flow-step {
    gap: var(--space-3);
  }
  
  .student-cards {
    grid-template-columns: 1fr;
  }
  
  .wallet-student-pills {
    flex-wrap: wrap;
  }
  
  .verify-quick-ids {
    flex-wrap: wrap;
  }
  
  .reset-demo-btn span {
    display: none;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .bp-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bp-value { text-align: left; }
  
  .verify-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .vd-value { text-align: left; }
}

/* ===== STUDENT SELECTOR ===== */
.student-selector {
  margin-bottom: var(--space-8);
}

.selector-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.student-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.student-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}

.student-card:hover {
  border-color: var(--amber);
  background: var(--amber-light);
}

.student-card.active {
  border-color: var(--amber);
  background: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.student-info {
  flex: 1;
  min-width: 0;
}

.student-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text);
}

.student-uni {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-program {
  font-size: 10px;
  color: var(--text-faint);
}

.student-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.student-status.status-progress {
  background: var(--info-bg);
  color: var(--info);
}

.student-status.status-issued {
  background: var(--success-bg);
  color: var(--success);
}

/* ===== UX NARRATIVE BUBBLES ===== */
.step-ux-narrative {
  margin-bottom: var(--space-5);
}

.ux-bubble {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, #F3E5F5, #EDE7F6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--navy);
}

.ux-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ux-bubble p {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.65;
}

/* ===== RESET DEMO BUTTON ===== */
.reset-demo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.reset-demo-btn:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error);
}

/* ===== WALLET STUDENT SELECTOR ===== */
.wallet-student-selector {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.wallet-selector-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.wallet-student-pills {
  display: flex;
  gap: var(--space-2);
}

.wallet-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.wallet-pill:hover {
  border-color: var(--eth-purple);
  color: var(--eth-purple);
}

.wallet-pill.active {
  background: var(--eth-purple);
  color: white;
  border-color: var(--eth-purple);
}

/* ===== QUICK VERIFY BUTTONS ===== */
.verify-quick-ids {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.quick-id-label {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-weight: 500;
}

.quick-id-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.quick-id-btn:hover {
  border-color: var(--navy);
  background: var(--info-bg);
  color: var(--navy);
}

.quick-id-btn.revoked:hover {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loading-pulse {
  animation: pulse 1.5s infinite;
}

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

.animate-in {
  animation: slideUp 400ms ease forwards;
}

/* Smooth step transitions */
.step-card {
  transition: all 300ms ease;
}

.flow-step.completed .step-num {
  background: var(--success);
}

.flow-step.active-step .step-card {
  background: var(--amber-light);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid #FFD54F;
}

/* ===== UNIVERSITY SELECTOR ===== */
.uni-selector {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border: 2px solid #FFD54F;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.uni-selector-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.uni-select-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.uni-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid #FFD54F;
  border-radius: 10px;
  padding: 12px 44px 12px 16px;
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a237e;
  cursor: pointer;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.12);
}

.uni-select:hover {
  border-color: #FFC107;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.uni-select:focus {
  border-color: #FFC107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.uni-select option {
  font-weight: 500;
  color: #1a237e;
  background: #fff;
}

.uni-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a237e;
  pointer-events: none;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .uni-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .uni-select-wrapper {
    width: 100%;
  }
}

/* ===== ADMIN PORTAL STYLES ===== */

/* Admin icon color */
.admin-icon { background: #627EEA22; color: #627EEA; }

/* Admin Context Header */
.admin-context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1B1F36 0%, #2C3154 100%);
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-uni-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.admin-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
}
.admin-context-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-did {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: 'DM Sans', monospace;
  letter-spacing: 0.3px;
}
.admin-network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(46,125,50,0.2);
  color: #66BB6A;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(46,125,50,0.3);
}
.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66BB6A;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-kpi-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.admin-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.admin-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #1B1F36;
  font-variant-numeric: tabular-nums;
}

/* Charts Grid */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-chart-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 20px 24px;
}
.admin-chart-title {
  font-size: 15px;
  font-weight: 600;
  color: #1B1F36;
  margin: 0 0 16px;
}
.admin-chart-body {
  min-height: 200px;
  position: relative;
}

/* Bar chart SVG styles */
.chart-bar {
  transition: opacity 0.2s;
  cursor: pointer;
}
.chart-bar:hover {
  opacity: 0.8;
}
.chart-label {
  fill: #6b7280;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
}
.chart-value {
  fill: #1B1F36;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}
.chart-axis-line {
  stroke: #e8eaf0;
  stroke-width: 1;
}
/* Horizontal bar styles */
.hbar-label {
  fill: #374151;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
}
.hbar-value {
  fill: #627EEA;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}
.hbar-bar {
  rx: 4;
  transition: opacity 0.2s;
  cursor: pointer;
}
.hbar-bar:hover {
  opacity: 0.8;
}

/* Table Section */
.admin-table-section {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.admin-table-header {
  margin-bottom: 18px;
}
.admin-table-title {
  font-size: 17px;
  font-weight: 600;
  color: #1B1F36;
  margin: 0 0 14px;
}
.admin-table-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  transition: border-color 0.2s;
}
.admin-search-box:focus-within {
  border-color: #627EEA;
  background: #fff;
}
.admin-search-box svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.admin-search-box input {
  border: none;
  background: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1B1F36;
  width: 100%;
}
.admin-search-box input::placeholder {
  color: #9ca3af;
}
.admin-filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-filter-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-filter-btn:hover {
  border-color: #627EEA;
  color: #627EEA;
}
.admin-filter-btn.active {
  background: #627EEA;
  color: #fff;
  border-color: #627EEA;
}
.admin-table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-bulk-issue {
  background: #627EEA;
  color: #fff;
}
.btn-bulk-issue:hover {
  background: #4F6AD5;
}
.btn-export {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.btn-export:hover {
  background: #e5e7eb;
}
.btn-revoke {
  background: #FEE2E2;
  color: #C62828;
}
.btn-revoke:hover {
  background: #FECACA;
}
.btn-reissue {
  background: #E8F5E9;
  color: #2E7D32;
}
.btn-reissue:hover {
  background: #C8E6C9;
}

/* Table */
.admin-table-wrapper {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8eaf0;
  white-space: nowrap;
  user-select: none;
}
.admin-table thead th.sortable {
  cursor: pointer;
  transition: color 0.2s;
}
.admin-table thead th.sortable:hover {
  color: #627EEA;
}
.admin-table thead th.sort-asc::after {
  content: ' ▲';
  font-size: 10px;
}
.admin-table thead th.sort-desc::after {
  content: ' ▼';
  font-size: 10px;
}
.admin-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-table tbody tr:hover {
  background: #f8f9fb;
}
.admin-table tbody td {
  padding: 10px 12px;
  color: #374151;
  white-space: nowrap;
}
.admin-table .td-name {
  font-weight: 600;
  color: #1B1F36;
}
.admin-table .td-email {
  color: #6b7280;
  font-size: 12px;
}
.admin-table .td-cred-id {
  font-family: 'DM Sans', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #627EEA;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.status-active {
  background: #E8F5E9;
  color: #2E7D32;
}
.status-badge.status-pending {
  background: #FFF8E1;
  color: #F57F17;
}
.status-badge.status-in-progress {
  background: #E3F2FD;
  color: #1565C0;
}
.status-badge.status-revoked {
  background: #FEE2E2;
  color: #C62828;
}
.status-badge.status-verified {
  background: #E8F5E9;
  color: #2E7D32;
}
.status-badge.status-not-started {
  background: #F3F4F6;
  color: #6B7280;
}

/* Table row action buttons */
.td-actions {
  display: flex;
  gap: 4px;
}
.td-action-btn {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.td-action-btn:hover {
  border-color: #627EEA;
  color: #627EEA;
}
.td-action-btn.btn-view {
  color: #627EEA;
  border-color: #627EEA33;
}
.td-action-btn.btn-view:hover {
  background: #627EEA11;
}

/* Pagination */
.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
}
.page-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn:hover {
  border-color: #627EEA;
  color: #627EEA;
}
.page-btn.active {
  background: #627EEA;
  color: #fff;
  border-color: #627EEA;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-info {
  font-size: 13px;
  color: #6b7280;
  margin: 0 12px;
}

/* Audit Trail */
.admin-audit-section {
  margin-bottom: 24px;
}
.admin-audit-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #f8f9fb;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-audit-toggle:hover {
  background: #f0f1f5;
}
.audit-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}
.admin-audit-toggle.open .audit-chevron {
  transform: rotate(180deg);
}
.admin-audit-list {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}
.admin-audit-list.hidden {
  display: none;
}
.audit-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.audit-entry:last-child {
  border-bottom: none;
}
.audit-time {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  min-width: 120px;
}
.audit-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audit-icon.audit-issue {
  background: #E8F5E9;
  color: #2E7D32;
}
.audit-icon.audit-revoke {
  background: #FEE2E2;
  color: #C62828;
}
.audit-icon.audit-kyc {
  background: #E3F2FD;
  color: #1565C0;
}
.audit-icon.audit-reissue {
  background: #FFF8E1;
  color: #F57F17;
}
.audit-text {
  color: #374151;
  line-height: 1.4;
}
.audit-text strong {
  color: #1B1F36;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.admin-modal-overlay.hidden {
  display: none;
}
.admin-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}
.admin-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.admin-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #1B1F36;
  margin: 0;
}
.admin-modal-program {
  font-size: 14px;
  color: #6b7280;
  margin: 2px 0 0;
}
.admin-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-modal-grid > .admin-modal-section:last-child {
  grid-column: 1 / -1;
}
.admin-modal-section h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.modal-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.modal-label {
  font-size: 13px;
  color: #9ca3af;
}
.modal-value {
  font-size: 13px;
  font-weight: 500;
  color: #1B1F36;
  text-align: right;
}
.modal-value.mono {
  font-family: 'DM Sans', monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #627EEA;
  word-break: break-all;
}
.admin-modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

/* Responsive adjustments for Admin Portal */
@media (max-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
  .admin-context-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }
  .admin-table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-kpi-value {
    font-size: 22px;
  }
}

/* Bulk issue progress */
.bulk-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.bulk-progress-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  text-align: center;
}
.bulk-progress-title {
  font-size: 18px;
  font-weight: 700;
  color: #1B1F36;
  margin: 0 0 8px;
}
.bulk-progress-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}
.bulk-progress-bar {
  width: 100%;
  height: 8px;
  background: #e8eaf0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bulk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #627EEA, #8B9FF5);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}
.bulk-progress-status {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* Confirm dialog */
.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.confirm-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.confirm-dialog h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1B1F36;
  margin: 0 0 8px;
}
.confirm-dialog p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.5;
}
.confirm-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.confirm-dialog .btn-cancel {
  padding: 8px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
}
.confirm-dialog .btn-confirm {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.confirm-dialog .btn-confirm.danger {
  background: #C62828;
  color: #fff;
}
.confirm-dialog .btn-confirm.primary {
  background: #627EEA;
  color: #fff;
}

/* ===== ENHANCED PHONE SIMULATION ===== */

/* Override the existing demo-phone to look like a real iPhone frame */
.demo-phone {
  background: #000 !important;
  border-radius: 36px !important;
  padding: 12px !important;
  box-shadow: 
    0 0 0 2px #333,
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.1) !important;
  max-width: 340px !important;
  margin: 20px auto 0 !important;
  position: relative;
  overflow: hidden;
}

/* Phone screen inner */
.demo-phone .phone-body {
  background: #fff;
  border-radius: 24px;
  padding: 16px 16px 20px;
  min-height: 340px;
  position: relative;
}

/* Phone header bar — make it look like an app header */
.demo-phone .phone-header {
  background: linear-gradient(135deg, #1B1F36 0%, #2C3154 100%);
  border-radius: 24px 24px 0 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Status bar (time, battery, signal) */
.demo-phone .phone-header::before {
  content: '';
  display: block;
  height: 44px;
  background: linear-gradient(135deg, #1B1F36 0%, #2C3154 100%);
  position: relative;
}

/* Notch */
.demo-phone .phone-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Status bar indicators */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.phone-status-bar .status-time {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.phone-status-bar .status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* App title bar inside phone header */
.phone-header .phone-brand {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 0 4px;
}
.phone-header .phone-url {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  padding-bottom: 10px;
}

/* Step completion animation */
.flow-step.completed .demo-phone {
  opacity: 0.6;
  transform: scale(0.97);
  transition: all 0.4s ease;
}

/* Active step phone glow */
.flow-step.active-step .demo-phone {
  box-shadow: 
    0 0 0 2px #627EEA,
    0 20px 60px rgba(98, 126, 234, 0.2),
    inset 0 0 0 1px rgba(255,255,255,0.1) !important;
}

/* Enhanced form inputs inside phone */
.demo-phone .form-demo .demo-input {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: #1B1F36;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
}

.demo-phone .form-demo .demo-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

.demo-phone .form-demo .demo-btn-primary {
  background: linear-gradient(135deg, #627EEA 0%, #4F6AD5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.demo-phone .form-demo .demo-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98,126,234,0.3);
}

.demo-phone .form-demo .demo-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* Upload zone enhancement */
.demo-phone .upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  margin-bottom: 12px;
}
.demo-phone .upload-zone:hover {
  border-color: #627EEA;
  background: #f0f2ff;
}
.demo-phone .upload-zone.uploaded {
  border-color: #2E7D32;
  background: #E8F5E9;
  color: #2E7D32;
}

/* KYC stepper enhancement */
.demo-phone .stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding: 12px 0;
}
.demo-phone .stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.demo-phone .stepper-step span {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}
.demo-phone .stepper-step.active span,
.demo-phone .stepper-step.completed span {
  color: #627EEA;
  font-weight: 600;
}
.demo-phone .stepper-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-phone .stepper-dot.active {
  border-color: #627EEA;
  background: #627EEA;
}
.demo-phone .stepper-dot.completed {
  border-color: #2E7D32;
  background: #2E7D32;
}
.demo-phone .stepper-line {
  width: 40px;
  height: 2px;
  background: #d1d5db;
  margin: 0 8px;
  margin-bottom: 18px;
}
.demo-phone .stepper-line.active {
  background: #627EEA;
}

/* Phone section titles */
.demo-phone .phone-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1B1F36;
  margin: 0 0 12px;
  text-align: center;
}

/* Credential card in phone */
.demo-phone .credential-card {
  background: linear-gradient(135deg, #1B1F36 0%, #2C3154 100%);
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.demo-phone .credential-card .cred-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}
.demo-phone .credential-card .cred-value {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.demo-phone .credential-card .cred-id {
  font-family: monospace;
  font-size: 13px;
  color: #627EEA;
  letter-spacing: 1px;
}

/* Screen transition hint */
.phone-screen-hint {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
  padding-bottom: 4px;
}

/* Home bar indicator */
.demo-phone::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  margin: 10px auto 4px;
}

/* Footnote in phone */
.demo-phone .demo-footnote {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}

/* Button row */
.demo-phone .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.demo-phone .btn-row .demo-btn {
  flex: 1;
}

/* Issue button in phone */
.demo-phone .issue-btn-phone {
  background: linear-gradient(135deg, #627EEA 0%, #4F6AD5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.demo-phone .issue-btn-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98,126,234,0.3);
}
.demo-phone .issue-btn-phone.issued {
  background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
}

/* Requirement marker */
.demo-phone .req {
  color: #C62828;
  font-weight: 600;
}

/* Hint text */
.demo-phone .demo-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* Subsection title */
.demo-phone .subsection-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 6px;
}
