/* ================================================================
   PANGEIA SECURE PARTNER PORTAL — CUSTOM CSS
   Aesthetic: Deep Navy, Rich Gold Accents, Premium Glassmorphism
   ================================================================ */

:root {
  --navy: #0A0E2A;
  --navy-light: #11153b;
  --navy-mid: #050716;
  --gold: #C9A85C;
  --gold-dark: #A9873C;
  --gold-light: #E5C37A;
  --white: #ffffff;
  --border: rgba(201, 168, 92, 0.2);
  --border-active: rgba(201, 168, 92, 0.6);
  --glass: rgba(17, 21, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --text-muted: #9ca3af;
  --emerald: #63d4b2;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

body {
  background-color: var(--navy-mid);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 10% 20%, rgba(10, 14, 42, 0.7) 0%, rgba(5, 7, 22, 0.9) 80%);
}

.portal-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* ================================================================
   LOCKSCREEN VIEW
   ================================================================ */
.lockscreen-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  opacity: 1;
  transition: var(--transition);
}

.lockscreen-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.lockscreen-card:hover {
  border-color: rgba(201, 168, 92, 0.35);
  box-shadow: 0 20px 50px rgba(201, 168, 92, 0.08);
}

.lock-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 168, 92, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.25rem;
  color: var(--gold);
  animation: floatLock 3s ease-in-out infinite;
}

@keyframes floatLock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.lockscreen-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.lockscreen-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

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

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 92, 0.04);
  box-shadow: 0 0 0 3px rgba(201, 168, 92, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

.btn-portal {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-mid);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 6px 20px rgba(201, 168, 92, 0.25);
}

.btn-portal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 168, 92, 0.4);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-portal:active:not(:disabled) {
  transform: translateY(0);
}

.btn-portal:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 14, 42, 0.2);
  border-top-color: var(--navy-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portal-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
}

/* Shake Animation on Wrong Passcode */
.shake {
  animation: shakeKey 0.45s ease-in-out;
}

@keyframes shakeKey {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-8px); }
  30%, 60%, 90% { transform: translateX(8px); }
}


/* ================================================================
   DASHBOARD VIEW (Secret Area)
   ================================================================ */
.dashboard-wrapper {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.dashboard-wrapper.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 212, 178, 0.08);
  border: 1px solid rgba(99, 212, 178, 0.25);
  color: var(--emerald);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 50px;
  align-self: flex-start;
}

.dashboard-title-area h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin: 0.4rem 0 0 0;
  background: linear-gradient(135deg, var(--white) 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-title-area p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

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

.btn-logout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  transform: translateY(-1px);
}

.btn-back-home {
  background: rgba(99, 212, 178, 0.04);
  border: 1px solid rgba(99, 212, 178, 0.25);
  color: #63d4b2;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.btn-back-home:hover {
  background: rgba(99, 212, 178, 0.12);
  border-color: #63d4b2;
  color: #a7f3d0;
  transform: translateY(-1px);
}

/* Document Cards — Unified Flex Layout */
.docs-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  margin-bottom: 2.5rem;
  width: 100%;
}

.single-card-center {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-bottom: 2.5rem !important;
}

.doc-card {
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  height: 320px !important;
  flex-shrink: 0 !important;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 1.25rem !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between !important;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  background: rgba(22, 28, 77, 0.7);
  box-shadow: 0 15px 40px rgba(201, 168, 92, 0.1);
}

.doc-card:hover::before {
  opacity: 1;
}

.doc-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: rgba(201, 168, 92, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem !important;
  color: var(--gold);
  margin-bottom: 1rem !important;
  flex-shrink: 0;
  transition: var(--transition);
}

.doc-card:hover .doc-icon-wrap {
  background: rgba(201, 168, 92, 0.12);
  color: var(--gold-light);
  transform: scale(1.05);
}

.doc-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem 0;
}

.doc-card p {
  font-size: 0.82rem !important;
  color: var(--text-muted);
  line-height: 1.5 !important;
  margin: 0 0 1.25rem 0 !important;
  flex: 1;
  overflow: hidden;
}

.btn-download {
  background: rgba(201, 168, 92, 0.08);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.doc-card:hover .btn-download {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-mid);
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(201, 168, 92, 0.25);
}

.btn-download:hover {
  transform: translateY(-1px);
}


/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 860px) {
  .docs-grid,
  .single-card-center {
    flex-direction: column !important;
    align-items: center !important;
  }
  .doc-card {
    width: 100% !important;
    min-width: unset !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 280px !important;
  }
}

@media (max-width: 580px) {
  .portal-container {
    padding-top: 100px;
  }
  
  .lockscreen-card {
    padding: 2.25rem 1.5rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================================================================
   DOCUMENT UPLOAD AREA
   ================================================================ */
.upload-section {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.upload-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.upload-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* File Drop Zone */
.drop-zone {
  border: 2px dashed rgba(201, 168, 92, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.drop-zone:hover, .drop-zone.drop-zone--over {
  border-color: var(--gold);
  background: rgba(201, 168, 92, 0.04);
  box-shadow: 0 0 15px rgba(201, 168, 92, 0.1);
}

.drop-zone__prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
}

.drop-zone__input {
  display: none;
}

/* Selected Files List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  animation: fadeIn 0.3s ease-out;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.file-icon {
  font-size: 1.25rem;
}

.file-name {
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.btn-remove-file {
  background: none;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 0 0.5rem;
}

.btn-remove-file:hover {
  color: #ef4444;
  transform: scale(1.15);
}

/* Submit Upload Button */
.btn-upload-submit {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-mid);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: center;
  margin-top: 1rem;
  box-shadow: 0 6px 20px rgba(201, 168, 92, 0.2);
}

.btn-upload-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 168, 92, 0.35);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-upload-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.upload-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 14, 42, 0.2);
  border-top-color: var(--navy-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.upload-success-msg {
  background: rgba(99, 212, 178, 0.08);
  border: 1px solid rgba(99, 212, 178, 0.25);
  color: var(--emerald);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

.upload-error-msg {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-align: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}


/* ================================================================
   PHASE 2 KYC PASSCODE MODAL
   ================================================================ */
.kyc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.kyc-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.kyc-modal-card {
  background: var(--glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 90%;
  max-width: 460px;
  padding: 3rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kyc-modal-overlay.active .kyc-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--white);
}

.modal-lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 168, 92, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--gold);
}

.kyc-modal-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kyc-modal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

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

.footer-brazil-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-flag-img {
  height: 14px;
  width: auto;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
}

.back-home-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.back-home-link:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

/* ================================================================
   PORTAL TIMELINE & WIZARD STYLES
   ================================================================ */
.portal-timeline-wrap {
  width: 100%;
  margin-bottom: 3.5rem;
  background: rgba(10, 14, 42, 0.4);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.portal-timeline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

.timeline-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  z-index: 10 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  flex-shrink: 0 !important;
}

.timeline-step:hover {
  transform: translateY(-2px) !important;
}

.step-num {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--navy) !important;
  border: 2px solid var(--glass-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--text-muted) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
  transition: var(--transition) !important;
  flex-shrink: 0 !important;
}

.step-label {
  margin-top: 0.75rem !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  transition: var(--transition) !important;
}

.timeline-line {
  flex: 1 !important;
  height: 2px !important;
  background: var(--glass-border) !important;
  margin: 0 1rem !important;
  position: relative !important;
  top: -14px !important; /* Center align with circular number */
  transition: var(--transition) !important;
  min-width: 20px !important;
  display: block !important;
}

/* Active Timeline States */
.timeline-step.active .step-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold-light);
  color: var(--navy-mid);
  box-shadow: 0 0 15px rgba(201, 168, 92, 0.4);
}

.timeline-step.active .step-label {
  color: var(--gold-light);
}

/* Completed Timeline States */
.timeline-step.completed .step-num {
  background: rgba(99, 212, 178, 0.1);
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 12px rgba(99, 212, 178, 0.2);
}

.timeline-step.completed .step-label {
  color: var(--emerald);
}

.timeline-line.active {
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

/* Step Pane UI */
.wizard-steps-container {
  width: 100%;
  position: relative;
}

.wizard-step-pane {
  animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.step-pane-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.step-pane-badge {
  display: inline-block;
  background: rgba(201, 168, 92, 0.08);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.step-pane-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: var(--white);
}

.step-pane-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  max-width: 800px;
}

.btn-info-modal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-info-modal:hover {
  background: rgba(201, 168, 92, 0.08);
  border-color: var(--border);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* Modals & Overlay Updates */
.portal-instruction-modal .kyc-modal-card {
  max-width: 520px;
  border-color: var(--border);
}

.portal-instruction-modal ul li {
  margin-bottom: 0.5rem;
}

/* Gold Gradient Pulse Animation for final step */
@keyframes pulseGold {
  0% { box-shadow: 0 0 20px rgba(201, 168, 92, 0.2); border-color: rgba(201, 168, 92, 0.5); }
  100% { box-shadow: 0 0 35px rgba(201, 168, 92, 0.4); border-color: var(--gold-light); }
}

/* ================================================================
   PANGEIA DEV STATE SIMULATOR PANEL
   ================================================================ */
.pangeia-simulator-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: rgba(5, 7, 22, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  font-family: sans-serif;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pangeia-simulator-panel.collapsed .sim-body {
  display: none;
}

.sim-header {
  display: flex;
  align-items: center;
  background: #0f1330;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: space-between;
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 8px var(--gold);
}

.sim-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin: 0;
  flex: 1;
  padding-left: 0.5rem;
}

.btn-toggle-sim {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.6rem;
  padding: 0;
  transition: var(--transition);
}

.btn-toggle-sim:hover {
  color: var(--white);
}

.sim-body {
  padding: 1rem;
}

.sim-body p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.sim-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0.5rem;
  font-size: 0.72rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-weight: 600;
}

.sim-btn:hover {
  background: rgba(201, 168, 92, 0.1);
  border-color: var(--border);
  color: var(--gold-light);
  transform: translateX(2px);
}

.sim-btn-approve {
  background: rgba(99, 212, 178, 0.08);
  border-color: rgba(99, 212, 178, 0.2);
  color: #a7f3d0;
}

.sim-btn-approve:hover {
  background: rgba(99, 212, 178, 0.15);
  border-color: var(--emerald);
  color: var(--emerald);
}

.sim-btn-gold {
  background: rgba(201, 168, 92, 0.12);
  border-color: var(--border);
  color: var(--gold-light);
}

.sim-btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-mid);
  border-color: transparent;
}

.sim-btn-danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.15);
  margin-top: 0.5rem;
}

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

.sim-status {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  font-size: 0.7rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.sim-status strong {
  color: var(--emerald);
}

