/* ==========================================================================
   THAIBA PUBLIC SCHOOL — Enterprise Design Engine & Print Engine
   UI/UX PRO-MAX: Ultra-Luxury Light Theme, Micro-Animations, Glassmorphism,
   High-Precision Typography, Smooth Transitions & A4 Document Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Exact Specified Visual Identity Tokens */
  --bg-canvas: #F7F9FC;
  --bg-canvas-subtle: #EDF2F7;
  --surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: rgba(255, 255, 255, 0.92);
  --bg-subtle: #F7F9FC;

  /* Brand & Semantic Colors */
  --primary: #BF9A33;
  --primary-hover: #A68326;
  --primary-light: #FBF7EE;
  --primary-subtle: #FDFBF7;
  --primary-dark: #7A611C;
  --primary-glow: rgba(191, 154, 51, 0.22);

  --text-primary: #111827;
  --text-main: #111827;
  --text-secondary: #64748B;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --border: #E8EDF3;
  --border-color: #E8EDF3;
  --border-subtle: #F1F5F9;
  --border-focus: #BF9A33;

  --success: #BF9A33;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --accent: #8B5CF6;

  /* Additional Palette Accents */
  --sapphire: #3B82F6;
  --sapphire-light: #EFF6FF;
  --emerald: #BF9A33;
  --emerald-light: #FDFBF7;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --rose: #EF4444;
  --rose-light: #FEE2E2;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;

  /* Premium Linear/Stripe Multi-Layer Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05), 0 1px 2px rgba(17, 24, 39, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(17, 24, 39, 0.06), 0 2px 6px -1px rgba(17, 24, 39, 0.03);
  --shadow-lg: 0 10px 25px -4px rgba(17, 24, 39, 0.08), 0 4px 10px -2px rgba(17, 24, 39, 0.03);
  --shadow-xl: 0 20px 35px -6px rgba(17, 24, 39, 0.10), 0 8px 16px -4px rgba(17, 24, 39, 0.04);
  --shadow-glow: 0 0 24px rgba(191, 154, 51, 0.22);

  /* Typography Stacks */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Constants */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 72px;
  --content-max-width: 1600px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Institutional Color Theme Accents (All Light Luxury) */
[data-theme="sapphire"] {
  --primary-h: 217;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-subtle: #f0f7ff;
  --primary-dark: #1e40af;
  --border-focus: #2563eb;
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.25);
}

[data-theme="burgundy"] {
  --primary-h: 350;
  --primary: #991b1b;
  --primary-hover: #7f1d1d;
  --primary-light: #fee2e2;
  --primary-subtle: #fef2f2;
  --primary-dark: #7f1d1d;
  --border-focus: #991b1b;
  --shadow-glow: 0 0 24px rgba(153, 27, 27, 0.25);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Luxury Light Ambient Mesh Background */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  opacity: 0.75;
}

.mesh-glow-1 {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 154, 51, 0.10) 0%, rgba(191, 154, 51, 0) 70%);
  filter: blur(80px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.mesh-glow-2 {
  position: absolute;
  bottom: -200px;
  left: 5%;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(90px);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.05); }
  100% { transform: translate(20px, -20px) scale(0.96); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Subtle Geometric Dot Pattern Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* Headings & Display Fonts */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   APP SHELL LAYOUT (Ultra-Crisp Light Architecture)
   ========================================================================== */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-canvas);
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  transition: width var(--transition-smooth), transform var(--transition-smooth);
  z-index: 50;
  box-shadow: 2px 0 16px rgba(15, 23, 42, 0.02);
}

.sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
  position: relative;
}

.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sidebar-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: #ecfdf5;
  color: #BF9A33;
  border-color: #F1DFA8;
  transform: scale(1.06);
}

.sidebar-collapse-btn i, .sidebar-collapse-btn svg {
  width: 16px;
  height: 16px;
}

.brand-badge {
  background: linear-gradient(135deg, #BF9A33 0%, #8C6E1E 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(191, 154, 51, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: shineSheen 6s infinite;
}

@keyframes shineSheen {
  0%, 80% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.brand-info h2 {
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: 0.03em;
  font-weight: 800;
  line-height: 1.2;
}

.brand-info p {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-group-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 12px 14px 6px;
  font-weight: 800;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  margin-bottom: 3px;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f1f5f9;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, #ecfdf5 0%, #FBF7EE 100%);
  color: #8C6E1E;
  font-weight: 700;
  border-color: #d1fae5;
  box-shadow: 0 2px 8px rgba(191, 154, 51, 0.08);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #BF9A33;
}

.nav-item i, .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.nav-item:hover i, .nav-item:hover svg {
  transform: scale(1.1);
  color: var(--primary);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}

.user-footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.user-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-mini-card img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid #BF9A33;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-details-mini .name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.user-details-mini .role {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* App Main Body */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

/* Topbar */
.app-topbar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 40;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

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

.icon-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.icon-btn:hover {
  background: #ffffff;
  color: var(--text-main);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.96);
}

.search-bar-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  width: 380px;
  max-width: 100%;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.search-bar-trigger:hover {
  border-color: #BF9A33;
  background: #fcfdfd;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  color: var(--text-main);
  transform: translateY(-1px);
}

.kbd-shortcut {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 6px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(191, 154, 51, 0.08);
}

/* App Viewport Container */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  animation: viewportEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.app-viewport::-webkit-scrollbar {
  width: 6px;
}
.app-viewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

/* ==========================================================================
   CARDS, CONTAINERS & GLASSMORPHISM
   ========================================================================== */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: visible;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   KPI SUMMARY CARDS (Pro-Max Visuals)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-smooth);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.kpi-card:hover::after {
  background: linear-gradient(90deg, #BF9A33, #38bdf8);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast);
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.08);
}

.kpi-emerald { background: #ecfdf5; color: #BF9A33; border: 1px solid #bbf7d0; }
.kpi-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.kpi-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.kpi-rose { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.kpi-purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }

.kpi-meta h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-display);
  color: #0f172a;
}

.kpi-meta p {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.badge-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.badge-gold {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
  font-weight: 800;
  border: 1px solid #facc15;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.2);
}

/* ==========================================================================
   BUTTONS (Ultra-Tactile Light Styling)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  user-select: none;
  white-space: nowrap;
}

.btn i, .btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #BF9A33 0%, #8C6E1E 100%);
  color: #ffffff;
  border-color: #8C6E1E;
  box-shadow: 0 2px 6px rgba(191, 154, 51, 0.25), 0 4px 14px rgba(191, 154, 51, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8C6E1E 0%, #166534 100%);
  box-shadow: 0 4px 12px rgba(191, 154, 51, 0.35), 0 8px 24px rgba(191, 154, 51, 0.25);
  transform: translateY(-1.5px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-color);
  color: #334155;
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-sm i, .btn-sm svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   INTERACTIVE DATA TABLES (Clean High-Contrast Compact Roster)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  position: relative;
}

.tms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.tms-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.tms-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  transition: background var(--transition-fast);
  font-size: 0.82rem;
}

.tms-table tr:hover td {
  background: #f8fafc;
}

.tms-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   PREMIUM SEGMENTED PILL TABS & SUB-TABS (Mobile App & Reels Showcase)
   ========================================================================== */
.tms-tab-rail-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 10px 0;
  margin-bottom: 16px;
}
.tms-tab-rail-wrapper::-webkit-scrollbar {
  display: none;
}

.tms-segmented-tabs {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03);
  max-width: 100%;
  white-space: nowrap;
}

.tms-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.tms-tab-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

.tms-tab-pill.active {
  background: #ffffff;
  color: #BF9A33;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.tms-tab-pill i, .tms-tab-pill svg {
  width: 16px;
  height: 16px;
}

.tms-tab-pill .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  line-height: 1;
  transition: all 0.2s ease;
}

.tms-tab-pill.active .tab-badge {
  background: rgba(191, 154, 51, 0.12);
  color: #BF9A33;
}

/* Sub-tabs Segmented Row */
.tms-subtab-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 14px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.tms-subtab-rail::-webkit-scrollbar {
  display: none;
}

.tms-subtab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tms-subtab-pill:hover {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

.tms-subtab-pill.active {
  background: rgba(191, 154, 51, 0.08);
  color: #BF9A33;
  border-color: rgba(191, 154, 51, 0.3);
  font-weight: 700;
}

/* ==========================================================================
   ANIMATED LOGO LOADER & SPINNER HALO
   ========================================================================== */
.tms-animated-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tms-loader-emblem-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tms-loader-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #BF9A33;
  border-right-color: #86efac;
  animation: tmsSpinnerRing 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tms-loader-img {
  animation: tmsLogoBreathing 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(191, 154, 51, 0.22));
}

@keyframes tmsSpinnerRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tmsLogoBreathing {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 10px rgba(191, 154, 51, 0.2)); }
  50% { transform: scale(1.07); filter: drop-shadow(0 8px 22px rgba(191, 154, 51, 0.38)); }
}

@keyframes tmsTextPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.99); }
  50% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-xs);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.15);
  background: #ffffff;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #94a3b8;
}

/* ==========================================================================
   MODAL WINDOW & SPRING ANIMATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 95vw;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.25);
  padding: 24px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 20px;
}

/* ==========================================================================
   TOASTS (Float Springs)
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 300px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success { border-left: 4px solid #BF9A33; color: #166534; }
.toast-danger, .toast-error { border-left: 4px solid #ef4444; color: #991b1b; }
.toast-warning { border-left: 4px solid #f59e0b; color: #b45309; }
.toast-info { border-left: 4px solid #2563eb; color: #1e40af; }

/* Spinners */
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SKELETON SHIMMER & LOADING STATES
   ========================================================================== */
.tms-skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   INTERACTIVE SVG CHARTS & DATA VIZ
   ========================================================================== */
.tms-svg-chart-wrap {
  position: relative;
}

.tms-svg-chart-wrap svg {
  display: block;
}

.chart-bar-group rect:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.chart-point-group:hover circle {
  r: 6.5;
  stroke-width: 3.5;
  filter: drop-shadow(0 2px 6px rgba(191, 154, 51, 0.4));
}

/* ==========================================================================
   ACTIVITY TIMELINE
   ========================================================================== */
.tms-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.tms-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 17px;
  width: 2px;
  background: var(--border-color);
  z-index: 1;
}

.tms-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.tms-timeline-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.tms-timeline-item:hover .tms-timeline-badge {
  border-color: var(--primary);
  transform: scale(1.1);
}

.tms-timeline-content {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.tms-timeline-item:hover .tms-timeline-content {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.tms-timeline-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tms-timeline-meta {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   A4 PRINT STYLESHEET — High-DPI Luxury Document & Admit Card Engine
   ========================================================================== */
.a4-preview-container {
  background: #ffffff;
  color: #000000;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 12mm 15mm;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #d1d5db;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
  position: relative;
}

.letter-boxes-row {
  display: flex;
  gap: 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
}

.letter-box {
  flex: 1;
  height: 24px;
  border-right: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.perforated-cut {
  border-top: 1.5px dashed #000;
  position: relative;
  margin: 18px 0 14px;
  text-align: center;
}

.perforated-cut::after {
  content: '✂ — — — — — — — — — — — — — — — — TEAR OFF FOR ADMIT CARD — — — — — — — — — — — — — — — — ✂';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #333;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 12mm 12mm;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-sidebar,
  .app-topbar,
  .sidebar-backdrop,
  .ambient-mesh,
  #toast-container,
  .no-print,
  .btn,
  .floating-action-bar,
  .mobile-bottom-nav,
  .modal-overlay:not(.active),
  .modal-header,
  .modal-footer,
  .modal-close {
    display: none !important;
  }

  .app-main, .app-viewport {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* When printing from an active modal, isolate modal contents */
  .modal-overlay.active {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .modal-overlay.active .modal-card,
  .modal-overlay.active .modal-container,
  .modal-overlay.active .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* Clean A4 document preview */
  .a4-preview-container {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Tables, Cards and Avoid Break Rules */
  table {
    page-break-inside: auto;
  }

  tr, .card, .pvc-id-card-pair, .avoid-break, .credentials-badge-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Batch ID Cards Print Styling */
  .pvc-card-side {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
  }

  .id-card-wrapper {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* ==========================================================================
   MOBILE NATIVE APP EXPERIENCE & RESPONSIVE LAYOUTS
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  z-index: 100;
  align-items: stretch;
  justify-content: space-around;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) 6px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
}

.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: #BF9A33;
  border-radius: 0 0 4px 4px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item i, .mobile-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
}

.mobile-nav-item:active {
  transform: scale(0.93);
}

.mobile-nav-item.active {
  color: #BF9A33;
  background: rgba(191, 154, 51, 0.08);
}

.mobile-nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav-item.active i, .mobile-nav-item.active svg {
  transform: translateY(-1px) scale(1.08);
  color: #BF9A33;
}

/* ==========================================================================
   ADMISSION & GENERAL GUIDELINES VIDEO EMBED
   ========================================================================== */
.instruction-video-wrapper {
  transition: max-height 0.25s ease;
}

.instruction-video-wrapper .video-aspect-box {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #000;
  transition: padding-bottom 0.25s ease, max-height 0.25s ease;
}

.instruction-video-wrapper.ratio-landscape .video-aspect-box {
  padding-bottom: 56.25% !important;
  max-height: none !important;
}

.instruction-video-wrapper.ratio-portrait .video-aspect-box {
  padding-bottom: 177.77% !important;
  max-height: min(76vh, 600px) !important;
}

.instruction-video-wrapper.ratio-auto .video-aspect-box {
  padding-bottom: 56.25%;
}

@media (max-width: 640px) {
  .instruction-video-wrapper.ratio-auto .video-aspect-box {
    padding-bottom: 160% !important;
    max-height: 72vh !important;
  }

  .instruction-video-wrapper.ratio-portrait .video-aspect-box {
    padding-bottom: 177.77% !important;
    max-height: 75vh !important;
  }
}

@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: inline-flex !important;
  }

  .app-sidebar {
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Desktop Collapsible Sidebar */
  .app-sidebar.collapsed {
    width: 76px !important;
  }

  .app-sidebar.collapsed .sidebar-header {
    padding: 0 10px;
    justify-content: center;
  }

  .app-sidebar.collapsed .brand-info {
    display: none !important;
  }

  .app-sidebar.collapsed .sidebar-collapse-btn {
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    background: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
  }

  .app-sidebar.collapsed .sidebar-collapse-btn:hover {
    transform: translateY(-50%) scale(1.15);
  }

  .app-sidebar.collapsed .sidebar-group-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 8px 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
  }

  .app-sidebar.collapsed .sidebar-nav {
    padding: 14px 8px;
    overflow-x: hidden;
  }

  .app-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 6px;
    border-radius: 8px;
    position: relative;
  }

  .app-sidebar.collapsed .nav-item span {
    display: none !important;
  }

  .app-sidebar.collapsed .nav-item i,
  .app-sidebar.collapsed .nav-item svg {
    margin: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.15s ease;
  }

  .app-sidebar.collapsed .nav-item:hover {
    transform: none;
    background: #ecfdf5;
  }

  .app-sidebar.collapsed .nav-item:hover i,
  .app-sidebar.collapsed .nav-item:hover svg {
    transform: scale(1.15);
  }

  /* Tooltip on hover in collapsed mode */
  .app-sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
    z-index: 1000;
  }

  .app-sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }

  /* Collapsed Footer */
  .app-sidebar.collapsed .sidebar-footer {
    padding: 12px 6px;
  }

  .app-sidebar.collapsed .user-footer-wrap {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .app-sidebar.collapsed .user-details-mini {
    display: none !important;
  }

  .app-sidebar.collapsed #btn-logout {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-2xl);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 45;
    display: none;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .a4-preview-container {
    width: 100%;
    min-height: auto;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
  }

  .app-viewport {
    padding: 16px 14px 90px 14px !important;
  }

  .app-topbar {
    padding: 0 14px !important;
    height: 56px !important;
  }

  .ticker-badge {
    display: none !important;
  }

  .search-bar-trigger {
    width: auto !important;
    padding: 6px 10px !important;
  }
  .search-bar-trigger span {
    display: none !important;
  }
  .search-bar-trigger::after {
    content: "Search...";
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .kbd-shortcut {
    display: none !important;
  }

  .card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .kpi-card {
    padding: 12px 10px !important;
  }

  .kpi-card h3 {
    font-size: 1.25rem !important;
  }

  /* Bottom sheet modal on mobile */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .tms-modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 88vh !important;
    margin: 0 !important;
    animation: mobileModalSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes mobileModalSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .tms-segmented-tabs {
    border-radius: 10px;
    padding: 3px;
  }
  .tms-tab-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .form-input, .form-select, .btn {
    min-height: 42px;
  }
}

/* ==========================================================================
   MOBILE HEADER MENU & NOTIFICATION IMPROVEMENTS
   ========================================================================== */
.mobile-header-menu-btn {
  display: none;
}

@media (max-width: 992px) {
  .mobile-header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-header-menu-btn:hover {
    background: var(--bg-hover);
    color: #BF9A33;
  }
  .mobile-header-menu-btn:active {
    transform: scale(0.92);
    background: rgba(191, 154, 51, 0.1);
  }
}

.notification-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.notification-bell-btn:hover {
  background: var(--bg-hover);
  color: #BF9A33;
  border-color: rgba(191, 154, 51, 0.3);
  box-shadow: 0 4px 12px rgba(191, 154, 51, 0.12);
}
.notification-bell-btn.has-unread {
  animation: bellGentleRing 4s ease-in-out infinite;
}
@keyframes bellGentleRing {
  0%, 90%, 100% { transform: rotate(0); }
  92% { transform: rotate(12deg); }
  94% { transform: rotate(-12deg); }
  96% { transform: rotate(8deg); }
  98% { transform: rotate(-4deg); }
}

.tms-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 10px;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE CARDS SYSTEM (Zero Side-Scroll on Desktop & Mobile)
   ========================================================================== */
.tms-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.tms-view-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.tms-view-toggle button:hover {
  color: var(--text-main);
}
.tms-view-toggle button.active {
  background: #BF9A33;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(191, 154, 51, 0.25);
}

.tms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .tms-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

.tms-data-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tms-data-card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 154, 51, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.tms-data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}
.tms-data-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.tms-data-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.tms-data-card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  flex: 1;
  margin-bottom: 14px;
}
.tms-data-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tms-data-card-row.full-width {
  grid-column: 1 / -1;
}
.tms-data-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  font-weight: 600;
}
.tms-data-card-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}
.tms-data-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

/* ==========================================================================
   PREMIUM CONFIRMATION & ALERT MODAL DIALOGS (Zero Native Browser Alerts)
   ========================================================================== */
.tms-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tms-confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tms-confirm-box {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 30px 24px 22px 24px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.tms-confirm-overlay.active .tms-confirm-box {
  transform: scale(1) translateY(0);
}

.tms-confirm-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tms-confirm-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.tms-confirm-message {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 24px 0;
  word-break: break-word;
}

.tms-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tms-confirm-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
}


/* ==========================================================================
   LOGIN PAGE — RESPONSIVE SPLIT-SCREEN AUTHENTICATION LAYOUT
   ========================================================================== */

/* Login Viewport Container */
.login-split-page {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-canvas, #F7F9FC);
}

/* Ambient Background Glow */
.login-split-page .ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Desktop Split Layout: 1024px and above */
@media (min-width: 1024px) {
  .login-split-page {
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 46% 54%;
  }

  .login-split-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3.8vh, 48px) clamp(28px, 3.5vw, 52px) clamp(20px, 2.8vh, 36px) clamp(32px, 4vw, 64px);
    background: linear-gradient(145deg, #FBF7EE 0%, #F7F9FC 45%, #FFFFFF 100%);
    border-right: 1px solid var(--border-color, #E8EDF3);
    position: relative;
    z-index: 2;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.6) transparent;
  }

  .login-split-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 36px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    height: 100%;
  }

  /* Hide mobile-only compact branding on desktop */
  .login-mobile-brand {
    display: none !important;
  }
}

/* Large Desktop (> 1440px) Enhancement */
@media (min-width: 1440px) {
  .login-split-page {
    grid-template-columns: 44% 56%;
  }
  .login-split-hero {
    padding: 60px 60px 44px 72px;
  }
  .login-split-form-panel {
    padding: 48px;
  }
}

/* Left Hero Branding Components */
.login-hero-content {
  max-width: 500px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
}

.login-hero-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(191, 154, 51, 0.08);
  border: 1px solid rgba(191, 154, 51, 0.2);
  border-radius: var(--radius-full, 9999px);
  color: #8C6E1E;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.login-hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.25);
}

.login-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.login-hero-sub {
  font-size: 0.84rem;
  color: #BF9A33;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-hero-reg {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  margin-top: -4px;
}

.login-hero-heading {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.login-hero-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #64748B);
  line-height: 1.6;
  margin: 0;
}

/* Feature Showcase Cards on Left Hero */
.login-hero-features {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
  margin-top: 2px;
}

.login-hero-feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.4vh, 13px) 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-hero-feature-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.login-hero-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-hero-feature-icon.emerald {
  background: #FDFBF7;
  color: #BF9A33;
}

.login-hero-feature-icon.blue {
  background: #DBEAFE;
  color: #2563EB;
}

.login-hero-feature-icon.purple {
  background: #F3E8FF;
  color: #8B5CF6;
}

.login-hero-feature-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0 0 2px 0;
}

.login-hero-feature-text p {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  margin: 0;
  line-height: 1.4;
}

.login-hero-footer {
  font-size: 0.76rem;
  color: var(--text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}

/* ==========================================================================
   LOGIN CARD & FORM STYLING
   ========================================================================== */

.login-card-wrapper {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.login-auth-card {
  width: 100%;
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
  box-sizing: border-box;
}

.login-card-header {
  text-align: left;
  margin-bottom: 22px;
}

.login-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.login-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #64748B);
  margin: 0;
  line-height: 1.5;
}

/* Form Group Spacing & Consistency */
.login-form-group {
  margin-bottom: 18px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-label-row .form-label {
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.login-forgot-link {
  font-size: 0.8rem;
  color: #BF9A33;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  color: #8C6E1E;
  text-decoration: underline;
}

/* Consistent Input Wrapping (50px to 54px Height) */
.login-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.login-input-wrap .login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted, #64748B);
  pointer-events: none;
  transition: color 0.15s ease;
  z-index: 2;
}

.login-input-wrap .form-input {
  height: 52px;
  width: 100%;
  padding-left: 42px;
  padding-right: 14px;
  font-size: 0.94rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color, #E8EDF3);
  background-color: #FFFFFF;
  color: var(--text-primary, #111827);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.login-input-wrap .form-input:focus {
  border-color: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.15);
  outline: none;
}

.login-input-wrap .form-input:focus ~ .login-input-icon {
  color: #BF9A33;
}

/* Password Input Specific */
.login-input-wrap.has-toggle .form-input {
  padding-right: 46px;
}

/* Integrated Password Visibility Toggle */
.login-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted, #64748B);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
}

.login-password-toggle:hover {
  color: var(--text-primary, #111827);
  background: var(--bg-hover, #F1F5F9);
}

.login-password-toggle i {
  width: 18px;
  height: 18px;
}

/* Helper Text */
.login-helper-text {
  font-size: 0.74rem;
  color: var(--text-subtle, #94A3B8);
  margin-top: 6px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.login-helper-text .login-helper-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Primary Submit Button (Height 52px) */
.login-submit-btn {
  width: 100%;
  height: 52px;
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md, 10px);
  margin-top: 22px;
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 154, 51, 0.28);
}

.login-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Authentication Divider */
.login-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  gap: 12px;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border-color, #E8EDF3);
}

.login-divider-text {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle, #94A3B8);
  white-space: nowrap;
}

/* Google Sign In Button */
.login-google-btn {
  width: 100%;
  height: 50px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md, 10px);
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-color, #E8EDF3);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.login-google-btn:hover:not(:disabled) {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* Institutional Footer */
.login-footer {
  margin-top: 22px;
  text-align: center;
}

.login-footer-text {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  font-weight: 600;
}

.login-footer-sub {
  font-size: 0.72rem;
  color: var(--text-subtle, #94A3B8);
  margin-top: 3px;
}

/* ==========================================================================
   TABLET RESPONSIVENESS (768px to 1023px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .login-split-page {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    min-height: 100dvh;
  }

  .login-split-hero {
    display: none !important;
  }

  .login-split-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .login-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
  }

  .login-card-wrapper {
    max-width: 460px;
    width: 100%;
  }

  .login-auth-card {
    padding: 36px 32px;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (320px to 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .login-split-page {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px;
    min-height: 100dvh;
  }

  .login-split-hero {
    display: none !important;
  }

  .login-split-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: auto 0;
  }

  .login-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
  }

  .login-card-wrapper {
    width: 100%;
    max-width: 440px;
  }

  .login-auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-md, 12px);
  }

  .login-card-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .login-card-title {
    font-size: 1.3rem;
  }

  .login-input-wrap .form-input {
    height: 50px;
    font-size: 0.92rem;
  }

  .login-submit-btn {
    height: 50px;
    font-size: 0.94rem;
  }

  .login-google-btn {
    height: 48px;
    font-size: 0.9rem;
  }
}

/* Small Mobile Screens (320px to 374px) */
@media (max-width: 374px) {
  .login-split-page {
    padding: 16px 12px;
  }

  .login-auth-card {
    padding: 22px 14px;
  }

  .login-card-title {
    font-size: 1.2rem;
  }

  .login-card-subtitle {
    font-size: 0.82rem;
  }

  .login-input-wrap .form-input {
    height: 48px;
    padding-left: 38px;
    font-size: 0.88rem;
  }

  .login-input-wrap .login-input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }
}


/* ==========================================================================
   ONLINE ADMISSION PORTAL — RESPONSIVE REDESIGN & ADMIT CARD ENGINE
   ========================================================================== */

.admission-portal-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Top Navigation Bar */
.admission-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Institutional Hero Banner */
.admission-hero-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-image: radial-gradient(circle at 100% 0%, rgba(191, 154, 51, 0.04) 0%, transparent 60%);
}

.admission-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admission-hero-emblem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admission-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8C6E1E;
  background: rgba(191, 154, 51, 0.08);
  border: 1px solid rgba(191, 154, 51, 0.2);
  padding: 2px 10px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 2px;
}

.admission-hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #BF9A33;
}

.admission-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.admission-hero-sub {
  font-size: 0.86rem;
  color: #BF9A33;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admission-hero-sub .session-pill {
  color: #8C6E1E;
  background: #FDFBF7;
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}

.admission-hero-reg {
  font-size: 0.75rem;
  color: var(--text-muted, #64748B);
  margin-top: 2px;
}

.admission-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Horizontal Progress Step Indicator */
.admission-progress-wrapper {
  margin-bottom: 24px;
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}

/* Desktop Horizontal Stepper (>= 768px) */
.wizard-desktop-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

@media (max-width: 767px) {
  .wizard-desktop-stepper {
    display: none !important;
  }
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wizard-step-node.completed {
  cursor: pointer;
}

.wizard-step-node.completed:hover .wizard-step-title {
  color: #8C6E1E;
}

.wizard-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-subtle, #F1F5F9);
  color: var(--text-muted, #64748B);
  border: 1.5px solid var(--border-color, #E8EDF3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wizard-step-node.active .wizard-step-circle {
  background: #BF9A33;
  color: #ffffff;
  border-color: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.2);
}

.wizard-step-node.completed .wizard-step-circle {
  background: #FDFBF7;
  color: #8C6E1E;
  border-color: #86EFAC;
}

.wizard-step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #64748B);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.wizard-step-node.active .wizard-step-title {
  color: var(--text-primary, #111827);
  font-weight: 700;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color, #E8EDF3);
  margin: 0 4px;
  min-width: 14px;
  transition: background 0.2s ease;
}

.wizard-step-line.completed {
  background: #86EFAC;
}

/* Mobile Stepper Navigation (< 768px) */
.wizard-mobile-stepper {
  display: none;
  width: 100%;
}

@media (max-width: 767px) {
  .wizard-mobile-stepper {
    display: block;
  }
}

.wizard-mobile-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.wizard-mobile-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #8C6E1E;
  background: #FDFBF7;
  border: 1px solid #BBF7D0;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
}

.wizard-mobile-select {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #E8EDF3);
  background: var(--bg-surface, #FFFFFF);
  color: var(--text-primary, #111827);
  max-width: 160px;
  outline: none;
}

.wizard-mobile-current-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  margin: 2px 0 8px 0;
  letter-spacing: -0.01em;
}

.wizard-mobile-track {
  height: 6px;
  width: 100%;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.wizard-mobile-fill {
  height: 100%;
  background: #BF9A33;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Panes */
.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: wizardFadeIn 0.25s ease-out;
}

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

/* Wizard Navigation Footer */
.wizard-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #E8EDF3);
}

@media (max-width: 640px) {
  .wizard-nav-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .wizard-nav-footer .btn {
    width: 100% !important;
    justify-content: center;
  }
}

.btn-wizard-prev {
  min-width: 120px;
  height: 48px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-wizard-next {
  min-width: 140px;
  height: 48px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #BF9A33 !important;
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 2px 8px rgba(191, 154, 51, 0.25);
  transition: all 0.2s ease;
}

.btn-wizard-next:hover {
  background: #8C6E1E !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 154, 51, 0.35);
}

/* Application Details (Date & Place) Grid */
.wizard-app-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .wizard-app-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Fee Structure Table & Card */
.wizard-fee-container {
  background: #F8FAFC;
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-md, 12px);
  padding: 20px;
  margin-bottom: 20px;
}

.wizard-fee-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.wizard-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wizard-fee-table th {
  background: #F1F5F9;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #E2E8F0;
}

.wizard-fee-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
}

.wizard-fee-notes {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #1E40AF;
  line-height: 1.5;
}

/* Review Step Cards */
.wizard-review-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-md, 12px);
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.wizard-review-card:hover {
  border-color: #CBD5E1;
}

.wizard-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.wizard-review-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  margin: 0;
}

.btn-wizard-edit {
  font-size: 0.78rem;
  padding: 4px 10px;
  height: auto;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8C6E1E;
  background: #FDFBF7;
  border: 1px solid #86EFAC;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-wizard-edit:hover {
  background: #BBF7D0;
  color: #7A611C;
}

.wizard-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 18px;
}

.wizard-review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wizard-review-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wizard-review-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
  word-break: break-word;
}

/* Validation Styling */
.form-input.is-invalid,
.form-select.is-invalid,
.admission-checkbox.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  color: #ef4444;
  font-size: 0.74rem;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

/* Two-Column Grid Layout (Desktop >= 1024px) */
.admission-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

@media (max-width: 1023px) {
  .admission-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .admission-side-column {
    display: contents;
  }

  .admission-photo-card {
    order: 1;
    width: 100%;
    margin-bottom: 20px;
  }

  .admission-main-column {
    order: 2;
    width: 100%;
  }

  .admission-side-card:not(.admission-photo-card) {
    order: 3;
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Form Section Cards */
.admission-section-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease;
}

.admission-section-card:hover {
  box-shadow: var(--shadow-md);
}

.admission-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #E8EDF3);
}

.admission-section-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FDFBF7;
  color: #8C6E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
}

.admission-section-badge.declaration-badge {
  background: #FEF3C7;
  color: #B45309;
}

.admission-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #111827);
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
}

.admission-section-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #64748B);
  margin: 0;
}

/* Fields Grid within Section Cards */
.admission-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

@media (max-width: 640px) {
  .admission-fields-grid {
    grid-template-columns: 1fr;
  }
}

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

.admission-fields-grid .form-input,
.admission-fields-grid .form-select {
  height: 50px;
  font-size: 0.92rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color, #E8EDF3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admission-fields-grid textarea.form-input {
  height: auto;
  min-height: 80px;
}

.admission-fields-grid .form-input:focus,
.admission-fields-grid .form-select:focus {
  border-color: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.15);
  outline: none;
}

/* Photograph Upload Box Component */
.admission-photo-card {
  text-align: center;
}

.admission-photo-dropzone {
  width: 140px;
  height: 175px;
  margin: 0 auto 14px auto;
  border: 2px dashed #BF9A33;
  border-radius: 12px;
  background: rgba(191, 154, 51, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.admission-photo-dropzone:hover,
.admission-photo-dropzone.dragover {
  background: rgba(191, 154, 51, 0.08);
  border-color: #8C6E1E;
  transform: scale(1.02);
}

.admission-photo-placeholder {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  line-height: 1.4;
  text-align: center;
}

.admission-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

/* Side Column Cards */
.admission-side-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-color, #E8EDF3);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 20px;
}

.admission-side-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admission-side-card-header h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0;
}

.side-card-icon {
  width: 18px;
  height: 18px;
}

.side-card-icon.emerald { color: #BF9A33; }
.side-card-icon.blue { color: #2563eb; }
.side-card-icon.green { color: #8C6E1E; }

.admission-side-card-text {
  font-size: 0.8rem;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
  margin: 0;
}

.admission-side-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admission-side-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-primary, #111827);
  line-height: 1.35;
}

.admission-side-checklist .check-icon {
  width: 14px;
  height: 14px;
  color: #BF9A33;
  flex-shrink: 0;
  margin-top: 2px;
}

.admission-helpline-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.helpline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.84rem;
  font-weight: 700;
  color: #BF9A33;
  text-decoration: none;
}

.helpline-link:hover {
  text-decoration: underline;
}

.admission-helpline-addr {
  font-size: 0.74rem;
  color: var(--text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Formal Declaration Box */
.admission-declaration-box {
  background: rgba(191, 154, 51, 0.04);
  border: 1px solid rgba(191, 154, 51, 0.25);
  border-left: 4px solid #BF9A33;
  border-radius: var(--radius-md, 10px);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.admission-declaration-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-primary, #111827);
}

.admission-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #BF9A33;
  cursor: pointer;
  flex-shrink: 0;
}

.admission-declaration-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .admission-declaration-meta-grid {
    grid-template-columns: 1fr;
  }
}

.admission-signature-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 0 10px;
  border-top: 1px dashed var(--border-color, #E8EDF3);
}

@media (max-width: 640px) {
  .admission-signature-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.admission-signature-slot {
  text-align: center;
}

.admission-signature-line {
  border-bottom: 1.5px solid #0f172a;
  height: 36px;
  margin-bottom: 6px;
}

.admission-signature-slot span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admission-submit-btn {
  width: 100%;
  height: 54px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 4px 14px rgba(191, 154, 51, 0.25);
  transition: all 0.2s ease;
}

.admission-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(191, 154, 51, 0.35);
}

.admission-submit-note {
  font-size: 0.76rem;
  color: var(--text-muted, #64748B);
  text-align: center;
  margin-top: 10px;
  line-height: 1.45;
}

/* Perforated Cut Line for Tear-Off Slip */
.perforated-cut {
  border-top: 2px dashed #475569;
  margin: 18px 0 14px;
  position: relative;
  text-align: center;
}

.perforated-cut .cut-label {
  background: #ffffff;
  padding: 0 14px;
  position: relative;
  top: -9px;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .admission-portal-wrapper {
    padding: 0 2px;
  }

  .admission-top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admission-top-nav > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .admission-top-nav .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .admission-hero-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .admission-hero-brand {
    gap: 14px;
    align-items: flex-start;
  }

  .admission-hero-emblem {
    width: 48px;
    height: 48px;
  }

  .admission-hero-badge {
    white-space: normal;
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 3px 8px;
  }

  .admission-hero-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .admission-hero-sub {
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admission-hero-reg {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .admission-progress-wrapper {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .admission-progress-rail {
    min-width: max-content;
    gap: 8px;
  }

  .admission-step {
    padding: 6px 10px;
    flex: 0 0 auto;
  }

  .admission-step-circle {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .admission-step-label {
    font-size: 0.76rem;
  }

  .admission-section-card {
    padding: 18px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .admission-section-header {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .admission-section-badge {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .admission-section-title {
    font-size: 1.05rem;
  }

  .admission-section-desc {
    font-size: 0.76rem;
  }

  .admission-fields-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admission-fields-grid .form-input,
  .admission-fields-grid .form-select {
    height: 46px;
    font-size: 0.88rem;
  }

  .admission-declaration-box {
    padding: 14px;
  }

  .admission-declaration-text {
    font-size: 0.82rem;
  }

  .admission-declaration-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admission-signature-blocks {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px 0 8px;
  }

  .admission-submit-btn {
    height: 48px;
    font-size: 0.96rem;
  }

  .admission-side-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   ADAPTIVE EXECUTIVE DASHBOARD & MOBILE UI FEATURES (TPSH ADAPTATION)
   ========================================================================== */

/* 1. Dark Contrast Executive Hero Card */
.m-hero-card {
  background: linear-gradient(145deg, #0F172A 0%, #3A2E0F 100%);
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px -6px rgba(58, 46, 15, 0.45);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.m-hero-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 154, 51, 0.25), rgba(191, 154, 51, 0) 70%);
  pointer-events: none;
}

.m-hero-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 20%;
  width: 220px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(191, 154, 51, 0.18), transparent 70%);
  pointer-events: none;
}

.m-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  gap: 10px;
  flex-wrap: wrap;
}

.m-hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #E2E8F0;
  text-transform: uppercase;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.2s ease;
}

.m-hero-brand-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.m-hero-brand-pill.has-alert {
  background: rgba(234, 88, 12, 0.25);
  border-color: rgba(249, 115, 22, 0.45);
  color: #FFEDD5;
}

.m-hero-live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50% !important;
  background: #BF9A33 !important;
  box-shadow: 0 0 8px rgba(191, 154, 51, 0.9) !important;
  animation: tpsGreenRadarPulse 2s infinite ease-in-out !important;
  flex-shrink: 0;
}

@keyframes tpsGreenRadarPulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(191, 154, 51, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(191, 154, 51, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(191, 154, 51, 0);
  }
}

.m-hero-eye-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.m-hero-eye-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  transform: scale(1.05);
}

.m-hero-eye-btn:active {
  transform: scale(0.95);
}

.m-hero-metric-body {
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
}

.m-hero-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F1DFA8;
  display: block;
  margin-bottom: 6px;
}

.m-hero-metric-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.m-hero-big-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font-display, inherit);
}

.m-hero-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
}

.m-hero-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.76rem;
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-hero-trend-sep {
  color: rgba(255, 255, 255, 0.4);
}

.m-hero-footer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  gap: 12px;
}

.m-hero-f-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.m-hero-f-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-hero-f-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.m-hero-f-divider {
  display: none;
}

/* 2. Touch-First Bento Grid Quick Actions */
.m-section-block {
  margin-bottom: 1.5rem;
}

.m-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 10px;
}

.m-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary, #0F172A);
  margin: 0;
  letter-spacing: -0.01em;
}

.m-section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #BF9A33;
  background: #FDFBF7;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m-section-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #BF9A33;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.m-section-link:hover {
  color: #8C6E1E;
  text-decoration: underline;
}

.m-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.m-action-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  user-select: none;
}

.m-action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  border-color: #CBD5E1;
}

.m-action-tile:active {
  transform: scale(0.97);
  background: #F8FAFC;
}

.m-action-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform 0.2s ease;
}

.m-action-tile:hover .m-action-icon-wrap {
  transform: scale(1.08);
}

.m-action-icon-wrap.mint {
  background: #ECFDF5;
  color: #BF9A33;
  border: 1px solid #F1DFA8;
}

.m-action-icon-wrap.blue {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.m-action-icon-wrap.amber {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.m-action-icon-wrap.purple {
  background: #FAF5FF;
  color: #7C3AED;
  border: 1px solid #E9D5FF;
}

.m-action-meta {
  display: flex;
  flex-direction: column;
}

.m-action-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-action-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

.m-action-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
  background: #EA580C;
  padding: 1px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

.m-action-desc {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.3;
}

/* 3. Campus Distribution SVG Donut Arc Gauge */
.m-gauge-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
}

.m-gauge-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 10px;
}

.m-gauge-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.m-gauge-sub {
  font-size: 0.74rem;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.m-gauge-badge {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #F1DFA8;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.m-gauge-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(4px);
}

.m-gauge-center-content {
  position: absolute;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.m-gauge-center-val {
  font-size: 2rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1;
  font-family: var(--font-display, inherit);
}

.m-gauge-center-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.m-gauge-legend-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

.m-gauge-leg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.m-leg-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.m-leg-dot.emerald { background: #BF9A33; }
.m-leg-dot.amber { background: #D97706; }
.m-leg-dot.blue { background: #2563EB; }
.m-leg-dot.red { background: #EF4444; }

.m-leg-name {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.m-leg-count {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

/* 4. Horizontal Scroll Avatar Strip (Daily Absentees & Passes) */
.m-leave-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #EF4444;
  background: #FEE2E2;
  padding: 2px 8px;
  border-radius: 9999px;
}

.m-residents-scroll {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  -webkit-overflow-scrolling: touch;
}

.m-res-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.m-res-item:hover {
  transform: translateY(-2px);
}

.m-res-item:active {
  transform: scale(0.92);
}

.m-res-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.m-res-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.m-res-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-res-avatar.absent {
  border: 2px solid #DC2626;
  background: #FEF2F2;
  color: #B91C1C;
}

.m-res-avatar.leave {
  border: 2px solid #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
}

.m-res-avatar.late {
  border: 2px solid #D97706;
  background: #FFFBEB;
  color: #B45309;
}

.m-res-badge-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
}

.m-res-badge-dot.dot-red { background: #DC2626; }
.m-res-badge-dot.dot-blue { background: #2563EB; }
.m-res-badge-dot.dot-amber { background: #D97706; }

.m-res-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0F172A;
  max-width: 65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.m-res-status-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
}

.m-res-status-pill.status-absent {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.m-res-status-pill.status-leave {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.m-res-status-pill.status-late {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Responsive Adaptive Breakpoints */
@media (max-width: 960px) {
  .m-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .m-hero-footer-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .m-hero-card {
    padding: 1.25rem 1.1rem;
    border-radius: 18px;
  }

  .m-hero-big-number {
    font-size: 2.2rem;
  }

  .m-hero-footer-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem 0.85rem;
  }

  .m-gauge-legend-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .m-actions-grid {
    grid-template-columns: 1fr;
  }

  .m-hero-footer-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADAPTIVE LOGIN PORTAL LAYOUT (TPSH ADAPTATION)
   ========================================================================== */

.tps-login-viewport {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EEF4FB;
  background-image: 
    radial-gradient(ellipse at 85% 90%, rgba(191, 154, 51, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 15%, rgba(191, 154, 51, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, #F1F6FD, #EEF4FB);
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

.tps-login-card {
  max-width: 1080px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 36px;
  padding: 18px;
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Left Hero Showcase Panel */
.tps-login-hero {
  border-radius: 28px;
  background: linear-gradient(155deg, #BF9A33, #BF9A33 35%, #0F5132 75%, #3A2E0F);
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  min-height: 580px;
  box-sizing: border-box;
}

.tps-hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.18;
}

.tps-hex-shape {
  position: absolute;
  width: 76px;
  height: 88px;
  background: rgba(255, 255, 255, 0.35);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tps-hex-1 { top: 18%; right: 18%; transform: scale(1.1) rotate(12deg); }
.tps-hex-2 { top: 32%; right: 8%; transform: scale(0.85) rotate(-8deg); }
.tps-hex-3 { top: 48%; right: 16%; transform: scale(1.3) rotate(15deg); }
.tps-hex-4 { top: 64%; right: 6%; transform: scale(0.9) rotate(5deg); }

.tps-login-hero-header {
  position: relative;
  z-index: 2;
}

.tps-hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #E2E8F0;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tps-login-headline {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0;
  color: #FFFFFF;
  max-width: 440px;
}

.tps-login-subtext {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin-top: 0.75rem;
  max-width: 420px;
}

/* 3D Tablet Showcase Scene */
.tps-login-scene {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 290px;
  margin-top: 1.5rem;
}

.tps-scene-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(6, 78, 59, 0.55) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.tps-scene-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tps-tablet-wrap {
  flex: 1;
  max-width: 340px;
  position: relative;
  perspective: 1000px;
  z-index: 2;
}

.tps-tablet-frame {
  background: #FFFFFF;
  border-radius: 22px;
  border: 5px solid #F1F5F9;
  box-shadow: 0 24px 44px -10px rgba(6, 78, 59, 0.4), 0 10px 20px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6);
  padding: 16px 16px 18px;
  color: #0F172A;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.tps-tablet-frame:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  box-shadow: 0 28px 50px -10px rgba(58, 46, 15, 0.45);
}

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

.tps-tablet-pill {
  width: 32px;
  height: 6px;
  background: #BF9A33;
  border-radius: 9999px;
}

.tps-tablet-dots {
  display: flex;
  gap: 4px;
}

.tps-t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tps-t-dot.green { background: #BF9A33; }
.tps-t-dot.amber { background: #F59E0B; }
.tps-t-dot.red { background: #EF4444; }

.tps-tablet-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
}

.tps-t-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 9px 10px;
}

.tps-t-card-dark {
  background: #0B132B;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 10px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
}

.tps-t-avatar-card {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tps-t-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #BF9A33;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #BF9A33;
  flex-shrink: 0;
}

.tps-floating-knob {
  position: absolute;
  bottom: 14px;
  left: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #BF9A33, #BF9A33, #047857);
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 20px rgba(191, 154, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 5;
}

/* Right Sign In Form Panel */
.tps-login-form-panel {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 28px;
  box-sizing: border-box;
}

.tps-mobile-brand-center {
  display: none;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tps-form-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem 0;
}

.tps-form-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.tps-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tps-form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tps-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0F172A;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.tps-form-input:focus {
  background: #FFFFFF;
  border-color: #BF9A33;
  box-shadow: 0 0 0 3px rgba(191, 154, 51, 0.15);
}

.tps-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tps-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.tps-pw-toggle:hover {
  color: #0F172A;
}

.tps-btn-login {
  width: 100%;
  height: 48px;
  background: #BF9A33;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(191, 154, 51, 0.35);
  transition: all 0.2s ease;
}

.tps-btn-login:hover {
  background: #047857;
  box-shadow: 0 6px 18px rgba(191, 154, 51, 0.45);
  transform: translateY(-1px);
}

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

.tps-login-sep {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 500;
}

.tps-login-sep::before,
.tps-login-sep::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.tps-login-sep span {
  padding: 0 12px;
}

.tps-btn-google-oauth {
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tps-btn-google-oauth:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tps-btn-google-oauth:active {
  transform: translateY(0);
}

.tps-login-footer-auth {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #64748B;
  text-align: center;
  line-height: 1.45;
}

.tps-login-footer-auth strong {
  color: #0F172A;
}

/* Responsive Breakpoints for Login Layout */
@media (max-width: 960px) {
  .tps-login-viewport {
    padding: 1.5rem 1rem;
    align-items: center;
  }

  .tps-login-card {
    grid-template-columns: 1fr;
    max-width: 440px;
    padding: 2rem 1.5rem;
    border-radius: 28px;
  }

  .tps-login-hero {
    display: none;
  }

  .tps-mobile-brand-center {
    display: block;
  }

  .tps-login-form-panel {
    padding: 0;
  }

  .tps-form-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .tps-form-desc {
    text-align: center;
    margin-bottom: 1.25rem;
  }
}
