/* ==========================================================================
   Rathinam Global University - Official Theme & Design System
   Inspired by https://rathinamglobal.edu.in/
   Typography: Sora + Outfit + Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

:root {
  /* Clean, Deep Obsidian Slate Canvas */
  --bg-main: #0B0F19;
  --bg-canvas: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-card: #111827;
  --bg-card-hover: #172238;
  --bg-glass: rgba(17, 24, 39, 0.88);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: #a855f7;
  --border-light: rgba(255, 255, 255, 0.05);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0B0F19;

  /* Rathinam Brand Accents - Clean Purple & Cyan Palette */
  --brand-cyan: #06B6D4;
  --brand-blue: #3B82F6;
  --brand-indigo: #6366F1;
  --brand-purple: #A855F7;
  --brand-emerald: #10B981;
  --brand-amber: #F59E0B;
  --brand-rose: #F43F5E;

  --primary: #9333EA;
  --primary-glow: rgba(147, 51, 234, 0.18);
  --primary-hover: #A855F7;

  /* Clean Minimalist Badges */
  --badge-bg-primary: rgba(168, 85, 247, 0.12);
  --badge-text-primary: #D8B4FE;
  --badge-bg-success: rgba(16, 185, 129, 0.12);
  --badge-text-success: #6EE7B7;
  --badge-bg-warning: rgba(245, 158, 11, 0.12);
  --badge-text-warning: #FCD34D;
  --badge-bg-info: rgba(6, 182, 212, 0.12);
  --badge-text-info: #67E8F9;
  --badge-bg-rose: rgba(244, 63, 94, 0.12);
  --badge-text-rose: #FDA4AF;

  /* Typography */
  --font-brand: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px var(--primary-glow);
}


/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Clean Soft Radial Mesh (No Watermark Image) */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    #0B0F19;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Official Rathinam Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

.brand-text h1 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-heading);
}

.badge-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.25));
  color: #e9d5ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.55);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color-focus);
  color: var(--text-primary);
}

.btn-icon-only {
  padding: 0.55rem;
  border-radius: var(--radius-md);
}

/* Main Container */
.main-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero & Search Section — Clean, Breathable, Modern */
.search-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.75rem 1.5rem 1.75rem;
  gap: 1.1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
}

/* Omnisearch Bar */
.search-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-box-wrapper:focus-within {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Quick Filter: Schools & Departments Bar */
.quick-filter-dropdowns-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.filter-dropdown-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.filter-dropdown-icon {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.quick-filter-select {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  transition: border-color 0.2s ease;
}

.quick-filter-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-filter-select:focus {
  border-color: var(--brand-purple);
}

.quick-filter-select option {
  background: #111827;
  color: #f8fafc;
  padding: 8px;
}

.search-icon {
  color: var(--brand-cyan);
  width: 22px;
  height: 22px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 500;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

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

/* ====================================================================
   UNIQUE STAT CATEGORY HUB & INTERACTIVE FILTER CARDS
   ==================================================================== */
.filter-pills-bar,
.stat-category-hub {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

/* -------------------------------------------------------------
   STAT CATEGORY HUB — Modern, Clean Minimalist Metric Cards
   ------------------------------------------------------------- */
.stat-hub-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.stat-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.stat-hub-card .stat-card-glow {
  display: none;
}

/* Card Header: Icon & Percentage Badge */
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.stat-icon-wrapper i, 
.stat-icon-wrapper svg {
  width: 17px;
  height: 17px;
}

.stat-card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}

/* Card Body: Number & Labels */
.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-card-number {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  font-family: inherit;
}

.stat-card-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card-sublabel {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Footer: Action Link & Active Indicator */
.stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}

.stat-card-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.stat-hub-card:hover .stat-card-action {
  color: var(--text-primary);
}

.stat-card-action i,
.stat-card-action svg {
  width: 12px;
  height: 12px;
}

.stat-active-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

/* -------------------------------------------------------------
   THEME ACCENTS FOR METRIC CARDS
   ------------------------------------------------------------- */
.stat-theme-purple .stat-icon-wrapper { color: #c084fc; background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); }
.stat-theme-cyan .stat-icon-wrapper { color: #38bdf8; background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.2); }
.stat-theme-emerald .stat-icon-wrapper { color: #34d399; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.stat-theme-amber .stat-icon-wrapper { color: #fbbf24; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.stat-theme-rose .stat-icon-wrapper { color: #f472b6; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }
.stat-theme-violet .stat-icon-wrapper { color: #a78bfa; background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }

/* Active Card State */
.stat-hub-card.active {
  background: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-hub-card.active .stat-card-action {
  color: var(--text-primary);
  font-weight: 600;
}

.stat-hub-card.active .stat-active-indicator {
  width: 7px;
  height: 7px;
  background: #a855f7;
}

.stat-hub-card.active.stat-theme-purple { border-color: #a855f7; }
.stat-hub-card.active.stat-theme-purple .stat-active-indicator { background: #a855f7; }

.stat-hub-card.active.stat-theme-cyan { border-color: #06b6d4; }
.stat-hub-card.active.stat-theme-cyan .stat-active-indicator { background: #06b6d4; }

.stat-hub-card.active.stat-theme-emerald { border-color: #10b981; }
.stat-hub-card.active.stat-theme-emerald .stat-active-indicator { background: #10b981; }

.stat-hub-card.active.stat-theme-amber { border-color: #f59e0b; }
.stat-hub-card.active.stat-theme-amber .stat-active-indicator { background: #f59e0b; }

.stat-hub-card.active.stat-theme-rose { border-color: #f43f5e; }
.stat-hub-card.active.stat-theme-rose .stat-active-indicator { background: #f43f5e; }

.stat-hub-card.active.stat-theme-violet { border-color: #8b5cf6; }
.stat-hub-card.active.stat-theme-violet .stat-active-indicator { background: #8b5cf6; }

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
  .filter-pills-bar,
  .stat-category-hub {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 680px) {
  .filter-pills-bar,
  .stat-category-hub {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .stat-hub-card {
    padding: 0.85rem 0.75rem 0.75rem;
  }
  .stat-card-number {
    font-size: 1.35rem;
  }
}

/* Results Status Bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-stats strong {
  color: var(--text-primary);
  font-weight: 600;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Students Grid (Cards Picker) */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.15rem;
  animation: fadeIn 0.25s ease;
}

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

.student-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 175px;
  box-shadow: var(--shadow-sm);
}

.student-card::before {
  display: none;
}

.student-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: #f8fafc;
  flex-shrink: 0;
  position: relative;
}

.card-meta {
  flex: 1;
  min-width: 0;
}

.student-name {
  font-family: var(--font-brand);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.student-reg-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-action-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-action-icon-btn:hover {
  background: rgba(217, 70, 239, 0.3);
  border-color: #d946ef;
  color: #ffffff;
  transform: scale(1.12);
}

.card-action-icon-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
  color: #25d366;
}

.highlight-match {
  background: rgba(217, 70, 239, 0.3);
  color: #f0abfc;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

/* ==========================================================================
   Full Student Profile View (12-Section Rich Card)
   ========================================================================== */
.profile-view {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeIn 0.3s ease;
}

.profile-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.profile-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at right, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #9333ea, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-brand);
  box-shadow: var(--shadow-md);
}

.hero-details {
  flex: 1;
  min-width: 260px;
}

.hero-details h2 {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.hero-reg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-cyan);
  background: var(--badge-bg-primary);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.hero-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.hero-quick-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* Profile Grid: 12 Sections */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.section-card::before {
  display: none;
}

.section-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

@media (max-width: 1024px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.section-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--brand-cyan);
}

/* Key-Value Fields Grid */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-card);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.field-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.field-value.not-provided {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.field-value.mono {
  font-family: var(--font-mono);
}

/* Progress bar for Marks */
.progress-container {
  margin-top: 0.5rem;
}

.progress-track {
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.3rem;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 840px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Analytics Modal Enhanced Styling */
#analytics-modal .modal-content {
  max-width: 1060px;
  width: 95vw;
}

.analytics-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.analytics-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.analytics-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
}

.analytics-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analytics-kpi-val {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.analytics-kpi-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.analytics-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Analytics Tab Bar */
.analytics-tab-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  overflow-x: auto;
}

.analytics-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.analytics-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.analytics-tab-btn.active {
  color: #ffffff;
  background: rgba(147, 51, 234, 0.22);
  border-color: rgba(217, 70, 239, 0.45);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

/* Tab Panels */
.analytics-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

.analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .analytics-two-col {
    grid-template-columns: 1fr;
  }
}

.analytics-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-sizing: border-box;
}

.analytics-panel-title {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.analytics-bar-item {
  margin-bottom: 0.85rem;
}

.analytics-bar-item:last-child {
  margin-bottom: 0;
}

.analytics-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.analytics-bar-name {
  color: var(--text-secondary);
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 72%;
}

.analytics-bar-val {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
}

.analytics-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blood Bank Grid */
.blood-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.75rem;
}

.blood-bank-card {
  background: rgba(244, 63, 94, 0.05);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.blood-bank-card:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.blood-bank-type {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fb7185;
  line-height: 1;
}

.blood-bank-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.35rem;
  line-height: 1;
}

.blood-bank-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Geographic Table */
.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.geo-table th {
  text-align: left;
  padding: 0.45rem 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.geo-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.geo-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header, .search-hero, .results-bar, .profile-top-nav, .ambient-bg, .btn, .kbd-shortcut {
    display: none !important;
  }
  .section-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 1rem !important;
  }
  .field-item {
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
  }
}

/* ==========================================================================
   Live Sync / Data Source Modal Styles
   ========================================================================== */

.sync-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.sync-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sync-tab:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); }
.sync-tab.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.sync-panel { display: flex; flex-direction: column; gap: 10px; }
.sync-panel.hidden { display: none; }

label.field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px;
}

.sync-input {
  width: 100%; padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.88rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.sync-input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.sync-input option { background: var(--bg-surface); color: var(--text-primary); }

.sync-hint {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
  padding: 8px 12px;
  background: rgba(6, 182, 212, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-cyan);
}
.sync-hint strong { color: var(--text-secondary); }

.sync-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.sync-status {
  min-height: 36px; font-size: 0.84rem;
  border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 4px;
  transition: all 0.3s ease;
}
.sync-status.success {
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399;
}
.sync-status.error {
  background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.3); color: #fb7185;
}
.sync-status.loading {
  background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.25); color: var(--brand-cyan);
}

.sync-dropzone {
  border: 2px dashed rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: rgba(147, 51, 234, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.sync-dropzone:hover, .sync-dropzone.dragover {
  border-color: #d946ef;
  background: rgba(147, 51, 234, 0.12);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.sync-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.sync-textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.active-source-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text-primary); margin-top: 12px;
}
.active-source-banner.hidden { display: none; }

.sync-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-emerald);
  display: inline-block; margin-left: 6px;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399; font-weight: 600;
  letter-spacing: 0.04em; vertical-align: middle; margin-left: 8px;
}

/* ==========================================================================
   Login Page & Authentication Screen Styles (Transparent Glassmorphism)
   ========================================================================== */

.login-viewport {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0B0F19;
  background-image: 
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 25, 0.92) 0%, rgba(11, 15, 25, 0.98) 100%),
    url('login_bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 2.5rem 3.5rem 1.5rem 3.5rem;
  overflow-y: auto;
  box-sizing: border-box;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.login-viewport.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Split-Screen Grid Layout */
.login-split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: auto;
  gap: 3.5rem;
  padding: 1rem 0;
}

/* Left Hero Column */
.login-hero-col {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Login Badge Pill & Stats Strip */
.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(217, 70, 239, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0abfc;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  width: fit-content;
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.login-hero-title {
  font-family: var(--font-brand);
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.login-hero-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 480px;
}

.login-stats-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 8, 32, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: fit-content;
}

.login-stat-item {
  display: flex;
  flex-direction: column;
}

.login-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-brand);
  line-height: 1.1;
}

.login-stat-lbl {
  font-size: 0.72rem;
  color: #c084fc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

.login-card-col {
  flex: 1;
  max-width: 440px;
  display: flex;
  justify-content: flex-end;
}

/* Quickfill Chip */
.login-quickfill-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px dashed rgba(217, 70, 239, 0.4);
  color: #e9d5ff;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: all 0.2s ease;
}

.login-quickfill-chip:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: #d946ef;
  color: #ffffff;
  transform: translateY(-1px);
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: color 0.2s;
}

.login-input-wrapper .login-clean-input {
  padding-left: 42px;
}

.login-input-wrapper:focus-within .login-field-icon {
  color: #d946ef;
}

.login-hero-title {
  font-family: var(--font-brand);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.login-hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.65;
  color: #ffffff;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  max-width: 480px;
  opacity: 0.95;
}

/* Right Glassmorphic Card Column */
.login-card-col {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 440px;
}

.login-white-card,
.login-glass-card {
  width: 100%;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  padding: 2.25rem 2rem 2rem;
  color: #ffffff;
  box-sizing: border-box;
  animation: loginCardSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* RGU Card Logo */
.login-card-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.login-card-logo-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Card Titles */
.login-card-title {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.login-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

/* Error Notification */
.login-error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Clean Form */
.login-clean-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.login-input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.login-clean-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.login-clean-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-clean-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.login-password-box {
  position: relative;
  display: flex;
  align-items: center;
}

.login-pwd-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.login-pwd-eye:hover {
  color: #ec4899;
}

/* Magenta / Purple Pill Button */
.login-magenta-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(90deg, #9333ea 0%, #db2777 100%);
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(219, 39, 119, 0.45), 0 0 25px rgba(147, 51, 234, 0.3);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.login-magenta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.6), 0 0 35px rgba(147, 51, 234, 0.45);
  background: linear-gradient(90deg, #a855f7 0%, #e11d48 100%);
}

.login-magenta-btn:active {
  transform: translateY(0);
}

/* Links */
.login-card-links {
  text-align: center;
  margin-top: 0.25rem;
}

.login-forgot-link {
  color: #f472b6;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s;
}

.login-forgot-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

/* Bottom Footer */
.login-bottom-footer {
  text-align: center;
  width: 100%;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 960px) {
  .login-viewport {
    padding: 1.5rem;
  }
  .login-split-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .login-hero-col {
    align-items: center;
  }
  .login-hero-title {
    font-size: 2.35rem;
  }
  .login-card-col {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-viewport {
    padding: 1rem;
  }
  .login-white-card,
  .login-glass-card {
    padding: 1.75rem 1.25rem;
  }
  .login-hero-title {
    font-size: 1.9rem;
  }
}

/* User Profile Badge & Logout Button in Header */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.user-avatar-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #ffffff;
}

.btn-logout {
  color: #fb7185 !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #f43f5e !important;
}
