/* ===== CSS PART 1: VARIABLES & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

:root {
  /* Core Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --primary-glow: rgba(99, 102, 241, 0.3);
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #06b6d4;
  /* Neon Accents */
  --neon-blue: #60a5fa;
  --neon-purple: #c084fc;
  --neon-cyan: #22d3ee;
  --neon-pink: #f472b6;
  /* Backgrounds */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  /* Text */
  --text: #0f172a;
  --text-muted: #64748b;
  --text-secondary: #334155;
  /* Borders & Shadows */
  --border: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.15);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow: 0 12px 40px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 24px 60px -8px rgba(99, 102, 241, 0.18);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  /* Radii & Transitions */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --brand-bca: #4338ca;
  --icon-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --text-glow: none;
}

[data-theme="dark"] {
  /* Futuristic dark deep-space colors */
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: rgba(129, 140, 248, 0.12);
  --primary-glow: rgba(129, 140, 248, 0.25);
  --secondary: #a78bfa;
  --accent: #fbbf24;
  --success: #34d399;
  --info: #38bdf8;
  /* Backgrounds */
  --bg: #020817;
  --bg-card: #0c1a2e;
  --bg-glass: rgba(12, 26, 46, 0.8);
  /* Text */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(129, 140, 248, 0.25);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 60px rgba(129, 140, 248, 0.2);
  --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.15);
  --brand-bca: #93c5fd;
  --icon-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
  --text-glow: 0 0 1px rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  -webkit-font-smoothing: subpixel-antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 99px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  will-change: transform, box-shadow;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

[data-theme="dark"] .navbar {
  background: rgba(2, 6, 23, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(var(--icon-shadow));
  display: flex;
  align-items: center;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.05) rotate(2deg);
}

/* Fallback/helpers for other pages logo container */
.logo-icon img,
.icon img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  vertical-align: middle;
}

.brand-bca {
  color: var(--brand-bca);
  transition: var(--transition);
}


.brand-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 650;
  color: var(--text-muted);
  transition: all 0.35s cubic-bezier(0.15, 0.85, 0.35, 1);
  font-size: 0.93rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  transform: translateY(-1.5px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
  color: #a78bfa !important;
  border-color: rgba(139, 92, 246, 0.3);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .nav-link:hover {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

.logout-link {
  color: var(--danger) !important;
  display: none;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}


.dark-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.dark-toggle:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  border-radius: 12px;
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hamburger:hover span {
  background: #fff;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 99px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}


.hamburger.active {
  background: var(--danger);
  border-color: var(--danger);
}

.hamburger.active span {
  background: #fff;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px) scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}

/* ===== MOBILE DRAWER - Floating Card Style ===== */
.mobile-drawer {
  position: fixed;
  top: 85px;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 1001;
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(40px) scale(0.95) translateZ(0);
  visibility: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  will-change: transform, opacity;
}

[data-theme="dark"] .mobile-drawer {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer.open {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
}

.mobile-drawer.open .drawer-grid-item,
.mobile-drawer.open .sem-square-item,
.mobile-drawer.open .res-square-item {
  animation: drawerItemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered Animation for Drawer Items */
.mobile-drawer.open .drawer-grid-item:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(6) {
  animation-delay: 0.35s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(7) {
  animation-delay: 0.4s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(8) {
  animation-delay: 0.45s;
}

.mobile-drawer.open .drawer-grid-item:nth-child(9) {
  animation-delay: 0.5s;
}

@keyframes drawerItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Profile Section */
.drawer-header {
  padding: 64px 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  position: relative;
  overflow: hidden;
}

.drawer-header::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary);
  filter: blur(60px);
  opacity: 0.15;
}

.drawer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3), 0 0 0 4px var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-header:hover .drawer-avatar {
  transform: rotate(5deg) scale(1.05);
}

.drawer-profile-info {
  min-width: 0;
  z-index: 1;
}

.drawer-user-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.drawer-user-role-premium {
  font-size: 0.72rem;
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 800;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
  animation: goldRolePulse 2.5s infinite ease-in-out;
}

@keyframes goldRolePulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
    transform: scale(1.025);
  }
}

[data-theme="dark"] .drawer-user-name {
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
}

.drawer-user-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-user-role::before {
  content: '⚡';
  font-size: 0.9rem;
}

/* Navigation */
.drawer-nav {
  padding: 12px 0;
  flex: 1;
}

.drawer-section-label {
  padding: 20px 20px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  border: none;
}

.drawer-nav-item:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary);
  padding-left: 24px;
}

.drawer-nav-item.active {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

.drawer-nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.drawer-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.drawer-nav-text {
  flex: 1;
}

.drawer-nav-badge {
  background: #374151;
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.drawer-nav-item.active .drawer-nav-badge {
  background: rgba(79, 70, 229, 0.2);
  color: #818cf8;
}

/* Divider */
.drawer-divider {
  height: 1px;
  background: #1f2937;
  margin: 4px 0;
}

/* Footer */
.drawer-footer {
  padding: 12px 16px 28px;
  border-top: 1px solid var(--border);
}

.drawer-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.05);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.drawer-logout:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}


.drawer-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  margin-bottom: 12px;
}

.drawer-dark-toggle:hover {
  background: #1f2937;
}

.drawer-dark-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 0.85rem;
  font-weight: 500;
}

.drawer-dark-switch {
  width: 40px;
  height: 22px;
  background: #374151;
  border-radius: 11px;
  position: relative;
  transition: background 0.25s ease;
}

.drawer-dark-switch::after {
  content: '';
  width: 16px;
  height: 16px;
  background: #9ca3af;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease, background 0.25s ease;
}

[data-theme="dark"] .drawer-dark-switch {
  background: #4F46E5;
}

[data-theme="dark"] .drawer-dark-switch::after {
  transform: translateX(18px);
  background: #fff;
}

.drawer-version {
  text-align: center;
  font-size: 0.68rem;
  color: #4b5563;
  padding-top: 4px;
}

/* Semester Mini Grid */
.semester-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 20px 16px;
}

.semester-mini-item {
  background: var(--bg-card);
  color: var(--text);
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.semester-mini-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.semester-mini-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Resource Quick Links */
.resource-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px 16px;
}

.resource-tag {
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resource-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Prevent body scroll when drawer open */
body.drawer-open {
  overflow: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.05), transparent);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  transition: none;
}

.btn-primary:hover::after {
  left: 200%;
  transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: reveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .card {
  border-color: rgba(255, 255, 255, 0.05);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  animation: heroOrbMove 15s infinite alternate ease-in-out;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -150px;
  opacity: 0.15;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
  opacity: 0.1;
}

@keyframes heroOrbMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, 40px) scale(1.1);
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: '✨';
  font-size: 1rem;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  text-shadow: var(--text-glow);
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Redesigned Glass Search - Blended Premium Look */
.hero-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 28px;
  padding: 10px 10px 10px 32px;
  box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.08);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero-search:focus-within {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 40px 80px -15px rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .hero-search:focus-within {
  background: rgba(10, 15, 30, 0.95);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  /* Improved opacity */
}

.hero-search button {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  border: none;
  border-radius: 16px;
  padding: 14px 32px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-search button:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.top-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tf-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  will-change: transform, box-shadow;
}

.tf-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.tf-icon {
  font-size: 1.4rem;
  filter: drop-shadow(var(--icon-shadow));
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tf-item:hover .tf-icon {
  transform: scale(1.15) rotate(5deg);
}

.tf-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .top-features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    max-width: 100%;
    padding: 0 8px;
  }
  .tf-item {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 8px;
  }
  .tf-icon {
    font-size: 1.2rem;
  }
  .tf-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .top-features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
    padding: 0 4px;
  }
  .tf-item {
    padding: 8px 10px;
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }
  .tf-title {
    font-size: 0.68rem;
    text-align: center;
  }
}

font-weight: 700;
font-size: 1rem;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text);
display: flex;
align-items: center;
gap: 10px;
box-shadow: var(--shadow-sm);
}

.pill-btn:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

border-color: rgba(255, 255, 255, 0.15);
color: #fff;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pill-blue:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.pill-purple:hover {
  border-color: #c084fc;
  color: #c084fc;
}

.pill-green:hover {
  border-color: #4ade80;
  color: #4ade80;
}

.pill-orange:hover {
  border-color: #fb923c;
  color: #fb923c;
}

/* ===== SECTION / CONTAINER ===== */
.section {
  padding: 80px 20px;
  position: relative;
}

.progress-section {
  background: radial-gradient(circle at bottom right, var(--primary-light), transparent 40%),
    radial-gradient(circle at top left, var(--primary-light), transparent 40%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  word-spacing: 0.05em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: -0.01em;
  word-spacing: 0.03em;
}

/* ===== PREMIUM GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}


.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ===== PW-STYLE BATCH CARDS ===== */
.semester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.batch-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  transition: transform 360ms cubic-bezier(.16, .8, .24, 1), box-shadow 360ms ease, filter 360ms ease;
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow;
  animation: cardPop 420ms cubic-bezier(.2, .95, .2, 1) both;
}

.batch-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.14), 0 6px 18px rgba(2, 6, 23, 0.5);
  filter: saturate(1.05);
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* subtle glowing accent used on special highlight classes */
.batch-card.glow {
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12), 0 6px 20px rgba(2, 6, 23, 0.5);
}

.batch-header {
  height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Unique Batch Colors */
.batch-card-1 {
  --batch-accent: #3b82f6;
}

.batch-card-2 {
  --batch-accent: #8b5cf6;
}

.batch-card-3 {
  --batch-accent: #f43f5e;
}

.batch-card-4 {
  --batch-accent: #10b981;
}

.batch-card-5 {
  --batch-accent: #f59e0b;
}

.batch-card-6 {
  --batch-accent: #06b6d4;
}

.batch-card .batch-header {
  background: linear-gradient(135deg, var(--batch-accent), var(--text));
}

[data-theme="light"] .batch-card .batch-header {
  background: linear-gradient(135deg, var(--batch-accent), var(--bg-card));
  color: var(--batch-accent);
  border-bottom: 2px solid var(--border);
}

[data-theme="light"] .batch-card .batch-sem-label {
  color: var(--batch-accent);
  text-shadow: none;
}

[data-theme="light"] .batch-card .batch-status-badge {
  background: var(--batch-accent);
  color: #fff;
}

.batch-card .batch-btn {
  background: var(--batch-accent);
}

.batch-card .feature-tag {
  color: var(--batch-accent);
  background: rgba(var(--batch-accent), 0.1);
  /* Note: standard CSS doesn't support hex opacity like this easily, so I'll stick to a solid or use a specific variable */
}

[data-theme="light"] .batch-card-1 .feature-tag {
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .batch-card-2 .feature-tag {
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .batch-card-3 .feature-tag {
  background: rgba(244, 63, 94, 0.1);
}

[data-theme="light"] .batch-card-4 .feature-tag {
  background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .batch-card-5 .feature-tag {
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .batch-card-6 .feature-tag {
  background: rgba(6, 182, 212, 0.1);
}

.batch-header-overlay {
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.15;
}

.batch-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.batch-sem-label {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.batch-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.batch-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  font-weight: 500;
}

.batch-systematic {
  padding: 12px;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
}

.batch-info-strip {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.batch-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.batch-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.batch-price-final {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.batch-price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.batch-price-tag {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.feature-tag {
  background: var(--primary-light);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.batch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

/* My Batches Specific */
.my-batches-section {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(147, 51, 234, 0.05));
  padding: 40px 20px;
  border-bottom: 1px solid var(--border);
}

.batch-count-pill {
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Syllabus Banner Specific */
.syllabus-section {
  padding-top: 0;
}

.syllabus-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.syllabus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
  pointer-events: none;
}

.syllabus-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(251, 191, 36, 0.1);
  border: 1.5px solid var(--warning);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 16px;
  flex-shrink: 0;
}

.syllabus-info {
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: var(--text-glow);
}

.syllabus-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.syllabus-badge {
  display: inline-block;
  background: var(--warning);
  color: #000;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.syllabus-download-btn {
  background: #fff;
  color: #1e1b4b;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.syllabus-download-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--warning);
  color: #000;
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.syllabus-download-btn .btn-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .syllabus-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .syllabus-download-btn {
    width: 100%;
    justify-content: center;
  }
}

.batch-progress-wrap {
  flex: 1;
  margin-right: 16px;
}

.batch-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.batch-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.batch-btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.batch-btn-gold:hover {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

/* Premium Top-Right WhatsApp Share Button */
.batch-card-whatsapp-share {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(37, 211, 102, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
  animation: whatsapp-soft-pulse 2s infinite ease-in-out;
  padding: 0;
}

.batch-card-whatsapp-share svg {
  width: 18px;
  height: 18px;
  fill: #25d366;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.batch-card-whatsapp-share:hover {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-color: #25d366;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  animation: none;
  /* stop pulsing on hover */
}

.batch-card-whatsapp-share:hover svg {
  fill: #ffffff;
  transform: rotate(15deg);
}

.batch-card-whatsapp-share:active {
  transform: scale(0.95);
}

/* Adjustments for Elite Cards where elements are positioned at 18px */
.elite-batch-card .batch-card-whatsapp-share {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
}

.elite-batch-card .batch-card-whatsapp-share svg {
  width: 20px;
  height: 20px;
}

@keyframes whatsapp-soft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 4px 12px rgba(37, 211, 102, 0.15);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0), 0 4px 12px rgba(37, 211, 102, 0.15);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 12px rgba(37, 211, 102, 0.15);
  }
}

/* Batch Category Switcher */
.batch-category-switcher {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  gap: 6px;
  margin: 0 auto 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.switcher-btn {
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switcher-btn span {
  font-size: 1.1rem;
}

.switcher-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.switcher-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .batch-category-switcher {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .switcher-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .switcher-btn.active {
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Batch Highlights Panels */
.batch-highlights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 32px;
  animation: cardPop 0.4s ease;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

[data-theme="light"] .highlight-card {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .batch-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .feature-tag {
  background: #0f172a;
  border-color: #334155;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: rgba(241, 245, 249, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
  position: relative;
  z-index: 5;
}

[data-theme="dark"] .stats-strip {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ===== MATERIAL CARD ===== */
.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
  border-color: var(--primary);
}

.card-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-notes {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

.badge-pyq {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
}

.badge-video {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.badge-lab {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
}

.badge-program {
  background: rgba(147, 51, 234, 0.12);
  color: var(--secondary);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== VIDEO CARDS (RE-DESIGNED) ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.video-thumb-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.video-thumb-container:hover .video-thumb {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-thumb-container:hover .play-icon {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.video-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
}

.video-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* PREMIUM PLAYER CONTROLS CSS */
.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.video-container.show-controls .controls {
  opacity: 1;
  pointer-events: auto;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 15px;
  position: relative;
  transition: height 0.2s ease;
}

.progress-container:hover {
  height: 6px;
}

.progress-filled {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.progress-filled::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.progress-container:hover .progress-filled::after {
  transform: translateY(-50%) scale(1);
}

.controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

button.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.2s ease, opacity 0.2s;
  opacity: 0.85;
}

button.control-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}

button.control-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.time-display {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
  color: #fff;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  cursor: pointer;
  -webkit-appearance: none;
  background: transparent;
}

.volume-container:hover .volume-slider {
  width: 80px;
  opacity: 1;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #fff;
  margin-top: -4px;
}

.center-action-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.center-action-icon.animate {
  animation: actionPop 0.5s ease forwards;
}

@keyframes actionPop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Video Player Advanced Controls */
.video-container.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .volume-container {
    display: none;
  }

  .controls {
    padding: 10px 15px;
  }

  .controls-left,
  .controls-right {
    gap: 12px;
  }

  button.control-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== BUTTONS ===== */

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline.active {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.btn-danger:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-sm {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding: 100px 20px 40px;
  position: relative;
  overflow: hidden;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ===== CONTENT TABS ===== */
.content-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.content-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.content-tab:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
}

.content-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== SEMESTER TABS ===== */
.sem-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.sem-tab {
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.sem-tab:hover,
.sem-tab.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ===== SEARCH BAR ===== */
.search-bar-inline input {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.search-bar-inline input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== PROGRESS ===== */
.progress-card {
  padding: 16px 20px;
}

.progress-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-pct {
  font-weight: 800;
  color: var(--primary);
}

.progress-bar-track {
  height: 10px;
  background: var(--primary-light);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 1s ease;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== HEATMAP ===== */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.heat-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.heat-low {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
}

.heat-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.heat-high {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary);
}

.subject-card .heat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== SUBJECT CARD ===== */
.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 160px;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.subject-card::after {
  content: '→';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.subject-card:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

.subject-code {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.subject-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: auto;
  line-height: 1.3;
  color: var(--text);
}

.subject-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.completed-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.bookmarked-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg-card), rgba(255, 255, 255, 0.5));
}

[data-theme="dark"] .modal-header {
  background: linear-gradient(to bottom, var(--bg-card), rgba(15, 23, 42, 0.3));
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  background: var(--primary-light);
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: var(--bg);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  background: #fff;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  background: rgba(10, 15, 30, 0.95);
}

.required {
  color: var(--danger);
}

.optional {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 360px;
  text-align: center;
}

@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes toastOut {
  from {
    opacity: 1
  }

  to {
    opacity: 0;
    transform: translateY(20px)
  }
}

.toast-success {
  background: var(--accent);
  color: #fff;
}

.toast-error {
  background: var(--danger);
  color: #fff;
}

.toast-info {
  background: var(--primary);
  color: #fff;
}

/* ===== FAB BUTTON ===== */
/* Suggestion FAB Enhancement */
.fab-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn::after {
  content: 'Suggestion';
  position: absolute;
  right: 100%;
  margin-right: 12px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fab-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.fab-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.5);
}

/* Presence Styles for Admin */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-online {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-offline {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-online .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes status-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.fab-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Suggestion FAB */
.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.sugg-success-state {
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.4s ease;
}

.sugg-success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ============================================================
   ADMIN LOGIN — Premium Split-Screen Design
   ============================================================ */
.admin-login-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #020617;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
}

/* Background Canvas */
.admin-login-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Grid Overlay */
.admin-login-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 10%, transparent 70%);
}

/* Animated Orbs */
.admin-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  animation: adminOrbFloat 20s ease-in-out infinite alternate;
}

.admin-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 70%);
  top: -15%;
  left: -10%;
}

.admin-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -7s;
}

.admin-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -14s;
}

@keyframes adminOrbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 60px) scale(1.15);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

/* Main Container: Split Screen */
.admin-login-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  width: 95%;
  min-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 140, 248, 0.15) inset;
  animation: adminCardReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes adminCardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── LEFT: Branding Panel ── */
.admin-login-brand {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.9));
  backdrop-filter: blur(30px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(129, 140, 248, 0.1);
  position: relative;
  overflow: hidden;
}

/* Shimmer line on top */
.admin-login-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #9333EA, #22D3EE, #4F46E5);
  background-size: 300% auto;
  animation: adminShimmer 3s linear infinite;
}

@keyframes adminShimmer {
  to {
    background-position: 300% center;
  }
}

.alb-content {
  flex: 1;
}

.alb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: #818CF8;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 32px;
  animation: wgBadgePulse 3s ease-in-out infinite;
}

.alb-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.alb-logo-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.4));
  animation: wgFloat 3s ease-in-out infinite;
}

.alb-logo h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.alb-tagline {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.alb-separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.3), transparent);
  margin: 24px 0;
}

.alb-desc {
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.7);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Feature Pills */
.alb-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.alb-feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.8);
  font-weight: 600;
  transition: all 0.3s ease;
}

.alb-feature-pill:hover {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.25);
  transform: translateY(-2px);
}

.alb-fp-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Terminal */
.alb-terminal {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.alb-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alb-term-dot.red {
  background: #EF4444;
}

.alb-term-dot.yellow {
  background: #F59E0B;
}

.alb-term-dot.green {
  background: #22C55E;
}

.alb-term-code {
  margin-left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.8);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.alb-term-prompt {
  color: #34D399;
  font-weight: 700;
}

.alb-term-cursor {
  color: #34D399;
  animation: wgTermBlink 0.8s step-end infinite;
}

.alb-footer {
  display: flex;
  gap: 20px;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 600;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

/* ── RIGHT: Login Form Panel ── */
.admin-login-form-panel {
  background: rgba(8, 15, 30, 0.8);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alf-inner {
  max-width: 380px;
  width: 100%;
  text-align: center;
}

/* Shield Icon */
.alf-shield {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.alf-shield-icon {
  font-size: 4rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.4));
}

.alf-shield-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(129, 140, 248, 0.2);
  border-radius: 50%;
  animation: shieldPulse 2.5s ease-in-out infinite;
}

@keyframes shieldPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
    border-color: rgba(129, 140, 248, 0.2);
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    border-color: rgba(129, 140, 248, 0.5);
  }
}

.alf-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.alf-subtitle {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 32px;
}

/* Form */
.alf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.alf-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alf-input-group:focus-within {
  border-color: #818CF8;
  background: rgba(129, 140, 248, 0.06);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.15), 0 0 0 1px rgba(129, 140, 248, 0.1) inset;
  transform: translateY(-2px);
}

.alf-input-icon {
  font-size: 1.1rem;
  margin-right: 12px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.alf-input-group:focus-within .alf-input-icon {
  opacity: 1;
}

.alf-input {
  flex: 1;
  background: none;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 0;
  -webkit-appearance: none;
}

.alf-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.alf-input:focus-visible {
  outline: none !important;
}

.alf-input-line {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #818CF8, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.alf-input-group:focus-within .alf-input-line {
  opacity: 1;
}

.alf-toggle-pass {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.alf-toggle-pass:hover {
  opacity: 1;
}

/* Error */
.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  color: #EF4444;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  animation: shake 0.4s ease;
}

/* Login Button */
.alf-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #9333EA 100%);
  background-size: 200% auto;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}

.alf-login-btn:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
}

.alf-login-btn:active {
  transform: scale(0.98);
}

.alf-btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.alf-login-btn:hover .alf-btn-icon {
  transform: translateX(5px);
}

.alf-btn-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}

/* Divider */
.alf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: rgba(148, 163, 184, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.alf-divider::before,
.alf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Security Badges */
.alf-security-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.alf-sec-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.alf-sec-badge span {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.3));
}

.alf-sec-badge small {
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Back Link */
.alf-back-link {
  display: inline-block;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.alf-back-link:hover {
  color: #818CF8;
  transform: translateX(-5px);
}

/* ── Admin Login Responsive ── */
@media (max-width: 900px) {
  .admin-login-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    min-height: auto;
    margin: 40px auto;
    width: calc(100% - 32px);
  }

  .admin-login-brand {
    padding: 32px 28px;
    border-right: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.1);
  }

  .alb-logo h1 {
    font-size: 1.7rem;
  }

  .alb-logo-icon {
    font-size: 2.2rem;
  }

  .alb-features {
    grid-template-columns: 1fr;
  }

  .alb-desc {
    font-size: 0.82rem;
    margin-bottom: 20px;
  }

  .alb-footer {
    font-size: 0.65rem;
    gap: 12px;
  }

  .admin-login-form-panel {
    padding: 32px 28px;
  }

  .alf-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .admin-login-container {
    border-radius: 24px;
    margin: 70px 10px 30px;
  }

  .admin-login-brand {
    padding: 24px 20px;
  }

  .admin-login-form-panel {
    padding: 28px 20px;
  }

  .alb-logo h1 {
    font-size: 1.4rem;
  }

  .alb-features {
    gap: 8px;
  }

  .alb-feature-pill {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .alf-title {
    font-size: 1.4rem;
  }

  .alf-login-btn {
    padding: 14px;
    font-size: 0.9rem;
  }

  .alf-security-badges {
    gap: 16px;
  }

  .alb-sys-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .alb-sys-grid {
    grid-template-columns: 1fr;
  }

  .alb-logo h1 {
    font-size: 1.2rem;
  }
}

/* ===== ADMIN PANEL (Post-Login) ===== */
.admin-form-card {
  padding: 28px;
}

.admin-form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-filter-bar {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  background: var(--danger);
  color: #fff;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ===== MANAGE MATERIAL ROW ===== */
.manage-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  transition: var(--transition);
}

.manage-row:hover {
  border-color: var(--primary);
}

.manage-row-info {
  flex: 1;
  min-width: 200px;
}

.manage-row-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.manage-row-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.manage-row-actions {
  display: flex;
  gap: 8px;
}

/* ===== SUGGESTION CARD ===== */
.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.suggestion-card.unread {
  border-left: 4px solid var(--primary);
}

.suggestion-card.read {
  opacity: 0.8;
}

.sugg-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.badge-cat-general {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary);
}

.badge-cat-missing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-cat-bug {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-cat-feature {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.sugg-context {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

[data-theme="dark"] .sugg-context {
  background: rgba(255, 255, 255, 0.05);
}

.sugg-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.sugg-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 8px 0;
  line-height: 1.5;
}

.sugg-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sugg-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ===== ANALYTICS ===== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.analytics-card {
  text-align: center;
  padding: 24px 16px;
}

.analytics-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.analytics-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.analytics-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== TTS BAR ===== */
.tts-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.tts-bar button {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tts-bar button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tts-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== EXAM MODE ===== */
.exam-mode-bar {
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.exam-mode-bar button {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  margin-left: 10px;
}

body.exam-mode .navbar,
body.exam-mode footer,
body.exam-mode .fab-btn,
body.exam-mode .tts-bar,
body.exam-mode #multiTabBar {
  display: none !important;
}

body.exam-mode .page-header {
  padding-top: 60px;
}

/* ===== MULTI-TAB STUDY ===== */
.multi-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex-wrap: wrap;
}

.multi-tab-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.open-tabs-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.study-tab-chip {
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(79, 70, 229, 0.25);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.study-tab-chip.active {
  background: var(--primary);
  color: #fff;
}

.study-tab-chip .close-tab {
  opacity: 0.6;
}

.study-tab-chip .close-tab:hover {
  opacity: 1;
}

/* ===== ANNOTATION ===== */
.annotation-panel {
  position: fixed;
  right: 24px;
  top: 80px;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 800;
}

.annotation-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.annotation-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
}

.annotation-body {
  padding: 14px;
}

.annotation-body textarea {
  width: 100%;
  resize: vertical;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}

.annotation-item {
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 0.82rem;
}

.annotation-item .ann-text {
  margin-bottom: 4px;
}

.annotation-item .ann-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== DEFINITION POPUP ===== */
.definition-popup {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 280px;
  box-shadow: var(--shadow);
  z-index: 3000;
  font-size: 0.85rem;
  line-height: 1.5;
}

.definition-popup strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ===== HIGHLIGHT ===== */
mark {
  background: rgba(250, 204, 21, 0.4);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

[data-theme="dark"] mark {
  background: rgba(250, 204, 21, 0.25);
}

/* ===== CHALLENGE ===== */
.challenge-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.challenge-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.challenge-q {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.challenge-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-opt {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
  text-align: left;
}

.challenge-opt:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
}

.challenge-opt.correct {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
}

.challenge-opt.wrong {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.challenge-score {
  text-align: center;
  padding: 24px;
}

.challenge-score .score-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
}

.challenge-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  margin-top: 12px;
}

/* ===== REVISION ===== */
.revision-section {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(147, 51, 234, 0.05));
}

.revision-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.revision-chip {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.revision-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== DRAWER GRID MENU ===== */
.drawer-grid-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.drawer-grid-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.drawer-grid-item:hover,
.drawer-grid-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.grid-item-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.grid-item-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.grid-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 800;
}

.semester-square-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.sem-square-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.sem-square-item:hover,
.sem-square-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.sem-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.sem-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
}

.resource-square-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.res-square-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.res-square-item:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

.res-icon {
  font-size: 1.1rem;
}

.res-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

/* ===== PROGRESS SQUARE CARDS ===== */
.progress-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px;
}

.prog-square-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prog-sem-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.prog-info {
  flex: 1;
}

.prog-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.prog-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prog-percentage {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary);
}

/* ===== PREMIUM FOOTER REDESIGN ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 100px 0 60px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .footer {
  background: linear-gradient(to bottom, #0c1a2e, #020817);
  border-color: rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 400px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
}

.footer-socials a:hover {
  transform: translateY(-8px) scale(1.1);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

.footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(8px);
}

.footer-links a::before {
  content: '→';
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-col p {
    max-width: 100%;
  }
}

/* ===== IMAGE VIEWER ===== */
#viewerImg {
  max-width: 100%;
  cursor: zoom-in;
}

/* ===== PRINT MODE ===== */
/* ── Developer Credit Styles ── */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
}

.dev-credit-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dev-credit-box:hover {
  transform: translateY(-3px);
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.dev-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.dev-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s;
  border-radius: 99px;
}

.dev-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.dev-link:hover::after {
  width: 100%;
}

[data-theme="dark"] .dev-credit-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dev-link {
  color: #818cf8;
}

@media print {

  .navbar,
  .fab-btn,
  .tts-bar,
  #multiTabBar,
  footer,
  .content-tabs,
  .modal-overlay,
  .annotation-panel {
    display: none !important;
  }

  .page-header {
    background: #fff !important;
    color: #000 !important;
  }

  .material-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    gap: 12px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    flex-direction: column;
    text-align: center;
  }

  .annotation-panel {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .fab-btn {
    bottom: 84px;
    right: 16px;
  }

  .multi-tabs-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .semester-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal {
    margin: 10px;
  }
}


/* ============================================================
   WELCOME GATE — Tech Effects Layer
   ============================================================ */




/* ── Code Badge on Card ── */
.wg-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: #a5b4fc;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 24px;
  animation: wgBadgePulse 3s ease-in-out infinite;
  position: relative;
}

.wg-badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: wgDotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

@keyframes wgDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

@keyframes wgBadgePulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.08);
  }

  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
    border-color: rgba(129, 140, 248, 0.45);
  }
}

/* ── Terminal Typing Line ── */
.wg-terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 22px;
  margin-bottom: 6px;
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: 0.78rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.wg-term-prompt {
  color: #34D399;
  font-weight: 900;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.wg-term-text {
  color: rgba(203, 213, 225, 0.85);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wg-term-cursor {
  color: #FACC15;
  font-weight: 900;
  animation: wgTermBlink 0.8s step-end infinite;
  flex-shrink: 0;
}

@keyframes wgTermBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Mobile adjustments for effects ── */
@media (max-width: 600px) {
  .wg-code-badge {
    font-size: 0.58rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .wg-terminal-line {
    font-size: 0.68rem;
    padding: 8px 12px;
    margin-top: 14px;
  }
}

@media (max-width: 380px) {
  .wg-terminal-line {
    font-size: 0.62rem;
    padding: 6px 10px;
  }

  .wg-code-badge {
    font-size: 0.52rem;
    padding: 4px 10px;
    letter-spacing: 0.1em;
  }
}

/* ============================================================
   WELCOME GATE — Ultra Premium Fullscreen Name Entry
   ============================================================ */
.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: #010409;
  padding: 24px;
  overflow: hidden;
}

.welcome-gate.hidden {
  animation: wgFadeOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes wgFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(24px);
  }
}

/* ── Aurora Background Effect ── */
.wg-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 75% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  animation: wgAuroraShift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes wgAuroraShift {
  0% {
    opacity: 0.6;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 1;
    filter: hue-rotate(15deg);
  }

  100% {
    opacity: 0.7;
    filter: hue-rotate(-10deg);
  }
}

/* ── Grid Lines Background ── */
.wg-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: wgGridPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes wgGridPulse {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

/* ── Scanning Line ── */
.wg-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), rgba(99, 102, 241, 0.5), rgba(0, 255, 255, 0.3), transparent);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 60px rgba(99, 102, 241, 0.15);
  animation: wgScanMove 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes wgScanMove {
  0% {
    top: -2px;
  }

  100% {
    top: 100%;
  }
}

/* ── Holographic Rings ── */
.wg-holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.08);
  pointer-events: none;
  z-index: 1;
}

.wg-holo-ring-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: wgRingExpand 12s ease-in-out infinite;
  border-color: rgba(139, 92, 246, 0.08);
}

.wg-holo-ring-2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: wgRingExpand 12s ease-in-out infinite 2s;
  border-color: rgba(6, 182, 212, 0.06);
}

.wg-holo-ring-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: wgRingExpand 12s ease-in-out infinite 4s;
  border-color: rgba(99, 102, 241, 0.05);
}

@keyframes wgRingExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* ── Particles Container ── */
.wg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Background Animated Orbs */
.wg-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.45;
  pointer-events: none;
  animation: wgOrbMove 25s infinite alternate ease-in-out;
  z-index: 1;
}

.wg-orb1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  top: -280px;
  left: -280px;
}

.wg-orb2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  bottom: -220px;
  right: -220px;
  animation-delay: -6s;
}

.wg-orb3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  top: 35%;
  right: 8%;
  animation-delay: -12s;
}

@keyframes wgOrbMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(80px, -60px) scale(1.1);
  }

  66% {
    transform: translate(-40px, 100px) scale(1.2);
  }

  100% {
    transform: translate(-80px, 40px) scale(0.9);
  }
}

/* ── Top Glow Bar ── */
.wg-top-glow {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), rgba(0, 255, 255, 0.5), rgba(139, 92, 246, 0.6), transparent);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 60px rgba(0, 255, 255, 0.15);
  border-radius: 0 0 50% 50%;
  z-index: 3;
}

/* ── Main Card ── */
.wg-card {
  background: linear-gradient(165deg, rgba(6, 10, 24, 0.85) 0%, rgba(2, 4, 12, 0.95) 100%);
  backdrop-filter: blur(50px) saturate(250%);
  -webkit-backdrop-filter: blur(50px) saturate(250%);
  border: 1.5px solid transparent;
  border-radius: 32px;
  padding: 56px 44px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(139, 92, 246, 0.15),
    0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 30px rgba(139, 92, 246, 0.03);
  animation: wgCardReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  z-index: 10;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Rotating Neon Gradient Border */
.wg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #00e5ff, #34d399, #ec4899, #8b5cf6);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: wgBorderGradientMove 8s infinite linear;
}

/* Inner ambient glow */
.wg-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes wgBorderGradientMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 400% 50%;
  }
}

.wg-card:hover {
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.85),
    0 0 100px rgba(139, 92, 246, 0.2),
    0 0 2px rgba(255, 255, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

@keyframes wgCardReveal {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Icon Container ── */
.wg-icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.wg-icon-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.15);
  animation: wgIconRingSpin 8s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.2), transparent, rgba(0, 255, 255, 0.15), transparent);
  mask: radial-gradient(circle, transparent 48%, black 50%);
  -webkit-mask: radial-gradient(circle, transparent 48%, black 50%);
}

@keyframes wgIconRingSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.wg-icon {
  font-size: 4.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(79, 70, 229, 0.5));
  animation: wgFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes wgFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(3deg);
  }

  50% {
    transform: translateY(-18px) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

.wg-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.wg-accent {
  background: linear-gradient(135deg, #818CF8, #C084FC, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wg-subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Divider with Gem ── */
.wg-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin-bottom: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wg-divider-gem {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #8b5cf6, #00e5ff);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  position: absolute;
}

.wg-prompt {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Premium Input Section ── */
.wg-input-section {
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.wg-input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(165, 180, 252, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  padding-left: 4px;
  transition: color 0.3s ease;
}

.wg-label-icon {
  font-size: 0.8rem;
  opacity: 0.7;
}

.wg-input-section:focus-within .wg-input-label {
  color: rgba(0, 229, 255, 0.8);
}

/* Input Wrap — Seamless deep obsidian blend */
.wg-input-wrap {
  background: rgba(1, 2, 8, 0.96) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.15) !important;
  border-radius: 20px;
  padding: 4px 4px 4px 20px;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.8),
    inset 0 3px 14px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
}

/* Animated scanning line inside input */
.wg-input-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: opacity 0.3s;
  opacity: 0;
}

.wg-input-wrap:focus-within::before {
  opacity: 1;
  animation: wgInputScan 3s ease-in-out infinite;
}

@keyframes wgInputScan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.wg-input-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), rgba(139, 92, 246, 0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.wg-input-wrap:focus-within .wg-input-glow {
  opacity: 1;
}

.wg-input-wrap:focus-within {
  border-color: rgba(0, 229, 255, 0.6) !important;
  background: #000000 !important;
  box-shadow:
    0 0 35px rgba(0, 229, 255, 0.3),
    0 0 70px rgba(139, 92, 246, 0.15),
    inset 0 2px 12px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(0, 229, 255, 0.15) !important;
  transform: translateY(-2px);
}

.wg-input-icon {
  font-size: 1.15rem;
  margin-right: 12px;
  color: rgba(100, 116, 139, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.wg-input-wrap:focus-within .wg-input-icon {
  color: #00e5ff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
  transform: scale(1.15);
}

.wg-input {
  flex: 1;
  background: none;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.wg-input:focus,
.wg-input:focus-visible,
.wg-input:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.wg-input::placeholder {
  color: rgba(148, 163, 184, 0.35);
  font-weight: 400;
}

/* ── Premium Button ── */
.wg-btn {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 25%, #4f46e5 50%, #2563eb 75%, #0891b2 100%);
  background-size: 250% auto;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.35),
    0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.wg-btn-content {
  position: relative;
  z-index: 2;
}

.wg-btn-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  z-index: 1;
  animation: wgBtnShimmer 4s ease-in-out infinite;
}

@keyframes wgBtnShimmer {
  0% {
    left: -150%;
  }

  40% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.wg-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #0891b2, #8b5cf6);
  background-size: 300% 300%;
  animation: wgBorderGradientMove 6s infinite linear;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.wg-btn:hover::after {
  opacity: 1;
}

.wg-btn:hover {
  background-position: right center;
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(124, 58, 237, 0.5),
    0 0 40px rgba(0, 229, 255, 0.2),
    0 0 1px rgba(255, 255, 255, 0.2);
}

.wg-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.wg-note {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.5);
  margin-top: 18px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.wg-dev-credit {
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wg-credit-badge {
  color: #8b5cf6;
  font-size: 0.7rem;
  animation: wgCreditSpin 4s linear infinite;
}

@keyframes wgCreditSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.wg-dev-credit strong {
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* ── Welcome Gate Mobile Responsiveness ── */
@media (max-width: 600px) {
  .welcome-gate {
    padding: 12px;
  }

  .wg-card {
    padding: 36px 20px;
    border-radius: 24px;
    max-width: 100%;
  }

  .wg-card::before {
    border-radius: 24px;
  }

  .wg-card::after {
    border-radius: 24px;
  }

  .wg-icon-container {
    margin-bottom: 16px;
  }

  .wg-icon-ring {
    width: 80px;
    height: 80px;
  }

  .wg-icon {
    font-size: 3.2rem;
  }

  .wg-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .wg-subtitle {
    font-size: 0.75rem;
    margin-bottom: 18px;
  }

  .wg-divider {
    margin-bottom: 18px;
  }

  .wg-prompt {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .wg-input-section {
    margin-bottom: 18px;
  }

  .wg-input-label {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }

  .wg-input-wrap {
    padding: 2px 2px 2px 16px;
    border-radius: 14px;
  }

  .wg-input {
    font-size: 0.92rem;
    padding: 12px 0;
  }

  .wg-input-icon {
    font-size: 0.95rem;
    margin-right: 10px;
  }

  .wg-btn {
    padding: 15px 18px;
    font-size: 0.92rem;
    border-radius: 14px;
    letter-spacing: 0.03em;
  }

  .wg-note {
    font-size: 0.7rem;
    margin-top: 14px;
  }

  .wg-dev-credit {
    margin-top: 18px;
    font-size: 0.72rem;
    padding-top: 14px;
  }

  .wg-top-glow {
    left: 5%;
    right: 5%;
  }

  .wg-bg-orb.wg-orb1 {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
  }

  .wg-bg-orb.wg-orb2 {
    width: 260px;
    height: 260px;
    bottom: -100px;
    right: -100px;
  }

  .wg-bg-orb.wg-orb3 {
    width: 220px;
    height: 220px;
  }

  .wg-holo-ring-1 {
    width: 350px;
    height: 350px;
  }

  .wg-holo-ring-2 {
    width: 260px;
    height: 260px;
  }

  .wg-holo-ring-3 {
    width: 180px;
    height: 180px;
  }

  .wg-scan-line {
    display: none;
  }
}

@media (max-width: 380px) {
  .wg-card {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .wg-icon-container {
    margin-bottom: 12px;
  }

  .wg-icon-ring {
    width: 68px;
    height: 68px;
  }

  .wg-icon {
    font-size: 2.8rem;
  }

  .wg-title {
    font-size: 1.28rem;
  }

  .wg-subtitle {
    font-size: 0.68rem;
    margin-bottom: 14px;
  }

  .wg-prompt {
    font-size: 0.85rem;
  }

  .wg-btn {
    padding: 14px;
    font-size: 0.85rem;
  }

  .wg-input-wrap {
    border-radius: 12px;
  }
}

/* ── Welcome Gate Large Screen Enhancement ── */
@media (min-width: 1200px) {
  .wg-card {
    padding: 70px 60px;
    max-width: 580px;
    border-radius: 36px;
  }

  .wg-icon {
    font-size: 5.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  }

  .wg-title {
    font-size: 2.8rem;
  }

  .wg-input-wrap {
    border-radius: 22px;
    padding: 10px 10px 10px 28px;
  }

  .wg-input {
    font-size: 1.2rem;
    padding: 14px 0;
  }

  .wg-btn {
    padding: 20px;
    font-size: 1.15rem;
    border-radius: 22px;
  }
}



/* ============================================================
   VISIT COUNTER SECTION
   ============================================================ */
.visit-counter-section {
  padding: 10px 0 30px;
  display: flex;
  justify-content: center;
}

.vc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(79, 70, 229, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  max-width: fit-content;
  margin: 0 auto;
}

[data-theme="dark"] .vc-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.vc-card:hover {
  transform: translateY(-2px);
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.vc-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vc-rotate 10s linear infinite;
  filter: drop-shadow(var(--icon-shadow));
}

@keyframes vc-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.vc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.vc-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  line-height: 1;
}

.vc-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
}

.vc-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  position: relative;
  top: auto;
  right: auto;
  margin-left: 4px;
}

.vc-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: vc-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes vc-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .vc-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 16px;
  }

  .vc-info {
    text-align: center;
  }

  .vc-info h3 {
    font-size: 2rem;
  }
}

/* ===== VISITORS TABLE ===== */
.visitors-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.visitors-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.visitors-table th {
  background: rgba(0, 0, 0, 0.02);
  padding: 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

[data-theme="dark"] .visitors-table th {
  background: rgba(255, 255, 255, 0.02);
}

.visitors-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.visitor-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visitor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.v-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.v-id {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

.visitor-batches-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 300px;
}

.visitor-batch-tag {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.v-time {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseStatus 2s infinite;
}

.status-dot.offline {
  background: var(--text-muted);
  opacity: 0.5;
}

@keyframes pulseStatus {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.badge-pyq_solve {
  background: rgba(79, 70, 229, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .badge-pyq_solve {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.v-ip,
.sugg-ip code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--primary);
}

[data-theme="dark"] .v-ip,
[data-theme="dark"] .sugg-ip code {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== NOTIFICATIONS SECTION ===== */
.notifications-section {
  padding: 32px 20px !important;
}

/* Section Header */
.notif-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.notif-section-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notif-section-icon {
  font-size: 2rem;
  animation: bellRing 2.5s ease-in-out infinite;
}

@keyframes bellRing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-12deg);
  }

  20%,
  40% {
    transform: rotate(12deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

.notif-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.notif-section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.notif-count-pill {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Ticker Bar */
.notif-ticker-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 10px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}

.notif-ticker-label {
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-ticker-track {
  flex: 1;
  overflow: hidden;
}

.notif-ticker-content {
  display: flex;
  gap: 24px;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.notif-ticker-item {
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.notif-ticker-sep {
  color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* Cards Grid */
.notif-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.notif-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: reveal 0.4s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.notif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notif-card-left {
  width: 6px;
  flex-shrink: 0;
  background: var(--notif-color, #6366f1);
  border-radius: 0;
}

.notif-card-body {
  padding: 18px 20px;
  flex: 1;
}

.notif-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.notif-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--notif-color, #6366f1) 15%, transparent);
  color: var(--notif-color, #6366f1);
  border: 1px solid color-mix(in srgb, var(--notif-color, #6366f1) 30%, transparent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notif-pin-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.notif-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.notif-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.notif-card-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Dark mode adjustments */
[data-theme="dark"] .notif-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.7);
}

[data-theme="dark"] .notif-ticker-bar {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* Admin Notifications Tab Layout */
.admin-notif-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-notif-layout {
    grid-template-columns: 1fr;
  }
}

.admin-notif-item {
  margin-bottom: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  transition: var(--transition);
}

.admin-notif-item:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .notif-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== EXAM PATTERN SECTION STYLES ===== */
.exam-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 20px;
}

.exam-section-card {
  padding: 32px !important;
  margin-bottom: 30px;
}

.exam-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--primary);
}

.exam-icon {
  font-size: 2rem;
}

.exam-intro {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.exam-rules-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.exam-rules-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.exam-rules-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.marks-division-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.marks-division-box h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-align: center;
}

.marks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.mark-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mark-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.mark-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mark-item.total .mark-val {
  color: var(--success);
}

/* Semester Marks Grid */
.sem-marks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.sem-marks-card {
  transition: var(--transition);
}

.sem-marks-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.sem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.total-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
}

.total-badge.gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

/* Marks Table */
.table-responsive {
  overflow-x: auto;
}

.marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.marks-table th {
  text-align: left;
  padding: 12px 8px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

.marks-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.marks-table tr:last-child td {
  border-bottom: none;
}

/* Sem 6 Highlights */
.sem-6-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.highlight-card:hover {
  background: var(--bg);
  border-color: var(--primary);
  transform: scale(1.02);
}

.s6-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.s6-icon {
  font-size: 1.2rem;
}

.s6-header h4 {
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.s6-mark {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Final Note Card */
.final-note-card {
  margin-top: 40px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.note-icon {
  font-size: 2rem;
}

.final-note-card p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .sem-marks-grid {
    grid-template-columns: 1fr;
  }

  .marks-grid {
    gap: 10px;
  }

  .mark-val {
    font-size: 1.5rem;
  }
}

/* ============================================================
   AI ASSISTANT — Ultra Premium Futuristic Floating Chat UI
   ============================================================ */

/* ── Floating Action Button ── */
.ai-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #6d28d9, #4f46e5, #0891b2);
  background-size: 200% 200%;
  animation: aiBtnGradient 4s ease-in-out infinite;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(109, 40, 217, 0.45),
    0 0 0 4px rgba(109, 40, 217, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

@keyframes aiBtnGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Orbit Ring */
.ai-chat-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(0, 229, 255, 0.6);
  border-right-color: rgba(139, 92, 246, 0.4);
  animation: aiOrbitSpin 3s linear infinite;
  pointer-events: none;
}

@keyframes aiOrbitSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Pulse Ring */
.ai-chat-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(109, 40, 217, 0.3);
  animation: aiPulseRing 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes aiPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.ai-chat-btn:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow:
    0 12px 48px rgba(109, 40, 217, 0.6),
    0 0 0 6px rgba(109, 40, 217, 0.2),
    0 0 40px rgba(0, 229, 255, 0.2);
}

.ai-chat-btn.active {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  transform: rotate(180deg) scale(1.05);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5);
  animation: none;
}

.ai-chat-btn.active::before,
.ai-chat-btn.active::after {
  display: none;
}

/* ── Chat Window ── */
.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 400px;
  height: 580px;
  background: linear-gradient(165deg, rgba(6, 10, 24, 0.97) 0%, rgba(2, 4, 12, 0.99) 100%);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  z-index: 9998;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(109, 40, 217, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(30px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated border glow */
.ai-chat-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #00e5ff, #8b5cf6);
  background-size: 400% 400%;
  animation: aiBorderFlow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

@keyframes aiBorderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 400% 50%;
  }
}

.ai-chat-window.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* ── Chat Header ── */
.ai-chat-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Header aurora glow */
.ai-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(0, 229, 255, 0.3), rgba(139, 92, 246, 0.4), transparent);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.ai-manager-status {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.ai-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5, #0891b2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow:
    0 6px 18px rgba(124, 58, 237, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

/* Avatar shimmer */
.ai-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: aiAvatarShimmer 4s ease-in-out infinite;
}

@keyframes aiAvatarShimmer {
  0% {
    background-position: 200% 0%;
  }

  100% {
    background-position: -200% 0%;
  }
}

.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  background: #10b981;
  border-radius: 50%;
  border: 2.5px solid #0f172a;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  animation: aiPulseOnline 2s ease-in-out infinite;
}

@keyframes aiPulseOnline {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.8);
  }
}

.ai-header-info {
  flex: 1;
  min-width: 0;
}

.ai-header-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-header-info p {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

/* ── Close Button ── */
.ai-close-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.ai-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: rotate(90deg);
}

/* ── Messages Area ── */
.ai-chat-messages {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.5) 0%, rgba(2, 4, 12, 0.3) 100%),
    linear-gradient(rgba(99, 102, 241, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  position: relative;
}

/* Custom scrollbar */
.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ── Message Bubbles ── */
.ai-msg {
  max-width: 88%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  position: relative;
  animation: aiMsgAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  word-wrap: break-word;
}

@keyframes aiMsgAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-msg.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: #e2e8f0;
  border-bottom-left-radius: 6px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Glowing left accent */
.ai-msg.bot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 50%, #2563eb 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.3);
  border: none;
}

.ai-msg pre {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  overflow-x: auto;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.82rem;
  color: #67e8f9 !important;
  margin: 10px 0 4px 0;
  line-height: 1.5;
}

.ai-msg strong {
  color: #c4b5fd;
  font-weight: 700;
}

.ai-msg.bot a {
  color: #67e8f9;
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: all 0.2s;
}

.ai-msg.bot a:hover {
  color: #a5f3fc;
  border-bottom-color: #a5f3fc;
}

/* ── Input Area ── */
.ai-chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(6, 10, 24, 0.6);
  position: relative;
  z-index: 2;
}

.ai-chat-input {
  flex: 1;
  background: linear-gradient(135deg, rgba(2, 3, 8, 0.9) 0%, rgba(4, 6, 16, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ai-chat-input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.ai-chat-input:focus {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    0 0 25px rgba(139, 92, 246, 0.15),
    inset 0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 0 12px rgba(139, 92, 246, 0.05);
}

.ai-send-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

/* ── Typing Indicator ── */
.ai-typing {
  display: none;
  padding: 6px 16px 6px 20px;
  font-size: 0;
  align-items: center;
  gap: 5px;
}

.ai-typing.show {
  display: flex;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  background: #8b5cf6;
  border-radius: 50%;
  animation: aiDotBounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.4);
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.ai-typing-label {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.6);
  font-weight: 500;
  margin-left: 6px;
  font-style: italic;
}

@keyframes aiDotBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* ── Quick Suggestion Chips ── */
.ai-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ai-chip-btn {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ai-chip-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.ai-chip-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ai-chat-window {
    width: 370px;
    right: 16px;
    bottom: 94px;
    height: 520px;
  }

  .ai-chat-btn {
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ai-chat-window {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    max-height: none !important;
    z-index: 100000 !important;
  }

  .ai-chat-window::before {
    border-radius: 0;
  }

  .ai-chat-window.show~#aiChatBtn {
    display: none !important;
  }

  .ai-chat-header {
    padding: 16px 18px;
  }

  .ai-chat-messages {
    padding: 16px 14px;
  }
}

/* ===== ADMIN WELCOME MODAL ===== */
.admin-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.5s ease forwards;
}

.admin-welcome-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  transform: scale(0.9) translateY(20px);
  animation: modalPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-welcome-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
  animation: iconBounce 2s infinite ease-in-out;
}

.admin-welcome-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-welcome-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.admin-welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.admin-welcome-stats .stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

@keyframes modalPopIn {
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes adminConfettiFall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== BLOCKED SCREEN ===== */
.blocked-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #020617, #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.blocked-content {
  max-width: 400px;
  padding: 40px 24px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.blocked-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
}

.blocked-content h1 {
  color: #ef4444;
  margin-bottom: 12px;
  font-weight: 800;
}

.blocked-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.blocked-footer {
  font-size: 0.85rem;
  color: #64748b;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Admin Block Buttons */

/* ===== DAILY CHALLENGE REVAMP ===== */
.challenge-sem-grid,
.challenge-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.challenge-sem-btn,
.challenge-sub-btn {
  padding: 16px 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.challenge-sub-btn {
  font-size: 0.8rem;
  padding: 12px 8px;
  text-align: center;
}

.challenge-sub-btn.general {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  border-color: var(--primary);
  color: var(--primary);
  font-size: 1rem;
}

.challenge-sem-btn:hover,
.challenge-sub-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  background: var(--primary-light);
}

.challenge-progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.challenge-score-badge {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
}

.challenge-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.challenge-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.opt-prefix {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
}

.challenge-opt-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.challenge-opt-btn:hover .opt-prefix {
  background: var(--primary);
  color: #fff;
}

.challenge-opt-btn.correct {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

.challenge-opt-btn.correct .opt-prefix {
  background: var(--success);
  color: #fff;
}

.challenge-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.challenge-opt-btn.wrong .opt-prefix {
  background: var(--danger);
  color: #fff;
}

.challenge-result {
  text-align: center;
  padding: 20px 0;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}


/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Staggered reveal for grid items */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Delay increments for staggered items */
.reveal-stagger.active>*:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal-stagger.active>*:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal-stagger.active>*:nth-child(6) {
  transition-delay: 0.6s;
}

/* Scale-in effect for specific elements */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.sugg-tab {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-muted);
}

.sugg-tab.active {
  color: var(--primary);
  background: var(--primary-light);
}

.admin-reply-box {
  background: rgba(79, 70, 229, 0.05);
  border-left: 3px solid var(--primary);
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
}

.reply-header {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.reply-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.reply-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.history-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-msg {
  font-size: 0.9rem;
  margin-top: 6px;
}

.new-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
}

.btn-block {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-block:hover {
  background: #ef4444;
  color: #fff;
}

.btn-unblock {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-unblock:hover {
  background: #10b981;
  color: #fff;
}

.btn-action {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blocked-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== ANALYTICS ENHANCEMENTS ===== */
.analytics-card.trending {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent);
}

.analytics-breakdown-item {
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.analytics-breakdown-item.trending {
  background: rgba(245, 158, 11, 0.03);
  border-left: 3px solid var(--accent);
}

.analytics-breakdown-item:last-child {
  margin-bottom: 0;
}

/* ============================================================
   BOOKMARKS SYSTEM — Premium slide-in panel
   ============================================================ */

/* Navbar Bookmark Button */
.nav-bookmark-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--text);
}

.nav-bookmark-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #f59e0b;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.nav-bookmark-btn .bk-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: bkBadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-bookmark-btn .bk-count-badge:empty,
.nav-bookmark-btn .bk-count-badge[data-count="0"] {
  display: none;
}

@keyframes bkBadgePop {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

/* ===== Bookmarks Panel Overlay ===== */
.bk-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bk-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Bookmarks Panel ===== */
.bk-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  z-index: 9999;
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="dark"] .bk-panel {
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.bk-panel.active {
  transform: translateX(0);
}

/* Panel Header */
.bk-panel-header {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(139, 92, 246, 0.04));
  flex-shrink: 0;
}

.bk-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-panel-title h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bk-panel-title .bk-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.bk-panel-close {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--text);
}

.bk-panel-close:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: rotate(90deg);
}

/* Panel Stats Bar */
.bk-stats-bar {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.bk-stat-chip {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.bk-stat-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.bk-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bk-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Panel Tabs */
.bk-tabs {
  display: flex;
  padding: 0 24px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.bk-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.bk-tab:hover {
  color: var(--primary);
}

.bk-tab.active {
  color: var(--primary);
}

.bk-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* Panel Content Area */
.bk-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 24px;
  overscroll-behavior: contain;
}

/* Bookmark Card */
.bk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: bkCardSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.bk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  transition: var(--transition);
}

.bk-card.bk-type-subject::before {
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.bk-card.bk-type-notes::before {
  background: linear-gradient(180deg, #10b981, #059669);
}

.bk-card.bk-type-pyq::before {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.bk-card.bk-type-program::before {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}

.bk-card.bk-type-pyq_solve::before {
  background: linear-gradient(180deg, #06b6d4, #0891b2);
}

.bk-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

[data-theme="dark"] .bk-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

@keyframes bkCardSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bk-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bk-card-info {
  flex: 1;
  min-width: 0;
}

.bk-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.bk-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bk-card-type-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bk-badge-subject {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.bk-badge-notes {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.bk-badge-pyq {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.bk-badge-program {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.bk-badge-pyq_solve {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.bk-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.bk-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  color: var(--text);
}

.bk-action-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: scale(1.1);
}

.bk-action-btn.bk-open-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Empty State */
.bk-empty {
  text-align: center;
  padding: 60px 20px;
  animation: bkFadeIn 0.5s ease;
}

.bk-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.7;
  animation: bkEmptyFloat 3s ease-in-out infinite;
}

@keyframes bkEmptyFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.bk-empty h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bk-empty p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

@keyframes bkFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clear All Button */
.bk-clear-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.bk-clear-all-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

/* Mobile Drawer Bookmark Item */
.drawer-grid-item.bk-drawer-item {
  position: relative;
}

.drawer-grid-item .grid-item-bk-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
  .bk-panel {
    width: 100vw;
  }

  .bk-stats-bar {
    gap: 8px;
    padding: 12px 16px;
  }

  .bk-content {
    padding: 12px 16px 20px;
  }

  .bk-panel-header {
    padding: 20px 16px 16px;
  }
}

/* ============================================================
   🚀 FUTURISTIC UI ENHANCEMENT LAYER v2.0
   Deep-space dark mode + neon accents + premium animations
   ============================================================ */

/* ── Animated Background Grid (dark mode) ── */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body>* {
  z-index: 1;
}


/* ── Futuristic Navbar ── */
[data-theme="dark"] .navbar {
  background: rgba(4, 6, 18, 0.82) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18) !important;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(139, 92, 246, 0.1);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* Neon brand */
[data-theme="dark"] .brand-bca {
  background: linear-gradient(135deg, #93c5fd, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .brand-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .nav-link {
  color: rgba(241, 245, 249, 0.7);
  border-radius: 99px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

[data-theme="dark"] .nav-link:hover {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

/* ── Elite Plus VIP Highlight on PC ── */
[data-theme="dark"] .nav-link[href="elite-plus.html"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.5) !important;
  color: #c084fc !important;
  font-weight: 800 !important;
  box-shadow:
    0 4px 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
  animation: vipPulse 3s infinite alternate ease-in-out;
}

[data-theme="dark"] .nav-link[href="elite-plus.html"]:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(0, 255, 255, 0.25) 100%) !important;
  border-color: #00ffff !important;
  color: #00ffff !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow:
    0 10px 30px rgba(139, 92, 246, 0.45),
    0 0 20px rgba(0, 255, 255, 0.3) !important;
}

@keyframes vipPulse {
  0% {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
  }

  100% {
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.7);
  }
}

/* ── Futuristic Hero ── */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(6, 182, 212, 0.07) 0%, transparent 60%);
}

.hero {
  min-height: 88vh;
  padding: 130px 20px 90px;
}

[data-theme="dark"] .hero-badge {
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: #818cf8;
  backdrop-filter: blur(10px);
  animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(129, 140, 248, 0.15);
  }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
}

[data-theme="dark"] .hero-title {
  color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .hero-search {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(129, 140, 248, 0.3);
  backdrop-filter: blur(20px);
}

[data-theme="dark"] .hero-search:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-8px) scale(1.02);
}

/* ── Futuristic Stats Strip ── */
/* ── Premium Stats Strip ── */
.stats-strip {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stats-strip {
  background: linear-gradient(to bottom, #020817, #0c1a2e);
  border-color: rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  position: relative;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon-bg {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .stat-icon-bg {
  background: rgba(129, 140, 248, 0.1);
  color: #818cf8;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .stat-number {
  background: linear-gradient(135deg, #fff, #94a3b8);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Futuristic Batch Cards ── */
.batch-card {
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.batch-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(var(--batch-accent-rgb, 99, 102, 241), 0.05));
  pointer-events: none;
}

[data-theme="dark"] .batch-card {
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .batch-card:hover {
  transform: translateY(-14px) scale(1.01);
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(129, 140, 248, 0.1);
}

.batch-card:hover {
  transform: translateY(-14px) scale(1.01);
}

/* ── Futuristic Glass Cards ── */
[data-theme="dark"] .glass-card {
  background: rgba(12, 26, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .glass-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.08);
}

/* ── Futuristic Material Cards ── */
[data-theme="dark"] .material-card {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .material-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.1);
}

/* ── Futuristic Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

/* ── Futuristic FAB ── */
.fab-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: fabFloat 4s ease-in-out infinite;
}

@keyframes fabFloat {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  }

  50% {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5);
  }
}

.fab-btn:hover {
  transform: scale(1.12) translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
  animation: none;
}

/* ── Futuristic Section Headers ── */
.section-header h2 {
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .section-header h2 {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Futuristic Page Headers ── */
.page-header {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #020817, #0d1526, #0a0e1a);
}

[data-theme="dark"] .page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.3), transparent);
}

/* ── Futuristic Footer ── */
[data-theme="dark"] .footer {
  background: linear-gradient(135deg, #020817, #0c1a2e);
  border-top: 1px solid rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.4), rgba(251, 191, 36, 0.2), transparent);
}

.footer {
  position: relative;
}

[data-theme="dark"] .footer-links a:hover {
  color: #818cf8;
  transform: translateX(6px);
}

[data-theme="dark"] .footer-socials a:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .footer-bottom {
  border-color: rgba(255, 255, 255, 0.05);
  color: #475569;
}

/* ── Futuristic Modals ── */
[data-theme="dark"] .modal {
  background: rgba(12, 26, 46, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.15);
  backdrop-filter: blur(30px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .modal-header {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(129, 140, 248, 0.04);
}

[data-theme="dark"] .modal-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(129, 140, 248, 0.25);
  color: #f1f5f9;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  border-color: #00f0ff;
  background: rgba(10, 15, 30, 0.9);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

/* ── Futuristic Progress Bars ── */
.progress-bar-fill {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

[data-theme="dark"] .progress-bar-track {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Futuristic Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ── Futuristic Toast Notifications ── */
.toast {
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), toastOut 0.3s ease 2.7s forwards;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.toast-info {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

/* ── Futuristic Subject Cards ── */
[data-theme="dark"] .subject-card {
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.9), rgba(15, 23, 42, 0.95));
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .subject-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(129, 140, 248, 0.1);
  transform: translateY(-10px);
}

.subject-card {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] .subject-code {
  color: #818cf8;
}

/* ── Futuristic Notification Cards ── */
[data-theme="dark"] .notif-card {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .notif-card:hover {
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ── Futuristic Visit Counter ── */
[data-theme="dark"] .vc-card {
  background: rgba(12, 26, 46, 0.8);
  border: 1px solid rgba(129, 140, 248, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(129, 140, 248, 0.05);
}

/* ── Futuristic Exam Tables ── */
[data-theme="dark"] .marks-table th {
  background: rgba(129, 140, 248, 0.05);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .marks-table td {
  border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .marks-table tr:hover td {
  background: rgba(129, 140, 248, 0.04);
}

/* ── Futuristic Admin Panel ── */
[data-theme="dark"] .admin-login-gate {
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent),
    linear-gradient(135deg, #020817, #0d1526);
}

/* ── Futuristic Hamburger & Mobile Menu ── */
[data-theme="dark"] .mobile-drawer {
  background: rgba(12, 26, 46, 0.97);
  border-color: rgba(129, 140, 248, 0.12);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

/* ── Futuristic Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 99px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #818cf8, #a78bfa);
}

/* ── Futuristic Suggestion Modal ── */
[data-theme="dark"] .suggestion-card {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .suggestion-card.unread {
  border-left-color: #818cf8;
  background: rgba(129, 140, 248, 0.05);
}

/* ── Futuristic Bookmarks Panel ── */
[data-theme="dark"] .bk-panel {
  background: #070f1f;
  border-left: 1px solid rgba(129, 140, 248, 0.12);
}

[data-theme="dark"] .bk-panel-header {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.06), rgba(139, 92, 246, 0.04));
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bk-card {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bk-card:hover {
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ── Dark Toggle Futuristic ── */
[data-theme="dark"] .dark-toggle {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.2);
  color: #818cf8;
}

[data-theme="dark"] .dark-toggle:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* ── Futuristic Batch Progress Bars ── */
[data-theme="dark"] .batch-systematic {
  background: rgba(129, 140, 248, 0.06);
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 12px;
}

/* ── Animated Loading Spinner ── */
.spinner {
  border: 3px solid rgba(129, 140, 248, 0.1);
  border-top-color: #6366f1;
}

/* ── Futuristic Syllabus Banner ── */
[data-theme="dark"] .syllabus-banner {
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.9), rgba(15, 23, 42, 0.95));
  border-color: rgba(251, 191, 36, 0.15);
}

/* ── Futuristic Challenge Card ── */
[data-theme="dark"] .challenge-sem-btn,
[data-theme="dark"] .challenge-sub-btn {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .challenge-sem-btn:hover,
[data-theme="dark"] .challenge-sub-btn:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Glow Text Effect for Headings ── */
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.2));
}

/* ── Light Mode Improvements ── */
[data-theme="light"] .batch-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .batch-card:hover {
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .hero {
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    #f1f5f9;
}

/* ── Ticker Bar Dark ── */
[data-theme="dark"] .notif-ticker-bar {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(217, 119, 6, 0.9));
  backdrop-filter: blur(10px);
}

/* ── Responsive polish ── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
    padding: 0 10px;
  }

  .hero-search {
    margin: 0 10px 24px;
    padding: 6px 6px 6px 18px;
    border-radius: 18px;
  }

  .hero-search button {
    padding: 10px 20px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .stat-item::after {
    display: none;
  }

  .quick-actions {
    gap: 10px;
  }

  .pill-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   🚀 FUTURISTIC POLISH LAYER — Final Pass
   ============================================================ */

/* ── Welcome Gate Dark Enhancement ── */
[data-theme="dark"] .welcome-gate {
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, #020817 60%);
}

.wg-card {
  background: rgba(3, 5, 12, 0.9) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.25) !important;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(0, 229, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 80px rgba(99, 102, 241, 0.08);
}

.wg-btn {
  position: relative;
  overflow: hidden;
}

.wg-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    left: -60%;
  }

  100% {
    left: 120%;
  }
}

/* ── Sem Tab Neon Active State ── */
.sem-tab.active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ── Batch Header Gradient Fix ── */
[data-theme="dark"] .batch-card .batch-header {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .batch-card .batch-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Neon Glow Border on Hover for Key Elements ── */
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .content-tab.active {
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.2);
}

/* ── Improved FAQ / Challenge Options ── */
[data-theme="dark"] .challenge-opt-btn {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .challenge-opt-btn:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.3);
}

/* ── Highlight Cards Dark ── */
[data-theme="dark"] .highlight-card {
  background: rgba(129, 140, 248, 0.06);
  border-color: rgba(129, 140, 248, 0.12);
}

[data-theme="dark"] .highlight-card:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.25);
}

/* ── Admin Welcome Card Dark ── */
[data-theme="dark"] .admin-welcome-card {
  background: rgba(12, 26, 46, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(129, 140, 248, 0.05);
}

/* ── Suggestion Card History Item ── */
[data-theme="dark"] .history-item {
  border-color: rgba(255, 255, 255, 0.06);
}

/* ── Manage Rows Admin ── */
[data-theme="dark"] .manage-row {
  background: rgba(12, 26, 46, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .manage-row:hover {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(129, 140, 248, 0.04);
}

/* ── Analytics Cards ── */
[data-theme="dark"] .analytics-card {
  background: rgba(12, 26, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .analytics-value {
  color: #818cf8;
}

/* ── Visitors Table Dark ── */
[data-theme="dark"] .visitors-table th {
  background: rgba(129, 140, 248, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .visitors-table td {
  border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .visitors-table tr:hover td {
  background: rgba(129, 140, 248, 0.04);
}

/* ── Brand Accent always golden ── */
.brand-accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
}

/* ── Brand BCA color fix ── */
.brand-bca {
  color: var(--brand-bca);
  transition: var(--transition);
}

[data-theme="dark"] .brand-bca {
  background: linear-gradient(135deg, #93c5fd, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── Holographic shimmer on section headers ── */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  margin: 12px auto 0;
}

/* ── Pill buttons light mode ── */
.pill-btn {
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] .pill-btn {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pill-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

/* ── Footer Credit Style ── */
.footer-bottom strong {
  color: var(--primary);
}

[data-theme="dark"] .footer-bottom strong {
  color: #818cf8;
}

/* Suggestions Modal Extra Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ── Loading state improvement ── */
.loading-spinner {
  padding: 80px;
}

.loading-spinner p {
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ── Mobile Bottom Padding for FAB ── */
@media (max-width: 768px) {
  .fab-btn {
    bottom: 90px;
    right: 20px;
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* ── Button Haptics ── */
button:active,
.btn:active,
.nav-link:active,
.pill-btn:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* ── Navbar Scroll Shadow ── */
.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   GLOBAL TECH BACKGROUND — Visible on ALL pages
   ============================================================ */
.global-tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Global Circuit Grid ── */
.global-circuit-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

[data-theme="dark"] .global-circuit-grid {
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px);
}

/* ── Global Floating Code Layer ── */
.global-floating-code {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.global-code-particle {
  position: absolute;
  font-family: 'Courier New', 'Fira Code', monospace;
  color: rgba(99, 102, 241, 0.08);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
}

[data-theme="dark"] .global-code-particle {
  color: rgba(129, 140, 248, 0.12);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

@keyframes globalCodeDriftR {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  3% {
    opacity: 1;
  }

  50% {
    transform: translateX(50vw) translateY(-15px) rotate(1deg);
  }

  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 250px)) translateY(-30px) rotate(2deg);
  }
}

@keyframes globalCodeDriftL {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  3% {
    opacity: 1;
  }

  50% {
    transform: translateX(-50vw) translateY(10px) rotate(-1deg);
  }

  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(calc(-100vw - 250px)) translateY(20px) rotate(-2deg);
  }
}

/* ── Scan Line ── */
.global-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.06), transparent);
  animation: globalScanMove 8s linear infinite;
  opacity: 0.6;
}

[data-theme="dark"] .global-scan-line {
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.15), rgba(34, 211, 238, 0.1), transparent);
  opacity: 0.8;
}

@keyframes globalScanMove {
  0% {
    top: -2px;
  }

  100% {
    top: 100%;
  }
}

/* ── Binary Streams (Side Edges) ── */
.global-binary-stream {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  overflow: hidden;
}

.stream-left {
  left: 0;
}

.stream-right {
  right: 0;
}

.binary-bit {
  position: absolute;
  top: -20px;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(99, 102, 241, 0.06);
  animation: binaryFall linear forwards;
  pointer-events: none;
}

[data-theme="dark"] .binary-bit {
  color: rgba(129, 140, 248, 0.1);
  text-shadow: 0 0 5px rgba(129, 140, 248, 0.2);
}

@keyframes binaryFall {
  0% {
    top: -20px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100vh;
    opacity: 0;
  }
}

/* ── Dark mode enhanced effects ── */
[data-theme="dark"] .global-tech-bg {
  opacity: 1;
}

[data-theme="light"] .global-tech-bg {
  opacity: 0.7;
}

/* ── Mobile: Reduce effects for performance ── */
@media (max-width: 768px) {
  .global-binary-stream {
    display: none;
  }

  .global-scan-line {
    opacity: 0.3;
  }

  .global-circuit-grid {
    background-size: 50px 50px;
  }

  .global-code-particle {
    font-size: 0.55rem !important;
  }
}

@media (max-width: 480px) {
  .global-circuit-grid {
    opacity: 0.5;
  }

  .global-scan-line {
    display: none;
  }
}

/* ── Focus Ring Accessibility ── */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove focus outline specifically from welcome gate input */
.wg-input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

/* ── Smooth page transitions ── */
main,
section,
.section {
  animation: pageFadeIn 0.5s ease-out both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ADMIN LOGIN SYSTEM PANEL ===== */
.alb-sys-panel {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.alb-sys-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.alb-sys-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.alb-sys-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.alb-sys-icon {
  font-size: 1.1rem;
}

.alb-sys-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.alb-sys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.alb-sys-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.alb-sys-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.sys-item-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.sys-item-val.text-blue {
  color: #38bdf8;
}

.sys-item-val.text-purple {
  color: #c084fc;
  font-size: 0.85rem;
  padding-top: 2px;
}

.sys-item-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.alb-sys-loader {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
}

.alb-sys-lbl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.alb-sys-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.alb-sys-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
  animation: loadBarAnim 3s infinite alternate ease-in-out;
}

@keyframes loadBarAnim {
  0% {
    width: 10%;
  }

  100% {
    width: 45%;
  }
}

[data-theme="light"] .alb-sys-panel {
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .alb-sys-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .alb-sys-loader {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .alb-sys-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Developer Connect Button in Chat */
.dev-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 4px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-connect-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.ai-msg.bot .dev-connect-btn {
  display: flex;
  width: fit-content;
}

/* ========================================================================= */
/* ===== PREMIUM BATCH CONTAINS & PDF/NOTES REDESIGN ===== */
/* ========================================================================= */

/* --- Batch Contains Card Redesign --- */
.premium-batch-card-inner {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  position: relative;
  z-index: 1;
}

.batch-cover-art {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.batch-gradient-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.batch-gradient-overlay.sem-1 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.batch-gradient-overlay.sem-2 {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.batch-gradient-overlay.sem-3 {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.batch-gradient-overlay.sem-4 {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.batch-gradient-overlay.sem-5 {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.batch-gradient-overlay.sem-6 {
  background: linear-gradient(135deg, #f6d365, #fda085);
}

[data-theme="dark"] .batch-gradient-overlay {
  opacity: 0.6;
}

.batch-status-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

[data-theme="dark"] .batch-status-pill {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.green {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.amber {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.batch-title {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.batch-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.batch-desc-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.batch-contains-section {
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

[data-theme="dark"] .batch-contains-section {
  background: rgba(255, 255, 255, 0.02);
}

.batch-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  opacity: 0.8;
}

.batch-contains-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contains-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contains-icon {
  font-size: 1.2rem;
  background: var(--bg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contains-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.contains-text strong {
  color: var(--text);
  font-size: 0.85rem;
}

.batch-divider {
  height: 1px;
  background: var(--border);
  margin: auto -24px 20px -24px;
}

.batch-action-area {
  margin-top: auto;
}

.batch-progress-container {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.progress-track {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .progress-track {
  background: rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-study,
.btn-premium-enroll {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-premium-study {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-premium-study:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.batch-enroll-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--success);
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-premium-enroll {
  flex: 1;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-premium-enroll:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}


/* --- PDF/Notes Card Redesign --- */

.pdf-note-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pdf-note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-glow);
}

.pdf-preview-area {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .pdf-preview-area {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.pdf-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size: 2rem;
  border: 1px solid var(--border);
}

.pdf-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.pdf-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.pdf-badge.new-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pdf-badge.imp-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pdf-badge.type-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.pdf-info-area {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pdf-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.pdf-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdf-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.action-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn.view-btn {
  flex: 1;
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  gap: 8px;
}

.action-btn.view-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.pdf-icon-actions {
  display: flex;
  gap: 8px;
}

.action-btn.icon-btn {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}

.action-btn.icon-btn:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-2px);
}

.action-btn.icon-btn.done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Ensure responsiveness */
@media (max-width: 640px) {
  .batch-contains-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PREMIUM FAQ SECTION ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.faq-item {
  padding: 0 !important;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  transition: background 0.3s ease;
}

.faq-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(var(--primary-rgb), 0.02);
}

.faq-answer p {
  padding: 0 32px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--danger);
  color: #fff;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.pill-faq {
  background: linear-gradient(135deg, #ec4899, #d946ef);
  color: #fff !important;
  border: none !important;
}

.pill-faq:hover {
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3) !important;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 24px 20px;
  }
}


/* ===== GLOBAL PREMIUM CONTACT BUTTONS ===== */
.contact-btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}


.home-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.home-contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.home-contact-btn:hover::before {
  left: 100%;
}

.home-contact-btn .icon-box {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.home-contact-btn.btn-mail {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.home-contact-btn.btn-wa {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.home-contact-btn.btn-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 10px 20px rgba(204, 35, 102, 0.2);
}

.home-contact-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.connect-strip {
  padding: 80px 0;
  background: var(--bg-card);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .connect-strip {
  background: linear-gradient(to bottom, #020817, #0c1a2e);
}


/* ===== PREMIUM CONNECT HEADING ===== */
.premium-gradient-text {
  font-size: clamp(2rem, 5vw, 2.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

[data-theme="dark"] .premium-gradient-text {
  background: linear-gradient(135deg, #fff, #94a3b8);
}

.highlight-connect {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.highlight-connect::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(99, 102, 241, 0.1);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-15deg);
}

/* ============================================================
   FINAL THEME POLISH (Icons & Typography)
   ============================================================ */

/* Global Icon Shadows for Emojis */
.brand-icon,
.tf-icon,
.grid-item-icon,
.res-icon,
.wg-icon,
.vc-icon,
.btn-icon,
.nav-link span,
.drawer-nav-icon,
.grid-item-icon {
  filter: drop-shadow(var(--icon-shadow));
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Hover effects for icons */
.tf-item:hover .tf-icon,
.drawer-grid-item:hover .grid-item-icon,
.res-square-item:hover .res-icon,
.sem-square-item:hover .sem-num {
  transform: scale(1.15) rotate(5deg);
}

/* Typography Enhancements */
h1,
h2,
h3,
.hero-title,
.section-header h2,
.card-title {
  text-shadow: var(--text-glow);
  letter-spacing: -0.02em;
}

/* Dark Mode Specific Contrast Fixes */
[data-theme='dark'] .text-muted,
[data-theme='dark'] .hero-subtitle,
[data-theme='dark'] .drawer-user-role,
[data-theme='dark'] .batch-desc,
[data-theme='dark'] .wg-subtitle,
[data-theme='dark'] .drawer-version {
  color: #94a3b8 !important;
  /* Brighter than default muted for readability */
}

[data-theme='dark'] .nav-link:not(.active) {
  color: #cbd5e1;
}

[data-theme='dark'] .nav-link:hover {
  color: var(--primary);
}

/* Placeholder Visibility */
::placeholder {
  opacity: 0.7 !important;
}

[data-theme='dark'] ::placeholder {
  color: #64748b !important;
  opacity: 0.9 !important;
}

/* Badge Optimizations */
.status-badge,
.type-badge,
.batch-status-badge,
.notif-type-badge {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme='dark'] .status-badge,
[data-theme='dark'] .type-badge,
[data-theme='dark'] .notif-type-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}


/* Specific Community Page Icon Optimization */
.comm-reg-icon,
.comm-empty-icon,
.comm-fab,
.comm-post-btn span,
.comm-tab span {
  filter: drop-shadow(var(--icon-shadow));
  display: inline-block;
  transition: transform 0.3s ease;
}

.comm-fab:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Uniform Navigation Styling */
.ai-assistant-link {
  /* No special highlights, matches regular nav-link */
}


/* Fix Invisible Stats Strip Text */
.stat-number {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: block !important;
}

.stat-label {
  color: var(--text-muted) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme='dark'] .stat-label {
  color: #cbd5e1 !important;
}


/* Responsive Navigation Fixes */
@media (max-width: 1100px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }
}


/* Custom Mouse Glow Effect (Goldish for Light Mode) */
.mouse-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
  will-change: transform;
}

[data-theme='light'] .mouse-glow {
  opacity: 1;
}

/* Ensure content is above glow */
.navbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}


/* Smart Welcome Popup Styles (Updated Premium Version - Highly Responsive & Smooth) */
.smart-welcome-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.95) 100%);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.smart-welcome-overlay.show {
  opacity: 1;
  visibility: visible;
}

.smart-welcome-modal {
  width: 90%;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(40px) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 32px;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.smart-welcome-modal.show {
  transform: translateY(0) scale(1);
}

/* Floating Particles */
.swm-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.swm-particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: swmParticleFloat var(--duration) ease-in-out infinite;
}

@keyframes swmParticleFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(var(--x), var(--y));
  }
}

/* Glow Border Animation */
.smart-welcome-modal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(45deg, transparent, var(--primary), #a855f7, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: swmRotateGlow 4s linear infinite;
  z-index: 1;
}

@keyframes swmRotateGlow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.popup-content-wrapper {
  position: relative;
  z-index: 10;
}

.greeting-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.greeting-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  animation: swmFloatIcon 3s ease-in-out infinite;
}

@keyframes swmFloatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.greeting-time-based {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.welcome-main-title {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #fff;
  min-height: 2.4em;
  /* For typing effect stability */
}

/* Typing Effect Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.swm-main-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: #fff;
  border: none;
  padding: 18px 32px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.swm-main-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
  filter: brightness(1.1);
}

.swm-main-cta:active {
  transform: translateY(-2px) scale(0.98);
}

.swm-main-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.swm-main-cta:hover::after {
  left: 100%;
}

.swm-pulse-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
}

.pulse-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pulse-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pulse-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.pulse-lbl {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
}

.swm-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.swm-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.swm-feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.feat-icon {
  font-size: 1.4rem;
}

.feat-text strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.feat-text p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.popup-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 100;
}

.popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .smart-welcome-modal {
    padding: 30px 20px;
  }

  .greeting-time-based {
    font-size: 1.3rem;
  }

  .welcome-main-title {
    font-size: 1.5rem;
  }
}


/* Hide page content when Welcome Gate is active */
body.gate-active #navbar,
body.gate-active section,
body.gate-active footer,
body.gate-active .admin-extras,
body.gate-active .mouse-glow {
  display: none !important;
}

.welcome-gate {
  background: #000000 !important;
  /* Pure black to fully obscure background */
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
}


body.gate-active {
  overflow: hidden !important;
  height: 100vh !important;
}


.wg-code-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.wg-card {
  position: relative;
  z-index: 10;
}


/* Premium Text Effects for Welcome Gate */
.wg-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wg-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #34D399;
  letter-spacing: 0.1em;
  background: rgba(52, 211, 153, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34D399;
  animation: wgStatusBlink 1.5s infinite;
}

@keyframes wgStatusBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.wg-version-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: -10px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.wg-title {
  background: linear-gradient(135deg, #fff 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.quick-action-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.quick-action-btn:hover {
  background: rgba(129, 140, 248, 0.1) !important;
  border-color: rgba(129, 140, 248, 0.4) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Premium Animations */
@keyframes swmFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swmRotateGlow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes swmFloatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.smart-welcome-modal.show .greeting-section,
.smart-welcome-modal.show .welcome-title-section,
.smart-welcome-modal.show .swm-pulse-section,
.smart-welcome-modal.show .swm-feature-list,
.smart-welcome-modal.show .swm-main-cta {
  animation: swmFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.smart-welcome-modal.show .greeting-section {
  animation-delay: 0.1s;
}

.smart-welcome-modal.show .welcome-title-section {
  animation-delay: 0.2s;
}

.smart-welcome-modal.show .swm-pulse-section {
  animation-delay: 0.3s;
}

.smart-welcome-modal.show .swm-feature-list {
  animation-delay: 0.4s;
}

.smart-welcome-modal.show .swm-main-cta {
  animation-delay: 0.5s;
}

.greeting-icon {
  animation: swmFloatIcon 3s ease-in-out infinite;
}

/* Refined Modal for "Long" layout */
.smart-welcome-modal {
  max-width: 450px !important;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Hide scrollbar for Chrome/Safari */
}

.smart-welcome-modal::-webkit-scrollbar {
  display: none;
}

/* --- QUICK ACTIONS GRID --- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.qa-card {
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.qa-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.qa-info {
  flex: 1;
}

.qa-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.qa-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qa-arrow {
  font-size: 1.2rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.qa-card:hover .qa-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Refined Modal for "Long" layout */
.smart-welcome-modal {
  max-width: 450px !important;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  /* Hide scrollbar for Chrome/Safari */
}

.smart-welcome-modal::-webkit-scrollbar {
  display: none;
}

/* --- QUICK ACTIONS GRID --- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.qa-card {
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.qa-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.qa-info {
  flex: 1;
}

.qa-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.qa-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qa-arrow {
  font-size: 1.2rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.qa-card:hover .qa-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Mobile-only nav link utility (hidden on desktop screens) */
.nav-link.mobile-only {
  display: none !important;
}

/* Hide Suggestion Button in Desktop Navigation Menu (PC Only) */
.nav-links a[onclick*="openSuggestionModal"] {
  display: none !important;
}