/* ============================================================
   VerifyFirst — UI Styles v2.0
   Premium Enterprise Identity Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* === ROOT VARIABLES === */
:root {
  /* Brand palette */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --teal-xlight: #5eead4;
  --teal-bg: #f0fdfa;
  --teal-bg2: #ccfbf1;
  --blue-deep: #1e3a5f;
  --blue-navy: #152848;
  --blue-mid: #1e4e8c;
  --blue-link: #1d4ed8;
  --blue-link-lt: #3b82f6;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0f766e 0%, #1e3a5f 100%);
  --grad-light: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  --grad-card-top: linear-gradient(135deg, #1e3a5f 0%, #0d9488 100%);
  --grad-hero: linear-gradient(145deg, rgba(15, 118, 110, 0.92) 0%, rgba(21, 40, 72, 0.95) 100%);
  --grad-btn: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --grad-btn-hover: linear-gradient(135deg, #0f766e 0%, #1e3a5f 100%);

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-150: #edf0f3;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --red: #ef4444;
  --red-soft: #fef2f2;
  --green: #10b981;
  --green-dark: #059669;
  --green-soft: #f0fdf4;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fffbeb;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 32px 80px rgba(0, 0, 0, 0.16), 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-teal: 0 6px 24px rgba(13, 148, 136, 0.28);
  --shadow-glow: 0 0 0 4px rgba(13, 148, 136, 0.15);

  /* Border radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-s: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-b: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Dashboard dark-theme tokens (mirrors employer palette) ── */
  --cl-accent: #0ea5e9;
  --cl-accent-dark: #0284c7;
  --cl-accent-glow: rgba(14, 165, 233, .35);
  --cl-accent-soft: rgba(14, 165, 233, .12);
  --cl-bg: #0f1117;
  --cl-bg2: #161b27;
  --cl-bg3: #1e2436;
  --cl-surface: #1a2035;
  --cl-surface2: #212840;
  --cl-border: rgba(255, 255, 255, .08);
  --cl-border2: rgba(255, 255, 255, .14);
  --cl-text: #f1f5f9;
  --cl-text2: #94a3b8;
  --cl-text3: #64748b;
  --cl-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  --cl-shadow-lg: 0 12px 48px rgba(0, 0, 0, .6);
}

/* ============================================================
   PAGE-LOAD SPLASH
   ============================================================ */
#page-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

#page-splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.page-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-splash-logo {
  display: block;
  height: 44px;
  width: auto;
}

.page-splash-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--teal-bg2);
  border-top-color: var(--teal);
  animation: splash-spin 0.75s linear infinite;
}

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


/* === BASE RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-900);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: var(--transition-s);
}

a:hover {
  color: var(--teal-dark);
}


/* ============================================================
   LANDING PAGE
   ============================================================ */
#landing-page {
  min-height: 100vh;
}

.landing-wrapper {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
}

/* Rich layered overlay */
.landing-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 60%, rgba(13, 148, 136, 0.22) 0%, transparent 60%),
    linear-gradient(145deg, rgba(15, 40, 75, 0.94) 0%, rgba(13, 118, 110, 0.86) 60%, rgba(21, 40, 72, 0.96) 100%);
  z-index: 0;
}

/* Decorative floating orbs */
.landing-wrapper::before {
  content: '';
  position: absolute;
  top: 8%;
  right: 6%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.landing-wrapper::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 4%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Premium white card */
.landing-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  padding: 3.75rem 3.5rem;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
  animation: cardFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  width: 100%;
  overflow: hidden;
}

/* Tri-color accent bar at top */
.landing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488 0%, #3b82f6 50%, #1e3a5f 100%);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* Subtle brand orb bottom-right */
.landing-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Trust badge */
.landing-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--grad-light);
  border: 1px solid var(--teal-bg2);
  border-radius: var(--radius-full);
  padding: 0.38rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-xs);
}

/* Gradient heading text */
.landing-title {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--gray-900) 15%, var(--blue-deep) 55%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 0.93rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.9rem;
}

.landing-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
  margin: 0 auto 1.9rem;
  width: 60%;
}

/* Slogan section — center-aligned card */
.slogan-section {
  margin-bottom: 2.25rem;
  padding: 1.35rem 1.6rem;
  background: var(--grad-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.slogan-line {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.slogan-line:last-child {
  margin-bottom: 0;
  color: var(--blue-deep);
}

/* Auth buttons — pill with gradient fill & outline */
.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.35rem;
  flex-wrap: wrap;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.78rem 2.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  transition: var(--transition);
  min-width: 140px;
}

/* Register = gradient fill */
.auth-link:first-child {
  background: var(--grad-btn);
  color: white;
  box-shadow: var(--shadow-teal);
}

.auth-link:first-child:hover {
  background: var(--grad-btn-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.40);
}

/* Login = outlined */
.auth-link:last-child {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.auth-link:last-child:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.auth-link::after {
  display: none;
}

.auth-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 0;
}


/* ============================================================
   STEP INDICATOR (Registration)
   ============================================================ */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xs);
}

.step-circle.active {
  background: var(--grad-btn);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.38);
  transform: scale(1.1);
}

.step-circle.completed {
  background: var(--grad-btn);
  border-color: transparent;
  color: white;
}

.step-connector {
  width: 52px;
  height: 2px;
  background: var(--gray-200);
  margin-top: 17px;
  transition: var(--transition-b);
  border-radius: 2px;
}

.step-connector.completed {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.step-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-label.active {
  color: var(--teal);
}

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


/* ============================================================
   FORM STYLES
   ============================================================ */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.required-star {
  color: var(--red);
  margin-left: 2px;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow), var(--shadow-xs);
  outline: none;
  background: var(--white);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control.is-invalid {
  border-color: var(--red);
  background: #fff8f8;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.form-control.is-valid {
  border-color: var(--green);
}

.invalid-feedback {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
  display: none;
  margin-top: 0.3rem;
}

.invalid-feedback.show {
  display: block;
}

.form-hint {
  font-size: 0.76rem;
  color: var(--gray-500);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.form-hint.italic-note {
  font-style: italic;
  color: var(--gray-600);
}

/* Phone input */
.phone-wrapper {
  display: flex;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.phone-wrapper:focus-within {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow), var(--shadow-xs);
}

.phone-wrapper.is-invalid {
  border-color: var(--red);
}

.phone-wrapper.is-invalid:focus-within {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  background: var(--gray-100);
  border-right: 1.5px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.phone-input-field {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.phone-input-field:focus {
  box-shadow: none !important;
}

/* File upload */
.file-upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative;
}

.file-upload-zone:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.file-upload-zone.has-file {
  border-color: var(--green);
  background: var(--green-soft);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  font-size: 2.4rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.file-upload-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.55;
}

.file-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Checkbox */
.form-check-input:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

.form-check-input:focus {
  box-shadow: var(--shadow-glow);
  border-color: var(--teal);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-teal {
  background: var(--grad-btn);
  border: none;
  color: white;
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.24);
}

.btn-teal:hover:not(:disabled) {
  background: var(--grad-btn-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.40);
}

.btn-teal:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-teal:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-teal:focus {
  box-shadow: var(--shadow-glow);
  outline: none;
}

.btn-outline-mid {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-outline-mid:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-700);
  transform: translateY(-1px);
}

.btn-danger-soft {
  background: var(--red-soft);
  border: 1.5px solid #fecaca;
  color: var(--red);
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-danger-soft:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

/* Outline‑secondary override (password toggle) */
.btn-outline-secondary {
  border-color: var(--gray-200) !important;
  color: var(--gray-500) !important;
  background: var(--gray-50) !important;
  transition: var(--transition-s);
}

.btn-outline-secondary:hover {
  background: var(--gray-100) !important;
  border-color: var(--gray-300) !important;
  color: var(--gray-700) !important;
}


/* ============================================================
   MODAL BASE
   ============================================================ */
.modal-content {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-family: 'Inter', 'Poppins', sans-serif;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--gray-100);
  padding: 1.35rem 1.75rem;
  background: linear-gradient(135deg, #fafbfc 0%, #f0fdfa22 100%);
}

.modal-header .modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-header .modal-title .modal-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-light);
  border: 1px solid var(--teal-bg2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.10);
}

.modal-body {
  padding: 1.75rem;
}

.consultant-auth-banner {
  position: relative;
  margin: -0.35rem 0 1.35rem;
  padding: 1.35rem 1.25rem 1.2rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(8, 2, 28, .45) 0%, rgba(10, 4, 32, .25) 40%, rgba(6, 2, 18, .35) 100%),
    url('../images/hero-bg.png') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .18);
}

.consultant-auth-banner::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #60a5fa, #93c5fd);
}

.consultant-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: rgba(14, 165, 233, .14);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, .22);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.consultant-auth-heading {
  margin: 0.85rem 0 0.45rem;
  color: #fff;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.12;
}

.consultant-auth-copy {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
  line-height: 1.5;
}

[data-vf-theme="light"] .consultant-auth-banner {
  background:
    linear-gradient(160deg, rgba(240, 249, 255, .97) 0%, rgba(224, 242, 254, .97) 50%, rgba(239, 246, 255, .97) 100%),
    url('https://images.unsplash.com/photo-1521737852567-6949f3f9f2b5?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  border-color: rgba(14, 165, 233, .16);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

[data-vf-theme="light"] .consultant-auth-badge {
  background: rgba(13, 148, 136, .1);
  color: var(--teal-dark);
  border-color: rgba(13, 148, 136, .16);
}

[data-vf-theme="light"] .consultant-auth-heading {
  color: var(--blue-deep);
}

[data-vf-theme="light"] .consultant-auth-copy {
  color: var(--gray-600);
}

.consultant-auth-banner-compact {
  margin-bottom: 1rem;
  padding: 1.1rem 1.15rem 1rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-100);
  padding: 1.1rem 1.75rem;
  background: var(--gray-50);
}

/* Backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* Inline alerts */
.inline-alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: 0.825rem;
  font-weight: 500;
  display: none;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.inline-alert.show {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.inline-alert-error {
  background: var(--red-soft);
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-left: 3px solid var(--red);
}

.inline-alert-success {
  background: var(--green-soft);
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-left: 3px solid var(--green);
}

.inline-alert-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-left: 3px solid var(--blue-link-lt);
}

.inline-alert-demo {
  background: var(--amber-soft);
  color: #92400e;
  border: 1px solid #fde68a;
  border-left: 3px solid var(--amber);
}


/* ============================================================
   OTP MODAL
   ============================================================ */
.otp-input-wrapper {
  text-align: center;
}

/* Single-field OTP (reset password modal) */
.otp-input {
  width: 230px;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.55em;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  font-family: 'Courier New', monospace;
  color: var(--blue-deep);
  background: var(--gray-50);
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.otp-input:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
  background: var(--white);
  outline: none;
}

/* 6-digit box OTP (OTP verification modal) */
.otp-digits-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

.otp-sep {
  width: 12px;
  height: 2.5px;
  background: var(--gray-300);
  border-radius: 2px;
  flex-shrink: 0;
  margin: 0 0.1rem;
}

.otp-digit {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--blue-deep);
  -webkit-text-fill-color: var(--blue-deep);
  font-family: 'Courier New', monospace;
  transition: var(--transition);
  outline: none;
  caret-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: var(--shadow-xs);
}

.otp-digit:focus {
  border-color: var(--teal);
  background: var(--white);
  color: var(--blue-deep);
  -webkit-text-fill-color: var(--blue-deep);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.otp-digit.is-invalid {
  border-color: var(--red);
  background: #fff5f5;
  animation: otp-shake 0.35s ease-in-out;
}

.otp-digit.filled {
  border-color: #99f6e4;
  background: var(--white);
  color: var(--blue-deep);
  -webkit-text-fill-color: var(--blue-deep);
}

@keyframes otp-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.6rem 0.9rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  font-size: 0.8rem;
}

.otp-timer {
  color: var(--gray-500);
}

.otp-timer .time {
  font-weight: 700;
  color: var(--teal);
}

.otp-timer .time.urgent {
  color: var(--red);
  animation: blink-dot 0.9s ease-in-out infinite;
}

.otp-attempts {
  color: var(--gray-400);
  font-weight: 600;
}


/* ============================================================
   CONSENT BOX
   ============================================================ */
.consent-card {
  background: var(--grad-light);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-xs);
}

.privacy-italic-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gray-500);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-200);
}


/* ============================================================
   RESET PASSWORD
   ============================================================ */
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: var(--shadow-xs);
}

.radio-card:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
  color: var(--teal-dark);
}

.radio-card.selected {
  border-color: var(--teal);
  background: var(--teal-bg);
  color: var(--teal-dark);
  box-shadow: var(--shadow-glow), var(--shadow-xs);
}

.radio-card input[type="radio"] {
  accent-color: var(--teal);
  flex-shrink: 0;
}

/* Reset password modal – compact sizing */
#resetPasswordModal .modal-header {
  padding: 0.9rem 1.5rem;
}

#resetPasswordModal .modal-header .modal-icon {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

#resetPasswordModal .modal-body {
  padding: 1.1rem 1.5rem;
}

#resetPasswordModal .modal-footer {
  padding: 0.8rem 1.5rem;
}

#resetPasswordModal .radio-card {
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.35rem;
}

#resetPasswordModal .otp-input {
  font-size: 1.6rem;
  padding: 0.55rem 0.75rem;
  width: 200px;
  letter-spacing: 0.4em;
}


/* ============================================================
   QR VERIFICATION MODAL
   ============================================================ */
.qr-container {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.qr-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qr-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: var(--transition-s);
  border: 1px solid var(--gray-100);
}

.qr-step-item:hover {
  background: var(--teal-bg);
  border-color: var(--teal-bg2);
}

.qr-step-num {
  min-width: 26px;
  height: 26px;
  background: var(--grad-btn);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}

.qr-step-text {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.privacy-box {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--teal);
  font-size: 0.76rem;
  color: var(--gray-500);
  line-height: 1.65;
  box-shadow: var(--shadow-xs);
}

.privacy-box p {
  margin: 0 0 0.35rem;
}

.privacy-box p:last-child {
  margin-bottom: 0;
}

.sms-trouble-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  color: var(--blue-link);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-s);
}

.sms-trouble-link:hover {
  color: #1e40af;
}


/* ============================================================
   DASHBOARD  (dark theme — mirrors employer palette)
   ============================================================ */
#dashboard {
  min-height: 100vh;
  background: var(--cl-bg);
  font-family: 'Inter', 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--cl-text);
}

/* Top bar */
.db-topbar {
  background: var(--cl-surface);
  border-bottom: 1px solid var(--cl-border);
  padding: 0 1.75rem;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.db-logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--cl-text);
  letter-spacing: -0.025em;
}

.db-logo span {
  color: var(--cl-accent);
}

.db-uid {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cl-accent);
  background: var(--cl-accent-soft);
  border: 1px solid rgba(14, 165, 233, .22);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  letter-spacing: 0.06em;
  font-family: 'Courier New', monospace;
}

.db-signout {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cl-text2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 1.1rem;
  border: 1px solid var(--cl-border2);
  border-radius: var(--radius-full);
  transition: var(--transition);
  background: var(--cl-bg2);
}

.db-signout:hover {
  background: rgba(244, 63, 94, .12);
  color: #f87171;
  border-color: rgba(244, 63, 94, .3);
  transform: translateY(-1px);
}

.db-content {
  flex: 1;
  width: 100%;
  padding: 1.25rem 0 6rem;
}

/* Two-column layout: left = identity/account, right = resume */
.db-two-col {
  align-items: start;
}

.db-col-left {
  display: flex;
  flex-direction: column;
}

.db-col-right {
  display: flex;
  flex-direction: column;
}

/* -- Verification status card -- */
.db-verify-card {
  background: var(--cl-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--cl-border);
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--cl-shadow);
  position: relative;
  overflow: hidden;
}

.db-verify-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f43f5e, #f59e0b, var(--cl-accent));
}

.verify-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--red);
  animation: blink-dot 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.verify-dot.confirmed {
  background: var(--green);
  animation: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@keyframes blink-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.verify-status-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cl-text2);
}

.verify-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--cl-accent), var(--cl-accent-dark));
  border-radius: var(--radius-full);
  padding: 0.58rem 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--cl-accent-glow);
  text-decoration: none;
  gap: 0.4rem;
}

.verify-action-link:hover {
  filter: brightness(1.1);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--cl-accent-glow);
}

.verify-action-link.link-done {
  background: rgba(16, 185, 129, .12);
  color: #10b981;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  font-style: italic;
  border: 1px solid rgba(16, 185, 129, .25);
}

/* -- Info cards -- */
.db-card {
  background: var(--cl-surface);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--cl-border);
  margin-bottom: 1.5rem;
  box-shadow: var(--cl-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.db-card:hover {
  box-shadow: var(--cl-shadow-lg);
  transform: translateY(-2px);
}

.db-card-head {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cl-accent);
  padding: 0.7rem 1rem;
  background: var(--cl-surface2);
  border-bottom: 1px solid var(--cl-border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.db-card-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cl-accent), var(--cl-accent-dark));
  border-radius: 0;
}

.db-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--cl-border);
  font-size: 0.86rem;
}

.db-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.db-info-label {
  color: var(--cl-text3);
  font-weight: 500;
}

.db-info-value {
  color: var(--cl-text);
  font-weight: 600;
  text-align: right;
  max-width: 65%;
}

/* -- Profile card -- */
.profile-banner {
  height: 92px;
  background: linear-gradient(135deg, #0c1a40 0%, #0e2a50 50%, #0a2238 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 0;
  position: relative;
}

.profile-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cl-accent-glow) 0%, transparent 70%);
}

.profile-banner::after {
  content: '';
  position: absolute;
  left: 32%;
  bottom: -25px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.06);
}

.profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cl-accent), #818cf8);
  color: white;
  font-size: 1.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--cl-surface);
  box-shadow: 0 0 18px var(--cl-accent-glow);
  margin-top: -37px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-anon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cl-accent-soft);
  color: var(--cl-accent);
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: var(--radius-full);
  padding: 0.22rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.profile-sec-heading {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cl-text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--cl-border);
}

.skill-tag {
  display: inline-block;
  background: var(--cl-accent-soft);
  color: var(--cl-accent);
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0.2rem;
  transition: var(--transition-s);
}

.skill-tag:hover {
  background: rgba(14, 165, 233, .2);
  transform: translateY(-1px);
}

.profile-placeholder-text {
  font-size: 0.82rem;
  color: var(--cl-text3);
  font-style: italic;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--cl-border2);
  border-radius: var(--radius-sm);
  background: var(--cl-bg2);
}

/* Resume file card inside profile */
.profile-resume-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cl-bg2);
  border: 1px solid var(--cl-border2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin: 0.5rem 0 1.25rem;
  box-shadow: var(--cl-shadow);
}

.profile-resume-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cl-accent), var(--cl-accent-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 12px var(--cl-accent-glow);
}

.profile-resume-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-resume-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cl-accent);
}

.profile-resume-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-resume-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Processing notice (replaces vague placeholder) */
.profile-processing-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.55;
}

.profile-processing-notice>i {
  font-size: 1.2rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

.profile-processing-notice strong {
  display: block;
  font-size: 0.82rem;
  color: #f59e0b;
  margin-bottom: 0.2rem;
}

.profile-processing-notice p {
  margin: 0;
  color: var(--cl-text2);
}

/* DOCX viewer rendered content */
.docx-render-area {
  font-family: 'Calibri', 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #1a1a1a;
}

.docx-render-area h1,
.docx-render-area h2,
.docx-render-area h3,
.docx-render-area h4 {
  margin-top: 1.25em;
  margin-bottom: 0.4em;
  font-weight: 700;
  color: var(--cl-text);
}

.docx-render-area p {
  margin-bottom: 0.6em;
  color: var(--cl-text2);
}

.docx-render-area ul,
.docx-render-area ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75em;
}

.docx-render-area table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
  font-size: 0.88rem;
}

.docx-render-area td,
.docx-render-area th {
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.65rem;
}

.docx-render-area th {
  background: var(--cl-surface2);
  font-weight: 600;
  color: var(--cl-text);
}

.docx-render-area .docx-wrapper {
  background: transparent !important;
  padding: 1.25rem !important;
}

.docx-render-area .docx {
  margin: 0 auto !important;
  box-shadow: none !important;
}

.docx-render-area img {
  max-width: 100% !important;
  height: auto !important;
}

/* Fixed bottom banner */
.db-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--cl-surface) 0%, var(--cl-bg2) 100%);
  color: var(--cl-text2);
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 500;
  border-top: 1px solid var(--cl-border);
  letter-spacing: 0.01em;
}

/* Refresh button */
.refresh-link {
  font-size: 0.78rem;
  color: var(--cl-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.1rem;
  border: 1px solid var(--cl-border2);
  border-radius: var(--radius-full);
  background: var(--cl-surface2);
  transition: var(--transition);
}

.refresh-link:hover {
  background: var(--cl-accent-soft);
  border-color: rgba(14, 165, 233, .35);
  transform: translateY(-1px);
  box-shadow: var(--cl-shadow);
}

/* DL data badge */
.dl-data-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cl-accent);
  background: var(--cl-accent-soft);
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
}

.share-card-note {
  font-size: 0.82rem;
  color: var(--cl-text2);
  line-height: 1.7;
  margin: -0.2rem 0 1rem;
}

.share-data-list {
  border: 1px solid var(--cl-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cl-bg2);
}

.share-data-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--cl-border);
}

.share-data-row:last-child {
  border-bottom: none;
}

.share-check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 1rem;
}

.share-check .form-check-input {
  float: none;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0;
  margin-left: 0;
  border-color: rgba(14, 165, 233, .4);
}

.share-check .form-check-input:checked {
  background-color: var(--cl-accent);
  border-color: var(--cl-accent);
}

.share-row-text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
  cursor: pointer;
}

.share-row-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cl-text2);
}

.share-row-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cl-accent);
}

.dl-eye-toggle {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.2rem 0.35rem;
  color: var(--cl-text3);
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s;
}

.dl-eye-toggle:hover {
  color: var(--cl-accent);
}

.share-bar {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  margin-top: 1rem;
}

.share-input-wrap {
  position: relative;
  flex: 1;
}

.share-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.95rem;
}

.share-email-input {
  height: 46px;
  padding-left: 2.3rem;
  border-radius: 12px;
  background: var(--cl-bg2) !important;
  border: 1px solid var(--cl-border2) !important;
  color: var(--cl-text) !important;
}

.share-email-input::placeholder {
  color: var(--cl-text3) !important;
}

.share-email-input:focus {
  border-color: var(--cl-accent) !important;
  box-shadow: 0 0 0 3px var(--cl-accent-soft) !important;
}

.share-btn {
  min-width: 114px;
  border-radius: 12px;
}


/* Inline alerts in dark dashboard context */
#dashboard .inline-alert-error {
  background: rgba(244, 63, 94, .1);
  color: #fca5a5;
  border: 1px solid rgba(244, 63, 94, .25);
  border-left: 3px solid #f43f5e;
}

#dashboard .inline-alert-success {
  background: rgba(16, 185, 129, .1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, .25);
  border-left: 3px solid #10b981;
}

#dashboard .inline-alert-info {
  background: rgba(14, 165, 233, .1);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, .25);
  border-left: 3px solid #0ea5e9;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .landing-card {
    padding: 2.75rem 2rem;
  }

  .auth-links {
    gap: 0.75rem;
  }

  .auth-link {
    padding: 0.72rem 1.75rem;
    font-size: 0.93rem;
    min-width: 120px;
  }

  .step-connector {
    width: 36px;
  }

  .modal-dialog {
    margin: 0.75rem;
  }

  .modal-body {
    padding: 1.4rem;
  }

  .modal-footer {
    padding: 0.9rem 1.4rem;
  }

  .db-topbar {
    padding: 0;
    height: auto;
    min-height: 64px;
  }

  .db-content {
    padding: 1rem 0 6rem;
  }

  .db-card {
    margin-bottom: 1rem;
  }

  .db-card-head {
    padding: 0.65rem 0.9rem;
  }

  .profile-banner {
    margin: 0;
  }

  .db-info-value {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .verify-action-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .share-bar {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-card {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-xl);
  }

  .landing-title {
    font-size: 1.5rem;
  }

  .auth-links {
    gap: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-link {
    text-align: center;
    min-width: unset;
    padding: 0.78rem 1rem;
  }

  .step-connector {
    width: 22px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .step-label {
    font-size: 0.58rem;
  }

  .db-topbar {
    gap: 0.4rem;
  }

  .db-uid {
    font-size: 0.65rem;
  }

  .otp-input {
    width: 200px;
    font-size: 1.75rem;
  }

  /* Shrink digit boxes on very small screens */
  .otp-digit {
    width: 40px;
    height: 50px;
    font-size: 1.35rem;
    border-radius: 10px;
  }

  .otp-digits-row {
    gap: 0.3rem;
  }
}