/* ScholarReach Modern Responsive CSS Styling */

/* Display Typography: NT Lamore (for brand titles, main page headers & modal titles 24px-36px+) */
@font-face {
  font-family: 'NT Lamore';
  src: url('/fonts/NT-Lamore-Mini-Edition.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Primary Sans Typography: Urbanist (for smaller texts, body, tabs, cards, badges, buttons, forms, tables) */
@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/Urbanist-VariableFont_wght.ttf') format('truetype-variations'),
       url('/fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/Urbanist-Italic-VariableFont_wght.ttf') format('truetype-variations'),
       url('/fonts/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/static/Urbanist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/static/Urbanist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/static/Urbanist-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/static/Urbanist-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Typography Variables: NT Lamore for large display; Urbanist for body & controls */
  --font-display: 'NT Lamore', Georgia, 'Times New Roman', serif;
  --font-sans: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: var(--font-sans);
  --font-family: var(--font-sans);
  
  /* AAA Pass Sand Color Palette (Spring Meadow, Teal Waters, Glacial Sky, Morning Mist) */
  --spring-meadow: #CAFFA6;
  --teal-waters: #204654;
  --glacial-sky: #A9E0F1;
  --morning-mist: #F7F9E1;
  
  --teal-deep: #16323c;
  --teal-card: #1b3d4a;
  --teal-card-hover: #265263;
  --morning-mist-sub: #dbe4d2;
  --border-teal: #2c596b;

  /* Default Theme: Permanently Dark Theme with Teal Waters & Spring Meadow Gradient */
  --bg-primary: #16323c;
  --bg-secondary: #17343e;
  --bg-card: #1c3e4b;
  --bg-card-hover: #265263;
  --border-color: rgba(169, 224, 241, 0.22);
  --text-primary: #F7F9E1;
  --text-secondary: #dbe4d2;
  --text-muted: #8ca59b;
  
  --brand-text: #F7F9E1;
  --brand-sub: #A9E0F1;
  --brand-icon-bg: linear-gradient(135deg, #204654, #2b5d6f);
  --brand-icon-color: #CAFFA6;
  
  --primary-color: #CAFFA6;
  --primary-hover: #b8f78f;
  --primary-text: #16323c;
  --accent-blue: #A9E0F1;
  --accent-cyan: #A9E0F1;
  --accent-spring: #CAFFA6;
  
  --btn-primary-bg: #CAFFA6;
  --btn-primary-color: #16323c;
  --btn-primary-hover: #b8f78f;
  
  --btn-secondary-bg: rgba(169, 224, 241, 0.12);
  --btn-secondary-color: #A9E0F1;
  --btn-secondary-border: rgba(169, 224, 241, 0.25);
  --btn-secondary-hover: rgba(169, 224, 241, 0.22);
  
  --nav-tab-active-bg: rgba(202, 255, 166, 0.14);
  --nav-tab-active-color: #CAFFA6;
  --nav-tab-active-border: #CAFFA6;
  
  --input-bg: #17343e;
  --input-border: rgba(169, 224, 241, 0.22);
  --input-text: #F7F9E1;
  
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.25);
  --radius: 10px;
}

/* Fallback for legacy class references - mapped to dark theme */
body.theme-morning-mist,
body.theme-light {
  --bg-primary: #16323c;
  --bg-secondary: #17343e;
  --bg-card: #1c3e4b;
  --bg-card-hover: #265263;
  --border-color: rgba(169, 224, 241, 0.22);
  --text-primary: #F7F9E1;
  --text-secondary: #dbe4d2;
  --text-muted: #8ca59b;
  
  --brand-text: #F7F9E1;
  --brand-sub: #A9E0F1;
  --brand-icon-bg: linear-gradient(135deg, #204654, #2b5d6f);
  --brand-icon-color: #CAFFA6;
  
  --primary-color: #CAFFA6;
  --primary-hover: #b8f78f;
  --primary-text: #16323c;
  --accent-blue: #A9E0F1;
  
  --btn-primary-bg: #CAFFA6;
  --btn-primary-color: #16323c;
  --btn-primary-hover: #b8f78f;
  
  --btn-secondary-bg: rgba(169, 224, 241, 0.12);
  --btn-secondary-color: #A9E0F1;
  --btn-secondary-border: rgba(169, 224, 241, 0.25);
  --btn-secondary-hover: rgba(169, 224, 241, 0.22);
  
  --nav-tab-active-bg: rgba(202, 255, 166, 0.14);
  --nav-tab-active-color: #CAFFA6;
  --nav-tab-active-border: #CAFFA6;
  
  --input-bg: #17343e;
  --input-border: rgba(169, 224, 241, 0.22);
  --input-text: #F7F9E1;
}

/* Combination B: Teal Waters Nocturne (Immersive Dark Theme) */
body.theme-teal-waters,
body.theme-dark {
  --bg-primary: #204654;
  --bg-secondary: #17343e;
  --bg-card: #1c3e4b;
  --bg-card-hover: #265263;
  --border-color: rgba(169, 224, 241, 0.22);
  --text-primary: #F7F9E1;
  --text-secondary: #dbe4d2;
  --text-muted: #8ca59b;
  
  --brand-text: #F7F9E1;
  --brand-sub: #A9E0F1;
  --brand-icon-bg: linear-gradient(135deg, #204654, #2b5d6f);
  --brand-icon-color: #CAFFA6;
  
  --primary-color: #CAFFA6;
  --primary-hover: #b8f78f;
  --primary-text: #16323c;
  --accent-blue: #A9E0F1;
  
  --btn-primary-bg: #CAFFA6;
  --btn-primary-color: #16323c;
  --btn-primary-hover: #b8f78f;
  
  --btn-secondary-bg: rgba(169, 224, 241, 0.15);
  --btn-secondary-color: #A9E0F1;
  --btn-secondary-border: rgba(169, 224, 241, 0.4);
  --btn-secondary-hover: rgba(169, 224, 241, 0.25);
  
  --nav-tab-active-bg: rgba(202, 255, 166, 0.16);
  --nav-tab-active-color: #CAFFA6;
  --nav-tab-active-border: rgba(202, 255, 166, 0.45);
  
  --input-bg: rgba(10, 25, 32, 0.7);
  --input-border: #2c596b;
  --input-text: #F7F9E1;
  --info-color: #A9E0F1;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.35), 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

/* Combination C: Glacial Modernist (Nordic Laboratory) */
body.theme-glacial-sky {
  --bg-primary: #EBF6F9;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #DEF1F7;
  --border-color: rgba(32, 70, 84, 0.16);
  --text-primary: #204654;
  --text-secondary: #285465;
  --text-muted: #507787;
  
  --brand-text: #204654;
  --brand-sub: #285465;
  --brand-icon-bg: #204654;
  --brand-icon-color: #A9E0F1;
  
  --primary-color: #204654;
  --primary-hover: #16323c;
  --primary-text: #FFFFFF;
  --accent-blue: #0284c7;
  
  --btn-primary-bg: #204654;
  --btn-primary-color: #FFFFFF;
  --btn-primary-hover: #16323c;
  
  --btn-secondary-bg: rgba(169, 224, 241, 0.3);
  --btn-secondary-color: #1a4352;
  --btn-secondary-border: rgba(32, 70, 84, 0.25);
  --btn-secondary-hover: rgba(169, 224, 241, 0.45);
  
  --nav-tab-active-bg: rgba(169, 224, 241, 0.32);
  --nav-tab-active-color: #1a4352;
  --nav-tab-active-border: #204654;
  
  --input-bg: #FFFFFF;
  --input-border: rgba(32, 70, 84, 0.22);
  --input-text: #204654;
  
  --shadow-sm: 0 1px 3px 0 rgba(32, 70, 84, 0.08);
  --shadow-md: 0 4px 12px -1px rgba(32, 70, 84, 0.12);
  --shadow-lg: 0 12px 28px -4px rgba(32, 70, 84, 0.18);
}

/* Combination D: Spring Botanical (Fresh Academic Renaissance) */
body.theme-spring-meadow {
  --bg-primary: #F2F8ED;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #E6F5DD;
  --border-color: rgba(32, 70, 84, 0.16);
  --text-primary: #204654;
  --text-secondary: #2C5767;
  --text-muted: #567784;
  
  --brand-text: #204654;
  --brand-sub: #2C5767;
  --brand-icon-bg: #204654;
  --brand-icon-color: #CAFFA6;
  
  --primary-color: #CAFFA6;
  --primary-hover: #b8f78f;
  --primary-text: #16323c;
  --accent-blue: #204654;
  
  --btn-primary-bg: #CAFFA6;
  --btn-primary-color: #16323c;
  --btn-primary-hover: #b8f78f;
  
  --btn-secondary-bg: rgba(32, 70, 84, 0.08);
  --btn-secondary-color: #204654;
  --btn-secondary-border: rgba(32, 70, 84, 0.22);
  --btn-secondary-hover: rgba(32, 70, 84, 0.14);
  
  --nav-tab-active-bg: rgba(202, 255, 166, 0.35);
  --nav-tab-active-color: #16323c;
  --nav-tab-active-border: #204654;
  
  --input-bg: #FFFFFF;
  --input-border: rgba(32, 70, 84, 0.22);
  --input-text: #204654;
  
  --shadow-sm: 0 1px 3px 0 rgba(32, 70, 84, 0.08);
  --shadow-md: 0 4px 12px -1px rgba(32, 70, 84, 0.12);
  --shadow-lg: 0 12px 28px -4px rgba(32, 70, 84, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--font-family);
  background: linear-gradient(90deg, #16323c 0%, #1c3e4b 35%, #19443c 70%, #1e5241 85%, #255d47 100%) fixed !important;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent !important;
}

/* Logos: ensure only dark-theme logos are visible */
.logo-light-theme,
#nav-brand-logo-light {
  display: none !important;
}

.logo-dark-theme,
#nav-brand-logo-dark {
  display: inline-block !important;
}

/* Header & Navigation - Eased Up, Softer Pill Styling, Generous Breathing Room */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

#auth-nav-container {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.btn-outline-admin {
  background: rgba(202, 255, 166, 0.1);
  border: 1px solid var(--spring-meadow);
  color: var(--spring-meadow);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline-admin:hover {
  background: var(--spring-meadow);
  color: #16323c;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--nav-tab-active-color, var(--spring-meadow));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 220ms ease;
  pointer-events: none;
}

.nav-tab:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(169, 224, 241, 0.2);
}

.nav-tab:hover::after {
  width: 45%;
}

.nav-tab.active {
  background-color: var(--nav-tab-active-bg, rgba(202, 255, 166, 0.16));
  color: var(--nav-tab-active-color, var(--spring-meadow));
  border-color: var(--nav-tab-active-border, rgba(202, 255, 166, 0.45));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-tab.active::after {
  width: 65%;
}

.brand-icon {
  background: var(--brand-icon-bg, linear-gradient(135deg, var(--teal-waters), #2b5d6f));
  color: var(--brand-icon-color, var(--spring-meadow));
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-feature-settings: "liga" 0, "kern" 1, "calt" 0, "dlig" 0;
  font-variant-ligatures: none;
  color: var(--brand-text, var(--text-primary));
  line-height: 1.15;
}

.brand-title .brand-ch-c {
  margin-right: 0.05em;
  display: inline-block;
}

.brand-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-sub, var(--accent-cyan));
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Body & Panes */
.main-body {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
}

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

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.pane-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pane-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.openalex-box {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}

.openalex-box input {
  flex: 1;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

/* Forms & Inputs */
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
}

.row-inputs {
  display: flex;
  gap: 12px;
}

.row-inputs > * {
  flex: 1;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--btn-primary-bg, var(--primary-color));
  color: var(--btn-primary-color, var(--primary-text));
  box-shadow: 0 2px 8px rgba(32, 70, 84, 0.15);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover, var(--primary-hover));
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg, rgba(169, 224, 241, 0.15));
  color: var(--btn-secondary-color, var(--glacial-sky));
  border: 1px solid var(--btn-secondary-border, rgba(169, 224, 241, 0.4));
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover, rgba(169, 224, 241, 0.25));
  border-color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: var(--primary-color);
}

/* Professor Card */
.prof-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.prof-name {
  font-size: 16px;
  font-weight: 700;
}

.prof-name.clickable-name {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  transition: color 0.15s ease, transform 0.15s ease;
}

.prof-name.clickable-name:hover {
  color: var(--primary-color);
  text-decoration: underline;
  transform: translateX(2px);
}

.clickable-name .info-hint {
  font-size: 13px;
  color: var(--primary-color);
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.prof-name.clickable-name:hover .info-hint {
  transform: scale(1.2);
  opacity: 1;
}

.prof-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.prof-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.15));
}

.card.fellowship-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fellowship-apply-btn {
  margin-top: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.fellowship-apply-btn:hover {
  transform: translateY(-1px);
  border-color: var(--spring-meadow);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Expanded Card Hero Animation */
@keyframes expandHeroCard {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shrinkHeroCard {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}

.prof-card-expanded-hero {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.35));
  animation: expandHeroCard 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

.prof-card-expanded-hero.shrinking {
  animation: shrinkHeroCard 0.22s ease-in forwards;
}

.expanded-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.expanded-header-title h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.expanded-header-title .univ-line {
  font-size: 14px;
  color: var(--text-secondary);
}

.expanded-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.expanded-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

@media (max-width: 900px) {
  .expanded-content-grid {
    grid-template-columns: 1fr;
  }
  .expanded-header-bar {
    flex-direction: column;
  }
}

.expanded-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expanded-bio-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-color);
  margin-bottom: 18px;
}

.expanded-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.expanded-meta-item {
  background: var(--bg-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.expanded-meta-item strong {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.expanded-meta-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.expanded-meta-item a:hover {
  text-decoration: underline;
}

.expanded-pubs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.expanded-pub-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.expanded-pub-card:hover {
  border-color: var(--primary-color);
}

.expanded-pub-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.4;
}

.expanded-pub-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.expanded-pub-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.expanded-pub-link:hover {
  text-decoration: underline;
}

.directory-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.btn-shrink {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-shrink:hover {
  background-color: var(--border-color);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-info { background-color: rgba(56, 189, 248, 0.15); color: var(--info-color); }
.badge-success { background-color: rgba(16, 185, 129, 0.15); color: var(--success-color); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning-color); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: var(--danger-color); }
.badge-tier { background-color: rgba(32, 70, 84, 0.12); color: var(--primary-color); border: 1px solid var(--border-color); }

/* High-Contrast Degree & Major Badge (Ensures AAA Visibility in Dark & Light Modes) */
.cv-degree-badge {
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

body.theme-teal-waters .cv-degree-badge,
body.theme-dark .cv-degree-badge {
  background-color: rgba(169, 224, 241, 0.22) !important;
  color: #A9E0F1 !important;
  border: 1px solid #A9E0F1 !important;
  text-shadow: 0 0 2px rgba(169, 224, 241, 0.35);
}

body.theme-morning-mist .cv-degree-badge,
body.theme-light .cv-degree-badge,
body:not(.theme-teal-waters):not(.theme-dark) .cv-degree-badge {
  background-color: rgba(32, 70, 84, 0.12) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.45) !important;
}

.pubs-list {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 12px;
}

.pub-item {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.pub-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.pub-item a:hover {
  text-decoration: underline;
}

/* CV Layout */
.cv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}

.dropzone:hover {
  border-color: var(--primary-color);
}

.dropzone i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.dropzone input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Studio Layout */
.studio-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.composer-card, .queue-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.queue-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background-color: var(--bg-primary);
}

.queue-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* Deliverability Styles */
.score-card {
  background: linear-gradient(135deg, rgba(32, 70, 84, 0.75), rgba(22, 50, 60, 0.95));
  border: 1px solid rgba(169, 224, 241, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.score-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--success-color);
}

.score-max {
  font-size: 20px;
  color: var(--text-muted);
}

.dns-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.record-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
}

.record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.record-head h4 {
  flex: 1;
}

.remediation-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.remediation-box pre {
  background-color: var(--bg-primary);
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 12px;
  margin: 10px 0;
  border: 1px solid var(--border-color);
}

/* Settings Layout */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.empty-hint {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1450px) {
  .brand-subtitle {
    display: none;
  }
  .top-nav {
    padding: 6px 12px;
    gap: 8px;
  }
  .nav-tabs {
    gap: 2px;
  }
  .nav-tab {
    font-size: 11px;
    padding: 4px 6px;
    gap: 3px;
  }
  .user-nav-chip {
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 1250px) {
  .nav-tab {
    font-size: 10.5px;
    padding: 3px 5px;
    gap: 2px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .brand-title {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .cv-layout, .studio-layout, .settings-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .top-nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
  }
  .brand {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(44, 89, 107, 0.35);
    padding-bottom: 4px;
    overflow-x: auto;
  }
}

@media (max-width: 540px) {
  .top-nav {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .nav-actions {
    gap: 8px;
  }
  .btn-outline-admin {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
 * Header: DB Status Pill & User Nav Chip
 * -------------------------------------------------------------------------- */
.db-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(22, 50, 60, 0.7);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.db-status-badge.cloud-active {
  background-color: rgba(202, 255, 166, 0.15);
  border-color: var(--spring-meadow);
  color: var(--spring-meadow);
}

.user-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(32, 70, 84, 0.8);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--morning-mist);
}

.btn-icon-sm {
  background: transparent;
  border: none;
  color: var(--glacial-sky);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.15s ease;
}

.btn-icon-sm:hover {
  background-color: rgba(169, 224, 241, 0.2);
  color: var(--morning-mist);
}

/* --------------------------------------------------------------------------
 * Pixel-Art Aesthetic Footer (Inspired by User Reference)
 * -------------------------------------------------------------------------- */
.app-pixel-footer {
  margin-top: auto;
  background-color: #12242c;
  background-image: 
    radial-gradient(#1b3d4a 15%, transparent 16%),
    radial-gradient(#16323c 15%, transparent 16%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  border-top: 1px solid #1e4554;
  padding: 24px 20px 20px 20px;
  font-family: 'Courier New', Courier, monospace, var(--font-sans);
}

.pixel-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pixel-brand-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7d9ba6;
  text-transform: uppercase;
}

.pixel-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pixel-link {
  color: var(--morning-mist);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.15s ease;
  background-color: rgba(22, 50, 60, 0.6);
  border: 1px solid #234d5d;
}

.pixel-link:hover {
  color: var(--spring-meadow);
  border-color: var(--spring-meadow);
  background-color: rgba(202, 255, 166, 0.1);
}

.pixel-sep {
  color: #436d7d;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
 * Modern Modals: Auth, Legal (Terms & Privacy), Audit Logs
 * -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 25, 30, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-modal-card {
  max-width: 480px;
}

.legal-modal-card {
  max-width: 760px;
}

.audit-modal-card {
  max-width: 960px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.modal-header h3, .modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

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

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-teal);
  background-color: rgba(22, 50, 60, 0.3);
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  color: var(--spring-meadow);
  border-bottom-color: var(--spring-meadow);
  background-color: rgba(202, 255, 166, 0.08);
}

.auth-modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Google Sign In Button */
.btn-google {
  width: 100%;
  background-color: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.google-icon {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-teal);
}

.auth-divider span {
  padding: 0 12px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 42px;
}

.btn-pwd-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
}

.btn-pwd-eye:hover {
  color: var(--morning-mist);
}

/* Zero-Knowledge Security Guarantee Badge */
.security-guarantee-badge {
  margin-top: 20px;
  background-color: rgba(32, 70, 84, 0.6);
  border: 1px solid rgba(202, 255, 166, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sec-badge-icon {
  color: var(--spring-meadow);
  font-size: 18px;
  margin-top: 2px;
}

.sec-badge-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sec-badge-text strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Legal Modals Content */
.modal-legal-content {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.65;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.modal-legal-content h4 {
  color: var(--primary-color);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.modal-legal-content h4:first-child {
  margin-top: 0;
}

.modal-legal-content p {
  margin-bottom: 12px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Audit Log Table */
.modal-body-scrollable {
  padding: 20px 24px;
  overflow-y: auto;
}

.audit-intro {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.table-responsive {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.audit-table th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.audit-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.audit-table tr:hover td {
  background-color: var(--bg-card-hover);
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.audit-success {
  background-color: rgba(202, 255, 166, 0.22);
  color: var(--text-primary);
  border: 1px solid rgba(202, 255, 166, 0.5);
}

.audit-fail {
  background-color: rgba(255, 123, 114, 0.18);
  color: var(--danger-color);
  border: 1px solid rgba(255, 123, 114, 0.4);
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.provider-pill.google {
  background-color: rgba(169, 224, 241, 0.25);
  color: var(--text-primary);
  border: 1px solid rgba(169, 224, 241, 0.5);
}

.provider-pill.local {
  background-color: rgba(202, 255, 166, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
 * Corner-to-Corner Circular Theme Sweep & View Transitions
 * -------------------------------------------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 99999;
}

.theme-sweep-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  opacity: 1;
}
.theme-sweep-ripple.active {
  transform: scale(1);
}
.theme-sweep-ripple.fade-out {
  opacity: 0;
}

/* --------------------------------------------------------------------------
 * Mandatory Login Gate / Auth Barrier
 * -------------------------------------------------------------------------- */
html.auth-barrier-active body .app-container,
body.auth-barrier-active .app-container {
  filter: blur(8px) brightness(0.85);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

html.auth-barrier-active #modal-auth,
body.auth-barrier-active #modal-auth {
  display: flex !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: rgba(10, 20, 26, 0.82);
}

.auth-notice-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-form-highlight {
  animation: formHighlightPulse 1.2s ease 2;
}

@keyframes formHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(202, 255, 166, 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(202, 255, 166, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(202, 255, 166, 0); }
}

/* --------------------------------------------------------------------------
 * Dedicated Professional Homepage (#tab-home)
 * -------------------------------------------------------------------------- */
.home-hero-card {
  display: block;
  background: linear-gradient(135deg, rgba(22, 50, 60, 0.94) 0%, rgba(28, 62, 75, 0.90) 55%, rgba(24, 62, 56, 0.88) 100%);
  border: 1px solid rgba(169, 224, 241, 0.22);
  border-radius: 16px;
  padding: 46px 42px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -8px rgba(10, 24, 31, 0.55), 0 4px 12px -2px rgba(10, 24, 31, 0.3);
  position: relative;
  overflow: hidden;
}

.home-hero-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(202, 255, 166, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Editorial Hero Architecture */
.hero-content-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 920px;
}

.hero-content-col .hero-brand-showcase {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(202, 255, 166, 0.18);
  color: var(--primary-color);
  border: 1px solid rgba(202, 255, 166, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  align-self: flex-start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
  opacity: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
  opacity: 0;
}

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

.btn-lg {
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 200ms ease;
}

.btn-outline-hero {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 200ms ease;
}
.btn-outline-hero:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.btn-outline-hero:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
 * Research Network Vector Artwork & Layered Editorial Cards (#tab-home)
 * -------------------------------------------------------------------------- */
.hero-visual-col {
  display: none !important;
}

.hero-network-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-network-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Celestial / Network Orbital Reference Circles */
.network-orbit {
  fill: none;
  stroke: rgba(169, 224, 241, 0.14);
  stroke-width: 1;
}
.network-orbit.orbit-outer {
  stroke-dasharray: 4 6;
}
.network-orbit.orbit-mid {
  stroke-dasharray: 3 5;
}
.network-orbit.orbit-inner {
  stroke-dasharray: 2 4;
}

/* Interconnecting Smooth Curved Paths */
.network-path {
  fill: none;
  stroke: rgba(169, 224, 241, 0.32);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawNetworkPath 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.network-path.path-delay-1 { animation-delay: 0.10s; }
.network-path.path-delay-2 { animation-delay: 0.22s; }
.network-path.path-delay-3 { animation-delay: 0.36s; }
.network-path.path-delay-4 { animation-delay: 0.48s; }

@keyframes drawNetworkPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Network Nodes */
.network-node {
  opacity: 0;
  transform-origin: center;
  animation: nodePop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.network-node.node-center { animation-delay: 0.15s; }
.network-node.node-1 { animation-delay: 0.30s; }
.network-node.node-2 { animation-delay: 0.45s; }
.network-node.node-3 { animation-delay: 0.60s; }

@keyframes nodePop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.node-halo {
  fill: rgba(169, 224, 241, 0.08);
}
.node-core {
  fill: #183844;
  stroke: rgba(169, 224, 241, 0.6);
  stroke-width: 1.5;
}
.node-orbit {
  fill: none;
  stroke: rgba(202, 255, 166, 0.3);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

/* Central ScholarReach Hub Node */
.center-pulse-ring {
  fill: none;
  stroke: rgba(202, 255, 166, 0.28);
  stroke-width: 1.5;
  animation: pulseCenterHalo 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s 1 forwards;
  opacity: 0.35;
}

@keyframes pulseCenterHalo {
  0% {
    r: 30;
    opacity: 0;
  }
  60% {
    r: 44;
    opacity: 0.65;
  }
  100% {
    r: 40;
    opacity: 0.35;
  }
}

.center-outer-ring {
  fill: rgba(22, 50, 60, 0.6);
  stroke: rgba(169, 224, 241, 0.35);
  stroke-width: 1.5;
}

.center-core-bg {
  fill: #142d36;
  stroke: var(--spring-meadow);
  stroke-width: 2;
}

.center-sr-text {
  fill: var(--spring-meadow);
}

/* Layered Floating Information Cards */
.hero-float-card {
  position: absolute;
  z-index: 3;
  background: rgba(22, 50, 61, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(169, 224, 241, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -4px rgba(8, 20, 26, 0.5), 0 2px 6px -1px rgba(8, 20, 26, 0.3);
  cursor: pointer;
  opacity: 0;
  animation: floatCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
  user-select: none;
}

.hero-float-card:hover {
  transform: translateY(-4px);
  border-color: rgba(202, 255, 166, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -4px rgba(8, 20, 26, 0.65), 0 4px 10px -2px rgba(8, 20, 26, 0.4);
}

@keyframes floatCardEntrance {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-float-card.card-faculty {
  top: 14px;
  right: 10px;
  width: 275px;
  animation-delay: 0.35s;
}

.hero-float-card.card-fellowship {
  top: 175px;
  left: 8px;
  width: 255px;
  animation-delay: 0.52s;
}

.hero-float-card.card-matcher {
  bottom: 14px;
  right: 12px;
  width: 285px;
  animation-delay: 0.70s;
}

.hfc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hfc-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(169, 224, 241, 0.16);
  color: #A9E0F1;
  border: 1px solid rgba(169, 224, 241, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.hfc-avatar-icon.hfc-icon-award {
  background: rgba(202, 255, 166, 0.16);
  color: #CAFFA6;
  border-color: rgba(202, 255, 166, 0.35);
}

.hfc-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hfc-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hfc-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hfc-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(202, 255, 166, 0.16);
  color: #CAFFA6;
  border: 1px solid rgba(202, 255, 166, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hfc-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hfc-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(169, 224, 241, 0.1);
  color: #d8eaec;
  border: 1px solid rgba(169, 224, 241, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hfc-tag.hfc-tag-fund {
  background: rgba(202, 255, 166, 0.14);
  color: #CAFFA6;
  border-color: rgba(202, 255, 166, 0.3);
}

.hfc-link-action {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.hero-float-card:hover .hfc-link-action {
  gap: 7px;
}

.hfc-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hfc-score-number {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  line-height: 1;
}

.hfc-score-info {
  display: flex;
  flex-direction: column;
}

.hfc-score-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.hfc-score-chips {
  font-size: 11px;
  color: var(--text-muted);
}

.hfc-inbox-guarantee {
  font-size: 11px;
  font-weight: 600;
  color: #d5e6df;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hfc-inbox-guarantee i {
  color: var(--primary-color);
}

.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(202, 255, 166, 0.16);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-number {
  display: block;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.metric-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.home-section-header {
  margin-bottom: 20px;
}

.home-section-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-section-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.home-launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.launch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}

.launch-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.launch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.launch-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(169, 224, 241, 0.2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.launch-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: rgba(32, 70, 84, 0.12);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.launch-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.launch-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.launch-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.launch-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.launch-card:hover .launch-link {
  gap: 10px;
}

/* --------------------------------------------------------------------------
 * Light Theme Glacial Sky (#A9E0F1) Card Styling for Dedicated Homepage
 * -------------------------------------------------------------------------- */
body.theme-morning-mist .home-hero-card,
body.theme-light .home-hero-card,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card {
  background: linear-gradient(135deg, #A9E0F1 0%, #b8e7f5 55%, #cff1fa 100%) !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
  box-shadow: 0 12px 32px -4px rgba(32, 70, 84, 0.14), 0 2px 6px -1px rgba(32, 70, 84, 0.06) !important;
}

body.theme-morning-mist .home-hero-card .hero-title,
body.theme-light .home-hero-card .hero-title,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .hero-title {
  color: #102a36 !important;
}

body.theme-morning-mist .home-hero-card .hero-sub,
body.theme-light .home-hero-card .hero-sub,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .hero-sub {
  color: #173e4f !important;
  font-weight: 500 !important;
}

body.theme-morning-mist .home-hero-card .hero-badge,
body.theme-light .home-hero-card .hero-badge,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .hero-badge {
  background-color: #204654 !important;
  color: #CAFFA6 !important;
  border-color: #204654 !important;
}

body.theme-morning-mist .home-hero-card .btn-primary,
body.theme-light .home-hero-card .btn-primary,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .btn-primary {
  background-color: #204654 !important;
  color: #F7F9E1 !important;
  border: 1px solid #204654 !important;
}

body.theme-morning-mist .home-hero-card .btn-secondary,
body.theme-light .home-hero-card .btn-secondary,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .btn-secondary {
  background-color: rgba(32, 70, 84, 0.12) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.38) !important;
  font-weight: 700 !important;
}

body.theme-morning-mist .home-hero-card .btn-secondary:hover,
body.theme-light .home-hero-card .btn-secondary:hover,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .btn-secondary:hover {
  background-color: rgba(32, 70, 84, 0.22) !important;
  color: #0b222d !important;
}

body.theme-morning-mist .home-hero-card .btn-outline-hero,
body.theme-light .home-hero-card .btn-outline-hero,
body:not(.theme-teal-waters):not(.theme-dark) .home-hero-card .btn-outline-hero {
  background-color: rgba(255, 255, 255, 0.75) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.38) !important;
  font-weight: 700 !important;
}

/* Light Theme Vector Research Network Artwork & Layered Editorial Cards */
body.theme-morning-mist .network-orbit,
body.theme-light .network-orbit,
body:not(.theme-teal-waters):not(.theme-dark) .network-orbit {
  stroke: rgba(32, 70, 84, 0.16) !important;
}

body.theme-morning-mist .network-path,
body.theme-light .network-path,
body:not(.theme-teal-waters):not(.theme-dark) .network-path {
  stroke: rgba(32, 70, 84, 0.28) !important;
}

body.theme-morning-mist .node-halo,
body.theme-light .node-halo,
body:not(.theme-teal-waters):not(.theme-dark) .node-halo {
  fill: rgba(32, 70, 84, 0.08) !important;
}

body.theme-morning-mist .node-core,
body.theme-light .node-core,
body:not(.theme-teal-waters):not(.theme-dark) .node-core {
  fill: #bce9f6 !important;
  stroke: rgba(32, 70, 84, 0.5) !important;
}

body.theme-morning-mist .node-orbit,
body.theme-light .node-orbit,
body:not(.theme-teal-waters):not(.theme-dark) .node-orbit {
  stroke: rgba(32, 70, 84, 0.3) !important;
}

body.theme-morning-mist .center-pulse-ring,
body.theme-light .center-pulse-ring,
body:not(.theme-teal-waters):not(.theme-dark) .center-pulse-ring {
  stroke: rgba(32, 70, 84, 0.24) !important;
}

body.theme-morning-mist .center-outer-ring,
body.theme-light .center-outer-ring,
body:not(.theme-teal-waters):not(.theme-dark) .center-outer-ring {
  fill: rgba(255, 255, 255, 0.65) !important;
  stroke: rgba(32, 70, 84, 0.35) !important;
}

body.theme-morning-mist .center-core-bg,
body.theme-light .center-core-bg,
body:not(.theme-teal-waters):not(.theme-dark) .center-core-bg {
  fill: #204654 !important;
  stroke: #204654 !important;
}

body.theme-morning-mist .center-sr-text,
body.theme-light .center-sr-text,
body:not(.theme-teal-waters):not(.theme-dark) .center-sr-text {
  fill: #CAFFA6 !important;
}

/* Light Theme Floating Cards: Crisp Editorial Layering */
body.theme-morning-mist .hero-float-card,
body.theme-light .hero-float-card,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(32, 70, 84, 0.22) !important;
  box-shadow: 0 8px 22px -4px rgba(32, 70, 84, 0.13), 0 2px 6px -1px rgba(32, 70, 84, 0.06) !important;
}

body.theme-morning-mist .hero-float-card:hover,
body.theme-light .hero-float-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card:hover {
  background: #fbfdfc !important;
  border-color: #204654 !important;
  box-shadow: 0 12px 28px -4px rgba(32, 70, 84, 0.2), 0 4px 10px -2px rgba(32, 70, 84, 0.08) !important;
}

body.theme-morning-mist .hero-float-card .hfc-avatar-icon,
body.theme-light .hero-float-card .hfc-avatar-icon,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-avatar-icon {
  background: #204654 !important;
  color: #A9E0F1 !important;
  border-color: #204654 !important;
}

body.theme-morning-mist .hero-float-card .hfc-avatar-icon.hfc-icon-award,
body.theme-light .hero-float-card .hfc-avatar-icon.hfc-icon-award,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-avatar-icon.hfc-icon-award {
  background: #204654 !important;
  color: #CAFFA6 !important;
  border-color: #204654 !important;
}

body.theme-morning-mist .hero-float-card .hfc-title,
body.theme-light .hero-float-card .hfc-title,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-title {
  color: #102a36 !important;
  font-weight: 700 !important;
}

body.theme-morning-mist .hero-float-card .hfc-sub,
body.theme-light .hero-float-card .hfc-sub,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-sub {
  color: #2c5565 !important;
  font-weight: 500 !important;
}

body.theme-morning-mist .hero-float-card .hfc-status-pill,
body.theme-light .hero-float-card .hfc-status-pill,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-status-pill {
  background: #204654 !important;
  color: #CAFFA6 !important;
  border-color: #204654 !important;
}

body.theme-morning-mist .hero-float-card .hfc-tag,
body.theme-light .hero-float-card .hfc-tag,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-tag {
  background: rgba(32, 70, 84, 0.08) !important;
  color: #1a4150 !important;
  border-color: rgba(32, 70, 84, 0.22) !important;
}

body.theme-morning-mist .hero-float-card .hfc-tag.hfc-tag-fund,
body.theme-light .hero-float-card .hfc-tag.hfc-tag-fund,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-tag.hfc-tag-fund {
  background: #204654 !important;
  color: #CAFFA6 !important;
  border-color: #204654 !important;
}

body.theme-morning-mist .hero-float-card .hfc-link-action,
body.theme-light .hero-float-card .hfc-link-action,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-link-action {
  color: #204654 !important;
  font-weight: 800 !important;
}

body.theme-morning-mist .hero-float-card .hfc-score-number,
body.theme-light .hero-float-card .hfc-score-number,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-score-number {
  color: #204654 !important;
}

body.theme-morning-mist .hero-float-card .hfc-score-label,
body.theme-light .hero-float-card .hfc-score-label,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-score-label {
  color: #102a36 !important;
}

body.theme-morning-mist .hero-float-card .hfc-score-chips,
body.theme-light .hero-float-card .hfc-score-chips,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-score-chips {
  color: #2c5565 !important;
}

body.theme-morning-mist .hero-float-card .hfc-inbox-guarantee,
body.theme-light .hero-float-card .hfc-inbox-guarantee,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-inbox-guarantee {
  color: #173e4f !important;
  font-weight: 600 !important;
}

body.theme-morning-mist .hero-float-card .hfc-inbox-guarantee i,
body.theme-light .hero-float-card .hfc-inbox-guarantee i,
body:not(.theme-teal-waters):not(.theme-dark) .hero-float-card .hfc-inbox-guarantee i {
  color: #204654 !important;
}

body.theme-morning-mist .metric-card,
body.theme-light .metric-card,
body:not(.theme-teal-waters):not(.theme-dark) .metric-card {
  background: #A9E0F1 !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
  box-shadow: 0 4px 14px rgba(32, 70, 84, 0.10) !important;
}

body.theme-morning-mist .metric-card:hover,
body.theme-light .metric-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .metric-card:hover {
  background: #bce9f6 !important;
  border-color: #204654 !important;
  box-shadow: 0 6px 18px rgba(32, 70, 84, 0.18) !important;
}

body.theme-morning-mist .metric-card .metric-icon,
body.theme-light .metric-card .metric-icon,
body:not(.theme-teal-waters):not(.theme-dark) .metric-card .metric-icon {
  background-color: #204654 !important;
  color: #A9E0F1 !important;
}

body.theme-morning-mist .metric-card .metric-number,
body.theme-light .metric-card .metric-number,
body:not(.theme-teal-waters):not(.theme-dark) .metric-card .metric-number {
  color: #102a36 !important;
  font-weight: 800 !important;
}

body.theme-morning-mist .metric-card .metric-label,
body.theme-light .metric-card .metric-label,
body:not(.theme-teal-waters):not(.theme-dark) .metric-card .metric-label {
  color: #1b4455 !important;
  font-weight: 600 !important;
}

body.theme-morning-mist .launch-card,
body.theme-light .launch-card,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card {
  background: #A9E0F1 !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
  box-shadow: 0 4px 16px rgba(32, 70, 84, 0.10) !important;
}

body.theme-morning-mist .launch-card:hover,
body.theme-light .launch-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card:hover {
  background: #bce9f6 !important;
  border-color: #204654 !important;
  box-shadow: 0 8px 22px rgba(32, 70, 84, 0.18) !important;
}

body.theme-morning-mist .launch-card .launch-icon,
body.theme-light .launch-card .launch-icon,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card .launch-icon {
  background-color: #204654 !important;
  color: #A9E0F1 !important;
}

body.theme-morning-mist .launch-card .launch-badge,
body.theme-light .launch-card .launch-badge,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card .launch-badge {
  background-color: rgba(32, 70, 84, 0.14) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.32) !important;
  font-weight: 800 !important;
}

body.theme-morning-mist .launch-card h3,
body.theme-light .launch-card h3,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card h3 {
  color: #102a36 !important;
  font-weight: 800 !important;
}

body.theme-morning-mist .launch-card p,
body.theme-light .launch-card p,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card p {
  color: #1b4455 !important;
  font-weight: 500 !important;
}

body.theme-morning-mist .launch-card .launch-link,
body.theme-light .launch-card .launch-link,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card .launch-link {
  color: #102a36 !important;
  font-weight: 800 !important;
}

body.theme-morning-mist .launch-card:hover .launch-link,
body.theme-light .launch-card:hover .launch-link,
body:not(.theme-teal-waters):not(.theme-dark) .launch-card:hover .launch-link {
  color: #004d66 !important;
}

.home-guide-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 32px;
}

body.theme-morning-mist .home-guide-card,
body.theme-light .home-guide-card,
body:not(.theme-teal-waters):not(.theme-dark) .home-guide-card {
  background: #A9E0F1 !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
  box-shadow: 0 4px 16px rgba(32, 70, 84, 0.10) !important;
}

body.theme-morning-mist .home-guide-card h3,
body.theme-light .home-guide-card h3,
body:not(.theme-teal-waters):not(.theme-dark) .home-guide-card h3 {
  color: #102a36 !important;
}

body.theme-morning-mist .home-guide-card .guide-step h4,
body.theme-light .home-guide-card .guide-step h4,
body:not(.theme-teal-waters):not(.theme-dark) .home-guide-card .guide-step h4 {
  color: #102a36 !important;
  font-weight: 700 !important;
}

body.theme-morning-mist .home-guide-card .guide-step p,
body.theme-light .home-guide-card .guide-step p,
body:not(.theme-teal-waters):not(.theme-dark) .home-guide-card .guide-step p {
  color: #204654 !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
 * Balanced Glacial Sky Card Styling (Light Theme)
 * Soft, balanced #A9E0F1 subtle gradient replacing flat stark white boxes
 * -------------------------------------------------------------------------- */
body.theme-morning-mist .prof-card,
body.theme-light .prof-card,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card,
body.theme-morning-mist .fellowship-card,
body.theme-light .fellowship-card,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card,
body.theme-morning-mist .opp-card,
body.theme-light .opp-card,
body:not(.theme-teal-waters):not(.theme-dark) .opp-card,
body.theme-morning-mist .match-card,
body.theme-light .match-card,
body:not(.theme-teal-waters):not(.theme-dark) .match-card,
body.theme-morning-mist .expanded-pub-card,
body.theme-light .expanded-pub-card,
body:not(.theme-teal-waters):not(.theme-dark) .expanded-pub-card,
body.theme-morning-mist .prof-card-expanded-hero,
body.theme-light .prof-card-expanded-hero,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card-expanded-hero {
  background: linear-gradient(145deg, #A9E0F1 0%, #bdeaf7 55%, #cff1fa 100%) !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
  box-shadow: 0 4px 16px rgba(32, 70, 84, 0.08), 0 1px 3px rgba(32, 70, 84, 0.04) !important;
}

body.theme-morning-mist .prof-card:hover,
body.theme-light .prof-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card:hover,
body.theme-morning-mist .fellowship-card:hover,
body.theme-light .fellowship-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card:hover,
body.theme-morning-mist .opp-card:hover,
body.theme-light .opp-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .opp-card:hover,
body.theme-morning-mist .match-card:hover,
body.theme-light .match-card:hover,
body:not(.theme-teal-waters):not(.theme-dark) .match-card:hover {
  background: linear-gradient(145deg, #b9e8f6 0%, #c9eff8 100%) !important;
  border-color: #204654 !important;
  box-shadow: 0 8px 24px rgba(32, 70, 84, 0.16) !important;
  transform: translateY(-2px);
}

body.theme-morning-mist .prof-card .prof-name,
body.theme-light .prof-card .prof-name,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .prof-name,
body.theme-morning-mist .prof-card .prof-name.clickable-name,
body.theme-light .prof-card .prof-name.clickable-name,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .prof-name.clickable-name,
body.theme-morning-mist .fellowship-card h3,
body.theme-morning-mist .fellowship-card h4,
body.theme-light .fellowship-card h3,
body.theme-light .fellowship-card h4,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card h3,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card h4,
body.theme-morning-mist .match-card h3,
body.theme-light .match-card h3,
body:not(.theme-teal-waters):not(.theme-dark) .match-card h3 {
  color: #102a36 !important;
}

body.theme-morning-mist .prof-card .prof-univ,
body.theme-light .prof-card .prof-univ,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .prof-univ,
body.theme-morning-mist .fellowship-card p,
body.theme-morning-mist .fellowship-card div,
body.theme-light .fellowship-card p,
body.theme-light .fellowship-card div,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card p,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card div,
body.theme-morning-mist .match-card p,
body.theme-light .match-card p,
body:not(.theme-teal-waters):not(.theme-dark) .match-card p {
  color: #173e4f !important;
  font-weight: 500 !important;
}

body.theme-morning-mist .prof-card .pub-item,
body.theme-light .prof-card .pub-item,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .pub-item {
  color: #143544 !important;
}

body.theme-morning-mist .prof-card .badge-info,
body.theme-light .prof-card .badge-info,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .badge-info {
  background: rgba(32, 70, 84, 0.12) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.28) !important;
}

body.theme-morning-mist .prof-card .badge-tier,
body.theme-light .prof-card .badge-tier,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .badge-tier,
body.theme-morning-mist .fellowship-card .badge,
body.theme-light .fellowship-card .badge,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card .badge {
  background: rgba(32, 70, 84, 0.10) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.25) !important;
}

body.theme-morning-mist .prof-card .btn-secondary,
body.theme-light .prof-card .btn-secondary,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .btn-secondary,
body.theme-morning-mist .fellowship-card .btn-secondary,
body.theme-light .fellowship-card .btn-secondary,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card .btn-secondary {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #102a36 !important;
  border: 1px solid rgba(32, 70, 84, 0.35) !important;
  font-weight: 700 !important;
}

body.theme-morning-mist .prof-card .btn-secondary:hover,
body.theme-light .prof-card .btn-secondary:hover,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .btn-secondary:hover,
body.theme-morning-mist .fellowship-card .btn-secondary:hover,
body.theme-light .fellowship-card .btn-secondary:hover,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0b222d !important;
}

body.theme-morning-mist .prof-card .btn-primary,
body.theme-light .prof-card .btn-primary,
body:not(.theme-teal-waters):not(.theme-dark) .prof-card .btn-primary,
body.theme-morning-mist .fellowship-card .btn-primary,
body.theme-light .fellowship-card .btn-primary,
body:not(.theme-teal-waters):not(.theme-dark) .fellowship-card .btn-primary {
  background: #204654 !important;
  color: #F7F9E1 !important;
  border: 1px solid #204654 !important;
}

/* Minimalist Aesthetic Research Logos */
.research-brand-logo {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--brand-icon-color, #CAFFA6);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  transition: transform 0.25s ease;
}

.brand:hover .research-brand-logo {
  transform: rotate(18deg) scale(1.05);
}

.research-badge-logo {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  margin-right: 6px;
}

/* Premium Lock Badge & Banner */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  margin-left: 6px;
  vertical-align: middle;
}

.premium-lock-banner {
  background: linear-gradient(135deg, rgba(32, 70, 84, 0.92), rgba(20, 48, 58, 0.96));
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.premium-lock-banner h3 {
  margin: 0 0 6px 0;
  color: #FFD700;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-lock-banner p {
  margin: 0;
  color: #F7F9E1;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 720px;
}

.home-guide-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-step {
  position: relative;
  padding-left: 44px;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-icon-bg);
  color: var(--brand-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.guide-step h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
 * Prominent Search Bar (Above Filters in Directory)
 * -------------------------------------------------------------------------- */
.directory-prominent-search-container {
  margin-bottom: 16px;
  width: 100%;
}

.prominent-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.prominent-search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(202, 255, 166, 0.28), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.prominent-search-icon {
  font-size: 18px;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.prominent-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 15px !important;
  padding: 10px 0 !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.prominent-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.btn-unified-oa {
  margin-left: 8px;
  white-space: nowrap;
  font-size: 13px !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
 * Email Studio Live Search & Autocomplete
 * -------------------------------------------------------------------------- */
.studio-search-wrapper {
  position: relative;
  width: 100%;
}

.studio-input-box {
  display: flex;
  align-items: center;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 4px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-input-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(202, 255, 166, 0.25);
}

.studio-input-icon {
  color: var(--text-muted);
  margin-right: 10px;
  font-size: 14px;
}

.studio-input-box input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  outline: none !important;
  padding: 8px 0 !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
}

.studio-autocomplete-popup {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
}

.studio-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(169, 224, 241, 0.08);
  transition: background-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studio-autocomplete-item:last-child {
  border-bottom: none;
}

.studio-autocomplete-item:hover,
.studio-autocomplete-item.highlighted {
  background-color: var(--bg-card-hover);
}

.studio-item-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}

.studio-item-sub {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.selected-prof-card {
  background: var(--bg-card);
  border: 1.5px solid var(--primary-color);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.25s ease;
}

.selected-prof-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-prof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(202, 255, 166, 0.18);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.selected-prof-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.selected-prof-details {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
 * Deliverability Plain-English & Remediation Cards
 * -------------------------------------------------------------------------- */
.deliverability-human-card {
  margin-top: 4px;
}

.human-fix-pill {
  border-left: 3px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.12);
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.remediation-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.remediation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.remediation-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.remediation-badge-step {
  display: inline-block;
  background: var(--primary-color);
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.btn-clear-search:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
 * Pixel-Art Aesthetic Footer (Restored with Light & Dark Contrast)
 * -------------------------------------------------------------------------- */
.app-pixel-footer,
.subtle-footer {
  margin-top: auto;
  background-color: #12242c;
  background-image: 
    radial-gradient(#1b3d4a 15%, transparent 16%),
    radial-gradient(#16323c 15%, transparent 16%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  border-top: 1px solid #1e4554;
  padding: 22px 24px 18px 24px;
  font-family: 'Courier New', Courier, monospace, var(--font-sans);
}

.pixel-footer-inner,
.subtle-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pixel-brand-tag,
.subtle-copyright {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a9e0f1;
  text-transform: uppercase;
}

.pixel-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtle-legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pixel-link {
  color: #f7f9e1;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  padding: 5px 10px !important;
  border-radius: 4px;
  transition: all 0.2s ease;
  background-color: rgba(22, 50, 60, 0.75) !important;
  border: 1px solid #234d5d !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.pixel-link:hover {
  color: #caffa6 !important;
  border-color: #caffa6 !important;
  background-color: rgba(202, 255, 166, 0.15) !important;
}

/* Subtle, Low-Contrast, Text-Only Terms & Privacy Links (Keeps Eye Focus Away) */
.subtle-legal-link {
  color: rgba(247, 249, 225, 0.38) !important;
  text-decoration: none !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  padding: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0.55 !important;
  cursor: pointer;
  display: inline !important;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.subtle-legal-link:hover {
  opacity: 0.85 !important;
  color: #caffa6 !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  text-decoration: underline !important;
}

.pixel-sep {
  color: #4a7587;
  font-weight: bold;
}

.subtle-sep {
  color: rgba(120, 160, 175, 0.3) !important;
  font-size: 10px !important;
}

/* Light Theme Pixel-Grid Pattern & AAA Contrast */
body.theme-morning-mist .app-pixel-footer,
body.theme-light .app-pixel-footer,
body:not(.theme-teal-waters):not(.theme-dark) .app-pixel-footer,
body.theme-morning-mist .subtle-footer,
body.theme-light .subtle-footer,
body:not(.theme-teal-waters):not(.theme-dark) .subtle-footer {
  background-color: #EBF6F9 !important;
  background-image: 
    radial-gradient(#bce4ef 18%, transparent 19%),
    radial-gradient(#d4eff7 18%, transparent 19%) !important;
  background-size: 8px 8px !important;
  background-position: 0 0, 4px 4px !important;
  border-top: 1px solid rgba(32, 70, 84, 0.28) !important;
}

body.theme-morning-mist .subtle-copyright,
body.theme-light .subtle-copyright,
body:not(.theme-teal-waters):not(.theme-dark) .subtle-copyright,
body.theme-morning-mist .pixel-brand-tag,
body.theme-light .pixel-brand-tag,
body:not(.theme-teal-waters):not(.theme-dark) .pixel-brand-tag {
  color: #102a36 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

body.theme-morning-mist .subtle-legal-link,
body.theme-light .subtle-legal-link,
body:not(.theme-teal-waters):not(.theme-dark) .subtle-legal-link {
  color: rgba(32, 70, 84, 0.45) !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  font-size: 10.5px !important;
  padding: 0 !important;
  opacity: 0.6 !important;
  text-decoration: none !important;
}

body.theme-morning-mist .pixel-link,
body.theme-light .pixel-link,
body:not(.theme-teal-waters):not(.theme-dark) .pixel-link {
  color: #102a36 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(32, 70, 84, 0.35) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

body.theme-morning-mist .subtle-legal-link:hover,
body.theme-light .subtle-legal-link:hover,
body:not(.theme-teal-waters):not(.theme-dark) .subtle-legal-link:hover {
  color: #102a36 !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  opacity: 0.9 !important;
  text-decoration: underline !important;
}

body.theme-morning-mist .pixel-link:hover,
body.theme-light .pixel-link:hover,
body:not(.theme-teal-waters):not(.theme-dark) .pixel-link:hover {
  color: #007799 !important;
  background-color: #FFFFFF !important;
  border-color: #007799 !important;
  opacity: 1 !important;
}

body.theme-morning-mist .subtle-sep,
body.theme-light .subtle-sep,
body:not(.theme-teal-waters):not(.theme-dark) .subtle-sep,
body.theme-morning-mist .pixel-sep,
body.theme-light .pixel-sep,
body:not(.theme-teal-waters):not(.theme-dark) .pixel-sep {
  color: #204654 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

/* Dark Theme Pixel-Grid Pattern & Contrast */
body.theme-teal-waters .app-pixel-footer,
body.theme-dark .app-pixel-footer,
body.theme-teal-waters .subtle-footer,
body.theme-dark .subtle-footer {
  background-color: #12242c !important;
  background-image: 
    radial-gradient(#1b3d4a 15%, transparent 16%),
    radial-gradient(#16323c 15%, transparent 16%) !important;
  background-size: 8px 8px !important;
  background-position: 0 0, 4px 4px !important;
  border-top: 1px solid #1e4554 !important;
}

body.theme-teal-waters .subtle-copyright,
body.theme-dark .subtle-copyright,
body.theme-teal-waters .pixel-brand-tag,
body.theme-dark .pixel-brand-tag {
  color: #a9e0f1 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

body.theme-teal-waters .subtle-legal-link,
body.theme-dark .subtle-legal-link {
  color: rgba(247, 249, 225, 0.35) !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  font-size: 10.5px !important;
  padding: 0 !important;
  opacity: 0.55 !important;
  text-decoration: none !important;
}

body.theme-teal-waters .pixel-link,
body.theme-dark .pixel-link {
  color: #f7f9e1 !important;
  background-color: rgba(22, 50, 60, 0.75) !important;
  border: 1px solid #234d5d !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

body.theme-teal-waters .subtle-legal-link:hover,
body.theme-dark .subtle-legal-link:hover {
  color: #caffa6 !important;
  background-color: transparent !important;
  background: none !important;
  border: none !important;
  opacity: 0.85 !important;
  text-decoration: underline !important;
}

body.theme-teal-waters .pixel-link:hover,
body.theme-dark .pixel-link:hover {
  color: #caffa6 !important;
  border-color: #caffa6 !important;
  background-color: rgba(202, 255, 166, 0.15) !important;
  opacity: 1 !important;
}
  opacity: 1 !important;
}

body.theme-teal-waters .subtle-sep,
body.theme-dark .subtle-sep,
body.theme-teal-waters .pixel-sep,
body.theme-dark .pixel-sep {
  color: #7ba8b8 !important;
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
 * Direct Google Sign-In Chooser Card Styles
 * -------------------------------------------------------------------------- */
.google-direct-card {
  max-width: 440px;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.google-account-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.google-account-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-account-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.google-account-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-account-email {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-pill-badge {
  background: rgba(66, 133, 244, 0.18);
  color: #4285F4;
  border: 1px solid rgba(66, 133, 244, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
 * Smooth Scroll-Driven Reveal Animations
 * -------------------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
 * Smooth Site-Wide Animations
 * -------------------------------------------------------------------------- */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.tab-pane.active {
  display: block;
  animation: tabPaneFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabPaneFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cards-grid .card {
  animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cards-grid .card:nth-child(1) { animation-delay: 0.03s; }
.cards-grid .card:nth-child(2) { animation-delay: 0.06s; }
.cards-grid .card:nth-child(3) { animation-delay: 0.09s; }
.cards-grid .card:nth-child(4) { animation-delay: 0.12s; }
.cards-grid .card:nth-child(5) { animation-delay: 0.15s; }
.cards-grid .card:nth-child(6) { animation-delay: 0.18s; }
.cards-grid .card:nth-child(7) { animation-delay: 0.21s; }
.cards-grid .card:nth-child(8) { animation-delay: 0.24s; }

.home-launchpad-grid .launch-card:nth-child(1) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both; }
.home-launchpad-grid .launch-card:nth-child(2) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.home-launchpad-grid .launch-card:nth-child(3) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.home-launchpad-grid .launch-card:nth-child(4) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }
.home-launchpad-grid .launch-card:nth-child(5) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
.home-launchpad-grid .launch-card:nth-child(6) { animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }

.btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.metric-card,
.launch-card,
.prof-card,
.hero-float-card,
.home-guide-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.btn:active,
.launch-card:active {
  transform: scale(0.985);
}

@keyframes modalScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-card {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge-verified {
  background-color: rgba(169, 224, 241, 0.22);
  color: var(--text-primary);
  border: 1px solid rgba(169, 224, 241, 0.45);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Dual Attachments Panel (CV & Academic Transcript Separately) --- */
.attachments-panel {
  transition: border-color 0.2s ease, background 0.2s ease;
}
.attachment-row {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.attachment-row:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.attachment-row input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   New Brand Logo Showcase & Theme Responsive Switching
   ========================================================================== */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-icon-bg, rgba(32, 70, 84, 0.45));
  border: 1px solid var(--border-color);
  padding: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.brand-logo-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Default Dark Theme shows Dark Logo */
.logo-dark-theme {
  display: block !important;
}
.logo-light-theme {
  display: none !important;
}

/* Light Theme permutations show Light Logo */
body.theme-morning-mist .logo-dark-theme,
body.theme-light .logo-dark-theme,
body.theme-glacial-sky .logo-dark-theme,
body.theme-spring-meadow .logo-dark-theme {
  display: none !important;
}
body.theme-morning-mist .logo-light-theme,
body.theme-light .logo-light-theme,
body.theme-glacial-sky .logo-light-theme,
body.theme-spring-meadow .logo-light-theme {
  display: block !important;
}

/* Hero Badge Mini Logo */
.hero-badge .logo-dark-theme {
  display: inline-block !important;
}
.hero-badge .logo-light-theme {
  display: none !important;
}
body.theme-morning-mist .hero-badge .logo-dark-theme,
body.theme-light .hero-badge .logo-dark-theme,
body.theme-glacial-sky .hero-badge .logo-dark-theme,
body.theme-spring-meadow .hero-badge .logo-dark-theme {
  display: none !important;
}
body.theme-morning-mist .hero-badge .logo-light-theme,
body.theme-light .hero-badge .logo-light-theme,
body.theme-glacial-sky .hero-badge .logo-light-theme,
body.theme-spring-meadow .hero-badge .logo-light-theme {
  display: inline-block !important;
}

/* Hero Section Logo Showcase */
.hero-brand-showcase {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-brand-logo-img {
  height: 90px;
  max-width: 290px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

/* Admin Brand Logo */
.admin-brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.admin-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal Auth Header Brand Logo */
.auth-brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
}
.auth-brand-logo-img {
  height: 64px;
  max-width: 220px;
  object-fit: contain;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Responsive Adaptations for Two-Column Hero & Editorial Research Network
 * -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .home-hero-card {
    grid-template-columns: 1fr;
    padding: 36px 30px;
    gap: 32px;
  }
  .hero-content-col .hero-brand-showcase {
    justify-content: flex-start;
  }
  .hero-visual-col {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .home-hero-card {
    padding: 24px 18px;
    gap: 24px;
    border-radius: 14px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.22;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.55;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-network-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-network-svg {
    position: relative;
    height: 180px;
    width: 100%;
    margin-bottom: 4px;
  }
  .hero-float-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
 * Accessibility: Respect prefers-reduced-motion
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .network-path {
    stroke-dashoffset: 0 !important;
  }
  .hero-title,
  .hero-sub,
  .hero-cta-row,
  .network-node,
  .hero-float-card,
  .center-pulse-ring,
  .scroll-reveal,
  .scroll-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* ==========================================================================
 * UniProfs Structural Architecture: Fixed Left Sidebar & Main Viewport Pane
 * ========================================================================== */

.app-container.app-shell {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: transparent !important;
}

/* Pinned Left Sidebar */
.app-sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background: rgba(16, 36, 44, 0.94);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  backdrop-filter: blur(14px);
  padding: 16px 14px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px 6px;
  border-bottom: 1px solid rgba(169, 224, 241, 0.12);
}

.sidebar-brand .brand-logo-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand .brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sidebar-brand .brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.01em;
}

.sidebar-brand .brand-subtitle {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--glacial-sky);
  display: block;
}

/* Sidebar Nav Tab Buttons */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.sidebar-tab i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.sidebar-tab:hover {
  background: rgba(169, 224, 241, 0.08);
  color: var(--text-primary);
}

.sidebar-tab:hover i {
  color: var(--glacial-sky);
}

.sidebar-tab.active {
  background: #FFFFFF !important;
  color: #16323c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sidebar-tab.active i {
  color: #16323c !important;
}

/* Sidebar Bottom Actions */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(169, 224, 241, 0.12);
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-action-btn:hover {
  background: rgba(169, 224, 241, 0.08);
  color: var(--text-primary);
}

.sidebar-action-btn i {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.btn-sidebar-upgrade {
  color: #FFD700 !important;
  font-weight: 600;
}

.btn-sidebar-upgrade i {
  color: #FFD700 !important;
}

/* User Card in Bottom Sidebar */
.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(22, 50, 60, 0.6);
  border: 1px solid rgba(169, 224, 241, 0.15);
  margin-top: 4px;
}

.sidebar-user-card .user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-waters), #2b5d6f);
  color: var(--spring-meadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(202, 255, 166, 0.3);
}

.sidebar-user-card .user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.sidebar-user-card .user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-card .user-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-sidebar-gear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-sidebar-gear:hover {
  color: var(--glacial-sky);
  background: rgba(169, 224, 241, 0.1);
}

/* Right Content Stage Viewport */
.app-main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Top Navigation Bar */
.top-nav.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 36, 44, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.topbar-page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  background: rgba(169, 224, 241, 0.08);
  border: 1px solid rgba(169, 224, 241, 0.18);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.topbar-icon-btn:hover {
  background: rgba(169, 224, 241, 0.2);
  color: var(--text-primary);
  border-color: var(--glacial-sky);
}

/* ==========================================================================
 * UniProfs Home Dashboard Styling (Screenshot 1)
 * ========================================================================== */

.home-uniprofs-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.uniprofs-welcome-banner h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.uniprofs-next-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 50, 60, 0.7);
  border: 1px solid rgba(169, 224, 241, 0.2);
  border-radius: 12px;
  padding: 18px 24px;
  gap: 16px;
}

.next-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--spring-meadow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.uniprofs-next-step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.uniprofs-next-step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.uniprofs-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.uniprofs-stat-card {
  background: rgba(22, 50, 60, 0.6);
  border: 1px solid rgba(169, 224, 241, 0.18);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uniprofs-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.uniprofs-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.uniprofs-stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.quota-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0;
}

.quota-bar-fill {
  height: 100%;
  background: var(--spring-meadow);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.uniprofs-bottom-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.uniprofs-half-card {
  background: rgba(22, 50, 60, 0.5);
  border: 1px solid rgba(169, 224, 241, 0.16);
  border-radius: 12px;
  padding: 18px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.half-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.half-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.btn-link-sm {
  background: rgba(169, 224, 241, 0.1);
  border: 1px solid rgba(169, 224, 241, 0.2);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-link-sm:hover {
  background: rgba(169, 224, 241, 0.2);
  color: var(--text-primary);
}

.half-card-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--text-muted);
}

.half-card-empty i {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.7;
}

.half-card-empty h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.half-card-empty p {
  font-size: 12px;
  margin: 0 0 4px 0;
  max-width: 280px;
}

/* Directory Subtabs */
.directory-top-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.dir-subtab {
  background: rgba(16, 36, 44, 0.75);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dir-subtab:hover {
  color: var(--text-primary);
  border-color: var(--glacial-sky);
}

.dir-subtab.active {
  background: #FFFFFF !important;
  color: #16323c !important;
  font-weight: 700;
  border-color: #FFFFFF;
}

/* ==========================================================================
 * UniProfs History View Styling (Screenshots 3 & 5)
 * ========================================================================== */

.history-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.history-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 36, 44, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  max-width: 360px;
}

.history-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  width: 100%;
  outline: none;
}

.history-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 36, 44, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px;
}

.history-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-pill:hover {
  color: var(--text-primary);
}

.history-pill.active {
  background: #FFFFFF !important;
  color: #16323c !important;
  font-weight: 700;
}

.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  gap: 10px;
  background: rgba(22, 50, 60, 0.4);
  border: 1px dashed rgba(169, 224, 241, 0.2);
  border-radius: 12px;
  padding: 30px;
}

.history-empty-state .empty-icon {
  font-size: 38px;
  color: var(--text-muted);
  opacity: 0.6;
}

.history-empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.history-empty-state p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 0 8px 0;
}

.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 50, 60, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.history-card:hover {
  border-color: rgba(169, 224, 241, 0.45);
}

.history-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.history-prof-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-subject-line {
  font-size: 13px;
  color: var(--text-secondary);
}

.history-meta-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* ==========================================================================
 * UniProfs Me View Styling (Screenshots 6, 7, 8, 9)
 * ========================================================================== */

.me-layout-container,
.settings-layout-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.me-subnav,
.settings-subnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(16, 36, 44, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
}

.me-nav-item,
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.me-nav-item:hover,
.settings-nav-item:hover {
  background: rgba(169, 224, 241, 0.08);
  color: var(--text-primary);
}

.me-nav-item.active,
.settings-nav-item.active {
  background: rgba(202, 255, 166, 0.16) !important;
  color: var(--spring-meadow) !important;
  font-weight: 700;
}

.me-content-stage,
.settings-content-stage {
  min-width: 0;
}

.me-subpane,
.settings-subpane {
  display: none;
}

.me-subpane.active,
.settings-subpane.active {
  display: block;
}

.card-pane {
  background: rgba(22, 50, 60, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}

.card-pane .section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.card-pane .section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.profile-strength-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.strength-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--spring-meadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--spring-meadow);
}

.strength-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.signature-preview-container {
  margin-top: 14px;
}

.signature-preview-box {
  background: rgba(10, 25, 32, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.doc-upload-dropzone {
  border: 2px dashed rgba(169, 224, 241, 0.3);
  background: rgba(16, 36, 44, 0.5);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-icon {
  font-size: 32px;
  color: var(--glacial-sky);
}

.dropzone-buttons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 36, 44, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  gap: 12px;
}

/* Plan & Usage Grid */
.plan-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.usage-stat-card {
  background: rgba(16, 36, 44, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-badge-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(202, 255, 166, 0.16);
  color: var(--spring-meadow);
  border: 1px solid rgba(202, 255, 166, 0.3);
}

.referral-input-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  max-width: 360px;
}

.palette-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.palette-swatches .swatch {
  flex: 1;
  min-width: 100px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.security-action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(16, 36, 44, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  gap: 14px;
}

.security-action-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--text-primary);
}

.security-action-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile responsive drawer */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    transition: left 0.25s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  }
  .app-sidebar.drawer-open {
    left: 0;
  }
  .sidebar-toggle-btn {
    display: inline-flex;
  }
  .me-layout-container,
  .settings-layout-container {
    grid-template-columns: 1fr;
  }
  .uniprofs-stats-row,
  .uniprofs-bottom-cards-row,
  .plan-usage-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
