/* ==========================================================================
   UNICORN VIRTUAL UNIVERSITY — LIVING DIGITAL CAMPUS DESIGN SYSTEM
   Google Material Design 3 Specification, PWA Ergonomics & Fixed App Shell Architecture
   ========================================================================== */

:root {
  /* MD3 Color Tokens */
  --md-sys-color-primary: #1a73e8;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d3e3fd;
  --md-sys-color-on-primary-container: #041e49;
  
  --md-sys-color-secondary: #00639b;
  --md-sys-color-secondary-container: #c2e7ff;
  --md-sys-color-on-secondary-container: #001d35;

  --md-sys-color-tertiary: #6b5778;
  --md-sys-color-tertiary-container: #f2daff;
  --md-sys-color-on-tertiary-container: #251431;

  --md-sys-color-surface: #f8fafd;
  --md-sys-color-surface-dim: #d8dadf;
  --md-sys-color-surface-bright: #f8fafd;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f3f4f8;
  --md-sys-color-surface-container: #edeeef;
  --md-sys-color-surface-container-high: #e7e8ec;
  --md-sys-color-surface-container-highest: #e1e2e6;

  --md-sys-color-on-surface: #191c20;
  --md-sys-color-on-surface-variant: #44474e;
  --md-sys-color-outline: #74777f;
  --md-sys-color-outline-variant: #c4c7cf;

  /* Typography */
  --font-brand: 'Google Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-main: 'Plus Jakarta Sans', 'Google Sans', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-card: 0 1px 3px rgba(60,64,67,0.08), 0 4px 8px 3px rgba(60,64,67,0.04);
  --shadow-float: 0 8px 24px rgba(26,115,232,0.18);

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --border-light: #e2e8f0;
}

/* Global Reset & Fixed App Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (Fixed at Top)
   ========================================================================== */
.top-navbar {
  height: 64px;
  min-height: 64px;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: #f1f5f9;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.brand-text h1 {
  font-family: var(--font-brand);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header Omnisearch */
.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 32px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #0f172a;
  padding-left: 8px;
}

.search-shortcut-badge {
  font-family: var(--font-code);
  font-size: 0.72rem;
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  position: relative;
  transition: var(--transition);
}

.action-icon-btn:hover {
  background: #f1f5f9;
  color: #1a73e8;
}

.action-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ea4335;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.user-profile-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.user-info-text {
  text-align: right;
}

.user-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #0f172a;
}

.user-role {
  font-size: 0.7rem;
  color: #64748b;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ==========================================================================
   2. APP CONTAINER & DUAL INDEPENDENT SCROLLING PANELS
   ========================================================================== */
.app-container {
  display: flex;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  width: 100%;
  overflow: hidden;
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.sidebar-drawer-open .sidebar-backdrop {
  display: block;
  opacity: 1;
}

/* Left Sidebar - Independent Smooth Scrollable Area */
.app-sidebar {
  width: 280px;
  min-width: 280px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid var(--border-light);
  padding: 20px 16px 48px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.sidebar-mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.mobile-drawer-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px 4px 12px;
}

.sidebar-menu-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-item .material-symbols-outlined {
  font-size: 20px;
  color: #64748b;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(4px);
}

.sidebar-nav-item:hover .material-symbols-outlined {
  color: #1a73e8;
  transform: scale(1.1);
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(26, 115, 232, 0.12) 0%, rgba(26, 115, 232, 0.03) 100%) !important;
  color: #1a73e8 !important;
  font-weight: 700;
  border-left: 3.5px solid #1a73e8;
  border-radius: 4px var(--radius-full) var(--radius-full) 4px;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
  animation: activeNavPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sidebar-nav-item.active .material-symbols-outlined {
  color: #1a73e8;
  font-variation-settings: 'FILL' 1;
  transform: scale(1.08);
}

@keyframes activeNavPulse {
  0% {
    transform: scale(0.96) translateX(0);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translateX(4px);
    opacity: 1;
  }
}

.sidebar-badge {
  background: #ea4335;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Sidebar Custom Widget Cards */
.sidebar-card-pi-coins {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
  border: 1px solid #fde047;
  border-radius: var(--radius-md);
  padding: 14px;
}

.pi-coins-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pi-coin-icon-circle {
  width: 34px;
  height: 34px;
  background: #ca8a04;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pi-coins-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #854d0e;
  letter-spacing: 0.05em;
}

.pi-coins-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #713f12;
}

.pi-coins-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(202, 138, 4, 0.3);
}

.pi-coins-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #854d0e;
  text-decoration: underline;
}

.sidebar-card-smart-pass {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.smart-pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.smart-pass-chip {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.smart-pass-validity {
  color: #94a3b8;
  font-size: 0.68rem;
}

.smart-pass-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.smart-pass-qr-preview {
  background: white;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}

.smart-pass-name {
  font-weight: 800;
  font-size: 0.88rem;
}

.smart-pass-id {
  font-family: var(--font-code);
  color: #60a5fa;
  font-size: 0.74rem;
  margin: 2px 0;
}

.smart-pass-house {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.btn-smart-pass-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-smart-pass-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-card-ai-faculty {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-faculty-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #1d4ed8;
  text-transform: uppercase;
}

.ai-faculty-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #1e3a8a;
  margin: 2px 0;
}

.ai-faculty-desc {
  font-size: 0.7rem;
  color: #475569;
  margin-bottom: 8px;
  max-width: 140px;
}

.btn-ai-consult {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
}

.ai-mascot-img {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   3. MAIN CONTENT PANEL (Independent Smooth Scrollable Area)
   ========================================================================== */
.main-content-panel {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px 64px 32px;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Profile HUD Bar */
.profile-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-hud-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-hud-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-hud-details h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.profile-hud-details .student-id-tag {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #1a73e8;
  font-weight: 700;
  margin-left: 6px;
}

.profile-hud-details p {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.profile-hud-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-badge-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.hud-badge-house {
  color: #6d28d9;
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.hud-badge-gpa {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.hud-badge-coins {
  color: #854d0e;
  border-color: #fef08a;
  background: #fefce8;
}

.hud-badge-streak {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}

.btn-hud-smartpass {
  background: white;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-hud-smartpass:hover {
  background: #eff6ff;
  border-color: #1a73e8;
}

/* Hero Campus Banner */
.hero-campus-banner {
  background: linear-gradient(135deg, #1a73e8 0%, #1e40af 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  box-shadow: 0 20px 40px -15px rgba(26, 115, 232, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-greeting {
  font-size: 0.78rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: #dbeafe;
  margin-top: 8px;
  max-width: 600px;
}

.hero-pills-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-graphic-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hero-3d-img {
  width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-btns {
  display: flex;
  gap: 8px;
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a73e8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-hero-white:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Quick Stats Row */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-tile-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-tile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.stat-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-tile-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-tile-content p {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* Section Header */
.section-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.section-view-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 10 Wings Grid */
.wings-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.wing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 180px;
}

.wing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.wing-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.wing-icon-box .material-symbols-outlined {
  font-size: 22px;
}

.wing-card-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.wing-card-body p {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

.wing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.wing-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.realtime-pill-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Bottom 3-Card Row */
.bottom-widgets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bottom-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bottom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bottom-card-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.event-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.event-date-tile {
  background: #1a73e8;
  color: white;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
}

.event-date-tile .day {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-tile .month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-info h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.event-info p {
  font-size: 0.72rem;
  color: #64748b;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.announcement-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.announcement-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.announcement-info p {
  font-size: 0.72rem;
  color: #64748b;
}

.announcement-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.achievers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achiever-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
}

.achiever-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-badge {
  font-size: 0.85rem;
}

.achiever-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.achiever-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.achiever-gpa {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a73e8;
}

.btn-reach-student {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a73e8;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reach-student:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. RESPONSIVE ENGINE & NATIVE MOBILE APP EXPERIENCE
   ========================================================================== */

/* Mobile Bottom Navigation Dock (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  .wings-grid-10 {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .bottom-widgets-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .top-navbar {
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
  }

  .app-container {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
  }

  body.sidebar-drawer-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-header {
    display: flex;
  }

  .main-content-panel {
    padding: 16px 14px calc(76px + env(safe-area-inset-bottom)) 14px;
    height: 100%;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  html, body {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
  }

  .top-navbar {
    padding: 0 16px;
    height: 56px;
  }

  .header-search {
    display: none;
  }

  .brand-text h1 {
    font-size: 0.92rem;
  }

  .brand-text p {
    font-size: 0.58rem;
  }

  .main-content-panel {
    padding: 12px 12px calc(80px + env(safe-area-inset-bottom)) 12px;
  }

  .hero-campus-banner {
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-graphic-col {
    width: 100%;
    align-items: flex-start;
    margin-top: 12px;
  }

  .hero-3d-img {
    width: 100%;
    height: 150px;
  }

  .hero-cta-btns {
    width: 100%;
    flex-direction: column;
  }

  .btn-hero-white, .btn-hero-glass {
    width: 100%;
    justify-content: center;
  }

  .wings-grid-10 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-hud-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 12px;
  }

  .profile-hud-badges {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  /* Native Mobile Bottom Navigation Bar (PWA Dock) */
  .mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 9990;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 8px;
  }

  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: var(--transition);
    gap: 2px;
  }

  .mobile-nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 26px;
    border-radius: var(--radius-full);
    transition: var(--transition);
  }

  .mobile-nav-link .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.15s ease;
  }

  .mobile-nav-link.active {
    color: #1a73e8;
    font-weight: 800;
  }

  .mobile-nav-link.active .mobile-nav-icon-wrap {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
  }

  .mobile-nav-link.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    transform: translateY(-1px);
  }

  /* Native Mobile Touch Tactile Scaling */
  .wing-card:active,
  .btn-reach-student:active,
  .mobile-nav-link:active,
  .stat-tile-card:active,
  .btn-hero-white:active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
  }
}
