/* ═══════════════════════════════════════════════════════════════════════════════
   AcqIQ by ABHITO LLC — Master Stylesheet
   /assets/css/assets-style.css
   RULE: NO inline styles anywhere in any PHP file. All styles live here only.
   Fonts: Google Fonts CDN (not /fonts/ — that folder is for PHP GD captcha only)
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ─── 01. GOOGLE FONTS ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@300;400;500&display=swap');


/* ─── 02. CSS CUSTOM PROPERTIES ─────────────────────────────────────────────── */
:root {
  /* Brand Blues */
  --brand-primary:        #1A5BB7;
  --brand-primary-dark:   #0F3E82;
  --brand-primary-light:  #2E78D4;
  --brand-primary-xlight: #D6E6FA;

  /* Brand Cyan */
  --brand-cyan:           #00C2E0;
  --brand-cyan-light:     #7EEAF8;
  --brand-cyan-xlight:    #E0F9FD;

  /* Neutrals — full scale */
  --neutral-900: #0C1929;
  --neutral-800: #152236;
  --neutral-700: #1E3550;
  --neutral-600: #2D4A6A;
  --neutral-500: #4A6585;
  --neutral-400: #7A93AE;
  --neutral-300: #B0C4D8;
  --neutral-200: #D7E5F0;
  --neutral-100: #EDF4FA;
  --neutral-50:  #F5F9FD;
  --white:       #FFFFFF;

  /* Accents */
  --accent-gold:        #F5A623;
  --accent-gold-light:  #FDE8BC;
  --accent-gold-dark:   #B45309;

  /* Semantic / Status */
  --success:    #059669;
  --success-bg: #D1FAE5;
  --warning:    #D97706;
  --warning-bg: #FEF3C7;
  --error:      #DC2626;
  --error-bg:   #FEE2E2;
  --info:       #0891B2;
  --info-bg:    #E0F9FD;

  /* Research project status colours */
  --status-draft:         #6B7280;
  --status-draft-bg:      #F3F4F6;
  --status-active:        #1A5BB7;
  --status-active-bg:     #D6E6FA;
  --status-analyzing:     #7C3AED;
  --status-analyzing-bg:  #EDE9FE;
  --status-complete:      #059669;
  --status-complete-bg:   #D1FAE5;
  --status-review:        #D97706;
  --status-review-bg:     #FEF3C7;

  /* Typography */
  --font-display: 'Syne',    sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing scale */
  --space-4:  4px;
  --space-8:  8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows (blue-tinted) */
  --shadow-sm:  0 1px 3px  rgba(26,91,183,0.08);
  --shadow-md:  0 4px 16px rgba(26,91,183,0.12);
  --shadow-lg:  0 12px 40px rgba(26,91,183,0.16);
  --shadow-xl:  0 24px 64px rgba(26,91,183,0.20);

  /* App chrome dimensions */
  --sidebar-width:   224px;
  --topbar-height:   60px;
}


/* ─── 03. RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg     { display: block; max-width: 100%; }
a            { color: var(--brand-primary); text-decoration: none; }
a:hover      { text-decoration: underline; color: var(--brand-primary-dark); }
ul, ol       { list-style: none; }
button       { font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }


/* ─── 04. UTILITY CLASSES ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.w-full       { width: 100%; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-mono    { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.text-muted   { color: var(--neutral-400); }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.mb-0         { margin-bottom: 0; }
.mb-8         { margin-bottom: 8px; }
.mb-12        { margin-bottom: 12px; }
.mb-16        { margin-bottom: 16px; }
.mb-24        { margin-bottom: 24px; }
.mb-32        { margin-bottom: 32px; }
.mt-8         { margin-top: 8px; }
.mt-12        { margin-top: 12px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.divider      { height: 1px; background: var(--neutral-200); margin: 18px 0; }


/* ─── 05. GRID HELPERS ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;           gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);    gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);    gap: 14px; }


/* ─── 06. BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Variants */
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(26,91,183,0.28);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,91,183,0.38);
  text-decoration: none;
  color: var(--white);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--brand-primary-xlight);
  text-decoration: none;
  color: var(--brand-primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-600);
  border-color: var(--neutral-200);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border-color: var(--neutral-300);
  text-decoration: none;
}

.btn-danger {
  background: var(--white);
  color: var(--error);
  border-color: var(--error);
}
.btn-danger:hover:not(:disabled) {
  background: var(--error-bg);
  text-decoration: none;
}

/* AI gradient button */
.btn-ai {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0,194,224,0.28);
}
.btn-ai:hover:not(:disabled) {
  box-shadow: 0 4px 22px rgba(0,194,224,0.48);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}
.btn-ai:active:not(:disabled) { transform: translateY(0); }

/* Gold — Super Admin actions */
.btn-gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border-color: var(--accent-gold);
}
.btn-gold:hover:not(:disabled) {
  background: var(--accent-gold);
  color: var(--neutral-900);
  text-decoration: none;
}

/* Sizes */
.btn-sm  { padding: 6px 12px;  font-size: 12px; }
.btn-lg  { padding: 12px 28px; font-size: 15px; }
.btn-xl  { padding: 14px 36px; font-size: 16px; }

/* Icon-only square button */
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.btn-icon.btn-sm { width: 30px; height: 30px; padding: 5px; font-size: 13px; }


/* ─── 07. FORM ELEMENTS ─────────────────────────────────────────────────────── */
.form-group          { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label.required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-300);
  font-weight: 400;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(26,91,183,0.10);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.08);
}

.form-select {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A6585' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.65;
}

.form-helper {
  font-size: 12px;
  color: var(--neutral-400);
  margin-top: 5px;
  line-height: 1.5;
}
.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Password show/hide wrapper */
.form-input-wrap             { position: relative; }
.form-input-wrap .form-input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  color: var(--neutral-400);
  font-size: 16px;
  padding: 4px;
  transition: color 0.15s;
  line-height: 1;
}
.password-toggle:hover { color: var(--brand-primary); }

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.checkbox-wrap input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 2px solid var(--neutral-300);
  border-radius: 4px;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
  flex-shrink: 0;
  position: relative;
}
.checkbox-wrap input[type="checkbox"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.checkbox-wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 8px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.checkbox-label { font-size: 13px; color: var(--neutral-600); font-weight: 500; }

/* Character count helper for textareas */
.form-charcount {
  font-size: 11px;
  color: var(--neutral-400);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 4px;
}
.form-charcount.warn { color: var(--warning); }


/* ─── 08. CAPTCHA (PHP GD image — numbers only, 4 digits) ───────────────────── */
/* PHP outputs: <img src="includes/includes-captcha.php" id="captcha-img"> */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.captcha-img-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.captcha-img-wrap img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.captcha-sep {
  color: var(--neutral-400);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
}
.captcha-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}
.captcha-input {
  width: 110px !important;
  text-align: center;
  letter-spacing: 0.28em;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
}
.captcha-refresh {
  width: 36px; height: 36px;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 16px;
  color: var(--neutral-500);
  flex-shrink: 0;
}
.captcha-refresh:hover {
  background: var(--brand-primary-xlight);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: rotate(180deg);
}


/* ─── 09. reCAPTCHA v3 (invisible — just the badge notice) ─────────────────── */
.recaptcha-notice {
  font-size: 11.5px;
  color: var(--neutral-400);
  line-height: 1.55;
}
.recaptcha-notice a { color: var(--neutral-400); text-decoration: underline; }
.recaptcha-notice a:hover { color: var(--brand-primary); }


/* ─── 10. ALERTS ────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.alert:last-child  { margin-bottom: 0; }
.alert-icon        { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(5,150,105,0.22); }
.alert-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid rgba(220,38,38,0.22); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(217,119,6,0.22); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(8,145,178,0.18); }

/* Dismissible */
.alert-dismissible { padding-right: 40px; position: relative; }
.alert-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; opacity: 0.5; transition: opacity 0.15s;
  line-height: 1; color: inherit;
}
.alert-close:hover { opacity: 1; }


/* ─── 11. BADGES ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Research project status badges */
.badge-draft     { background: var(--status-draft-bg);     color: var(--status-draft);    }
.badge-active    { background: var(--status-active-bg);    color: var(--status-active);   }
.badge-analyzing { background: var(--status-analyzing-bg); color: var(--status-analyzing);}
.badge-complete  { background: var(--status-complete-bg);  color: var(--status-complete); }
.badge-review    { background: var(--status-review-bg);    color: var(--status-review);   }
.badge-success   { background: var(--success-bg);          color: var(--success);         }
.badge-warning   { background: var(--warning-bg);          color: var(--warning);         }
.badge-error     { background: var(--error-bg);            color: var(--error);           }
.badge-info      { background: var(--info-bg);             color: var(--info);            }

/* Dot colours matching badge variants */
.badge-draft     .badge-dot { background: var(--status-draft);    }
.badge-active    .badge-dot { background: var(--status-active);   }
.badge-analyzing .badge-dot { background: var(--status-analyzing);}
.badge-complete  .badge-dot { background: var(--status-complete); }
.badge-review    .badge-dot { background: var(--status-review);   }


/* ─── 12. CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 14px 16px; border-radius: var(--radius-lg); }

.card-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--neutral-100);
}


/* ─── 13. STAT CARDS ────────────────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-delta { font-size: 12px; font-weight: 600; color: var(--neutral-400); }
.stat-card-delta.pos { color: var(--success); }
.stat-card-delta.neg { color: var(--error); }
.stat-card-icon {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 24px;
  opacity: 0.09;
  user-select: none;
}


/* ─── 14. PROGRESS BARS ─────────────────────────────────────────────────────── */
.progress-wrap {
  height: 5px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  transition: width 0.4s ease;
}
.progress-fill-success { background: linear-gradient(90deg, var(--success), #34d399); }
.progress-fill-warning { background: linear-gradient(90deg, var(--warning), var(--accent-gold)); }
.progress-fill-gold    { background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold)); }

/* Labelled progress row */
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--neutral-400);
}


/* ─── 15. TABLES ────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-header {
  padding: 16px 22px 12px;
  border-bottom: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
}
.table-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}
.table-subtitle { font-size: 12px; color: var(--neutral-400); margin-top: 1px; }

table          { width: 100%; border-collapse: collapse; }
thead th {
  padding: 9px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--neutral-50);
  border-bottom: 2px solid var(--neutral-200);
  white-space: nowrap;
}
thead th.text-right { text-align: right; }
tbody tr {
  border-bottom: 1px solid var(--neutral-100);
  transition: background 0.12s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover      { background: var(--neutral-50); }
tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--neutral-800);
  vertical-align: middle;
}
.td-bold  { font-weight: 700; color: var(--neutral-900); }
.td-mono  { font-family: var(--font-mono); font-size: 11.5px; }
.td-muted { color: var(--neutral-400); font-size: 11.5px; }
.td-right { text-align: right; }
.td-nowrap { white-space: nowrap; }
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }


/* ─── 16. TOOLBAR (search + filters above tables) ───────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.toolbar-count {
  font-size: 12px;
  color: var(--neutral-400);
  font-family: var(--font-mono);
  margin-left: auto;
  white-space: nowrap;
}
.btn-filter-active {
  background: var(--brand-primary-xlight);
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
}


/* ─── 17. APP CHROME — SIDEBAR ──────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--neutral-900);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sidebar::-webkit-scrollbar        { width: 4px; }
.sidebar::-webkit-scrollbar-track  { background: transparent; }
.sidebar::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Logo area at top of sidebar */
.sidebar-logo {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.sidebar-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1;
}
.sidebar-logo-name span { color: var(--brand-cyan); }
.sidebar-logo-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--brand-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.6;
}

/* Section groupings */
.sidebar-section { padding: 0 10px; margin-bottom: 6px; }
.sidebar-section-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 10px 8px 5px;
}

/* Nav items */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--neutral-400);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  text-decoration: none;
}
.sidebar-item.active {
  background: rgba(26,91,183,0.22);
  color: var(--white);
}
.sidebar-item.active .sidebar-item-icon { color: var(--brand-cyan); }
.sidebar-item-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sidebar-item-badge {
  margin-left: auto;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  line-height: 1.6;
}
.sidebar-item-badge-new {
  background: var(--brand-cyan);
  color: var(--neutral-900);
}
.sidebar-item-badge-gold {
  background: var(--accent-gold);
  color: var(--neutral-900);
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 8px 10px;
}

/* Super Admin items — gold tint */
.sidebar-item-super {
  color: var(--accent-gold) !important;
}
.sidebar-item-super:hover {
  background: rgba(245,166,35,0.10) !important;
  color: var(--accent-gold) !important;
}
.sidebar-item-super.active {
  background: rgba(245,166,35,0.15) !important;
}

/* User footer in sidebar */
.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-user { display: flex; align-items: center; gap: 9px; }
.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
  user-select: none;
}
.sidebar-avatar-super {
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
}
.sidebar-user-name  { font-size: 12.5px; font-weight: 600; color: var(--white); line-height: 1.3; }
.sidebar-user-role  { font-size: 10.5px; color: var(--neutral-400); line-height: 1.3; }
.sidebar-user-role-super { color: var(--accent-gold); }

.sidebar-signout {
  margin-top: 6px;
  color: var(--neutral-400) !important;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}
.sidebar-signout:hover {
  color: var(--error) !important;
  background: rgba(220,38,38,0.08) !important;
}
.sidebar-signout .sidebar-item-icon { color: var(--neutral-500); }
.sidebar-signout:hover .sidebar-item-icon { color: var(--error); }


/* ─── 18. APP CHROME — TOPBAR ───────────────────────────────────────────────── */
.main-content {
  flex: 1;
  background: var(--neutral-50);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 0 26px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 var(--neutral-100);
}
.topbar-left        { display: flex; flex-direction: column; gap: 1px; }
.topbar-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.topbar-subtitle    { font-size: 12px; color: var(--neutral-400); line-height: 1.3; }
.topbar-actions     { display: flex; align-items: center; gap: 10px; }

/* Main page body (inside main-content) */
.page-body {
  padding: 24px 26px;
  flex: 1;
}


/* ─── 19. APP FOOTER ────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--neutral-900);
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links      { display: flex; gap: 16px; align-items: center; }
.footer-link {
  font-size: 12px;
  color: var(--neutral-600);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-link:hover { color: var(--neutral-300); text-decoration: none; }
.footer-security {
  font-size: 11px;
  color: var(--neutral-600);
  font-family: var(--font-mono);
}
/* 🎫 ticket button in footer */
.footer-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(26,91,183,0.18);
  border: 1px solid rgba(26,91,183,0.35);
  color: var(--brand-primary-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}
.footer-ticket-btn:hover {
  background: rgba(26,91,183,0.32);
  color: var(--white);
}


/* ─── 20. AUTH LAYOUT ───────────────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--neutral-50);
}

/* Left panel — dark brand */
.auth-panel {
  background: linear-gradient(145deg, var(--neutral-900) 0%, var(--brand-primary-dark) 65%, var(--neutral-800) 100%);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 25% 85%, rgba(0,194,224,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(26,91,183,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.auth-panel-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.auth-panel-content { position: relative; z-index: 1; }
.auth-panel-footer  { position: relative; z-index: 1; }
.auth-panel-footer p { font-size: 12px; color: var(--neutral-600); }

/* Brand block */
.auth-panel-brand      { margin-bottom: 52px; }
.auth-panel-brand-name {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.auth-panel-brand-name span { color: var(--brand-cyan); }
.auth-panel-brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--brand-cyan);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 3px; opacity: 0.65;
}

/* Tagline + description */
.auth-panel-tagline {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  color: var(--white); line-height: 1.12;
  letter-spacing: -0.025em; margin-bottom: 20px;
}
.auth-panel-tagline span { color: var(--brand-cyan); }
.auth-panel-desc {
  font-size: 15px; color: var(--neutral-300);
  line-height: 1.75; max-width: 380px; font-weight: 400;
}

/* Feature bullets */
.auth-panel-features    { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature           { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon {
  width: 34px; height: 34px;
  background: rgba(0,194,224,0.12);
  border: 1px solid rgba(0,194,224,0.20);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.auth-feature-text { font-size: 13.5px; color: var(--neutral-300); font-weight: 500; line-height: 1.4; }

/* Right panel — white form */
.auth-form-panel {
  background: var(--white);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-inner { max-width: 420px; width: 100%; margin: 0 auto; }

.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--brand-cyan);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--neutral-900); margin-bottom: 8px; letter-spacing: -0.02em;
}
.auth-subtitle { font-size: 14px; color: var(--neutral-500); line-height: 1.65; margin-bottom: 28px; }

.divider-or {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; color: var(--neutral-300);
  font-size: 12px; font-weight: 600;
}
.divider-or::before,
.divider-or::after { content: ''; flex: 1; height: 1px; background: var(--neutral-200); }

/* Registration step indicator */
.step-indicator { display: flex; align-items: center; margin-bottom: 28px; }
.step           { display: flex; align-items: center; gap: 7px; }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--neutral-400);
  font-family: var(--font-display);
  flex-shrink: 0;
  transition: all 0.2s;
}
.step.done   .step-circle  { background: var(--success); border-color: var(--success); color: var(--white); }
.step.active .step-circle  { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }
.step-label                { font-size: 11.5px; font-weight: 600; color: var(--neutral-400); white-space: nowrap; }
.step.active .step-label   { color: var(--brand-primary); }
.step.done   .step-label   { color: var(--success); }
.step-connector            { flex: 1; height: 2px; background: var(--neutral-200); margin: 0 8px; min-width: 16px; }
.step.done + .step-connector { background: var(--success); }


/* ─── 21. AI PANEL ──────────────────────────────────────────────────────────── */
.ai-panel {
  background: var(--neutral-900);
  border: 1px solid rgba(0,194,224,0.20);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,194,224,0.06);
}
.ai-panel-header {
  background: rgba(0,194,224,0.07);
  border-bottom: 1px solid rgba(0,194,224,0.14);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-panel-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ai-panel-title {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700;
  color: var(--brand-cyan); letter-spacing: 0.02em;
}
.ai-panel-title small { color: var(--neutral-500); font-weight: 400; font-size: 10.5px; margin-left: 6px; }

.ai-panel-body   { padding: 14px 16px; }
.ai-message      { font-size: 13px; color: var(--neutral-300); line-height: 1.72; margin-bottom: 10px; }
.ai-message strong { color: var(--brand-cyan-light); }

/* Inline AI tags (data sources, keywords) */
.ai-tag {
  display: inline-block;
  background: rgba(0,194,224,0.13);
  color: var(--brand-cyan);
  border-radius: var(--radius-sm);
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; margin: 2px;
  font-family: var(--font-mono);
}
.ai-tag-gold { background: rgba(245,166,35,0.15); color: var(--accent-gold); }
.ai-tag-blue { background: rgba(26,91,183,0.15);  color: var(--brand-primary-light); }

/* AI prompt input row */
.ai-prompt-row { display: flex; gap: 7px; margin-top: 12px; }
.ai-prompt-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px; color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.ai-prompt-input::placeholder { color: var(--neutral-600); }
.ai-prompt-input:focus        { border-color: rgba(0,194,224,0.35); }


/* ─── 22. EXPLAINABILITY CARD ───────────────────────────────────────────────── */
/* Core differentiator for hackathon Responsible AI criterion */
.explain-card {
  background: rgba(0,194,224,0.05);
  border: 1px solid rgba(0,194,224,0.18);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.explain-card:last-child { margin-bottom: 0; }

.explain-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.explain-title {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.explain-body {
  font-size: 12.5px;
  color: var(--neutral-300);
  line-height: 1.68;
}
.explain-body strong { color: var(--brand-cyan-light); }

/* Source citation row */
.explain-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--neutral-500);
  font-family: var(--font-mono);
}
.explain-source-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  flex-shrink: 0;
}
.explain-source-dot-gold { background: var(--accent-gold); }

/* Chat message source citations */
.ai-source-trail {
  background: rgba(26,91,183,0.06);
  border: 1px solid rgba(26,91,183,0.15);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-source-trail-label {
  font-family: var(--font-mono);
  font-size: 9.5px; color: var(--brand-primary);
  letter-spacing: 0.08em; margin-bottom: 3px;
}
.ai-source-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--neutral-500);
}
.ai-source-item-arrow { color: var(--brand-cyan); font-size: 10px; }


/* ─── 23. AI MATCH SCORE RING ───────────────────────────────────────────────── */
.score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 4px solid var(--success);
  background: rgba(5,150,105,0.08);
  flex-shrink: 0;
}
.score-ring-value {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--success); line-height: 1;
}
.score-ring-label {
  font-size: 8.5px; color: var(--neutral-400);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Score ring colour variants */
.score-ring-high   { border-color: var(--success);  background: rgba(5,150,105,0.08);  }
.score-ring-high   .score-ring-value { color: var(--success);  }
.score-ring-med    { border-color: var(--warning);  background: rgba(217,119,6,0.08);  }
.score-ring-med    .score-ring-value { color: var(--warning);  }
.score-ring-low    { border-color: var(--neutral-300); background: var(--neutral-100); }
.score-ring-low    .score-ring-value { color: var(--neutral-500); }

/* Larger ring (vendor profile page) */
.score-ring-lg { width: 84px; height: 84px; }
.score-ring-lg .score-ring-value { font-size: 26px; }


/* ─── 24. VENDOR CARDS ──────────────────────────────────────────────────────── */
.vendor-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.vendor-card:last-child     { margin-bottom: 0; }
.vendor-card:hover          { box-shadow: var(--shadow-md); }
.vendor-card-high           { border-left-color: var(--success); }
.vendor-card-medium         { border-left-color: var(--warning); }
.vendor-card-low            { border-left-color: var(--neutral-300); }

.vendor-card-header         { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.vendor-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--neutral-900); line-height: 1.3;
}
.vendor-uei  { font-family: var(--font-mono); font-size: 10.5px; color: var(--neutral-400); margin-top: 2px; }

.vendor-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.vendor-meta-item {
  font-size: 12px; color: var(--neutral-500);
  display: flex; align-items: center; gap: 4px;
}
.vendor-meta-item strong { color: var(--neutral-700); font-weight: 600; }

.vendor-tags      { display: flex; gap: 5px; flex-wrap: wrap; }
.vendor-tag {
  background: var(--neutral-100);
  color: var(--neutral-600);
  border-radius: var(--radius-sm);
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px;
  font-family: var(--font-mono);
}
.vendor-tag-8a      { background: var(--brand-primary-xlight); color: var(--brand-primary); }
.vendor-tag-sdvosb  { background: #FEF3C7; color: #92400E; }
.vendor-tag-wosb    { background: #FCE7F3; color: #9D174D; }

.vendor-actions {
  display: flex; gap: 7px; margin-top: 10px;
  border-top: 1px solid var(--neutral-100); padding-top: 10px;
  flex-wrap: wrap; align-items: center;
}

.vendor-award-bar { margin-top: 10px; }
.vendor-award-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--neutral-400);
  font-family: var(--font-mono); margin-bottom: 4px;
}

/* Set-aside pill used inside vendor cards */
.setaside-pill {
  display: inline-flex; align-items: center;
  background: var(--brand-primary-xlight);
  color: var(--brand-primary);
  font-size: 11px; font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
}


/* ─── 25. HISTORICAL CONTRACT CARD ─────────────────────────────────────────── */
.contract-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.contract-card:hover   { box-shadow: var(--shadow-md); }
.contract-card:last-child { margin-bottom: 0; }
.contract-title {
  font-size: 13px; font-weight: 700;
  color: var(--neutral-900); margin-bottom: 7px; line-height: 1.35;
}
.contract-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.contract-meta-item {
  font-size: 11.5px; color: var(--neutral-500);
  display: flex; align-items: center; gap: 3px;
}
.contract-meta-item strong { color: var(--neutral-700); }
.similarity-row {
  display: flex; align-items: center; gap: 8px; margin-top: 9px;
}
.similarity-label {
  font-size: 10.5px; color: var(--neutral-400);
  font-family: var(--font-mono); white-space: nowrap; width: 80px;
}


/* ─── 26. RESEARCH PROJECT STATUS TIMELINE ──────────────────────────────────── */
/* Horizontal status trail shown at top of research project pages */
.project-status-trail {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.trail-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 80px;
}
.trail-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--neutral-400);
  background: var(--white);
  transition: all 0.2s;
}
.trail-step.done   .trail-step-dot { background: var(--success);      border-color: var(--success);      color: var(--white); }
.trail-step.active .trail-step-dot { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }
.trail-step-label {
  font-size: 10.5px; font-weight: 600;
  color: var(--neutral-400); text-align: center;
  white-space: nowrap;
}
.trail-step.done   .trail-step-label { color: var(--success); }
.trail-step.active .trail-step-label { color: var(--brand-primary); }
.trail-connector {
  flex: 1;
  height: 2px;
  background: var(--neutral-200);
  min-width: 24px;
  flex-shrink: 0;
}
.trail-connector.done { background: var(--success); }


/* ─── 27. MRR BUILDER STEPS ─────────────────────────────────────────────────── */
.mrr-step {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.mrr-step:last-child { margin-bottom: 0; }

.mrr-step-header {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.mrr-step-header:hover { background: var(--neutral-100); }

.mrr-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.mrr-step-num.done { background: var(--success); }
.mrr-step-num.pending { background: var(--neutral-300); }

.mrr-step-label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--neutral-800);
}
.mrr-step-status  { margin-left: auto; }
.mrr-step-toggle  { font-size: 14px; color: var(--neutral-400); margin-left: 8px; }

.mrr-step-body { padding: 20px 22px; }


/* ─── 28. FAR COMPLIANCE CHECKLIST ─────────────────────────────────────────── */
.far-checklist { display: flex; flex-direction: column; gap: 7px; }
.far-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.far-check-item-pass { color: var(--success); }
.far-check-item-warn { color: var(--warning); }
.far-check-item-pending { color: var(--neutral-400); }
.far-check-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}


/* ─── 29. DATA SOURCE STATUS ────────────────────────────────────────────────── */
/* Used in dashboard and super admin to show API health */
.datasource-list { display: flex; flex-direction: column; gap: 9px; }
.datasource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--neutral-700);
}
.datasource-name {
  display: flex; align-items: center; gap: 7px;
}
.datasource-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.datasource-dot-live    { background: var(--success); }
.datasource-dot-cached  { background: var(--warning); }
.datasource-dot-error   { background: var(--error); }
.datasource-status {
  font-family: var(--font-mono);
  font-size: 11px;
}
.datasource-status-live   { color: var(--success); }
.datasource-status-cached { color: var(--warning); }
.datasource-status-error  { color: var(--error); }


/* ─── 30. AI CHAT (AI Assistant page) ──────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: calc(100vh - var(--topbar-height));
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--neutral-50);
}

/* AI message bubble */
.chat-bubble-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 640px;
}
.chat-bubble-ai-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 2px;
}
.chat-bubble-ai-body {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}
.chat-bubble-model-tag {
  font-family: var(--font-mono);
  font-size: 9.5px; color: var(--brand-cyan);
  letter-spacing: 0.08em; margin-bottom: 7px;
  text-transform: uppercase;
}
.chat-bubble-text {
  font-size: 13.5px; color: var(--neutral-800); line-height: 1.72;
}
.chat-bubble-text strong { font-weight: 700; color: var(--neutral-900); }

/* User message bubble */
.chat-bubble-user {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 540px;
  align-self: flex-end;
}
.chat-bubble-user-body {
  background: var(--brand-primary);
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
  padding: 12px 16px;
  font-size: 13.5px; color: var(--white); line-height: 1.65;
}

/* Chat input bar */
.chat-input-bar {
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
  padding: 14px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13.5px; color: var(--neutral-900);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: var(--neutral-300); font-weight: 400; }
.chat-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(26,91,183,0.08); }

/* Suggested question chips */
.chat-sidebar { border-left: 1px solid var(--neutral-200); background: var(--white); padding: 18px; overflow-y: auto; }
.chat-sidebar-label {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  color: var(--neutral-500);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.chat-suggestion {
  width: 100%; text-align: left;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 8px 11px; margin-bottom: 7px;
  font-family: var(--font-body);
  font-size: 12px; color: var(--neutral-700); font-weight: 500;
  cursor: pointer; transition: all 0.15s; line-height: 1.45;
  white-space: normal; word-break: break-word;
}
.chat-suggestion:hover { background: var(--brand-primary-xlight); border-color: var(--brand-primary-light); color: var(--brand-primary); }

/* Context box in chat sidebar */
.chat-context-box {
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  padding: 11px 13px;
  font-size: 12px; color: var(--neutral-500); line-height: 1.7;
}


/* ─── 31. MODALS ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(12,25,41,0.72);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 580px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: scaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--neutral-200);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800; color: var(--neutral-900);
  letter-spacing: -0.01em;
}
.modal-close {
  background: none; border: none;
  font-size: 18px; color: var(--neutral-400);
  cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius-sm); line-height: 1;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--neutral-100); color: var(--neutral-700); }
.modal-body   { padding: 20px 22px 24px; }
.modal-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--neutral-200);
  display: flex; gap: 9px; justify-content: flex-end;
}


/* ─── 32. SUPPORT TICKET MODAL (slide-up from footer) ───────────────────────── */
.ticket-overlay {
  position: fixed; inset: 0;
  background: rgba(12,25,41,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: flex-end; justify-content: flex-end;
  padding: 70px 20px 20px;
}
.ticket-overlay.open { display: flex; }

.ticket-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 400px; max-height: 88vh;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideUp 0.30s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ticket-modal-header {
  background: var(--neutral-900);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,194,224,0.18);
  flex-shrink: 0;
}
.ticket-modal-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 7px;
}
.ticket-modal-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: var(--radius-sm);
  color: var(--white); cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ticket-modal-close:hover { background: rgba(255,255,255,0.18); }

.ticket-modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  flex: 1;
}


/* ─── 33. LANDING PAGE ──────────────────────────────────────────────────────── */
/* Center all landing content */
.landing-nav-inner,
.landing-hero-inner,
.landing-section-inner,
.landing-footer-inner,
.landing-cta-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* Ensure hero content aligns nicely */
.landing-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

/* Center CTA section */
.landing-cta-inner {
  text-align: center;
}

/* Prevent full-width nav stretching */
.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,13,26,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 56px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.land-logo {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800;
  color: var(--white); letter-spacing: -0.03em;
}
.land-logo span { color: var(--brand-cyan); }

.land-nav-links { display: flex; align-items: center; gap: 28px; }
.land-nav-link {
  font-size: 13.5px; font-weight: 500;
  color: var(--neutral-400); cursor: pointer;
  transition: color 0.15s; text-decoration: none;
}
.land-nav-link:hover { color: var(--white); text-decoration: none; }

/* Hero */
.land-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #050a14 0%, #08152b 40%, #0b1d3f 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 112px 56px 80px;
  position: relative; overflow: hidden;
}
.land-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,91,183,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,91,183,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.land-hero-glow {
  position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 420px;
  background: radial-gradient(ellipse, rgba(0,194,224,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.land-hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 860px;
}
.land-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--brand-cyan);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 18px; opacity: 0.8;
}
.land-hero-title {
  font-family: var(--font-display);
  font-size: 68px; font-weight: 800; color: var(--white);
  line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 22px;
}
.land-hero-title span { color: var(--brand-cyan); }
.land-hero-sub {
  font-size: 19px; color: var(--neutral-300);
  line-height: 1.65; max-width: 580px; margin: 0 auto 40px;
}
.land-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Workflow strip below hero CTA */
.land-workflow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 64px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.land-workflow-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 0 20px;
}
.land-workflow-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(26,91,183,0.20);
  border: 1px solid rgba(26,91,183,0.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.land-workflow-icon-ai   { background: rgba(0,194,224,0.15); border-color: rgba(0,194,224,0.30); }
.land-workflow-icon-gold { background: rgba(245,166,35,0.15); border-color: rgba(245,166,35,0.30); }
.land-workflow-label {
  font-size: 12px; font-weight: 600; color: var(--neutral-400);
  text-align: center; max-width: 82px; line-height: 1.35;
}
.land-workflow-arrow { font-size: 18px; color: var(--neutral-700); flex-shrink: 0; }

/* Features section */
.land-features { background: var(--neutral-50); padding: 88px 56px; }
.land-sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--brand-cyan);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px;
}
.land-sec-title {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800;
  color: var(--neutral-900); letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 14px;
}
.land-sec-title span { color: var(--brand-primary); }
.land-sec-sub { font-size: 16px; color: var(--neutral-500); line-height: 1.7; max-width: 500px; }

.land-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.land-feat-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.land-feat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.land-feat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-lg);
  background: var(--brand-primary-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
}
.land-feat-icon-cyan { background: var(--brand-cyan-xlight); }
.land-feat-icon-gold { background: var(--accent-gold-light); }
.land-feat-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--neutral-900); margin-bottom: 9px; letter-spacing: -0.01em;
}
.land-feat-desc { font-size: 13.5px; color: var(--neutral-500); line-height: 1.72; }

/* Judging criteria section */
.land-judging { background: var(--neutral-900); padding: 80px 56px; }
.land-judging-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.land-judging-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color 0.2s;
}
.land-judging-card:hover { border-color: rgba(0,194,224,0.30); }
.land-judging-weight {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.land-judging-weight-high { color: var(--success); }
.land-judging-weight-med  { color: var(--accent-gold); }
.land-judging-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--white);
}
.land-judging-desc { font-size: 12px; color: var(--neutral-400); margin-top: 6px; line-height: 1.6; }

/* Hackathon badge pill */
.hackathon-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-gold); letter-spacing: 0.06em;
  margin-bottom: 20px;
}

/* CTA section */
.land-cta {
  background: linear-gradient(145deg, var(--neutral-800), var(--brand-primary-dark));
  padding: 88px 56px; text-align: center;
  position: relative; overflow: hidden;
}
.land-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,194,224,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.land-cta-content { position: relative; z-index: 1; }
.land-cta-title {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.1;
}
.land-cta-title span { color: var(--brand-cyan); }
.land-cta-sub { font-size: 17px; color: var(--neutral-300); margin-bottom: 36px; line-height: 1.65; }

/* Landing footer */
.land-footer {
  background: #040810;
  padding: 28px 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.land-footer-copy { font-size: 12px; color: var(--neutral-700); }


/* ─── 34. SUPER ADMIN OVERRIDES ─────────────────────────────────────────────── */
/* Gold-tinted topbar title for super admin pages */
.topbar-title-super { color: var(--accent-gold); }

.superadmin-section-label {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase; letter-spacing: 0.10em;
  padding: 8px 8px 4px;
}


/* ─── 35. RESPONSIVE BREAKPOINTS ────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .stat-cards              { grid-template-columns: repeat(2, 1fr); }
  .land-features-grid      { grid-template-columns: repeat(2, 1fr); }
  .land-judging-grid       { grid-template-columns: repeat(2, 1fr); }
  .land-hero-title         { font-size: 54px; }
  .land-cta-title          { font-size: 38px; }
}

@media (max-width: 1024px) {
  .auth-layout             { grid-template-columns: 1fr; }
  .auth-panel              { display: none; }
  .chat-layout             { grid-template-columns: 1fr; }
  .chat-sidebar            { display: none; }
  :root                    { --sidebar-width: 200px; }
}

@media (max-width: 900px) {
  .grid-3                  { grid-template-columns: 1fr 1fr; }
  .grid-4                  { grid-template-columns: 1fr 1fr; }
  .land-features-grid      { grid-template-columns: 1fr; }
  .land-judging-grid       { grid-template-columns: 1fr; }
  .land-nav                { padding: 0 24px; }
  .land-hero               { padding: 100px 24px 60px; }
  .land-hero-title         { font-size: 40px; }
  .land-features, .land-judging, .land-cta { padding: 60px 24px; }
  .land-footer             { padding: 22px 24px; }
}

@media (max-width: 768px) {
  .app-layout              { flex-direction: column; }
  .sidebar                 { width: 100%; height: auto; position: relative; padding-bottom: 10px; }
  .stat-cards              { grid-template-columns: 1fr 1fr; }
  .grid-2                  { grid-template-columns: 1fr; }
  .grid-3                  { grid-template-columns: 1fr; }
  .topbar                  { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .page-body               { padding: 16px; }
  .land-hero-title         { font-size: 34px; }
  .land-sec-title          { font-size: 32px; }
  .ticket-modal            { width: 100%; max-width: 100%; }
  .ticket-overlay          { padding: 0; align-items: flex-end; }
  .ticket-modal            { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

@media (max-width: 600px) {
  .stat-cards              { grid-template-columns: 1fr; }
  .auth-form-panel         { padding: 36px 24px; }
  .land-hero-title         { font-size: 28px; }
  .land-hero-sub           { font-size: 16px; }
  .land-cta-title          { font-size: 28px; }
  .vendor-card             { padding: 13px 14px; }
  .score-ring              { width: 56px; height: 56px; }
  .score-ring .score-ring-value { font-size: 17px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Shared Classes (auth-login, auth-register, auth-forgot-password)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── AUTH PAGE BACKDROP ─────────────────────────────────────────────────────── */
.auth-page-body {
  background: linear-gradient(160deg, #050a14 0%, #08152b 45%, #0b1d3f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  position: relative;
}
.auth-page-body.auth-register-body { align-items: flex-start; padding: 32px 16px; }

/* Animated grid overlay */
.auth-page-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(26,91,183,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,91,183,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Radial glow effect */
.auth-page-body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 660px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(0,194,224,0.08) 0%, transparent 68%);
}
.auth-register-body::after {
  top: 30%;
  width: 700px;
  height: 560px;
  background: radial-gradient(ellipse, rgba(0,194,224,0.07) 0%, transparent 68%);
}

/* ─── AUTH CARD ──────────────────────────────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(21, 34, 54, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 40px 38px 32px;
  box-shadow:
    0 28px 72px rgba(0,0,0,0.58),
    0 0 0 1px rgba(0,194,224,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: auth-fade-up 0.50s cubic-bezier(0.22,1,0.36,1) both;
}
.auth-card.auth-register-card {
  max-width: 500px;
  padding: 40px 38px 34px;
}

@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── AUTH BADGE (Security indicator) ────────────────────────────────────────── */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,194,224,0.08);
  border: 1px solid rgba(0,194,224,0.25);
  border-radius: 9999px;
  padding: 5px 14px;
  margin-bottom: 26px;
}
.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00C2E0;
  box-shadow: 0 0 7px rgba(0,194,224,0.9);
  animation: auth-blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes auth-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.auth-badge-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #00C2E0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── AUTH LOGO & BRANDING ───────────────────────────────────────────────────── */
.auth-logo {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.auth-logo span {
  color: #00C2E0;
  font-style: italic;
}

.auth-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(176,196,216,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.9;
}

.auth-rule {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 28px 0 24px;
}

.auth-inner-rule {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 20px 0 16px;
}

/* ─── AUTH ALERTS ────────────────────────────────────────────────────────────── */
.auth-alert {
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-alert:last-child { margin-bottom: 0; }

.auth-alert-icon {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

.auth-alert-success {
  background: rgba(5,150,105,0.12);
  color: #10b981;
  border: 1px solid rgba(5,150,105,0.20);
}

.auth-alert-error {
  background: rgba(220,38,38,0.12);
  color: #ef4444;
  border: 1px solid rgba(220,38,38,0.20);
}

.auth-alert-info {
  background: rgba(0,194,224,0.08);
  color: #06b6d4;
  border: 1px solid rgba(0,194,224,0.18);
}

.auth-alert ul {
  margin: 8px 0 0 20px;
  list-style: disc;
}
.auth-alert li {
  margin-bottom: 4px;
}

/* ─── AUTH FORM GROUPS ───────────────────────────────────────────────────────── */
.auth-group {
  margin-bottom: 18px;
}
.auth-group:last-child {
  margin-bottom: 0;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.auth-input,
.auth-select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input::placeholder,
.auth-select::placeholder {
  color: rgba(255,255,255,0.35);
}

.auth-input:focus,
.auth-select:focus {
  border-color: rgba(0,194,224,0.40);
  background: rgba(0,194,224,0.04);
  box-shadow: 0 0 0 3px rgba(0,194,224,0.08);
}

.auth-input.is-invalid,
.auth-select.is-invalid {
  border-color: rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.04);
}

.auth-input.is-valid {
  border-color: rgba(16,185,129,0.40);
  background: rgba(16,185,129,0.04);
}

.auth-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' opacity='0.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* ─── HELPER TEXT & ERRORS ───────────────────────────────────────────────────── */
.auth-helper {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  margin-top: 6px;
  line-height: 1.5;
}

.auth-field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── PASSWORD FIELD WITH TOGGLE ─────────────────────────────────────────────── */
.auth-pw-wrap {
  position: relative;
}
.auth-pw-wrap .auth-input {
  padding-right: 44px;
}

.auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  padding: 4px 8px;
  transition: color 0.15s;
  line-height: 1;
}
.auth-pw-toggle:hover {
  color: rgba(255,255,255,0.70);
}

/* ─── CAPTCHA SECTION ────────────────────────────────────────────────────────── */
.auth-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 9px;
  padding: 12px 14px;
  flex-wrap: wrap;
}

.auth-captcha-img-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-captcha-img-wrap img {
  height: 80px;
  width: auto;
  border-radius: 7px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.auth-captcha-sep {
  color: rgba(255,255,255,0.20);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
}

.auth-captcha-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}

.auth-captcha-field {
  width: 120px !important;
  text-align: center;
  letter-spacing: 0.28em;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
}

.auth-captcha-refresh {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 16px;
  color: rgba(255,255,255,0.40);
  flex-shrink: 0;
}
.auth-captcha-refresh:hover {
  background: rgba(0,194,224,0.12);
  color: #00c2e0;
  border-color: rgba(0,194,224,0.30);
  transform: rotate(180deg);
}

/* ─── SECTION LABELS ─────────────────────────────────────────────────────────── */
.auth-section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ─── CHECKBOX ───────────────────────────────────────────────────────────────── */
.auth-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 16px;
}

.auth-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all 0.15s;
  flex-shrink: 0;
  position: relative;
}

.auth-checkbox-wrap input[type="checkbox"]:checked {
  background: #00c2e0;
  border-color: #00c2e0;
}

.auth-checkbox-wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: 2px solid rgba(21, 34, 54, 0.95);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.auth-checkbox-label {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}

/* ─── META ROW (Remember me + Forgot password) ────────────────────────────────── */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.auth-remember-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.auth-forgot {
  font-size: 13px;
  color: #00c2e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.auth-forgot:hover {
  color: #7eeaf8;
}

/* ─── BUTTON ─────────────────────────────────────────────────────────────────── */
.auth-btn-submit {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a5bb7 0%, #00c2e0 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,194,224,0.28);
  margin-top: 12px;
}
.auth-btn-submit:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(0,194,224,0.40);
  transform: translateY(-1px);
}
.auth-btn-submit:active:not(:disabled) {
  transform: translateY(0);
}
.auth-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-btn-secondary {
  width: 100%;
  padding: 11px 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-btn-secondary:hover:not(:disabled) {
  background: rgba(0,194,224,0.12);
  border-color: rgba(0,194,224,0.30);
  color: #00c2e0;
}

/* ─── DIVIDER ────────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.auth-divider-text {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  font-weight: 500;
  white-space: nowrap;
}

.auth-btn-sso {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.auth-btn-sso:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  text-decoration: none;
  color: white;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.auth-register,
.auth-signin-row {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 18px;
}

.auth-register a,
.auth-signin-row a {
  color: #00c2e0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.auth-register a:hover,
.auth-signin-row a:hover {
  color: #7eeaf8;
}

.auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-footer-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.auth-footer-pill {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-footer-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
}

.auth-footer-note a {
  color: rgba(255,255,255,0.50);
  text-decoration: underline;
  transition: color 0.15s;
}
.auth-footer-note a:hover {
  color: rgba(255,255,255,0.70);
}

/* ─── SUCCESS MESSAGE ────────────────────────────────────────────────────────── */
.auth-success-box {
  background: rgba(5,150,105,0.10);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 11px;
  padding: 28px 24px;
  text-align: center;
}

.auth-success-icon {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.auth-success-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 8px;
}

.auth-success-text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 20px;
}

.auth-success-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.auth-success-cta:hover {
  background: #059669;
  text-decoration: none;
}

/* ─── PRODUCTION NOTE (Register page) ────────────────────────────────────────── */
.auth-prod-note {
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.20);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.auth-prod-note-title {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.auth-prod-note-body {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.auth-prod-note-body strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ─── RECAPTCHA NOTICE ───────────────────────────────────────────────────────── */
.auth-recaptcha-notice {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 16px;
}

.auth-recaptcha-notice a {
  color: rgba(255,255,255,0.50);
  text-decoration: underline;
  transition: color 0.15s;
}
.auth-recaptcha-notice a:hover {
  color: rgba(255,255,255,0.75);
}

/* ─── HIDDEN ELEMENT ─────────────────────────────────────────────────────────── */
.auth-hidden {
  display: none !important;
}

/* ─── PAGE TITLE & SUBTITLE ──────────────────────────────────────────────────── */
.auth-page-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.auth-page-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ─── ACTION WRAPPER ─────────────────────────────────────────────────────────── */
.auth-action-wrapper {
  margin-top: 20px;
  text-align: center;
}

.auth-action-text {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

/* ─── EMAIL CONFIRMATION STEP ────────────────────────────────────────────────── */
.auth-confirmation-box {
  background: rgba(0,194,224,0.08);
  border: 1px solid rgba(0,194,224,0.20);
  border-radius: 11px;
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
}

.auth-confirmation-icon {
  font-size: 38px;
  margin-bottom: 12px;
  display: block;
}

.auth-confirmation-text {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: 4px;
}

.auth-confirmation-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00c2e0;
  margin-bottom: 14px;
  word-break: break-all;
}

.auth-confirmation-resend {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

.auth-confirmation-resend a {
  color: #00c2e0;
  font-weight: 600;
  text-decoration: none;
}
/* ─── DOCUMENT UPLOAD ZONE ──────────────────────────────────────────────────── */
.doc-upload-zone {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-md);
  background: var(--neutral-50);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  margin-bottom: 8px;
}
.doc-upload-zone-hover {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-xlight);
}
.doc-upload-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.doc-upload-prompt:hover {
  background: var(--neutral-100);
}
.doc-upload-prompt-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.doc-upload-prompt-text { flex: 1; }
.doc-upload-prompt-title {
  font-size: 13px; font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 2px;
}
.doc-upload-prompt-sub {
  font-size: 11px;
  color: var(--neutral-400);
}
.doc-upload-prompt-btn {
  padding: 6px 14px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.doc-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}
.doc-upload-status-loading { color: var(--neutral-600); background: var(--neutral-100); }
.doc-upload-status-success { color: var(--success);     background: var(--success-bg); }
.doc-upload-status-error   { color: var(--error);       background: var(--error-bg); }
