﻿/* ==========================================================
   ACAS Alumni Portal - Style System
   Aditanar College of Arts & Science, Tiruchendur
   Aditanar Educational Institution (AEI) • Estd 1965
   ========================================================== */

:root {
  --navy-deep: #f8fafc;
  --navy-dark: #ffffff;
  --navy-primary: #f1f5f9;
  --navy-card: #ffffff;
  --navy-card-border: rgba(226, 232, 240, 0.95);
  --navy-hover: #e2e8f0;

  --gold-primary: #d97706;
  --gold-light: #b45309;
  --gold-amber: #b45309;
  --gold-glow: rgba(217, 119, 6, 0.25);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --text-light-navy: #1e293b;

  --accent-teal: #0891b2;
  --accent-emerald: #059669;
  --accent-crimson: #e11d48;
  --accent-indigo: #4f46e5;
  --accent-violet: #7c3aed;

  --bg-gradient: 
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(99, 102, 241, 0.05) 0%, transparent 48%),
    radial-gradient(circle at 78% 85%, rgba(244, 63, 94, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e8edf5 100%);
  --card-bg: #ffffff;
  --card-border: 1px solid rgba(226, 232, 240, 0.95);

  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #0f172a;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.text-center {
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #0f172a 35%, #1e3a8a 70%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  color: #475569;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060d17;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-outline:hover {
  background: #fffbeb;
  border-color: var(--gold-light);
  color: #92400e;
}

.btn-gold {
  background: #fbbf24;
  color: #0a192f;
  font-weight: 700;
}

.btn-gold:hover {
  background: #f59e0b;
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 1.15rem 2.4rem;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Announcement Top Bar */
.announcement-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #fef3c7 50%, #eff6ff 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: #1e293b;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  text-align: center;
}

.announcement-content .badge {
  background: var(--gold-amber);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.announcement-link {
  color: #b45309;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.announcement-link:hover {
  text-decoration: underline;
  color: #78350f;
}

/* ==========================================================
   Main Navigation - Swiggy-Style Curved Tabs & Pill Capsule
   Department of Physics, CEG • Anna University
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.95);
  padding: 0.45rem 0 0.15rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  position: relative;
  width: 100%;
  max-width: 1560px !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060d17;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  animation: spin-slow 20s linear infinite;
  flex-shrink: 0;
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: #b45309;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
}

/* Swiggy-Style Curved Tabs Navigation Strip */
.swiggy-nav-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  padding: 0 0.4rem 0 0;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.swiggy-nav-tabs.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.swiggy-nav-tabs.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.swiggy-nav-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Base Swiggy Tab */
.swiggy-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.72rem 0.3rem 0.72rem;
  min-width: 62px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 14px 14px 10px 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
}

.swiggy-tab * {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.swiggy-tab:hover {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

/* Tab Icon Badge (3D Vibrant Bubble) */
.tab-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  margin-bottom: 0.18rem;
  position: relative;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.swiggy-tab:hover .tab-icon-badge {
  transform: scale(1.08);
}

button.swiggy-tab {
  font-family: inherit;
  outline: none;
  border-style: solid;
}

/* Swiggy Hamburger Menu Tab (Positioned directly in front of Home Tab - Freezed on Horizontal Scroll) */
.swiggy-tab-menu {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 30;
  background: #ffffff;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 4px 0 10px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiggy-tab-menu::before {
  content: '';
  position: absolute;
  inset: -6px 0 -6px -12px;
  background: #ffffff;
  z-index: -1;
  pointer-events: none;
  border-radius: 14px 0 0 10px;
}

.swiggy-tab-menu:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 5px 0 16px rgba(245, 158, 11, 0.35), 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.swiggy-tab-menu:active {
  transform: scale(0.96);
  background: #fef3c7;
}

.swiggy-tab-menu.is-scrolled {
  box-shadow: 6px 0 18px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(245, 158, 11, 0.25);
  border-right-color: #f59e0b;
}

.swiggy-tab-menu.is-scrolled:hover {
  box-shadow: 6px 0 18px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(15, 23, 42, 0.15);
}

.badge-menu {
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
  color: #071328;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.swiggy-tab-menu .tab-text {
  color: #b45309;
  font-weight: 700;
}

/* Gradient palettes for each tab icon badge */
.badge-home {
  background: radial-gradient(circle at 30% 30%, #fcd34d 0%, #f59e0b 60%, #b45309 100%);
  color: #060d17;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.badge-patron {
  background: radial-gradient(circle at 30% 30%, #7dd3fc 0%, #0284c7 60%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.badge-directory {
  background: radial-gradient(circle at 30% 30%, #6ee7b7 0%, #10b981 60%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.badge-batches {
  background: radial-gradient(circle at 30% 30%, #d8b4fe 0%, #9333ea 60%, #6b21a8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35);
}

.badge-memories {
  background: radial-gradient(circle at 30% 30%, #fda4af 0%, #f43f5e 60%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.badge-mentorship {
  background: radial-gradient(circle at 30% 30%, #67e8f9 0%, #06b6d4 60%, #0e7490 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.badge-donate {
  background: radial-gradient(circle at 30% 30%, #fda4af 0%, #e11d48 60%, #9f1239 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Tab Text Label */
.tab-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.22s ease, font-weight 0.22s ease;
  line-height: 1.2;
}

/* ACTIVE TAB - SIGNATURE SWIGGY SCOOP FOLDER CURVE */
.swiggy-tab.active {
  background: #ffffff;
  border-top: 3px solid #f59e0b;
  border-left: 1.5px solid rgba(245, 158, 11, 0.4);
  border-right: 1.5px solid rgba(245, 158, 11, 0.4);
  border-bottom: 2px solid transparent;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 16px rgba(245, 158, 11, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  z-index: 5;
}

.swiggy-tab.active .tab-text {
  color: #b45309;
  font-weight: 700;
}

.swiggy-tab.active .tab-icon-badge {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* Inverted Concave Scoop Outward Flares at Bottom Corners */
.swiggy-tab.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 0, transparent 0, transparent 9.5px, rgba(245, 158, 11, 0.35) 10px, #ffffff 11px);
  pointer-events: none;
}

.swiggy-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 100% 0, transparent 0, transparent 9.5px, rgba(245, 158, 11, 0.35) 10px, #ffffff 11px);
  pointer-events: none;
}

/* Nav Actions Group (Live Sync, Join CTA & Install App - Text Below Icon) */
.nav-actions-group {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Base Nav Action Button (Vertical Stack: Icon on top, Text below) */
.nav-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.68rem 0.3rem 0.68rem;
  min-width: 58px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 14px 14px 10px 10px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  line-height: 1.2;
}

.nav-action-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Action Icon Bubble (3D Vibrant Bubble matching Swiggy tab badges) */
.action-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  margin-bottom: 0.18rem;
  position: relative;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.nav-action-btn:hover .action-icon-badge {
  transform: scale(1.08);
}

/* Text Below Icon */
.nav-action-btn .sync-badge-text,
.nav-action-btn .cta-text,
.nav-action-btn .install-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.22s ease, font-weight 0.22s ease;
  line-height: 1.2;
}

/* 1. Live Cloud Sync Button */
.btn-cloud-sync-badge.nav-action-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(16, 185, 129, 0.45);
}

.sync-icon-badge {
  background: radial-gradient(circle at 30% 30%, #6ee7b7 0%, #10b981 60%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  position: relative;
}

.btn-cloud-sync-badge .sync-badge-text {
  color: #047857;
}

.btn-cloud-sync-badge.status-connected {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.07);
}

.btn-cloud-sync-badge.status-connected:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
}

.sync-icon-badge .sync-badge-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px #10b981;
  animation: syncPulseGreen 2.5s infinite ease-in-out;
}

.btn-cloud-sync-badge.status-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.07);
}

.btn-cloud-sync-badge.status-warning .sync-icon-badge {
  background: radial-gradient(circle at 30% 30%, #fde68a 0%, #f59e0b 60%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-cloud-sync-badge.status-warning .sync-badge-text {
  color: #b45309;
}

.btn-cloud-sync-badge.status-warning .sync-icon-badge .sync-badge-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: syncPulseAmber 1.8s infinite ease-in-out;
}

.btn-cloud-sync-badge.status-syncing {
  border-color: rgba(2, 132, 199, 0.45);
  background: rgba(2, 132, 199, 0.07);
}

.btn-cloud-sync-badge.status-syncing .sync-icon-badge {
  background: radial-gradient(circle at 30% 30%, #7dd3fc 0%, #0284c7 60%, #0369a1 100%);
  color: #ffffff;
}

.btn-cloud-sync-badge.status-syncing .sync-badge-text {
  color: #0284c7;
}

.btn-cloud-sync-badge.status-syncing .sync-badge-icon {
  animation: fa-spin 1s linear infinite;
}

/* 2. Join Network CTA Button */
.nav-cta.nav-action-btn {
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.nav-cta.nav-action-btn:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.cta-icon-badge {
  background: radial-gradient(circle at 30% 30%, #fde047 0%, #f59e0b 60%, #b45309 100%);
  color: #060d17;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.nav-cta .cta-text {
  color: #b45309;
}

/* 3. Install App Button */
.btn-install-app.nav-action-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.85);
}

.btn-install-app.nav-action-btn:hover {
  background: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.install-icon-badge {
  background: radial-gradient(circle at 30% 30%, #fed7aa 0%, #f97316 60%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.btn-install-app .install-text {
  color: #c2410c;
}

.btn-install-app.btn-installed {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.btn-install-app.btn-installed .install-icon-badge {
  background: radial-gradient(circle at 30% 30%, #6ee7b7 0%, #10b981 60%, #047857 100%);
  color: #ffffff;
}

.btn-install-app.btn-installed .install-text {
  color: #047857;
}

/* Responsive Action Button Text Elements */
.sync-text-compact,
.cta-text-compact,
.install-text-compact {
  display: none;
}

@media (max-width: 1360px) and (min-width: 769px) {
  .swiggy-tab {
    padding: 0.32rem 0.52rem 0.26rem 0.52rem;
    min-width: 52px;
  }
  .tab-icon-badge {
    width: 29px;
    height: 29px;
    font-size: 0.9rem;
    margin-bottom: 0.14rem;
  }
  .tab-text {
    font-size: 0.68rem;
  }
  .brand-identity {
    gap: 0.55rem;
  }
  .brand-crest {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  .brand-acronym {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .nav-action-btn {
    padding: 0.32rem 0.52rem 0.26rem 0.52rem;
    min-width: 50px;
  }
  .action-icon-badge {
    width: 29px;
    height: 29px;
    font-size: 0.9rem;
    margin-bottom: 0.14rem;
  }
  .nav-action-btn .sync-badge-text,
  .nav-action-btn .cta-text,
  .nav-action-btn .install-text {
    font-size: 0.68rem;
  }
  .sync-text-full {
    display: none;
  }
  .sync-text-compact {
    display: inline;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .install-text-full {
    display: none;
  }
  .install-text-compact {
    display: inline;
  }
  .cta-text-full {
    display: none;
  }
  .cta-text-compact {
    display: inline;
  }
}

/* SWIGGY-STYLE TOP-RIGHT PILL CAPSULE [ (Avatar/Atom) | ☰ ] */
.menu-capsule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.65rem 0.32rem 0.38rem;
  background: rgba(18, 39, 80, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 9999px; /* full pill */
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  outline: none;
}

.menu-capsule-pill:hover {
  background: rgba(26, 54, 104, 0.95);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  transform: scale(1.04);
}

.menu-capsule-pill:active {
  transform: scale(0.97);
}

.capsule-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060d17;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.capsule-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.22);
}

.capsule-hamburger {
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0.15rem;
}

/* ==========================================================
   Quick Navigation Slide-Over Drawer
   ========================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quick-nav-drawer {
  position: fixed;
  top: 0;
  left: -360px;
  right: auto;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-right: 1.5px solid rgba(226, 232, 240, 0.95);
  border-left: none;
  box-shadow: 10px 0 35px rgba(15, 23, 42, 0.15);
  z-index: 10001;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-nav-drawer.active {
  left: 0;
  right: auto;
}

.drawer-header {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.drawer-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060d17;
  font-size: 1.05rem;
}

.drawer-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  letter-spacing: 0.08em;
}

.drawer-sub {
  font-size: 0.68rem;
  color: #b45309;
  font-weight: 600;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.2s ease;
}

.drawer-close-btn:hover {
  color: #d97706;
  transform: scale(1.1);
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

.drawer-patron-badge {
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.drawer-section-heading {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  margin: 1rem 0 0.6rem 0.25rem;
}

.drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.drawer-link:hover {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(4px);
}

.drawer-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.home-box { background: linear-gradient(135deg, #f59e0b, #d97706); color: #060d17; }
.patron-box { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.dir-box { background: linear-gradient(135deg, #10b981, #059669); }
.batch-box { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.mem-box { background: linear-gradient(135deg, #f43f5e, #be123c); }
.mentor-box { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.donate-box { background: linear-gradient(135deg, #fb7185, #e11d48); }

.drawer-link-info {
  display: flex;
  flex-direction: column;
}

.drawer-link-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.drawer-link-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.drawer-action-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.drawer-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.drawer-action-card.primary {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.drawer-action-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.drawer-action-card i {
  font-size: 1.35rem;
  color: #b45309;
}

.drawer-action-card strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

.drawer-action-card p {
  color: #64748b;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5.5rem 0 4.5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #fffbeb 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.hero-particle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.08) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.08) 0, transparent 40%);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #0f172a 35%, #1e3a8a 70%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(12px);
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e2e8f0;
}

/* Patron's Message Section */
.patron-section {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.patron-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.patron-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.patron-profile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  padding-right: 2rem;
}

.patron-avatar-frame {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 3px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #b45309;
}

.patron-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.4);
  animation: spin-slow 30s linear infinite;
}

.patron-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.patron-designation {
  font-weight: 700;
  color: #b45309;
  font-size: 0.95rem;
}

.patron-dept, .patron-inst {
  font-size: 0.85rem;
  color: #475569;
}

.patron-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.pill-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.patron-signature-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

.signature-text {
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #b45309;
  letter-spacing: 0.08em;
}

.signature-caption {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Patron Letter Column */
.patron-letter-col {
  display: flex;
  flex-direction: column;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  font-style: italic;
  line-height: 1.4;
}

.vintage-stamp {
  border: 2px dashed rgba(245, 158, 11, 0.4);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transform: rotate(-3deg);
  background: #fffbeb;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.85;
  color: #1e293b;
}

.letter-body p {
  margin-bottom: 1.15rem;
}

.letter-quote {
  border-left: 3px solid var(--gold-primary);
  background: #fffbeb;
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.4rem 0;
  font-style: italic;
  color: #78350f;
  font-size: 1.05rem;
}

.patron-bullet-points {
  list-style: none;
  margin: 1.2rem 0;
  padding-left: 0;
}

.patron-bullet-points li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #1e293b;
}

.patron-bullet-points li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--gold-primary);
}

.letter-footer {
  margin-top: 1.8rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.2rem;
}

.warm-regards {
  color: #64748b;
  font-style: italic;
  margin-bottom: 0.2rem;
}

.signed-by {
  font-size: 1.1rem;
  color: #b45309;
}

.signed-title {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Purpose Banner */
.purpose-banner {
  padding: 3rem 0;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.purpose-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.purpose-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.purpose-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.purpose-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.purpose-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

/* Registration Form Section */
.register-section {
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.registration-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.registration-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.07);
}

.form-fieldset {
  margin-bottom: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid #e2e8f0;
}

.form-fieldset:last-child {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.fieldset-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fieldset-title h3 {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
  color: #0f172a;
}

.fieldset-title p {
  font-size: 0.85rem;
  color: #64748b;
}

.form-row {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

.form-group select option {
  background: #ffffff;
  color: #0f172a;
}

.checkbox-group-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #334155;
  transition: all 0.2s ease;
}

.custom-checkbox:hover {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.4);
  color: #0f172a;
}

.custom-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.privacy-note {
  font-size: 0.8rem;
  color: #64748b;
}

/* Success Alert */
.success-alert {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
  animation: slide-up 0.4s ease;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  font-size: 2.5rem;
  color: var(--accent-emerald);
}

.success-body h3 {
  font-size: 1.35rem;
  color: #065f46;
  margin-bottom: 0.4rem;
}

.success-body p {
  color: #047857;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.success-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

/* Alumni Directory Section */
.directory-section {
  background: #f1f5f9;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.directory-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.directory-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  color: #b45309;
  font-size: 1.1rem;
}

.search-bar-wrap input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem 0.9rem 2.8rem;
  color: #0f172a;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-bar-wrap input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.clear-search-btn {
  position: absolute;
  right: 1.1rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
}

.filter-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}

.filter-group select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  color: #0f172a;
  font-size: 0.88rem;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.filter-group select option {
  background: #ffffff;
  color: #0f172a;
}

.directory-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.active-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Alumni Grid & Cards */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.alumni-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.alumni-card.alumni-card-just-registered {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 16px 36px rgba(16, 185, 129, 0.2) !important;
  animation: justRegisteredPulse 2.5s ease-in-out infinite alternate;
}

@keyframes justRegisteredPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 10px 25px rgba(16, 185, 129, 0.15);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.35), 0 18px 40px rgba(16, 185, 129, 0.25);
  }
}

.new-member-badge {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  padding: 0.2rem 0.55rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  animation: pulseNewBadge 2s infinite ease-in-out !important;
}

@keyframes pulseNewBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.recent-reg-banner {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.recent-reg-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

.recent-reg-info {
  font-size: 0.88rem;
  color: #065f46;
  flex: 1;
}

.recent-reg-info strong {
  color: #047857;
}

.recent-reg-jump-btn {
  background: #ffffff;
  color: #059669;
  border: 1px solid #10b981;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.recent-reg-jump-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.alumni-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.alumni-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.alumni-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #b45309;
  flex-shrink: 0;
}

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

.alumni-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alumni-batch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.alumni-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.alumni-org {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.alumni-degree-tag {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 0.9rem;
}

.alumni-location {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.alumni-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
}

.mini-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.mini-badge.mentor {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.alumni-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.9rem;
  margin-top: 0.5rem;
}

.alumni-social-btn {
  color: #64748b;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.3rem;
}

.alumni-social-btn:hover {
  color: #b45309;
}

.view-details-link {
  font-size: 0.82rem;
  color: #b45309;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.view-details-link:hover {
  text-decoration: underline;
  color: #d97706;
}

.btn-edit-trigger {
  color: #d97706 !important;
  transition: all 0.2s ease;
}

.btn-edit-trigger:hover {
  color: #b45309 !important;
  transform: scale(1.18);
}

.btn-edit-pill {
  font-size: 0.78rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-edit-pill:hover {
  background: #fde68a;
  color: #92400e;
}

.my-profile-badge {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}

.my-profile-edit-btn {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  font-weight: 700 !important;
}

.my-profile-edit-btn:hover {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.admin-edit-btn {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #334155 !important;
}

.admin-edit-btn:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

.edit-profile-modal-dialog {
  max-width: 760px !important;
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed #cbd5e1;
}

.empty-icon {
  font-size: 3.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: #64748b;
  max-width: 450px;
  margin: 0 auto 1.5rem auto;
}

/* Batches & Chronicle Section */
.batches-section {
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.batch-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}

.batch-tab {
  padding: 0.6rem 1.2rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.batch-tab:hover, .batch-tab.active {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  border-color: #f59e0b;
}

.batch-table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.batch-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #cbd5e1;
}

.batch-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.batch-table tr:hover td {
  background: #fffbeb;
}

.badge-era {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
}

.coordinator-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.callout-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #0f172a;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
  min-width: 250px;
}

.callout-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: #0f172a;
}

.callout-content p {
  color: #475569;
  font-size: 0.95rem;
}

/* Memory Wall Section */
.memories-section {
  background: #f1f5f9;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.add-memory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 850px;
  margin: 0 auto 3rem auto;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.memory-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.memory-card-header i {
  font-size: 1.4rem;
  color: #b45309;
}

.memory-card-header h4 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
  color: #0f172a;
}

.memory-card-header p {
  font-size: 0.85rem;
  color: #64748b;
}

.memory-form input,
.memory-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.memory-form input:focus,
.memory-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.memory-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.memory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.memory-quote-icon {
  color: rgba(245, 158, 11, 0.4);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.memory-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 1.2rem;
}

.memory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.8rem;
  font-size: 0.8rem;
}

.memory-author {
  font-weight: 700;
  color: #b45309;
}

.memory-batch {
  color: #64748b;
}

/* Mentorship Section */
.mentorship-section {
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.mentorship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mentor-track-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mentor-track-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.track-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

.mentor-track-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.mentor-track-card p {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.track-list {
  list-style: none;
}

.track-list li {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.track-list li i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* Heritage Section */
.heritage-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fef3c7 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 5rem 0;
}

.heritage-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.heritage-label {
  font-size: 0.82rem;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.heritage-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 1.2rem;
}

.heritage-text p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.heritage-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.h-card {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.h-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #b45309;
  display: block;
  margin-bottom: 0.35rem;
}

.h-desc {
  font-size: 0.82rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0f172a;
  border-top: 1px solid rgba(226, 232, 240, 0.15);
  padding-top: 4.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr 1.1fr;
  gap: 2.2rem;
  padding-bottom: 3.5rem;
}

.footer-brand {
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--gold-primary);
  color: #060d17;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a, .footer-links span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 0.25rem;
}

.campus-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.footer-patron-credit {
  background: rgba(245, 158, 11, 0.08);
  border-left: 2px solid var(--gold-primary);
  padding: 0.6rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.footer-patron-credit small {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 0;
  background: #090d16;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.heart-text strong {
  color: var(--gold-light);
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
  padding: 2.2rem;
  color: #0f172a;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #0f172a;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .patron-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .patron-profile-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0;
    padding-bottom: 2rem;
  }
  .heritage-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }

  /* Responsive 2-Tier Header for Swiggy-Style Tabs & Actions */
  .navbar {
    padding: 0.45rem 0 0.15rem 0;
  }

  .nav-container {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .brand-identity {
    order: 1;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-crest {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .brand-acronym {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    display: none; /* Hide long department subtitle on mobile */
  }

  .nav-actions-group {
    order: 2;
    gap: 0.28rem;
    margin-left: auto;
    align-items: flex-end;
  }

  .nav-action-btn {
    padding: 0.24rem 0.42rem 0.18rem 0.42rem;
    min-width: 44px;
    border-radius: 12px 12px 8px 8px;
  }

  .action-icon-badge {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
  }

  .nav-action-btn .sync-badge-text,
  .nav-action-btn .cta-text,
  .nav-action-btn .install-text {
    font-size: 0.6rem;
    font-weight: 700;
    display: block !important;
    line-height: 1.15;
  }

  .cta-text-full,
  .sync-text-full,
  .install-text-full {
    display: none !important;
  }

  .cta-text-compact,
  .sync-text-compact,
  .install-text-compact {
    display: inline !important;
  }

  .swiggy-nav-tabs {
    width: 100%;
    order: 3;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.3rem 0.3rem 0.15rem 0;
    margin: 0.2rem 0 0 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    gap: 0.28rem;
  }

  .swiggy-tab {
    padding: 0.26rem 0.52rem 0.22rem 0.52rem;
    min-width: 56px;
    border-radius: 12px 12px 8px 8px;
    flex-shrink: 0;
  }

  .tab-icon-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    margin-bottom: 0.14rem;
  }

  .tab-text {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .swiggy-tab.active {
    border-top-width: 2.5px;
    border-radius: 14px 14px 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   Progressive Web App (PWA) Styling - Desktop & Mobile Install
   ========================================================== */

/* Offline Status Notification Banner */
#offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #d97706, #b45309);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: pwaSlideDown 0.3s ease-out;
}

#offline-indicator.hidden {
  display: none !important;
}

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

/* Navbar Install App Button */
.btn-install-app {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid var(--gold-primary);
  color: #fbbf24;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-install-app:hover {
  background: var(--gold-primary);
  color: #060d17;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-install-app.btn-installed {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  cursor: default;
}

.btn-install-app.btn-installed:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  box-shadow: none;
  transform: none;
}

/* Floating PWA Install Prompt Banner */
#pwa-install-banner {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1500;
  max-width: 440px;
  width: calc(100% - 3.5rem);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 25px rgba(245, 158, 11, 0.1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#pwa-install-banner.hidden {
  display: none !important;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.banner-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
}

.banner-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.banner-title-area {
  flex: 1;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.banner-sub {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
}

.banner-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
}

.banner-close-btn:hover {
  color: #0f172a;
}

.banner-perks {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.perk-pill {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.perk-pill i {
  color: #b45309;
}

.banner-actions {
  display: flex;
  gap: 0.65rem;
}

.banner-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem;
}

/* iOS Installation Instructions Modal */
.ios-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: pwaFadeIn 0.25s ease-out;
}

.ios-modal-backdrop.hidden {
  display: none !important;
}

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

.ios-modal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.ios-app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ios-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.ios-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #0f172a;
}

.ios-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-amber);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.step-desc strong {
  color: #b45309;
}

.step-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 4px;
  font-size: 0.85rem;
  margin: 0 0.2rem;
}

/* Toast Notifications */
#pwa-toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 90%;
  max-width: 480px;
  pointer-events: none;
}

.pwa-toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.9rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}

.pwa-toast.toast-fade-out {
  opacity: 0;
  transform: translateY(15px);
}

.pwa-toast i {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.pwa-toast-update {
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: #102a45;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.pwa-toast-update .toast-content {
  color: #f8fafc;
}

.pwa-toast-update .toast-content span {
  color: #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pwa-toast-update .toast-content strong {
  color: #fbbf24;
  font-weight: 700;
}

.pwa-toast-update i {
  color: #38bdf8;
  font-size: 1.15rem;
}

.pwa-toast-update #btn-update-reload {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  cursor: pointer;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

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

@media (max-width: 768px) {
  #pwa-install-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }
  #pwa-install-banner .btn-install-app {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   Universal Outlook Donation System Replication for AUPA
   - Mount Fuji Landscape & Drifting Sakura Cherry Blossoms
   - Material You DonateContainer & Steaming BMAC Button
   - DonateOptionDialog (Phone Browser vs In-App WebView)
   - DonateWebViewScreen In-App Overlay with Bottom FABs
   - Milestone Launch DonateDialog with Countdown
   ========================================================== */

/* Navbar Donate Link Pulsing Indicator */
.nav-donate-link {
  position: relative;
}

.nav-donate-link i {
  display: inline-block;
  animation: heartPulse 1.8s ease-in-out infinite;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ==========================================================
   Revamped Streamlined Instant-Pay Donation Hub
   ========================================================== */
.donate-section {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.donate-card-hub {
  position: relative;
  background: linear-gradient(145deg, #0d1e38 0%, #13274a 40%, #1a1a3e 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(5, 12, 28, 0.7), 0 0 50px rgba(245, 158, 11, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  padding: 3rem 3.5rem;
  overflow: hidden;
}

/* Background Subtle Glow Accent */
.donate-card-hub::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(244, 63, 94, 0.08) 50%, transparent 75%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.donate-card-hub::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

/* ── Interactive Flowers & Crackers Celebration Canvas ────── */
.donation-celebration-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  border-radius: inherit;
}

/* ── Universal Viewport Celebration Canvas (Top Nav Icons & App-wide) ── */
.global-celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ── Header ─────────────────────────────────────────────── */
.donate-hub-header {
  text-align: center;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto 2.2rem;
  position: relative;
  z-index: 2;
}

.donate-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.9rem;
}

.donate-hub-kicker i {
  color: #f43f5e;
  animation: heartPulse 1.8s ease-in-out infinite;
}

.donate-hub-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.donate-hub-subtitle {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0 auto 1.8rem;
  max-width: 960px;
}

.donate-dev-summary {
  display: inline-block;
  margin-top: 0.4rem;
  color: #93c5fd;
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Currency / Region Tabs ─────────────────────────────── */
.donate-tabs-nav {
  display: inline-flex;
  background: rgba(8, 18, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  border-radius: 9999px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  gap: 0.4rem;
  max-width: 100%;
}

.donate-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.donate-tab-btn .tab-btn-text {
  white-space: nowrap;
  display: inline-block;
}

.donate-tab-btn:hover {
  color: #ffffff;
}

.donate-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b1528;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.donate-tab-btn.active .tab-highlight-tag {
  background: #0b1528;
  color: #fcd34d;
}

.tab-highlight-tag {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── Panel Transitions ──────────────────────────────────── */
.donate-panel {
  display: none;
  position: relative;
  z-index: 2;
  animation: donateFadeIn 0.3s ease forwards;
}

.donate-panel.active {
  display: block;
}

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

/* ── 2-Column Grid Layout for UPI ───────────────────────── */
.donate-grid-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.2rem;
  align-items: stretch;
}

.donate-col-controls {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: center;
}

.donate-group-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
}

.donate-amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.preset-pill {
  background: rgba(18, 36, 68, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.preset-pill:hover {
  background: rgba(28, 56, 102, 0.9);
  border-color: #f59e0b;
  transform: translateY(-2px);
  color: #ffffff;
}

.preset-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0b1528;
  border-color: #fef3c7;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.preset-pill.preset-pill-custom {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px dashed rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.preset-pill.preset-pill-custom:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.preset-pill.preset-pill-custom i {
  color: #fbbf24;
  animation: pulseSparkle 2s ease-in-out infinite;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.no-limit-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  margin-top: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.82rem;
  color: #bae6fd;
  line-height: 1.45;
}

.no-limit-callout i {
  color: #38bdf8;
  font-size: 0.95rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.no-limit-callout strong {
  color: #ffffff;
}

/* Custom Amount Input */
.custom-amount-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(8, 18, 36, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.2rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-amount-field-wrap:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.currency-symbol {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f59e0b;
  margin-right: 0.5rem;
}

.custom-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0.6rem 0;
  font-family: inherit;
}

.custom-amount-input::placeholder {
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
}

.currency-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ── Primary 1-Tap Instant Pay Button ───────────────────── */
.btn-instant-pay {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.btn-instant-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
}

.btn-instant-pay:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.instant-pay-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  flex-shrink: 0;
}

.instant-pay-text {
  flex: 1;
}

.instant-pay-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.instant-pay-sub {
  display: block;
  font-size: 0.8rem;
  color: #d1fae5;
  font-weight: 600;
}

.instant-pay-arrow {
  color: #ffffff;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-instant-pay:hover .instant-pay-arrow {
  transform: translateX(4px);
}

/* ── Direct Apps Grid (GPay, PhonePe, Paytm, BHIM) ──────── */
.direct-apps-section {
  background: rgba(8, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
}

.direct-apps-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.direct-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.app-launcher-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.55rem 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e2e8f0;
}

.app-launcher-btn i {
  font-size: 1.25rem;
}

.app-launcher-btn span {
  font-size: 0.72rem;
  font-weight: 700;
}

.app-launcher-btn.gpay-btn:hover {
  background: rgba(52, 168, 83, 0.2);
  border-color: #34a853;
  color: #4ade80;
  transform: translateY(-2px);
}

.app-launcher-btn.phonepe-btn:hover {
  background: rgba(103, 57, 183, 0.25);
  border-color: #6739b7;
  color: #c084fc;
  transform: translateY(-2px);
}

.app-launcher-btn.paytm-btn:hover {
  background: rgba(0, 186, 242, 0.2);
  border-color: #00baf2;
  color: #38bdf8;
  transform: translateY(-2px);
}

.app-launcher-btn.bhim-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
  transform: translateY(-2px);
}

/* ── UPI ID Copy Box ─────────────────────────────────────── */
.upi-id-copy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.upi-id-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.upi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.upi-address {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.upi-payee {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.btn-copy-upi {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-upi:hover {
  background: #38bdf8;
  color: #0b1528;
}

.btn-copy-upi.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* ── Right Column: QR Showcase Card ─────────────────────── */
.qr-showcase-card {
  background: radial-gradient(circle at 50% 20%, rgba(30, 58, 110, 0.9) 0%, rgba(13, 27, 56, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(5, 12, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-showcase-card.qr-pulse-highlight {
  animation: qrPulseBorder 1.2s ease;
}

@keyframes qrPulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.qr-showcase-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.qr-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-amount-indicator {
  font-size: 1.15rem;
  font-weight: 900;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
}

.qr-frame-wrapper {
  position: relative;
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-dynamic-image {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.qr-scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);
  box-shadow: 0 0 8px #10b981;
  animation: qrLaserScan 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes qrLaserScan {
  0% { top: 12px; }
  100% { top: calc(100% - 12px); }
}

.qr-instructions {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 0.9rem;
}

.qr-instructions strong {
  color: #fbbf24;
}

.qr-supported-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.app-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-trust-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 700;
}

/* ── Panel 2: International Cards & PayPal (Buy Me A Coffee) ─ */
.intl-bmac-card {
  max-width: 720px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(35, 25, 60, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(5, 12, 28, 0.6);
}

.intl-bmac-hero {
  margin-bottom: 2rem;
}

.intl-bmac-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0b1528;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  margin-bottom: 1rem;
}

.intl-bmac-hero h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.intl-bmac-hero p {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 520px;
  margin: 0 auto;
}

.intl-tier-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.intl-tier-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.1rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.intl-tier-btn .tier-icon {
  font-size: 1.5rem;
}

.intl-tier-btn .tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.intl-tier-btn .tier-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #f59e0b;
}

.intl-tier-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.intl-tier-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(234, 88, 12, 0.25) 100%);
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.intl-cta-row {
  margin-bottom: 1.8rem;
}

.btn-bmac-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  border-radius: 9999px;
  padding: 0.95rem 2.4rem;
  color: #0b1528;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
}

.btn-bmac-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
  color: #0b1528;
}

.intl-supported-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.card-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.card-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Trust & Security Bottom Strip ───────────────────────── */
.donate-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
}

.trust-item i {
  color: #10b981;
}

/* ── Developer's Personal Note & Open Source Vision ──────── */
.developer-note-card {
  margin-top: 2.2rem;
  background: linear-gradient(145deg, rgba(13, 24, 48, 0.95) 0%, rgba(20, 36, 68, 0.95) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: 20px;
  padding: 1.8rem 2.2rem;
  box-shadow: 0 12px 36px rgba(5, 12, 28, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.developer-note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #f59e0b, #ec4899);
}

.dev-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dev-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.dev-note-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd !important;
  letter-spacing: 0.4px;
}

.dev-note-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #f8fafc !important;
  font-style: italic;
  margin: 0.9rem 0 1.4rem;
  padding: 0;
}

.dev-note-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dev-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1528;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.dev-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dev-name {
  display: block;
  font-size: 1.05rem;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.dev-role {
  display: block;
  font-size: 0.85rem;
  color: #cbd5e1 !important;
  font-weight: 500;
  line-height: 1.35;
}

/* ── Persistent Floating Donate FAB (Icon Only, Reduced Size) ── */
.floating-donate-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  min-width: unset;
  background: #ffffff;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  outline: none;
}

.floating-donate-fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.35), 0 0 0 2px #f59e0b;
}

.floating-donate-fab:active {
  transform: translateY(0) scale(0.96);
}

.fab-heart-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5c7c 0%, #e11d48 60%, #9f1239 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
  margin: 0;
  animation: fabHeartBeat 2.4s ease-in-out infinite;
}

.fab-heart-circle i {
  color: #ffffff;
  font-size: 0.88rem;
}

@keyframes fabHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

@media (max-width: 640px) {
  .floating-donate-fab {
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    min-width: unset;
  }
  .fab-heart-circle {
    width: 28px;
    height: 28px;
  }
  .fab-heart-circle i {
    font-size: 0.76rem;
  }
}

/* ── Responsive Mobile Breakpoints ───────────────────────── */
@media (max-width: 900px) {
  .donate-card-hub {
    padding: 2.2rem 1.6rem;
  }
  .donate-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .intl-tier-presets {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate-hub-title {
    font-size: 1.85rem;
  }
  .donate-tabs-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-radius: 18px;
    gap: 0.4rem;
  }
  .donate-tab-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 540px) {
  .direct-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-instant-pay {
    padding: 0.85rem 1.1rem;
  }
  .instant-pay-title {
    font-size: 1.02rem;
  }
  .qr-dynamic-image {
    width: 170px;
    height: 170px;
  }
  .donate-tabs-nav {
    flex-direction: column;
  }
  .donate-tab-btn {
    width: 100%;
  }
}

/* ==========================================================
   DonateOptionDialog (Universal Outlook Component)
   ========================================================== */
.donate-choice-dialog {
  max-width: 480px;
  width: 90%;
  padding: 0;
}

.donate-choice-surface {
  background: linear-gradient(145deg, #172d54 0%, #1c3866 50%, #232252 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 25px 65px rgba(10, 18, 42, 0.8), 0 0 40px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.donate-choice-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
  position: relative;
}

.donate-choice-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-choice-avatar i {
  font-size: 1.35rem;
  color: #f43f5e;
}

.donate-choice-avatar.avatar-bmac {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
}

.donate-choice-avatar.avatar-bmac i {
  color: #f59e0b;
}

.donate-choice-headings {
  flex: 1;
}

.donate-choice-headings h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.donate-choice-headings p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

.donate-dialog-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.4rem;
}

.donate-choice-container-card {
  background: #081424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.5rem;
  margin-bottom: 1.3rem;
}

.donate-choice-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.donate-choice-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.choice-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap-upi {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.icon-wrap-browser {
  background: rgba(33, 150, 243, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-wrap-inapp {
  background: rgba(124, 77, 255, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.choice-text-wrap {
  flex: 1;
}

.choice-headline {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.choice-supporting {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.choice-arrow {
  font-size: 0.85rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.donate-choice-row:hover .choice-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

.choice-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.2rem 0.8rem;
}

.donate-choice-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-subtle {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-subtle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   DonateWebViewScreen In-App Overlay (Universal Outlook)
   ========================================================== */
.webview-screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060e18;
  display: flex;
  flex-direction: column;
  animation: webviewFadeIn 0.3s ease-out forwards;
}

.webview-screen-backdrop.hidden {
  display: none !important;
}

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

.webview-screen-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Settings Pill Top App Bar */
.webview-pill-header {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 580px);
  padding: 0.5rem 0.9rem;
  background: rgba(14, 34, 61, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.webview-pill-back-btn,
.webview-pill-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.webview-pill-back-btn:hover,
.webview-pill-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.webview-pill-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* Loading State Indicator */
.webview-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  color: #94a3b8;
  font-size: 0.92rem;
}

.webview-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinnerRotate 0.85s linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* Embedded Web Frame */
.webview-frame-container {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #08121f;
  padding-top: 68px;
  padding-bottom: 96px;
}

.donate-webview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #ffffff;
}

/* Bottom Floating Action Buttons (FABs) */
.webview-fabs-container {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.webview-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060d17;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.35);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webview-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

.webview-fab:active {
  transform: scale(0.94);
}

/* ==========================================================
   Milestone Support Dialog (Universal Outlook DonateDialog)
   ========================================================== */
.milestone-modal-dialog {
  max-width: 500px;
  width: 90%;
  padding: 0;
}

.milestone-surface {
  background: #0d213a;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.15);
}

.milestone-banner {
  background: linear-gradient(135deg, #132e50 0%, #1a3c68 100%);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-banner-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-banner-badge i {
  color: #f43f5e;
  font-size: 1.25rem;
  animation: heartPulse 1.8s infinite ease-in-out;
}

.milestone-banner-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.milestone-subtitle {
  font-size: 0.8rem;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.milestone-content-body {
  padding: 1.6rem;
}

.milestone-feature-card {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.milestone-heart-glow i {
  font-size: 2.2rem;
  color: #f43f5e;
}

.milestone-feature-card p {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.55;
}

.milestone-countdown-wrap {
  display: flex;
  justify-content: center;
}

.milestone-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.milestone-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.2rem 1.6rem;
  background: #081628;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-milestone-donate {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border: none;
  font-weight: 800;
}

/* ==========================================================
   Global Floating Toast Pill
   ========================================================== */
.app-toast-pill {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: #142c4b;
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: toastIn 0.3s ease-out forwards;
}

.app-toast-pill.hidden {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 600px) {
  .webview-pill-header {
    width: 94%;
    top: 10px;
  }
}

/* ==========================================================
   Mobile-Only Collapsible Sections (Expand / Collapse)
   ========================================================== */

/* Default / Desktop (> 768px): Strictly hidden toggle buttons, full display for all content */
.mobile-section-toggle,
.mobile-collapse-bottom-wrap,
.mobile-section-bottom-collapse {
  display: none !important;
}

.mobile-section-body {
  display: block;
}

.patron-header-bar {
  margin-bottom: 1.5rem;
}

/* Mobile View Alone (<= 768px) */
@media (max-width: 768px) {
  /* Center headers for sections that need alignment on mobile */
  .patron-header-bar {
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .directory-title-wrap {
    text-align: center;
  }

  .directory-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  /* Compact padding for collapsed sections on mobile */
  .is-mobile-collapsible.is-mobile-collapsed {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Hide body when collapsed on mobile */
  .is-mobile-collapsible.is-mobile-collapsed .mobile-section-body {
    display: none !important;
  }

  /* Hide directory action buttons when directory is collapsed */
  #directory.is-mobile-collapsed .directory-actions {
    display: none !important;
  }

  /* Smooth reveal animation when section is expanded on mobile */
  .is-mobile-collapsible:not(.is-mobile-collapsed) .mobile-section-body {
    display: block !important;
    animation: mobileSectionExpandAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileSectionExpandAnim {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Premium Expand / Collapse Button Pill on Mobile */
  .mobile-section-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: auto;
    min-width: 250px;
    max-width: 95%;
    margin: 0.85rem auto 0 auto;
    padding: 0.72rem 1.4rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    border-radius: 9999px;
    color: #92400e;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15), 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-section-toggle:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #d97706;
  }

  .mobile-section-toggle .toggle-icon {
    font-size: 0.82rem;
    color: #b45309;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Expanded state for toggle button */
  .mobile-section-toggle.is-expanded {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  }

  .mobile-section-toggle.is-expanded .toggle-icon {
    transform: rotate(180deg);
    color: #64748b;
  }

  /* Bottom collapse wrapper & button */
  .mobile-collapse-bottom-wrap {
    display: flex !important;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(203, 213, 225, 0.8);
  }

  .mobile-section-bottom-collapse {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 9999px;
    color: #78350f;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-section-bottom-collapse:active {
    background: #fffbeb;
    border-color: #d97706;
    color: #92400e;
    transform: scale(0.97);
  }

  .mobile-section-bottom-collapse i {
    color: #b45309;
    font-size: 0.75rem;
  }
}

/* ==========================================
   15. Super Admin Security & Master Sheet System
   ========================================== */
.admin-box {
  background: linear-gradient(135deg, #d97706, #92400e) !important;
  color: #ffffff !important;
}

.drawer-link-admin {
  background: #fffdf5 !important;
  border-left: 3.5px solid #d97706 !important;
}

.drawer-link-admin:hover {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
}

.admin-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  border: 1px solid #fde68a;
  vertical-align: middle;
  font-weight: 700;
}

.drawer-card-admin {
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%) !important;
  border: 1.5px solid #fde68a !important;
  border-left: 4px solid #d97706 !important;
}

.drawer-card-admin i {
  color: #d97706 !important;
}

.drawer-card-admin:hover {
  border-color: #d97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15) !important;
}

/* Super Admin Auth Dialog */
.super-admin-auth-dialog {
  max-width: 440px !important;
  padding: 2.2rem 2rem !important;
  text-align: center;
  position: relative;
}

.super-admin-modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.super-admin-icon-halo {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.9rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

.super-admin-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.super-admin-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0;
}

.super-admin-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #92400e;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
}

.super-admin-notice-box i {
  font-size: 1.15rem;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.super-admin-notice-box strong {
  display: block;
  font-size: 0.84rem;
  color: #78350f;
  margin-bottom: 0.15rem;
}

.super-admin-notice-box p {
  margin: 0;
  line-height: 1.35;
  color: #92400e;
}

.super-admin-auth-form {
  text-align: left;
}

.super-admin-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}

.super-admin-label i {
  color: #d97706;
  margin-right: 0.3rem;
}

.super-admin-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.super-admin-pwd-wrap .pwd-prefix-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.form-group .super-admin-pwd-wrap input,
.super-admin-pwd-wrap input.super-admin-input,
.super-admin-input {
  width: 100% !important;
  padding: 0.8rem 2.85rem 0.8rem 2.85rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.super-admin-input:focus,
.super-admin-pwd-wrap input.super-admin-input:focus {
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18) !important;
}

.super-admin-input.error,
.super-admin-pwd-wrap input.super-admin-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2;
}

.pwd-toggle-btn:hover {
  color: #0f172a;
}

.super-admin-error {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shakeError 0.35s ease;
}

.super-admin-error.hidden {
  display: none !important;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.super-admin-auth-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.super-admin-auth-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

/* Full-Screen Super Admin Screen (Replaces Popup) */
.super-admin-fullscreen-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  animation: adminScreenFadeIn 0.22s ease-out;
}

.super-admin-fullscreen-screen.hidden {
  display: none !important;
}

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

/* Top App Bar */
.super-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  padding: 0.75rem 1.5rem;
}

.super-admin-topbar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.super-admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-admin-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateX(-2px);
}

.super-admin-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.super-admin-icon-halo-mini {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.super-admin-fullscreen-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.super-admin-fullscreen-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
}

.super-admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.super-admin-fullscreen-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.super-admin-fullscreen-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

/* Super Admin Hamburger Menu & Tagged Navigation */
.btn-admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  color: #1e3a8a !important;
  border: 1.5px solid #bfdbfe !important;
  background: #eff6ff !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-menu-toggle:hover {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
  color: #172554 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.admin-menu-badge-count {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

/* Quick Horizontal Settings Tag Bar */
.super-admin-tag-bar {
  position: sticky;
  top: 59px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.tag-bar-scroll {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.tag-bar-scroll::-webkit-scrollbar {
  display: none;
}

.tag-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tag-bar-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tag-bar-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #0f172a;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Super Admin Drawer Overlay & Aside */
.super-admin-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100010;
  transition: opacity 0.3s ease;
}

.super-admin-drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.super-admin-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-right: 1.5px solid #e2e8f0;
  box-shadow: 12px 0 35px rgba(15, 23, 42, 0.2);
  z-index: 100020;
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.super-admin-drawer.active {
  left: 0;
}

.super-admin-drawer-header {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #172554;
  flex-shrink: 0;
}

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

.drawer-shield-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
}

.drawer-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.drawer-header-subtitle {
  font-size: 0.72rem;
  color: #bfdbfe;
  display: block;
  margin-top: 2px;
}

.super-admin-drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.super-admin-drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
}

/* Drawer Search Box */
.super-admin-drawer-search-box {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.super-admin-drawer-search-box .search-icon {
  position: absolute;
  left: 1.65rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.super-admin-drawer-search-box input {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 2.2rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.super-admin-drawer-search-box input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.drawer-search-clear {
  position: absolute;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

/* Drawer Navigation List */
.super-admin-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.admin-drawer-nav-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.admin-drawer-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-drawer-item-content {
  flex: 1;
  min-width: 0;
}

.admin-drawer-tag-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.tag-db { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-audit { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.tag-email { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.tag-root { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.tag-admin { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.tag-popup { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.tag-fx { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.tag-tools { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.email-gradient {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.milestone-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.admin-drawer-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.admin-drawer-item-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-drawer-jump-icon {
  color: #94a3b8;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.admin-drawer-nav-item:hover .admin-drawer-jump-icon {
  color: #2563eb;
  transform: translateX(2px);
}

.super-admin-drawer-footer {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-drawer-footer {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.75rem !important;
  padding: 0.4rem 0.5rem !important;
}

/* Card Scroll Margin & Highlight Animation */
.super-admin-grid .admin-card {
  scroll-margin-top: 130px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes adminCardPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.admin-card-focus-highlight {
  animation: adminCardPulse 1.2s ease-out 2;
  border-color: #3b82f6 !important;
}

/* Fullscreen Content Area */
.super-admin-fullscreen-content {
  flex: 1;
  padding: 2rem 1.5rem 3rem 1.5rem;
}

.super-admin-content-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero Patron & Security Banner */
.super-admin-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.08);
}

.banner-crest-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9, #1e40af);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
}

.banner-text-col h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #0f172a;
  margin: 0.2rem 0 0.4rem 0;
}

.banner-text-col p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Master Database & Directory Quick Actions Bar */
.super-admin-quick-actions-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #eff6ff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg, 12px);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.quick-actions-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-actions-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}

.quick-actions-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.quick-actions-desc {
  font-size: 0.82rem;
  color: #64748b;
}

.quick-actions-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-actions-btns .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: all var(--transition-fast, 0.2s ease);
}

.quick-open-sheet-btn {
  background: linear-gradient(135deg, #0f9d58, #0b6938) !important;
  border-color: #0b6938 !important;
  color: #ffffff !important;
}

.quick-open-sheet-btn:hover {
  background: linear-gradient(135deg, #0b6938, #044222) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.25) !important;
}

.quick-export-csv-btn {
  background: #ffffff !important;
  border-color: #107c41 !important;
  color: #107c41 !important;
}

.quick-export-csv-btn:hover {
  background: #f0fdf4 !important;
  border-color: #0b6938 !important;
  color: #0b6938 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 124, 65, 0.15) !important;
}

.super-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.admin-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
}

.admin-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.master-sheet-admin-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

/* Daily Change Log Card */
.daily-log-admin-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

/* Milestone Popup Auto-Dismiss Config Card */
.milestone-config-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffcf5 100%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.btn-timer-preset {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-timer-preset:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  transform: translateY(-1px);
}

/* Celebration Configuration Admin Card & Groupwise Toggles */
.celebration-config-admin-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf8f6 100%);
  border: 1.5px solid #fed7aa;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08);
}

.celebration-burst-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
}

.celebration-badge-tag {
  background: #fdf2f8 !important;
  color: #db2777 !important;
  border: 1px solid #fbcfe8;
}

.celebration-master-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.celebration-master-strip.master-disabled {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.master-strip-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.master-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.master-info .master-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.master-info .master-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.celebration-quick-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-bottom: 0.4rem;
}

.quick-actions-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-fx-action {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 0.28rem 0.65rem !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fx-action:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-celebration-test {
  background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-celebration-test:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.celebration-groups-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  transition: opacity 0.2s ease;
}

.celebration-groups-container.dimmed {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

.celebration-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0.2rem 0.4rem 0.4rem;
}

.celebration-active-count {
  background: #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.celebration-group-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: all 0.2s ease;
}

.celebration-group-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.group-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.group-row-text {
  flex: 1;
  min-width: 0;
}

.group-row-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.group-row-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-gradient {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.super-admin-shield-gradient {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.backup-gradient {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-danger-outline {
  background: #ffffff;
  border: 1px solid #f87171;
  color: #dc2626 !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.btn-success-outline {
  background: #ffffff;
  border: 1px solid #86efac;
  color: #16a34a !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-success-outline:hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}

.daily-log-header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.daily-log-add-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daily-log-add-box.hidden {
  display: none !important;
}

.daily-log-add-inputs {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .daily-log-add-inputs {
    grid-template-columns: 1fr;
  }
}

.db-health-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.db-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.db-health-stat {
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  text-align: center;
}

.db-health-stat .stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #15803d;
  display: block;
}

.db-health-stat .stat-lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.session-timeout-select {
  padding: 0.5rem 0.8rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.daily-log-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.daily-log-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.daily-log-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.daily-log-status-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.daily-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.daily-log-entry-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0284c7;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.daily-log-entry-item:hover {
  background: #f1f5f9;
  border-left-color: #0369a1;
}

.log-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  color: #64748b;
  flex-wrap: wrap;
}

.log-id-badge {
  font-family: monospace;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.log-time {
  color: #64748b;
}

.log-author {
  color: #0f172a;
  font-weight: 600;
}

.log-entry-text {
  color: #334155;
  line-height: 1.45;
}

.log-entry-text code {
  background: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #0f172a;
}

.admin-pwd-config-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.drive-gradient {
  background: linear-gradient(135deg, #0f9d58, #0b8043);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.25);
}

.tools-gradient {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.key-gradient {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #d97706;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.admin-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Admin Password Management Card */
.current-pwd-status-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pwd-status-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pwd-status-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
}

.pwd-status-badge {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  letter-spacing: 0.1em;
}

.btn-pwd-reveal {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: #64748b;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-pwd-reveal:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.btn-pwd-reset-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-pwd-reset-link:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.pwd-change-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.pwd-change-input-group .super-admin-pwd-wrap {
  flex: 1;
  min-width: 240px;
}

.btn-save-pwd {
  white-space: nowrap;
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
}

.pwd-update-msg {
  margin-top: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pwd-update-msg.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pwd-update-msg.hidden {
  display: none !important;
}

.admin-sheet-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sheet-meta-item {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.sheet-meta-item .meta-label {
  font-weight: 600;
  color: #475569;
  min-width: 85px;
}

.sheet-meta-item .meta-val {
  color: #0f172a;
  word-break: break-all;
}

.sheet-meta-item .meta-val.sheet-url-preview {
  font-family: monospace;
  font-size: 0.76rem;
  color: #0284c7;
}

.admin-sheet-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-sheet-actions .btn {
  font-size: 0.88rem;
  padding: 0.7rem 1.2rem;
}

.admin-sheet-actions .btn-primary {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  color: #ffffff;
}

.admin-sheet-actions .btn-primary:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.admin-tool-item-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.admin-tool-item-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(3px);
}

.admin-tool-item-btn .tool-icon {
  font-size: 1.25rem;
  color: #4f46e5;
  width: 28px;
  text-align: center;
}

.admin-tool-item-btn .tool-info {
  flex: 1;
}

.admin-tool-item-btn .tool-info strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.admin-tool-item-btn .tool-info span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-tool-item-btn .tool-arrow {
  font-size: 0.85rem;
  color: #94a3b8;
}

.super-admin-fullscreen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.security-status-note {
  font-size: 0.78rem;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-footer-buttons {
  display: flex;
  gap: 0.65rem;
}

.btn-lock-session {
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.btn-lock-session:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}

@media (max-width: 768px) {
  .super-admin-hero-banner {
    flex-direction: column;
    text-align: center;
  }
  .banner-crest-circle {
    margin: 0 auto;
  }
  .super-admin-topbar-container {
    flex-wrap: wrap;
  }
  .super-admin-topbar-left {
    gap: 0.75rem;
  }
  .super-admin-fullscreen-title {
    font-size: 1rem;
  }
  .super-admin-fullscreen-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-footer-buttons {
    flex-direction: column;
  }
  .admin-sheet-actions {
    flex-direction: column;
  }
  .current-pwd-status-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .pwd-change-input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   METTEX-STYLE HAMBURGER MENU & DRAWER SECTIONS
   Admin & Security, Language & Regional, System & Sync, Gestures & Navigation
   ========================================================================== */
.portal-menu-divider {
  margin: 8px 0 6px 0;
  border-top: 1px solid #e2e8f0;
}

.portal-menu-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 6px 8px 4px 8px;
  user-select: none;
}

.portal-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
}

.portal-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(2px);
}

.portal-menu-item:active {
  background: #e2e8f0;
  transform: translateX(0);
}

.portal-menu-item-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.portal-menu-item-icon svg {
  display: block;
}

.portal-menu-item-text {
  display: block;
  flex: 1 1 auto;
  line-height: 1.25;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
}

.portal-menu-item-text small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: normal;
  margin-top: 2px;
}

/* ==========================================================================
   FULLSCREEN MODALS BASE STYLES
   ========================================================================== */
.modal-fullscreen-view {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f8fafc !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: none !important;
  flex-direction: column !important;
}

.modal-fullscreen-view.open,
.modal-fullscreen-view.active {
  display: flex !important;
  flex-direction: column !important;
}

.modal-fullscreen-view.hidden,
.modal-fullscreen-view[style*="display: none"] {
  display: none !important;
}

.modal-container-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.btn-back-3d {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 9999px;
  padding: 6px 14px 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-back-3d:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: translateX(-2px);
}

.btn-close-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-3d:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

/* ==========================================================================
   INDIAN LANGUAGES FULLSCREEN MODAL STYLES
   ========================================================================== */
.lang-modal-container {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.lang-modal-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  padding: 0.85rem 1.4rem !important;
  padding-top: max(0.85rem, env(safe-area-inset-top)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  border-bottom: 2px solid #2563eb !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28) !important;
}

.lang-header-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 10px !important;
}

.lang-fullscreen-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 9999px !important;
  padding: 6px 14px 6px 10px !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.lang-fullscreen-back-btn:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ffffff !important;
  transform: translateX(-3px) !important;
}

.lang-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-lang-header-reset {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid #34d399 !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35) !important;
}

.btn-lang-header-reset:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  transform: translateY(-1px) !important;
}

.lang-header-content-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.lang-header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.lang-header-flag {
  font-size: 1.4rem;
}

.lang-header-globe {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 0.85rem;
  background: #1e3a8a;
  border-radius: 50%;
  padding: 1px;
}

.lang-header-titles {
  flex: 1 1 auto;
}

.lang-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-modal-title {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.lang-header-badge {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
}

.lang-modal-subtitle {
  margin: 3px 0 0 !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
}

.lang-modal-subtitle strong {
  color: #38bdf8 !important;
}

.lang-modal-body {
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  flex: 1 1 auto;
  background: #f8fafc;
}

.lang-fullscreen-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.lang-state-section {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lang-state-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
}

.lang-state-dropdown-wrap {
  flex: 1 1 240px;
}

.lang-state-dropdown {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
}

.lang-state-pills-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.lang-state-chip {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.lang-state-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.lang-state-chip.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  font-weight: 750;
  box-shadow: 0 2px 5px rgba(30, 58, 138, 0.25);
}

.lang-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1e293b;
  margin: 12px 0 8px 0;
}

.lang-count-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.lang-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px #2563eb;
}

.lang-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-card-flag {
  font-size: 1.3rem;
  line-height: 1;
}

.lang-card-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lang-card-native {
  font-size: 0.9rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-card-english {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

.lang-card-region {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-card-right {
  flex-shrink: 0;
}

.lang-active-check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 2px 7px;
  border-radius: 9999px;
}

.lang-default-card-box {
  margin: 10px 0;
}

.lang-default-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-default-card:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.lang-default-card.active {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 0 0 1.5px #059669;
}

.lang-default-star-badge {
  font-size: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 750;
  margin-left: 6px;
}

.lang-search-section {
  margin-top: 1rem;
}

.lang-search-box {
  position: relative;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.lang-search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.lang-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.86rem;
  background: #ffffff;
}

.lang-search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.15rem;
  color: #94a3b8;
  cursor: pointer;
}

.lang-category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.lang-chip {
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 11px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.lang-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.lang-chip.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  font-weight: 750;
}

/* ==========================================================================
   SWIPE & GESTURES FULLSCREEN MODAL STYLES
   ========================================================================== */
.swipe-settings-container {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.swipe-settings-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #172554;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swipe-header-titles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swipe-header-icon {
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #ffffff;
}

.swipe-modal-subtitle {
  font-size: 0.72rem;
  color: #bfdbfe;
  display: block;
}

.swipe-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swipe-settings-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.swipe-setting-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.swipe-setting-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.setting-title-icon {
  font-size: 1.35rem;
  line-height: 1.1;
}

.setting-title-group strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.setting-title-group p {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 24px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .slider.round {
  background-color: #16a34a;
}

.switch-toggle input:checked + .slider.round:before {
  transform: translateX(20px);
}

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

.order-preset-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-preset {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-preset.active {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #a5b4fc;
  font-weight: 750;
}

.screen-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.screen-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.screen-order-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.screen-order-pos-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-order-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.screen-order-info {
  flex: 1 1 auto;
  min-width: 0;
}

.screen-order-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: #0f172a;
}

.screen-order-desc {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-order-arrows {
  display: flex;
  gap: 4px;
}

.btn-order-arrow {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  transition: all 0.15s ease;
}

.btn-order-arrow:hover:not(:disabled) {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-order-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.anim-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.anim-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anim-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.btn-test-anim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-test-anim:hover {
  background: #1d4ed8;
}

.anim-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.anim-option-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #ffffff;
  transition: all 0.15s ease;
}

.anim-option-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.anim-option-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1.5px #2563eb;
}

.anim-card-radio {
  margin-top: 2px;
}

.anim-card-body {
  flex: 1 1 auto;
}

.anim-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.anim-card-icon {
  font-size: 1.05rem;
}

.anim-card-name {
  font-size: 0.82rem;
  font-weight: 750;
  color: #0f172a;
}

.anim-card-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  margin-left: auto;
}

.anim-badge-off {
  background: #fee2e2;
  color: #991b1b;
}

.anim-card-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}

/* Cyclic Section Transition Animations */
@keyframes acasSlideInForward {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes acasSlideInBackward {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes acasFlip3dIn {
  from { opacity: 0; transform: perspective(900px) rotateY(18deg) scale(0.97); }
  to { opacity: 1; transform: perspective(900px) rotateY(0deg) scale(1); }
}

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

.acas-anim-slide-forward { animation: acasSlideInForward 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.acas-anim-slide-backward { animation: acasSlideInBackward 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.acas-anim-flip3d { animation: acasFlip3dIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.acas-anim-fade { animation: acasFadeIn 0.3s ease forwards; }

/* ==========================================================================
   AUPA LIVE CLOUD SYNC SYSTEM (Instant Google Sheets Auto-Sync Navbar Badge)
   ========================================================================== */
.btn-cloud-sync-badge {
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  line-height: 1.2;
}

/* Green (Active & Connected to AUPA_Database) */
.btn-cloud-sync-badge.status-connected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
}

.btn-cloud-sync-badge.status-connected .sync-badge-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.5);
  animation: syncPulseGreen 2.5s infinite ease-in-out;
}

.btn-cloud-sync-badge.status-connected:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  transform: translateY(-1px);
}

/* Amber/Orange (Restricted / Attention Needed) */
.btn-cloud-sync-badge.status-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.55);
  color: #f59e0b;
}

.btn-cloud-sync-badge.status-warning .sync-badge-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b, 0 0 16px rgba(245, 158, 11, 0.6);
  animation: syncPulseAmber 1.8s infinite ease-in-out;
}

.btn-cloud-sync-badge.status-warning:hover {
  background: rgba(245, 158, 11, 0.26);
  border-color: #f59e0b;
  transform: translateY(-1px);
}

/* Blue (Syncing in progress) */
.btn-cloud-sync-badge.status-syncing {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.5);
  color: #38bdf8;
}

.btn-cloud-sync-badge.status-syncing .sync-badge-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.btn-cloud-sync-badge.status-syncing .sync-badge-icon {
  animation: fa-spin 1s linear infinite;
}

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

.sync-badge-icon {
  font-size: 0.85rem;
}

@keyframes syncPulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.25); box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
}

@keyframes syncPulseAmber {
  0% { transform: scale(0.95); box-shadow: 0 0 4px #f59e0b; }
  50% { transform: scale(1.3); box-shadow: 0 0 14px #f59e0b; }
  100% { transform: scale(0.95); box-shadow: 0 0 4px #f59e0b; }
}



.cloud-sync-modal-dialog {
  max-width: 580px;
  width: 92%;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65);
  position: relative;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.cloud-sync-modal-head {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  position: relative;
  flex-shrink: 0;
}

.cloud-sync-modal-head h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
}

.cloud-sync-modal-head p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
}

.cloud-sync-modal-body {
  padding: 1.4rem 1.5rem 1.6rem 1.5rem;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sync-step-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}

.sync-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a8a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sync-step-text strong {
  color: #0f172a;
}

/* ==========================================================================
   AUPA UNIVERSAL ALUMNI CONFERENCE & CHAT SUITE (Universal Outlook Integration)
   ========================================================================== */

/* 1. Navbar & Drawer Badges */
.tab-icon-badge.badge-chat {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.drawer-icon-box.chat-box {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}

/* 2. Section Container & Hub Bar */
.conference-chat-section {
  position: relative;
  background: #f8fafc;
  padding: 3.5rem 0 4rem 0;
}

.conf-hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.conf-presence-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 600;
}

.conf-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: confPulseDot 2s infinite;
}

@keyframes confPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.conf-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-conf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-conf-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-conf-pill.active {
  background: #8b5cf6;
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-conf-video {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.btn-conf-video:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

/* 3. Main Conference & Chat Shell */
.conference-chat-shell {
  display: flex;
  height: 740px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  position: relative;
}

/* 4. Sidebar */
.chat-sidebar {
  width: 350px;
  flex-shrink: 0;
  border-right: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease;
}

.chat-user-capsule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
}

.chat-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid #93c5fd;
  flex-shrink: 0;
}

.chat-user-details {
  flex: 1;
  min-width: 0;
}

.chat-user-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-role {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #059669;
  font-weight: 600;
}

.chat-new-dm-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #f1f5f9;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-new-dm-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: scale(1.05);
}

.chat-search-wrap {
  position: relative;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.chat-search-icon {
  position: absolute;
  left: 1.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.chat-search-input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.3rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.82rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.chat-search-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-search-clear {
  position: absolute;
  right: 1.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
}

/* Category Filter Tabs */
.chat-category-tabs {
  display: flex;
  padding: 0.5rem 0.8rem;
  gap: 0.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-cat-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chat-cat-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.chat-cat-tab.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
}

/* Live Active Conference Banner */
.live-conf-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.6rem 0.8rem;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border: 1.5px solid #3b82f6;
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.live-conf-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.live-conf-banner-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.live-cam-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  animation: pulseLiveBadge 1.8s infinite;
}

@keyframes pulseLiveBadge {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.live-conf-banner strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.live-conf-count {
  font-size: 0.72rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.btn-join-banner {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 9999px !important;
}

/* Channels List Scroll */
.chat-channels-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-channel-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  position: relative;
}

.chat-channel-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.chat-channel-item.active {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
}

.channel-avatar.general { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.channel-avatar.faculty { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.channel-avatar.physics { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.channel-avatar.materials { background: linear-gradient(135deg, #059669, #10b981); }
.channel-avatar.medphys { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.channel-avatar.batch { background: linear-gradient(135deg, #d97706, #f59e0b); }
.channel-avatar.dm { background: linear-gradient(135deg, #475569, #334155); }

.channel-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.channel-online-badge.offline {
  background: #94a3b8;
}

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

.channel-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.channel-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-time {
  font-size: 0.72rem;
  color: #64748b;
  flex-shrink: 0;
}

.channel-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.channel-snippet {
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.channel-unread-pill {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* 5. Main Chat Area */
.chat-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  z-index: 10;
}

.chat-mobile-back-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #1e3a8a;
  cursor: pointer;
  padding: 0.4rem;
  margin-right: 0.5rem;
}

.chat-header-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.chat-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.25);
}

.chat-header-text {
  min-width: 0;
}

.chat-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-header-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.chat-badge-verified {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-header-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.chat-btn-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-btn-action:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.chat-btn-action.chat-btn-video {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.chat-btn-action.chat-btn-video:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* In-Chat Search Bar */
.chat-in-convo-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.4rem;
  background: #eff6ff;
  border-bottom: 1.5px solid #bfdbfe;
  animation: slideDown 0.2s ease;
}

.chat-in-convo-search input {
  flex: 1;
  padding: 0.4rem 0.8rem;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #ffffff;
  outline: none;
}

.btn-close-search {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
}

/* Pinned Announcement Banner */
.chat-pinned-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 1.4rem;
  background: #fffbeb;
  border-bottom: 1.5px solid #fde68a;
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pinned-banner-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.pinned-banner-content {
  flex: 1;
}

.pinned-banner-content strong {
  display: block;
  color: #78350f;
  margin-bottom: 0.15rem;
}

.pinned-banner-dismiss {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #b45309;
  cursor: pointer;
  padding: 0 0.3rem;
}

/* 6. Message Stream */
.chat-message-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(217, 119, 6, 0.03) 0%, transparent 40%),
    #ffffff;
}

.chat-date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
}

.chat-date-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Chat Bubbles */
.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  width: 100%;
}

.chat-bubble-row.incoming {
  justify-content: flex-start;
}

.chat-bubble-row.outgoing {
  justify-content: flex-end;
}

.bubble-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid #bfdbfe;
}

.chat-bubble {
  max-width: 78%;
  min-width: 180px;
  padding: 0.75rem 1rem 0.65rem 1rem;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble-row.incoming .chat-bubble {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.chat-bubble-row.outgoing .chat-bubble {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.bubble-author-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
}

.bubble-author-name {
  font-weight: 800;
  color: #1e3a8a;
}

.chat-bubble-row.outgoing .bubble-author-name {
  color: #93c5fd;
}

.bubble-batch-tag {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 4px;
}

.bubble-patron-tag {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Anti-Deletion & Edit Archive Banners inside Bubbles */
.bubble-antideleted {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.chat-bubble-row.outgoing .bubble-antideleted {
  background: rgba(254, 243, 199, 0.2);
  color: #fef08a;
  border-color: #fde047;
}

.bubble-edited-badge {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
  margin-left: 0.35rem;
  cursor: pointer;
}

.chat-bubble-row.outgoing .bubble-edited-badge {
  color: #bfdbfe;
}

/* Quoted Reply inside Bubble */
.bubble-quoted-box {
  background: rgba(0, 0, 0, 0.04);
  border-left: 3px solid #2563eb;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}

.chat-bubble-row.outgoing .bubble-quoted-box {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #93c5fd;
  color: #e0f2fe;
}

.bubble-quoted-sender {
  font-weight: 750;
  display: block;
  margin-bottom: 0.1rem;
}

.bubble-quoted-snippet {
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-bubble-row.outgoing .bubble-quoted-snippet {
  color: #cbd5e1;
}

/* Bubble Meta (Time & Status) */
.bubble-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #64748b;
}

.chat-bubble-row.outgoing .bubble-meta-row {
  color: #bfdbfe;
}

.bubble-status-ticks {
  font-size: 0.75rem;
}

.bubble-status-ticks.read {
  color: #38bdf8;
}

/* Bubble Action Menu Button (Reply, React, Translate, Delete) */
.bubble-options-trigger {
  opacity: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-bubble-row:hover .bubble-options-trigger {
  opacity: 1;
}

.bubble-options-trigger:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 7. Rich Message Types */

/* Voice Note Player */
.voice-note-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.35rem;
  min-width: 240px;
}

.voice-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.chat-bubble-row.outgoing .voice-play-circle {
  background: #ffffff;
  color: #1e3a8a;
}

.voice-play-circle:hover {
  transform: scale(1.08);
}

.voice-waveform-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.voice-waveform-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
}

.waveform-bar {
  width: 3px;
  background: #94a3b8;
  border-radius: 2px;
  transition: height 0.1s ease;
}

.chat-bubble-row.outgoing .waveform-bar {
  background: #93c5fd;
}

.waveform-bar.played {
  background: #2563eb;
}

.chat-bubble-row.outgoing .waveform-bar.played {
  background: #ffffff;
}

.voice-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
}

.chat-bubble-row.outgoing .voice-info-row {
  color: #bfdbfe;
}

.voice-speed-chip {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 1px 5px;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
}

.voice-transcribe-btn {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: #2563eb;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.chat-bubble-row.outgoing .voice-transcribe-btn {
  color: #fef08a;
}

.voice-transcript-box {
  margin-top: 0.45rem;
  padding: 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

/* Circular / Round Video Note */
.round-video-card {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.round-video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.round-video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  transition: opacity 0.2s ease;
}

.round-video-card:hover .round-video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

/* Research Document / PDF Attachment Card */
.chat-doc-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-bottom: 0.35rem;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
}

.chat-bubble-row.outgoing .chat-doc-card {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.chat-doc-card:hover {
  transform: translateY(-1px);
  border-color: #2563eb;
}

.chat-bubble-row.outgoing .chat-doc-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.doc-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chat-bubble-row.outgoing .doc-icon-box {
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
}

.doc-details {
  flex: 1;
  min-width: 0;
}

.doc-details strong {
  display: block;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}

.chat-bubble-row.outgoing .doc-details strong {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.doc-details span {
  font-size: 0.72rem;
  color: #64748b;
}

.chat-bubble-row.outgoing .doc-details span {
  color: #bfdbfe !important;
}

.chat-doc-download-icon {
  color: #2563eb;
  font-size: 1rem;
}

.chat-bubble-row.outgoing .chat-doc-download-icon {
  color: #ffffff !important;
}

/* Image Attachment Card */
.chat-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 280px;
  margin-bottom: 0.35rem;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.chat-photo-card:hover img {
  transform: scale(1.02);
}

/* Campus Location Card */
.chat-location-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  color: #14532d;
  margin-bottom: 0.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chat-location-card:hover {
  transform: translateY(-1px);
  border-color: #22c55e;
}

.chat-location-card .doc-details strong,
.chat-location-card strong,
.location-card-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #14532d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-location-card .doc-details span,
.chat-location-card span,
.location-card-subtitle {
  display: block;
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 500;
}

/* Outgoing chat bubble location card - high contrast & crystal clear visibility */
.chat-bubble-row.outgoing .chat-location-card {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.chat-bubble-row.outgoing .chat-location-card:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.65);
}

.chat-bubble-row.outgoing .chat-location-card .doc-details strong,
.chat-bubble-row.outgoing .chat-location-card strong,
.chat-bubble-row.outgoing .chat-location-card .location-card-title,
.chat-bubble-row.outgoing .location-card-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.chat-bubble-row.outgoing .chat-location-card .doc-details span,
.chat-bubble-row.outgoing .chat-location-card span,
.chat-bubble-row.outgoing .chat-location-card .location-card-subtitle,
.chat-bubble-row.outgoing .location-card-subtitle {
  color: #bbf7d0 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.location-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Spoilers */
.chat-spoiler-mask {
  filter: blur(8px);
  user-select: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  transition: filter 0.2s ease;
}

.chat-spoiler-mask.revealed {
  filter: none;
  background: transparent;
}

/* Reactions Bar */
.chat-reactions-strip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 1px 7px;
  font-size: 0.74rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-bubble-row.outgoing .reaction-pill {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.reaction-pill:hover {
  transform: scale(1.08);
}

.reaction-pill.user-reacted {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 750;
}

/* 8. Typing Indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.4rem;
  background: transparent;
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

.typing-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #93c5fd;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.typing-bubble {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* 9. Quoted Reply Bar */
.chat-quoted-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.4rem;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  border-left: 4px solid #2563eb;
}

.quoted-content {
  flex: 1;
  font-size: 0.8rem;
}

.quoted-sender {
  font-weight: 750;
  color: #1e3a8a;
  display: block;
}

.quoted-text {
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.btn-cancel-quoted {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #64748b;
  cursor: pointer;
}

/* 10. Voice Recorder Live Bar */
.chat-voice-recorder-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.4rem;
  background: #eff6ff;
  border-top: 1.5px solid #bfdbfe;
}

.voice-recording-pulsing-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseLiveBadge 1.2s infinite;
}

.voice-recording-timer {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.voice-recording-canvas {
  height: 28px;
  border-radius: 4px;
}

.voice-recording-hint {
  font-size: 0.8rem;
  color: #475569;
  flex: 1;
}

.btn-voice-cancel {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-voice-send {
  background: #2563eb;
  border: none;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

/* 11. Chat Input Bar */
.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem 0.9rem 1.4rem;
  background: #ffffff;
  border-top: 1.5px solid #e2e8f0;
  position: relative;
}

.chat-input-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-input-icon-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  transform: translateY(-1px);
}

.chat-input-textarea-wrap {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 22px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.chat-input-textarea-wrap:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-input-textarea {
  width: 100%;
  max-height: 120px;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  resize: none;
  line-height: 1.4;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* Emoji Tray */
.chat-emoji-tray {
  position: absolute;
  bottom: 72px;
  left: 60px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.emoji-chip {
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease;
  user-select: none;
}

.emoji-chip:hover {
  transform: scale(1.3);
}

/* ==========================================================================
   12. FULLSCREEN WEBRTC CONFERENCE ROOM (Universal Outlook Architecture)
   ========================================================================== */
.conf-fullscreen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #020617;
  display: flex;
  flex-direction: column;
}

.conf-fullscreen-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: #090e17;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Top App Bar */
.conf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.6rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 30;
}

.conf-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.conf-live-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: pulseLiveBadge 1.8s infinite;
}

.conf-title-group {
  display: flex;
  flex-direction: column;
}

.conf-room-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.conf-room-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
}

.conf-topbar-center {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.conf-timer-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.conf-quality-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.conf-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.conf-topbar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.conf-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.conf-btn-leave-top {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}

.conf-btn-leave-top:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Conference Main Stage */
.conf-stage {
  flex: 1;
  position: relative;
  display: flex;
  overflow: hidden;
  background: #020617;
  padding: 1rem;
}

/* Floating Reactions Animation Canvas */
.conf-reactions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.floating-reaction-emoji {
  position: absolute;
  bottom: 20px;
  font-size: 2.5rem;
  animation: floatReactionUp 3s ease-out forwards;
}

@keyframes floatReactionUp {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; transform: translateY(-40px) scale(1.2); }
  80% { opacity: 0.8; }
  100% { transform: translateY(-400px) scale(0.9); opacity: 0; }
}

/* Video Grid */
.conf-video-grid {
  flex: 1;
  display: grid;
  gap: 1rem;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-content: center;
  justify-content: center;
}

.conf-video-tile {
  position: relative;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.conf-video-tile.speaking {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.conf-video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.conf-avatar-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
}

.conf-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.conf-tile-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.conf-tile-name {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.conf-tile-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.conf-audio-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.conf-audio-badge.muted {
  background: #ef4444;
  color: #ffffff;
}

.conf-tile-hand {
  font-size: 1.25rem;
  animation: waveHand 1s infinite alternate;
}

@keyframes waveHand {
  from { transform: rotate(-10deg); }
  to { transform: rotate(15deg); }
}

/* In-Meeting Chat Drawer */
.conf-inmeeting-drawer,
.conf-participants-drawer {
  width: 340px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 35;
  animation: slideDrawerIn 0.25s ease;
}

@keyframes slideDrawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.inmeeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inmeeting-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inmeeting-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
}

.inmeeting-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inmeeting-msg-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

.inmeeting-msg-sender {
  font-weight: 750;
  color: #93c5fd;
  display: block;
  margin-bottom: 0.15rem;
}

.inmeeting-input-form {
  display: flex;
  padding: 0.85rem;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inmeeting-input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.84rem;
  outline: none;
}

.inmeeting-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Participants Roster */
.conf-participants-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.conf-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.participant-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 750;
}

.participant-name-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.participant-role-pill {
  font-size: 0.68rem;
  color: #94a3b8;
  display: block;
}

.participant-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.conf-participants-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Controls Deck */
.conf-controls-deck {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.95rem 1.6rem;
  display: flex;
  justify-content: center;
  z-index: 30;
}

.conf-deck-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.conf-control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.conf-control-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.ctrl-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s ease;
}

.conf-control-btn:hover .ctrl-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
}

.conf-control-btn.muted .ctrl-icon-wrap {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.conf-control-btn.btn-end-call .ctrl-icon-wrap {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.conf-control-btn.btn-end-call:hover .ctrl-icon-wrap {
  background: #dc2626;
  transform: scale(1.08);
}

.ctrl-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.ctrl-emoji {
  font-size: 1.25rem;
}

/* Floating Reaction Popover */
.conf-reaction-popover-wrap {
  position: relative;
}

.conf-reaction-popover {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.4rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.conf-reaction-popover button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.conf-reaction-popover button:hover {
  transform: scale(1.3);
}

/* 13. Floating PIP Window */
.conf-pip-capsule {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 240px;
  background: #0f172a;
  border: 1.5px solid #3b82f6;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pip-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: move;
}

.pip-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.pip-video-preview {
  position: relative;
  width: 100%;
  height: 135px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pip-video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pip-avatar-circle {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.pip-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.45rem;
  background: #1e293b;
}

.pip-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.pip-btn.expand { background: #2563eb; }
.pip-btn.end { background: #ef4444; }

/* 14. Direct 1-on-1 Call Dialog */
.direct-call-dialog {
  max-width: 400px;
  width: 90%;
  background: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: #ffffff;
  text-align: center;
  padding: 2.5rem 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.direct-call-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direct-call-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  animation: callRingPulse 2s infinite;
}

.direct-call-pulse-ring.ring-2 {
  animation-delay: 1s;
}

@keyframes callRingPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.direct-call-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  border: 3px solid #93c5fd;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.direct-call-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.direct-call-role {
  font-size: 0.85rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.85rem;
}

.direct-call-status {
  font-size: 0.88rem;
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.direct-call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.btn-call-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-call-circle:hover {
  transform: scale(1.1);
}

.btn-call-circle.btn-mic { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.btn-call-circle.btn-cam { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.btn-call-circle.btn-end { background: #ef4444; color: #ffffff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }

/* 15. Chat Settings Dialog */
.chat-settings-dialog {
  max-width: 620px;
  width: 92%;
  max-height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 1.8rem;
  position: relative;
}

.chat-settings-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.chat-settings-icon-halo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.85rem auto;
}

.chat-settings-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.chat-settings-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.settings-group-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.settings-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.settings-group-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.settings-toggle-row:last-child {
  border-bottom: none;
}

.settings-toggle-row strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
}

.settings-toggle-row small {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
}

.chat-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1.5px solid #e2e8f0;
}

/* 16. New Chat & Invite Modals */
.new-chat-dialog,
.invite-conf-dialog,
.attachment-dialog {
  max-width: 520px;
  width: 92%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.new-chat-header,
.invite-conf-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.new-chat-icon,
.invite-conf-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem auto;
}

.new-chat-title,
.invite-conf-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.new-chat-subtitle,
.invite-conf-subtitle {
  font-size: 0.82rem;
  color: #64748b;
}

.new-chat-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.new-chat-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.new-chat-search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
}

.new-chat-search-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.new-chat-alumni-list,
.invite-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
}

.new-chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.new-chat-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.new-chat-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.new-chat-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Attachment Menu Grid */
.attachment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.attachment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.attachment-card:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.attach-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.attach-icon-circle.photo { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.attach-icon-circle.doc { background: linear-gradient(135deg, #dc2626, #ef4444); }
.attach-icon-circle.location { background: linear-gradient(135deg, #059669, #10b981); }
.attach-icon-circle.contact { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.attach-icon-circle.spoiler { background: linear-gradient(135deg, #d97706, #f59e0b); }

.attachment-card strong {
  font-size: 0.84rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.attachment-card span {
  font-size: 0.72rem;
  color: #64748b;
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   17. MOBILE RESPONSIVE ADAPTATIONS FOR CHAT & CONFERENCE
   ========================================================================== */
@media (max-width: 768px) {
  /* Hub Action & Presence Bar */
  .conf-hub-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.85rem !important;
  }

  .conf-presence-pill {
    justify-content: center !important;
    font-size: 0.74rem !important;
  }

  .conf-quick-actions {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    padding-bottom: 0.25rem !important;
    scrollbar-width: none;
  }

  .conf-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .btn-conf-pill,
  .btn-conf-settings,
  .btn-conf-voice,
  .btn-conf-video {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  /* Chat Shell & Navigation */
  .conference-chat-shell {
    height: 84dvh !important;
    min-height: 520px !important;
    max-height: 760px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }

  .chat-sidebar {
    width: 100% !important;
    height: 100% !important;
    border-right: none !important;
  }

  /* When a chat thread is selected on mobile, toggle active view */
  .conference-chat-shell.mobile-chat-open .chat-sidebar {
    display: none !important;
  }

  .conference-chat-shell.mobile-chat-open .chat-main-area {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  .conference-chat-shell:not(.mobile-chat-open) .chat-main-area {
    display: none !important;
  }

  .chat-mobile-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.95rem !important;
    margin-right: 0.35rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
  }

  .chat-mobile-back-btn:active {
    background: #e2e8f0 !important;
    transform: scale(0.92) !important;
  }

  .chat-header {
    padding: 0.55rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  .chat-header-identity {
    gap: 0.5rem !important;
  }

  .chat-header-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .chat-header-title {
    font-size: 0.88rem !important;
    max-width: 125px !important;
  }

  .chat-badge-verified {
    display: none !important;
  }

  .chat-header-subtitle {
    font-size: 0.68rem !important;
    max-width: 140px !important;
  }

  .chat-header-actions {
    gap: 0.25rem !important;
  }

  .chat-btn-action {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.82rem !important;
  }

  /* Chat Stream & Bubbles */
  .chat-message-stream {
    padding: 0.75rem 0.65rem !important;
    gap: 0.75rem !important;
  }

  .chat-bubble {
    max-width: 90% !important;
    font-size: 0.86rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  .bubble-audio-player {
    min-width: 210px !important;
    max-width: 100% !important;
    padding: 0.45rem 0.65rem !important;
    gap: 0.45rem !important;
  }

  .audio-waveform-canvas {
    width: 100px !important;
    height: 24px !important;
  }

  /* Chat Input Bar on Mobile */
  .chat-input-bar {
    padding: 0.45rem 0.55rem !important;
    gap: 0.35rem !important;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  .chat-input-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 0.45rem 0.65rem !important;
    min-height: 38px !important;
    border-radius: 20px !important;
  }

  .chat-input-icon-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
  }

  .chat-send-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }

  .chat-voice-recorder-bar {
    padding: 0.45rem 0.65rem !important;
    gap: 0.45rem !important;
  }

  .voice-recording-hint {
    display: none !important;
  }

  .voice-recording-canvas {
    width: 100px !important;
    height: 24px !important;
  }

  .btn-voice-cancel,
  .btn-voice-send {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.74rem !important;
  }

  /* WebRTC Fullscreen Conference Suite on Mobile */
  .conf-fullscreen-container {
    width: 100vw !important;
    height: 100dvh !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  .conf-topbar {
    padding: 0.45rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  .conf-topbar-left {
    gap: 0.45rem !important;
  }

  .conf-live-pill {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  .conf-room-title {
    font-size: 0.84rem !important;
    max-width: 120px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .conf-room-subtitle {
    display: none !important;
  }

  .conf-timer-pill {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  .conf-quality-pill {
    display: none !important;
  }

  .conf-topbar-btn {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.65rem !important;
  }

  .conf-stage {
    padding: 0.45rem !important;
  }

  .conf-video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    align-content: center !important;
  }

  .conf-video-tile {
    min-height: 130px !important;
    max-height: 240px !important;
    aspect-ratio: 4/3 !important;
    border-radius: 10px !important;
  }

  .conf-avatar-circle {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.15rem !important;
  }

  .conf-avatar-name {
    font-size: 0.72rem !important;
  }

  .conf-tile-overlay {
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
  }

  .conf-tile-name {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
    max-width: 85px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .conf-audio-badge {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.65rem !important;
  }

  /* Conference Control Deck on Mobile */
  .conf-controls-deck {
    padding: 0.6rem 0.4rem !important;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 12px)) !important;
  }

  .conf-deck-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    padding: 0 0.35rem !important;
    scrollbar-width: none;
  }

  .conf-deck-container::-webkit-scrollbar {
    display: none;
  }

  .conf-control-btn {
    flex-shrink: 0 !important;
    padding: 0.15rem 0.3rem !important;
    gap: 0.2rem !important;
  }

  .ctrl-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
  }

  .ctrl-label {
    font-size: 0.64rem !important;
  }

  /* In-Meeting Drawers as full bottom sheet on mobile */
  .conf-inmeeting-drawer,
  .conf-participants-drawer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 60 !important;
    background: #0f172a !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    animation: mobileDrawerSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

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

  .inmeeting-input-form {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 1-on-1 Direct Call Modal on Mobile */
  .direct-call-dialog {
    max-width: 340px !important;
    width: 92% !important;
    padding: 1.8rem 1.2rem !important;
  }

  .direct-call-avatar-wrap {
    width: 90px !important;
    height: 90px !important;
    margin-bottom: 1rem !important;
  }

  .direct-call-avatar {
    width: 76px !important;
    height: 76px !important;
    font-size: 1.6rem !important;
  }

  .direct-call-name {
    font-size: 1.15rem !important;
  }

  .btn-call-circle {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  /* On very small phones, hide round video icon from the main input row to maximize textarea width */
  .btn-round-video {
    display: none !important;
  }

  .conf-video-grid {
    grid-template-columns: 1fr !important;
  }

  .conf-video-tile {
    min-height: 160px !important;
    max-height: 280px !important;
  }
}

/* ==========================================================================
   AUPA UNIVERSAL MOBILE AUTH & IDENTITY SYSTEM STYLES
   ========================================================================== */

/* 1. Top Navbar Mobile Login / Member Profile Pill */
.nav-auth-widget-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-auth-pill.nav-action-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.45);
}

.btn-auth-pill.nav-action-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.auth-icon-badge {
  background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #2563eb 60%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-action-btn .auth-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

/* User Pill (When Logged In) */
.btn-user-pill.nav-action-btn {
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(245, 158, 11, 0.6);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-user-pill.nav-action-btn:hover {
  background: #fef3c7;
  border-color: #d97706;
  transform: translateY(-1px);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a 0%, #f59e0b 60%, #b45309 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  margin-bottom: 0;
}

.user-name-compact {
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Floating User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  padding: 0.75rem 0.5rem;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.user-dropdown-header {
  padding: 0.5rem 0.75rem 0.65rem;
}

.user-dropdown-header strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.user-dropdown-header span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.user-dropdown-header .user-batch-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.35rem;
}

.user-dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.4rem 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: none;
  background: none;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: #f8fafc;
  color: #2563eb;
}

.user-dropdown-item.text-danger {
  color: #dc2626;
}

.user-dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* 2. Registration Section State Cards */
.register-auth-prompt-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem auto;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  text-align: left;
}

.register-auth-prompt-card .auth-prompt-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.register-auth-prompt-card .auth-prompt-body h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  color: #0c4a6e;
}

.register-auth-prompt-card .auth-prompt-body p {
  margin: 0;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.4;
}

.register-existing-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  margin: 1.25rem auto;
  max-width: 680px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
  text-align: left;
}

.existing-member-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.existing-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a 0%, #f59e0b 60%, #b45309 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.existing-member-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.existing-member-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.register-new-member-banner {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md, 10px);
  padding: 0.85rem 1.2rem;
  margin: 1rem auto;
  max-width: 680px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.verified-phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.phone-verified-pill {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 640px) {
  .register-auth-prompt-card {
    flex-direction: column;
    text-align: center;
  }
  .existing-member-actions {
    flex-direction: column;
  }
  .existing-member-actions button {
    width: 100%;
  }
}

/* Searchable Country Code Picker Styles */
.country-picker-trigger:focus,
.country-picker-trigger:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  outline: none;
}

.country-picker-dropdown {
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.08);
}

.country-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  border-bottom: 1px solid #f1f5f9;
}

.country-picker-item:last-child {
  border-bottom: none;
}

.country-picker-item:hover,
.country-picker-item.selected {
  background: #f8fafc;
  color: #0f172a;
}

.country-picker-item .country-flag-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.country-picker-item .country-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.country-picker-item .country-dial-code {
  font-weight: 700;
  color: #2563eb;
  font-size: 0.82rem;
  background: #eff6ff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Universal Outlook-Inspired Verification Action Buttons */
.btn-autofill-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-autofill-pill:hover {
  background: #d1fae5 !important;
  border-color: #059669 !important;
  color: #064e3b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.btn-whatsapp-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-whatsapp-pill:hover {
  background: #1eb857 !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45) !important;
}

/* Full-Screen Profile Editor Experience */
.edit-profile-fullscreen-backdrop {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px);
  padding: 0 !important;
  z-index: 10050 !important;
}

.edit-profile-fullscreen-dialog {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10051;
}

.edit-profile-appbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}

.btn-editor-back {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-editor-back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateX(-2px);
}

.edit-profile-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
}

.edit-profile-inner-container {
  width: 100%;
  max-width: 860px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.modal-close-icon-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close-icon-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Contact Privacy Settings Panel */
.contact-privacy-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm, 8px);
  padding: 0.85rem 1.15rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.privacy-toggle-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #1e293b;
  cursor: pointer;
  margin-bottom: 0.4rem;
  user-select: none;
}

.privacy-toggle-item:last-child {
  margin-bottom: 0;
}

.privacy-masked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

@media (max-width: 768px) {
  .edit-profile-appbar {
    padding: 0.65rem 1rem;
  }
  .edit-profile-scroll-body {
    padding: 1rem 0.75rem 3rem 0.75rem;
  }
  .edit-profile-inner-container {
    padding: 1.25rem 1rem;
    border-radius: 10px;
  }
}

/* ==========================================================================
   MASTER RESPONSIVE MOBILE VIEW & SCREEN ALIGNMENT ENGINE (320px - 768px)
   Department of Physics, CEG • Anna University
   Guarantees zero screen issues, zero horizontal overflow, and perfect text alignment
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Global Viewport, Screen Boundary & Text Wrapping Safeguards */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .section {
    padding: 2.75rem 0 !important;
    overflow-x: hidden !important;
  }

  h1, h2, h3, h4, h5, h6, p, span, a, label, li, dt, dd {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  img, video, canvas, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  pre, code, .sheet-url-preview, .upi-address {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  /* 2. Top Announcement Bar */
  .announcement-bar {
    padding: 0.45rem 0.6rem !important;
  }

  .announcement-content {
    flex-direction: column !important;
    gap: 0.35rem !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0 0.5rem !important;
  }

  .announcement-content p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .announcement-content .badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.55rem !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
  }

  .announcement-link {
    font-size: 0.8rem !important;
    justify-content: center !important;
    display: inline-flex !important;
  }

  /* 3. Sticky Navbar & Swiggy Tabs */
  .navbar {
    padding: 0.4rem 0 0.12rem 0 !important;
    width: 100% !important;
  }

  .nav-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    flex-wrap: wrap !important;
    row-gap: 0.35rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .brand-identity {
    order: 1 !important;
    gap: 0.45rem !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .brand-crest {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  .brand-acronym {
    font-size: 0.92rem !important;
    letter-spacing: 0.06em !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .brand-sub {
    display: none !important;
  }

  .nav-actions-group {
    order: 2 !important;
    gap: 0.22rem !important;
    margin-left: auto !important;
    align-items: center !important;
  }

  .nav-action-btn {
    padding: 0.22rem 0.38rem 0.16rem 0.38rem !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .action-icon-badge {
    width: 25px !important;
    height: 25px !important;
    font-size: 0.8rem !important;
    margin: 0 auto 0.08rem auto !important;
  }

  .nav-action-btn .sync-badge-text,
  .nav-action-btn .cta-text,
  .nav-action-btn .install-text,
  .nav-action-btn .auth-text {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    display: block !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }

  .user-avatar-badge {
    width: 25px !important;
    height: 25px !important;
    font-size: 0.72rem !important;
  }

  .user-name-compact {
    max-width: 55px !important;
    font-size: 0.7rem !important;
  }

  .swiggy-nav-tabs {
    order: 3 !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.32rem 0.2rem 0.2rem 0 !important;
    margin: 0.15rem 0 0 0 !important;
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
    justify-content: flex-start !important;
    gap: 0.28rem !important;
    scroll-snap-type: x mandatory !important;
  }

  .swiggy-tab {
    scroll-snap-align: start !important;
    min-width: 54px !important;
    padding: 0.26rem 0.5rem 0.22rem 0.5rem !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }

  .tab-icon-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    margin: 0 auto 0.14rem auto !important;
  }

  .tab-text {
    font-size: 0.64rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .user-dropdown-menu {
    width: calc(100vw - 20px) !important;
    max-width: 280px !important;
    right: 0 !important;
    left: auto !important;
  }

  /* 4. Hero Section */
  .hero-section {
    padding: 2.25rem 0 2rem 0 !important;
    text-align: center !important;
  }

  .hero-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .hero-content {
    text-align: center !important;
    margin: 0 auto !important;
  }

  .hero-tag {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.8rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 auto 1.25rem auto !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-bottom: 0.85rem !important;
    word-break: break-word !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 auto 1.75rem auto !important;
    padding: 0 0.5rem !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 2.2rem auto !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.92rem !important;
    white-space: normal !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    padding: 1.25rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
  }

  .hero-stats .stat-divider {
    display: none !important;
  }

  .stat-item {
    text-align: center !important;
    padding: 0.2rem !important;
  }

  .stat-number {
    font-size: 1.65rem !important;
    text-align: center !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 0.2rem !important;
  }

  .stat-label {
    font-size: 0.74rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  /* 5. Section Badges, Titles & Descriptions */
  .section-header {
    text-align: center !important;
  }

  .section-badge {
    margin: 0 auto 0.65rem auto !important;
    font-size: 0.74rem !important;
    padding: 0.3rem 0.8rem !important;
    text-align: center !important;
    display: inline-flex !important;
  }

  .section-title {
    font-size: 1.75rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    margin-bottom: 0.65rem !important;
  }

  .section-description {
    font-size: 0.88rem !important;
    text-align: center !important;
    margin: 0 auto 1.5rem auto !important;
    line-height: 1.55 !important;
    padding: 0 0.5rem !important;
  }

  /* 6. Mobile Collapsible Toggles & Actions */
  .mobile-section-toggle {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0.75rem auto 0 auto !important;
    padding: 0.68rem 1.2rem !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .mobile-collapse-bottom-wrap {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    justify-content: center !important;
    display: flex !important;
  }

  .mobile-section-bottom-collapse {
    width: 100% !important;
    max-width: 320px !important;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
    text-align: center !important;
    display: inline-flex !important;
  }

  /* 7. Patron Section */
  .patron-card {
    grid-template-columns: 1fr !important;
    padding: 1.25rem 0.95rem !important;
    gap: 1.25rem !important;
    border-radius: 14px !important;
  }

  .patron-profile-col {
    text-align: center !important;
    padding-right: 0 !important;
    padding-bottom: 1.25rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  }

  .patron-avatar-frame {
    margin: 0 auto 0.85rem auto !important;
  }

  .patron-name {
    font-size: 1.45rem !important;
    text-align: center !important;
  }

  .patron-designation, .patron-dept, .patron-inst {
    text-align: center !important;
    font-size: 0.86rem !important;
  }

  .patron-tags {
    justify-content: center !important;
    gap: 0.35rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .patron-tags .pill-tag {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
  }

  .patron-contact-card {
    margin: 0.85rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
  }

  .patron-signature-box {
    text-align: center !important;
    margin-top: 0.85rem !important;
  }

  .letter-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
    margin-bottom: 1.1rem !important;
  }

  .letter-salutation {
    text-align: center !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }

  .vintage-stamp {
    margin: 0 auto !important;
    transform: none !important;
    font-size: 0.72rem !important;
  }

  .letter-body {
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    text-align: left !important;
  }

  .letter-quote {
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
    margin: 1rem 0 !important;
    line-height: 1.6 !important;
    border-radius: 8px !important;
  }

  .patron-bullet-points li {
    font-size: 0.86rem !important;
    padding-left: 1.4rem !important;
  }

  .letter-footer {
    text-align: center !important;
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
  }

  .letter-footer .signed-by {
    font-size: 1.05rem !important;
  }

  .letter-footer .signed-title {
    font-size: 0.82rem !important;
  }

  /* 8. Purpose Banner */
  .purpose-banner {
    padding: 2rem 0 !important;
  }

  .purpose-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .purpose-card {
    padding: 1.15rem 1rem !important;
    border-radius: 12px !important;
    text-align: left !important;
  }

  .purpose-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.65rem !important;
  }

  .purpose-card h4 {
    font-size: 1.02rem !important;
    margin-bottom: 0.25rem !important;
  }

  .purpose-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  /* 9. Registration Portal */
  .register-auth-prompt-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 1.25rem 1rem !important;
    gap: 0.85rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .register-auth-prompt-card .auth-prompt-icon {
    margin: 0 auto !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 1.25rem !important;
  }

  .register-auth-prompt-card h4 {
    font-size: 1.05rem !important;
    text-align: center !important;
    margin-bottom: 0.35rem !important;
  }

  .register-auth-prompt-card p {
    font-size: 0.84rem !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
  }

  .register-auth-prompt-card .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .register-existing-card {
    padding: 1.25rem 1rem !important;
    text-align: center !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .existing-member-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
  }

  .existing-member-header > div {
    text-align: center !important;
    width: 100% !important;
  }

  .existing-avatar {
    margin: 0 auto !important;
  }

  #existing-member-name {
    text-align: center !important;
    font-size: 1.15rem !important;
  }

  #existing-member-meta {
    text-align: center !important;
    font-size: 0.82rem !important;
  }

  .existing-member-desc {
    text-align: center !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .existing-member-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.45rem !important;
  }

  .existing-member-actions button {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .register-new-member-banner {
    padding: 0.85rem 1rem !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .register-new-member-banner > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
  }

  .register-new-member-banner .verified-phone-icon {
    margin: 0 auto !important;
  }

  .register-new-member-banner [style*="text-align: left"] {
    text-align: center !important;
  }

  .register-new-member-banner button {
    width: 100% !important;
    justify-content: center !important;
  }

  .registration-form {
    padding: 1.25rem 0.9rem !important;
    border-radius: 14px !important;
  }

  .form-fieldset {
    padding: 1.1rem 0.85rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
  }

  .fieldset-title {
    gap: 0.65rem !important;
    margin-bottom: 1rem !important;
  }

  .fieldset-title h3 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }

  .fieldset-title p {
    font-size: 0.78rem !important;
  }

  .step-num {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.82rem !important;
  }

  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .custom-checkbox {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  .contact-privacy-group {
    padding: 0.75rem 0.85rem !important;
  }

  .form-submit-row {
    width: 100% !important;
    margin-top: 1.5rem !important;
    text-align: center !important;
    align-items: stretch !important;
  }

  #submit-btn.btn-xl {
    width: 100% !important;
    white-space: normal !important;
    padding: 0.9rem 1.1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    justify-content: center !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .privacy-note {
    font-size: 0.76rem !important;
    text-align: center !important;
  }

  .success-alert {
    padding: 1.35rem 1rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.85rem !important;
  }

  .success-icon {
    margin: 0 auto !important;
  }

  .success-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.45rem !important;
  }

  .success-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 10. Directory & Alumni Cards */
  .directory-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    text-align: center !important;
  }

  .directory-title-wrap {
    text-align: center !important;
  }

  .directory-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .directory-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    padding: 0.65rem 0.9rem !important;
  }

  .filter-card {
    padding: 1.1rem 0.85rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  .search-bar-wrap input {
    font-size: 16px !important;
    padding: 0.75rem 2.2rem 0.75rem 2.4rem !important;
  }

  .filter-dropdowns {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .directory-status-bar {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
    align-items: center !important;
  }

  .recent-reg-banner {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1rem !important;
  }

  .recent-reg-info {
    text-align: center !important;
    width: 100% !important;
  }

  .recent-reg-jump-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .alumni-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .alumni-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.15rem 0.95rem !important;
    border-radius: 14px !important;
  }

  .alumni-card-header {
    gap: 0.75rem !important;
    align-items: center !important;
  }

  .alumni-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
  }

  .alumni-name {
    font-size: 1.05rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .alumni-role, .alumni-org, .alumni-location {
    font-size: 0.84rem !important;
    word-break: break-word !important;
  }

  .alumni-card-footer {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .view-details-link {
    font-size: 0.8rem !important;
  }

  /* 11. Conference & Chat Section */
  .conf-hub-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    border-radius: 14px !important;
  }

  .conf-presence-pill {
    justify-content: center !important;
    width: 100% !important;
  }

  .conf-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .conf-quick-actions .btn,
  .conf-quick-actions .btn-conf-pill {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.5rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .conference-chat-shell {
    height: calc(100vh - 120px) !important;
    max-height: 720px !important;
    min-height: 520px !important;
    border-radius: 12px !important;
  }

  .chat-sidebar {
    width: 100% !important;
    border-right: none !important;
  }

  .chat-category-tabs {
    overflow-x: auto !important;
    padding: 0.35rem !important;
    gap: 0.25rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .chat-cat-tab {
    font-size: 0.74rem !important;
    padding: 0.32rem 0.6rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .chat-header {
    padding: 0.6rem 0.75rem !important;
    gap: 0.45rem !important;
  }

  .chat-header-title {
    font-size: 0.92rem !important;
    max-width: 140px !important;
  }

  .chat-header-actions {
    gap: 0.2rem !important;
  }

  .chat-btn-action {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
  }

  .chat-input-bar {
    padding: 0.55rem 0.65rem !important;
    gap: 0.35rem !important;
  }

  .chat-input-textarea {
    font-size: 16px !important;
    padding: 0.5rem 0.65rem !important;
  }

  .chat-input-icon-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
  }

  .chat-message-bubble {
    max-width: 88% !important;
    font-size: 0.88rem !important;
  }

  /* 12. Batches Section */
  .batch-tabs {
    gap: 0.35rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.15rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .batch-tab {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.76rem !important;
    flex-shrink: 0 !important;
  }

  .batch-table-container {
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .batch-table th, .batch-table td {
    padding: 0.7rem 0.8rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  .coordinator-callout {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.35rem 1rem !important;
    gap: 0.85rem !important;
    align-items: center !important;
    border-radius: 14px !important;
  }

  .callout-icon {
    margin: 0 auto !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }

  .callout-content {
    min-width: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .callout-content h4 {
    font-size: 1.1rem !important;
    text-align: center !important;
    margin-bottom: 0.25rem !important;
  }

  .callout-content p {
    font-size: 0.85rem !important;
    text-align: center !important;
    line-height: 1.5 !important;
  }

  .coordinator-callout .btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0.35rem auto 0 auto !important;
    justify-content: center !important;
  }

  /* 13. Memories Section */
  .add-memory-card {
    padding: 1.25rem 0.95rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  .memory-card-header {
    gap: 0.6rem !important;
    margin-bottom: 0.85rem !important;
    align-items: center !important;
  }

  .memory-card-header h4 {
    font-size: 1.02rem !important;
  }

  .memory-card-header p {
    font-size: 0.78rem !important;
  }

  .memory-form input, .memory-form textarea {
    font-size: 16px !important;
    padding: 0.65rem 0.75rem !important;
    width: 100% !important;
  }

  .add-memory-card .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .memories-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .memory-card {
    padding: 1.15rem 0.95rem !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  .memory-text {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  /* 14. Mentorship Section */
  .mentorship-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .mentor-track-card {
    padding: 1.35rem 1rem !important;
    border-radius: 14px !important;
    width: 100% !important;
  }

  .track-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.85rem !important;
  }

  .mentor-track-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.35rem !important;
  }

  .mentor-track-card p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.85rem !important;
  }

  .track-list li {
    font-size: 0.82rem !important;
    margin-bottom: 0.45rem !important;
  }

  /* 15. Donate Hub & Universal Outlook Engine */
  .donate-card-hub {
    padding: 1.35rem 0.85rem !important;
    border-radius: 16px !important;
    width: 100% !important;
  }

  .donate-hub-kicker {
    font-size: 0.72rem !important;
    justify-content: center !important;
    margin-bottom: 0.45rem !important;
  }

  .donate-hub-title {
    font-size: 1.35rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    margin-bottom: 0.45rem !important;
    word-break: break-word !important;
  }

  .donate-hub-subtitle {
    font-size: 0.82rem !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin-bottom: 1.15rem !important;
  }

  .donate-dev-summary {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .donate-tabs-nav {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.35rem !important;
    padding: 0.25rem !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
  }

  .donate-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.82rem !important;
    text-align: center !important;
  }

  .donate-tab-btn .tab-btn-text {
    white-space: normal !important;
    text-align: center !important;
    font-size: 0.8rem !important;
  }

  .donate-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
    width: 100% !important;
  }

  .donate-amount-presets {
    gap: 0.35rem !important;
    justify-content: center !important;
  }

  .preset-pill {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.84rem !important;
    border-radius: 10px !important;
  }

  .preset-pill.preset-pill-custom {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.8rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .no-limit-callout {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
    line-height: 1.4 !important;
  }

  .custom-amount-field-wrap {
    padding: 0.15rem 0.75rem !important;
    border-radius: 12px !important;
  }

  .custom-amount-input {
    font-size: 16px !important;
  }

  .btn-instant-pay {
    padding: 0.8rem 1rem !important;
    border-radius: 14px !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }

  .instant-pay-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.05rem !important;
  }

  .instant-pay-title {
    font-size: 0.96rem !important;
  }

  .instant-pay-sub {
    font-size: 0.72rem !important;
  }

  .direct-apps-section {
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
  }

  .direct-apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }

  .app-launcher-btn {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.72rem !important;
  }

  .upi-id-copy-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 0.6rem !important;
    padding: 0.75rem !important;
  }

  .upi-id-details {
    text-align: center !important;
  }

  .upi-address {
    font-size: 0.95rem !important;
    word-break: break-all !important;
  }

  .btn-copy-upi {
    width: 100% !important;
    justify-content: center !important;
  }

  .qr-showcase-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 18px !important;
    width: 100% !important;
  }

  .qr-frame-wrapper {
    padding: 10px !important;
    margin-bottom: 0.75rem !important;
  }

  .qr-dynamic-image {
    width: 160px !important;
    height: 160px !important;
  }

  .qr-instructions {
    font-size: 0.8rem !important;
  }

  .intl-bmac-card {
    padding: 1.35rem 0.85rem !important;
    border-radius: 18px !important;
    width: 100% !important;
  }

  .intl-bmac-hero h3 {
    font-size: 1.25rem !important;
  }

  .intl-bmac-hero p {
    font-size: 0.84rem !important;
  }

  .intl-tier-presets {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
    margin-bottom: 1.25rem !important;
  }

  .intl-tier-btn {
    padding: 0.75rem 0.45rem !important;
  }

  .btn-bmac-direct {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.8rem 1.1rem !important;
    font-size: 0.92rem !important;
    text-align: center !important;
  }

  .donate-trust-strip {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.65rem !important;
    text-align: center !important;
    margin-top: 1.25rem !important;
    padding-top: 1.15rem !important;
  }

  .trust-item {
    font-size: 0.76rem !important;
    justify-content: center !important;
  }

  .developer-note-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: 16px !important;
    margin-top: 1.35rem !important;
  }

  .dev-note-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }

  .dev-note-text {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
    margin: 0.65rem 0 !important;
  }

  .dev-note-footer {
    gap: 0.65rem !important;
    align-items: center !important;
  }

  .dev-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  .dev-name {
    font-size: 0.92rem !important;
  }

  .dev-role {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
  }

  /* 16. Heritage & Footer */
  .heritage-section {
    padding: 2.75rem 0 !important;
  }

  .heritage-box {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .heritage-text h2 {
    font-size: 1.55rem !important;
    text-align: center !important;
    margin-bottom: 0.85rem !important;
  }

  .heritage-text p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .heritage-label {
    text-align: center !important;
  }

  .heritage-highlights {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .h-card {
    padding: 1rem 0.65rem !important;
    border-radius: 10px !important;
  }

  .h-num {
    font-size: 1.65rem !important;
  }

  .h-desc {
    font-size: 0.68rem !important;
  }

  .site-footer {
    padding-top: 2.5rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: center !important;
    padding-bottom: 2rem !important;
  }

  .footer-col h4 {
    text-align: center !important;
    margin-bottom: 0.85rem !important;
  }

  .footer-col h4::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .footer-desc, .campus-address {
    text-align: center !important;
    font-size: 0.84rem !important;
  }

  .social-links {
    justify-content: center !important;
  }

  .footer-patron-credit {
    border-left: none !important;
    border-top: 2px solid var(--gold-primary) !important;
    border-radius: var(--radius-sm) !important;
    text-align: center !important;
  }

  .footer-bottom-flex {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
  }

  .footer-bottom {
    font-size: 0.78rem !important;
    padding: 1.1rem 0 !important;
  }

  /* 17. Modals, Sheets & Dialogs */
  .modal-backdrop {
    padding: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-dialog {
    padding: 1.25rem 0.95rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
  }

  .mobile-auth-dialog,
  .super-admin-auth-dialog,
  .cloud-sync-modal-dialog,
  .direct-call-dialog,
  .chat-settings-dialog,
  .donate-choice-dialog,
  .milestone-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 0.95rem !important;
  }

  #alumni-modal .modal-body [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  #alumni-modal .modal-body [style*="justify-content: flex-end"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.45rem !important;
  }

  #alumni-modal .modal-body [style*="justify-content: flex-end"] .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .edit-profile-appbar {
    padding: 0.6rem 0.85rem !important;
  }

  .edit-profile-scroll-body {
    padding: 0.85rem 0.65rem 3rem 0.65rem !important;
  }

  .edit-profile-inner-container {
    padding: 1.15rem 0.85rem !important;
    border-radius: 12px !important;
  }

  .edit-modal-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .edit-modal-footer > div {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
  }

  .edit-modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .super-admin-drawer {
    width: 300px !important;
    max-width: 86vw !important;
  }

  .quick-nav-drawer {
    width: 300px !important;
    max-width: 86vw !important;
  }

  /* 18. FAB, PIP & Floating Elements */
  .floating-donate-fab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .conf-pip-capsule {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    width: 190px !important;
  }

  #pwa-install-banner {
    left: 0.65rem !important;
    right: 0.65rem !important;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0.95rem !important;
    border-radius: 14px !important;
  }
}

/* ==========================================================================
   TARGETED COMPACT MOBILE ADAPTATIONS (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .brand-acronym {
    font-size: 0.86rem !important;
  }

  .nav-action-btn {
    min-width: 38px !important;
    padding: 0.18rem 0.32rem !important;
  }

  .action-icon-badge {
    width: 23px !important;
    height: 23px !important;
    font-size: 0.74rem !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
  }

  .section-title {
    font-size: 1.45rem !important;
  }

  .heritage-highlights {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .h-card {
    padding: 0.85rem 0.5rem !important;
  }

  .h-num {
    font-size: 1.45rem !important;
  }

  .h-desc {
    font-size: 0.65rem !important;
  }

  .donate-card-hub {
    padding: 1.15rem 0.65rem !important;
  }

  .btn-instant-pay {
    padding: 0.75rem 0.85rem !important;
  }

  .instant-pay-title {
    font-size: 0.9rem !important;
  }

  .preset-pill {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  .intl-tier-presets {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }

  .intl-tier-btn {
    padding: 0.65rem 0.35rem !important;
  }

  .intl-tier-btn .tier-icon {
    font-size: 1.25rem !important;
  }

  .intl-tier-btn .tier-name {
    font-size: 0.74rem !important;
  }

  .intl-tier-btn .tier-val {
    font-size: 0.95rem !important;
  }

  .conf-quick-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ULTRA-COMPACT MOBILE ADAPTATIONS (<= 360px - e.g. Galaxy Fold / iPhone SE)
   ========================================================================== */
@media (max-width: 360px) {
  .brand-crest {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .brand-acronym {
    font-size: 0.78rem !important;
  }

  .nav-actions-group {
    gap: 0.15rem !important;
  }

  .nav-action-btn {
    min-width: 34px !important;
    padding: 0.15rem 0.22rem !important;
  }

  .action-icon-badge {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.7rem !important;
  }

  .user-name-compact {
    display: none !important;
  }

  .hero-title {
    font-size: 1.45rem !important;
  }

  .section-title {
    font-size: 1.35rem !important;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .direct-apps-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}


