/* =====================================================
   FUSION ACADEMY - Clean White & Light Gray Theme
   Minimalist, Clean, High-Contrast White Theme
   Color Palette: White (#ffffff), Light Gray (#f4f4f5),
   Charcoal Text (#1a1a1a), Green Accent (#22c55e)
   Font Family: 'Poppins', 'Outfit', sans-serif
   ===================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Premium White Palette */
  --bg-body: #f8f8fa;
  --bg-surface: #f0f0f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f9;
  --bg-input: #f3f3f6;

  /* Borders */
  --border-color: #e2e2e8;
  --border-hover: #c8c8d2;
  --border-focus: #111111;

  /* Typography */
  --text-main: #111111;
  --text-muted: #4b4b5e;
  --text-light: #7c7c95;
  --text-inverse: #ffffff;

  /* Primary */
  --primary: #111111;
  --primary-hover: #2d2d2d;
  --primary-dark: #000000;
  --primary-light: rgba(17, 17, 17, 0.06);

  /* Accents */
  --accent-gold: #d97706;
  --accent-green: #16a34a;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-red: #dc2626;

  /* Icon palettes */
  --icon-cyan-bg: rgba(6,182,212,0.10);   --icon-cyan-fg: #0891b2;
  --icon-emerald-bg: rgba(16,185,129,0.10); --icon-emerald-fg: #059669;
  --icon-gold-bg: rgba(217,119,6,0.10);   --icon-gold-fg: #d97706;
  --icon-purple-bg: rgba(124,58,237,0.10); --icon-purple-fg: #7c3aed;
  --icon-blue-bg: rgba(37,99,235,0.10);   --icon-blue-fg: #2563eb;
  --icon-rose-bg: rgba(225,29,72,0.10);   --icon-rose-fg: #e11d48;

  /* Layout & Geometry */
  --max-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows — layered for depth */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 24px 56px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* CRITICAL FIX FOR DROPDOWN OPTION VISIBILITY */
select {
  color: #1a1a1a !important;
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
}

select option {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 0.95rem;
  padding: 10px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #fafafa;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

::selection {
  background: #1a1a1a;
  color: #ffffff;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #1a1a1a;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Premium Card (glass with hover lift & glow) */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Premium Section Header */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Hero Title Robot Group */
.hero-title-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero-robo-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(17,17,17,0.25);
  position: relative;
  flex-shrink: 0;
  border: 2px solid #27272a;
  animation: heroRoboFloat 3s ease-in-out infinite;
}

html.dark .hero-robo-avatar {
  background: #27272a !important;
  color: #ffffff !important;
  border-color: #52525b !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(59, 130, 246, 0.4) !important;
}

html.dark .hero-robo-avatar i {
  color: #ffffff !important;
}

.hero-robo-avatar::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
}

@keyframes heroRoboFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(-5deg); }
}

/* Accent underline on highlighted h2 words */
.gradient-text {
  position: relative;
  display: inline-block;
  color: var(--text-main);
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.7s ease-out 0.5s forwards;
}

@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

/* ---------- Premium Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.15);
  transition: opacity 0.2s;
}

.btn:hover::after { opacity: 1; }

.btn-gradient, .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--primary);
  box-shadow: 0 4px 16px rgba(17,17,17,0.18), 0 1px 4px rgba(0,0,0,0.12);
}

.btn-gradient:hover, .btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,17,17,0.22);
}

.btn-glass, .btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-glass:hover, .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.83rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; letter-spacing: 0.02em; }

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 9px 0;
  color: var(--text-muted);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-inner span i {
  color: var(--accent-gold);
  margin-right: 6px;
}

.announcement-link {
  color: #1a1a1a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 16px 0;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.15rem;
}

.logo-icon i {
  color: #ffffff !important;
}

.logo-text {
  color: var(--text-main);
}

.logo-bold {
  color: var(--text-main);
  font-weight: 800;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-main);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-btn-highlight {
  background: #1a1a1a;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-btn-highlight::after {
  display: none !important;
}

.nav-btn-highlight:hover {
  background: #333333;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 19px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #1a1a1a;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero Section — Premium ---------- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle radial gradient spotlight */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.04) 0%, transparent 70%);
  pointer-events: none;
}

#particles { display: none; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#c8c8d4 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

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

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Premium badge pill — Centered */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  animation: pulsePing 2s ease-in-out infinite;
}

@keyframes pulsePing {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(22,163,74,0.05); }
}

/* Hero Title Group — Centered */
.hero-title-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 16px auto;
}

.hero-robo-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(17,17,17,0.22);
  position: relative;
  flex-shrink: 0;
  animation: heroRoboFloat 3s ease-in-out infinite;
}

.hero-robo-avatar::after {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(34,197,94,0.8);
}

@keyframes heroRoboFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(-5deg); }
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin: 0;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Premium Stats Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  margin: 0 auto;
}

/* ---------- About Us Section — Premium ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text-card {
  padding: 44px;
}

.about-icon-glow {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 22px;
}

.about-text-card h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.about-text-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.highlight-item i {
  color: var(--accent-green);
  font-size: 1rem;
  flex-shrink: 0;
}

.mt-4 { margin-top: 22px; }

/* About Feature Boxes — colored icons */
.about-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}

.feature-box-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform var(--transition-fast);
}

.about-feature-box:hover .feature-box-icon {
  transform: scale(1.1);
}

/* Colored feature icons */
.feature-box-icon.cyan   { background: var(--icon-cyan-bg);   color: var(--icon-cyan-fg); }
.feature-box-icon.emerald{ background: var(--icon-emerald-bg); color: var(--icon-emerald-fg); }
.feature-box-icon.purple { background: var(--icon-purple-bg); color: var(--icon-purple-fg); }
.feature-box-icon.gold   { background: var(--icon-gold-bg);   color: var(--icon-gold-fg); }

.feature-box-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.feature-box-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Courses Section — Premium ---------- */
.course-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(17,17,17,0.2);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.course-card {
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Colored top accent line for course cards */
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0.8;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.course-card[data-category="programming"]:nth-child(1)::before {
  background: linear-gradient(to right, #ef4444, #f97316);
}

.course-card[data-category="programming"]:nth-child(2)::before {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.course-card[data-category="programming"]:nth-child(3)::before {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.course-card[data-category="academics"]::before {
  background: linear-gradient(to right, #10b981, #14b8a6);
}

.course-card:hover::before {
  height: 6px;
  opacity: 1;
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.course-badge.popular {
  background: rgba(217,119,6,0.10);
  color: var(--accent-gold);
  border-color: rgba(217,119,6,0.25);
}

.course-badge.featured {
  background: rgba(22,163,74,0.10);
  color: var(--accent-green);
  border-color: rgba(22,163,74,0.25);
}

/* Colored course icons */
.course-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 20px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.course-card:hover .course-icon {
  transform: scale(1.1) rotate(-3deg);
}

.java-glow   { background: rgba(239,68,68,0.10); color: #dc2626; box-shadow: 0 4px 14px rgba(239,68,68,0.15); }
.python-glow { background: rgba(37,99,235,0.10);  color: #2563eb; box-shadow: 0 4px 14px rgba(37,99,235,0.15); }
.cpp-glow    { background: rgba(124,58,237,0.10); color: #7c3aed; box-shadow: 0 4px 14px rgba(124,58,237,0.15); }
.school-glow { background: rgba(22,163,74,0.10);  color: #16a34a; box-shadow: 0 4px 14px rgba(22,163,74,0.15); }

.course-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.course-syllabus-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-syllabus-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-syllabus-list li i {
  color: var(--accent-green);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.course-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.course-tags span {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-body);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.fee-badge strong {
  color: #1a1a1a;
  font-size: 0.95rem;
}

.mode-badge {
  color: var(--text-light);
}

/* ---------- Fees Section ---------- */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.fee-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.fee-popular {
  border-color: #1a1a1a;
  box-shadow: var(--shadow-lg);
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 16px;
  border-bottom-left-radius: var(--radius-sm);
}

.fee-header {
  margin-bottom: 20px;
}

.fee-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.fee-card h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.fee-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fee-pricing {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.starting-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.fee-pricing .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
}

.fee-pricing .amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #1a1a1a;
  line-height: 1;
}

.fee-pricing .duration {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fee-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.fee-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.fee-features li i {
  color: var(--accent-green);
  font-size: 1rem;
}

/* ---------- Fee Estimator Calculator ---------- */
.calc-card {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 32px;
}

.calc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a1a1aa'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

.input-group select:focus {
  border-color: var(--border-focus);
}

.calc-result-box {
  background: var(--bg-body);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-price {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #1a1a1a;
  margin: 10px 0;
}

.result-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.result-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mt-3 { margin-top: 14px; }

/* ---------- Why Choose Us Section — Premium ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.why-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.why-card:hover .why-icon-box {
  transform: scale(1.12) rotate(-3deg);
}

/* Colored icon boxes with matching glow */
.why-icon-box.cyan   { background: var(--icon-cyan-bg);   color: var(--icon-cyan-fg);   box-shadow: 0 4px 14px rgba(6,182,212,0.18); }
.why-icon-box.emerald{ background: var(--icon-emerald-bg); color: var(--icon-emerald-fg); box-shadow: 0 4px 14px rgba(16,185,129,0.18); }
.why-icon-box.gold   { background: var(--icon-gold-bg);   color: var(--icon-gold-fg);   box-shadow: 0 4px 14px rgba(217,119,6,0.18); }
.why-icon-box.purple { background: var(--icon-purple-bg); color: var(--icon-purple-fg); box-shadow: 0 4px 14px rgba(124,58,237,0.18); }
.why-icon-box.blue   { background: var(--icon-blue-bg);   color: var(--icon-blue-fg);   box-shadow: 0 4px 14px rgba(37,99,235,0.18); }
.why-icon-box.rose   { background: var(--icon-rose-bg);   color: var(--icon-rose-fg);   box-shadow: 0 4px 14px rgba(225,29,72,0.18); }

.why-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Testimonials Section — Premium ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--accent-green);
  opacity: 0.6;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.75;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.author-info { flex-grow: 1; }

.author-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.75rem;
  color: var(--text-light);
}

.stars {
  color: #f59e0b;
  font-size: 0.85rem;
  display: flex;
  gap: 3px;
}

/* ---------- FAQ Section — Premium ---------- */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-question i {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform var(--transition-smooth), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  color: var(--text-main);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.info-item.copyable {
  cursor: pointer;
}

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-main);
}

.info-content h4 {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.info-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-copy {
  margin-left: auto;
  color: var(--text-light);
  padding: 6px;
  border-radius: 6px;
}

.info-item.copyable:hover .btn-copy {
  color: var(--text-main);
}

/* WhatsApp Card Widget */
.whatsapp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.whatsapp-card i {
  font-size: 2.2rem;
  color: #22c55e;
}

.whatsapp-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.whatsapp-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  padding: 36px;
}

.form-title-box {
  margin-bottom: 24px;
}

.form-title-box h3 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-title-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-row {
  margin-bottom: 18px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.input-wrapper.text-wrapper {
  align-items: flex-start;
}

.input-wrapper.text-wrapper .input-icon {
  top: 16px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.form-note {
  display: none;
  margin-top: 16px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 0.88rem;
  text-align: center;
}

.form-note.show {
  display: block;
}

/* ---------- Class Details Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
}

.class-btn {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-align: center;
}

.class-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.hidden {
  display: none !important;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.detail-head h3 {
  font-size: 1.9rem;
  color: #1a1a1a;
}

.detail-fee {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.detail-info {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.detail-block {
  margin-bottom: 20px;
}

.detail-block h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.detail-block ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-block li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail-block li i {
  color: var(--accent-green);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Floating Action Buttons ---------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.float-wa {
  background: #22c55e;
  color: #ffffff;
}

.float-wa:hover {
  transform: scale(1.08);
}

.float-top {
  background: var(--bg-surface);
  color: #1a1a1a;
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-top:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 70px 0 0 0;
}

.footer h4 {
  color: #1a1a1a;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 16px 0 20px 0;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 0.85rem;
}

.footer-socials a:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #1a1a1a;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a i {
  font-size: 0.65rem;
  color: #1a1a1a;
}

.footer-links a:hover {
  color: #1a1a1a;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li i {
  color: #1a1a1a;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-trigger-link {
  color: var(--text-light);
}

.admin-trigger-link:hover {
  color: #1a1a1a;
}

/* ---------- Admin Panel Styles (#admin View) ---------- */
.admin-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-body);
  overflow-y: auto;
  flex-direction: column;
}

body.admin-mode .admin-view {
  display: flex;
  flex-direction: column;
}

/* ---- Admin Header ---- */
.admin-header {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-color);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  flex-shrink: 0;
}

.admin-header-left, .admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.6rem;
  color: var(--primary);
}

.admin-logo-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.admin-logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.admin-header-btn:hover {
  opacity: 0.85;
}

.admin-header-btn.outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.admin-header-btn.outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Blinking Unread Alert Badge */
.admin-unread-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
}

.admin-unread-alert.none {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--accent-green);
}

.blink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: blinkPulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.admin-unread-alert.none .blink-dot {
  background: var(--accent-green);
  animation: none;
}

@keyframes blinkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

/* ---- Admin Body Layout ---- */
.admin-body-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* ---- Left Sidebar ---- */
.admin-sidebar {
  border-right: 1px solid var(--border-color);
  padding: 24px 18px;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  border-radius: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.sidebar-header i {
  font-size: 1.1rem;
  color: var(--accent-green);
}

.sidebar-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.day-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each Day Tab */
.day-tab {
  width: 100%;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  position: relative;
}

.day-tab:hover {
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.day-tab.active {
  background: var(--primary);
  border-color: var(--primary);
}

.day-tab.has-unchecked {
  border-color: #ef4444;
}

.day-tab-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--border-hover);
  border-radius: 0;
  transition: background 0.2s;
}

.day-tab.has-unchecked .day-tab-accent {
  background: #ef4444;
}

.day-tab.active .day-tab-accent {
  background: rgba(255,255,255,0.3);
}

.day-tab-body {
  flex: 1;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.day-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.day-tab.active .day-label {
  color: #ffffff;
}

.day-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.day-tab.active .day-date {
  color: rgba(255,255,255,0.7);
}

.day-tab-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.day-total-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.07);
  color: var(--text-muted);
}

.day-tab.active .day-total-badge {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.day-unchecked-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #ef4444;
  color: #ffffff;
  animation: blinkPulse 1.5s ease-in-out infinite;
}

.day-tab.active .day-unchecked-badge {
  background: rgba(255,255,255,0.25);
  animation: none;
}

/* ---- Admin Main Content Area ---- */
.admin-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* ---- Stat Cards ---- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-card-icon.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.stat-card-icon.emerald {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.stat-card-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.stat-card-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.stat-card-info h3 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.stat-card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ---- Admin Panel (Inquiry List) ---- */
.admin-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 1;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  gap: 14px;
  flex-wrap: wrap;
}

.admin-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.82rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-wrapper i {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.admin-search-input {
  padding: 8px 14px 8px 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.83rem;
  font-family: 'Poppins', sans-serif;
  width: 220px;
  transition: border-color var(--transition-fast);
}

.admin-search-input:focus {
  border-color: var(--border-focus);
  outline: none;
}

.admin-clear-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.10);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.admin-clear-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ---- Admin List Items ---- */
.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition-fast);
  position: relative;
}

.admin-item:last-child {
  border-bottom: none;
}

.admin-item:hover {
  background: var(--bg-card-hover);
}

/* UNCHECKED / UNREAD styling */
.admin-item.unread {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.admin-item.unread:hover {
  background: rgba(245, 158, 11, 0.07);
}

.admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-user-info strong i {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-course-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Unchecked Badge */
.unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Date + Time Badge */
.admin-date-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-date-badge .date-part {
  font-weight: 600;
  color: var(--text-muted);
}

.admin-date-badge .time-part {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
}

.admin-item-details {
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-color);
}

.admin-msg {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  gap: 8px;
}

.admin-msg i {
  color: var(--text-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.admin-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Poppins', sans-serif;
}

.admin-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-call {
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.07);
}

.btn-call:hover {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}

.btn-copy-phone:hover {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.admin-status-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-status-control label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.admin-status-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.btn-check-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  background: #f59e0b;
  color: #ffffff;
  border: 1px solid #f59e0b;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.btn-check-now:hover {
  background: #d97706;
  border-color: #d97706;
}

.admin-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-light);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.admin-del:hover {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  border-color: rgba(239,68,68,0.25);
}

/* Admin Empty State */
.admin-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
  gap: 8px;
  color: var(--text-light);
}

.admin-empty i {
  font-size: 2.8rem;
  opacity: 0.4;
  margin-bottom: 8px;
}

.admin-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-empty span {
  font-size: 0.83rem;
  max-width: 300px;
}

/* Sidebar empty state */
.sidebar-empty {
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .admin-body-wrapper {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .day-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .day-tab {
    flex: 1 1 160px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-main {
    padding: 18px 16px;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-toolbar-right {
    width: 100%;
  }
  .admin-search-input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-header {
    padding: 12px 16px;
  }
}


/* ---------- Scroll Reveal Base ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .announcement-inner { flex-direction: column; text-align: center; gap: 4px; }
  .hamburger { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hero-title-group { flex-wrap: wrap; gap: 10px; }
  .hero-robo-avatar { width: 46px; height: 46px; font-size: 1.5rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-divider { display: none; }
  .section-head h2 { font-size: 2rem; }
  .modal-box { padding: 24px 18px; }
  .detail-block ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* =====================================================
   INTERACTIVE HANGING LAMP PULL CORD THEME SWITCH
   ===================================================== */
.lamp-switch-wrapper {
  position: absolute;
  top: 0;
  right: 85px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.lamp-fixture {
  width: 22px;
  height: 7px;
  background: linear-gradient(to bottom, #475569, #1e293b);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

.lamp-cord-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lamp-string {
  width: 2.5px;
  height: 48px;
  background: linear-gradient(to bottom, #94a3b8, #64748b, #475569);
  border-radius: 1px;
  margin-top: -3px;
  transform-origin: top center;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lamp-bulb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a, #eab308 60%, #ca8a04);
  color: #78350f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.85), 0 0 24px rgba(234, 179, 8, 0.4);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Elastic stretch animation on click — ZERO gap, ZERO breaking! */
.lamp-cord-container.pull-active .lamp-string {
  transform: scaleY(1.5);
}

.lamp-cord-container.pull-active .lamp-bulb {
  transform: translateY(24px);
}

.lamp-glow-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(234, 179, 8, 0.5);
  animation: lampPulse 2s ease-in-out infinite;
}

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

/* Lamp Switch in Dark Mode */
html.dark .lamp-fixture {
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
}

html.dark .lamp-string {
  background: linear-gradient(to bottom, #ffffff, #cbd5e1);
}

html.dark .lamp-bulb {
  background: radial-gradient(circle at 35% 35%, #38bdf8, #0284c7 60%, #0369a1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.95), 0 0 30px rgba(56, 189, 248, 0.55);
}

html.dark .lamp-glow-ring {
  border-color: rgba(56, 189, 248, 0.65);
}

@media (max-width: 768px) {
  .lamp-switch-wrapper {
    right: 65px;
  }
}

/* =====================================================
   DARK MODE (default) - activated by <html class="dark">
   ===================================================== */
html.dark {
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f2937;
  --bg-card-hover: #374151;
  --bg-input: #111827;
  --border-color: #374151;
  --border-hover: #4b5563;
  --border-focus: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --text-inverse: #0b0f19;
  --primary: #ffffff;
  --primary-hover: #e4e4e7;
  --primary-dark: #d4d4d8;
  --primary-light: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.8);
}

/* =====================================================
   DARK MODE COMPREHENSIVE HIGH-CONTRAST OVERRIDES
   ===================================================== */

/* 1. Global text & headings in dark mode */
html.dark select,
html.dark input,
html.dark textarea,
html.dark .gradient-text,
html.dark .announcement-link,
html.dark .hero-title,
html.dark .stat-number,
html.dark .nav-links a.active,
html.dark .about-icon-glow,
html.dark .about-text-card h3,
html.dark .feature-box-icon,
html.dark .feature-box-content h4,
html.dark .tab-btn:hover,
html.dark .course-badge,
html.dark .course-icon,
html.dark .course-title,
html.dark .fee-badge strong,
html.dark .fee-icon,
html.dark .fee-card h3,
html.dark .fee-pricing .currency,
html.dark .fee-pricing .amount,
html.dark .calc-badge,
html.dark .input-group label,
html.dark .input-group select,
html.dark .result-price,
html.dark .why-icon-box,
html.dark .why-card h3,
html.dark .quote-icon,
html.dark .author-avatar,
html.dark .author-info h4,
html.dark .faq-question,
html.dark .faq-question span,
html.dark .faq-question i,
html.dark .info-icon,
html.dark .info-val,
html.dark .info-item.copyable:hover .btn-copy,
html.dark .whatsapp-card h4,
html.dark .form-title-box h3,
html.dark .modal-badge,
html.dark .modal-header h3,
html.dark .class-btn,
html.dark .back-btn,
html.dark .detail-head h3,
html.dark .detail-fee,
html.dark .detail-block h4,
html.dark .detail-block ul li,
html.dark .float-top,
html.dark .footer h4,
html.dark .footer-socials a,
html.dark .footer-links a i,
html.dark .footer-links a:hover,
html.dark .footer-contact li i,
html.dark .admin-trigger-link:hover,
html.dark .admin-header h1,
html.dark .stat-icon,
html.dark .admin-badge,
html.dark .admin-empty p,
html.dark .day-label,
html.dark .day-date,
html.dark .admin-item-name,
html.dark .admin-item-phone,
html.dark .admin-item-course,
html.dark .admin-item-date,
html.dark .admin-stat-val,
html.dark .logo-text,
html.dark .logo-bold {
  color: #ffffff !important;
}

/* 2. Muted secondary text in dark mode */
html.dark .hero-subtitle,
html.dark .hero-description,
html.dark .section-head p,
html.dark .nav-links a,
html.dark .about-text-card p,
html.dark .feature-box-content p,
html.dark .course-desc,
html.dark .fee-subtitle,
html.dark .fee-features li,
html.dark .why-card p,
html.dark .testimonial-text,
html.dark .faq-answer p,
html.dark .result-label,
html.dark .result-note,
html.dark .form-title-box p,
html.dark .whatsapp-card p,
html.dark .footer-links a,
html.dark .footer-contact li,
html.dark .admin-empty span,
html.dark .stat-label {
  color: #a1a1aa !important;
}

/* 3. Form Inputs & Textareas — High Visibility */
html.dark input,
html.dark select,
html.dark textarea,
html.dark .input-wrapper input,
html.dark .input-wrapper select,
html.dark .input-wrapper textarea,
html.dark .admin-search-input,
html.dark .admin-filter-select {
  background-color: #18181b !important;
  color: #ffffff !important;
  border-color: #3f3f46 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder,
html.dark .admin-search-input::placeholder {
  color: #71717a !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus,
html.dark .input-wrapper input:focus,
html.dark .input-wrapper select:focus,
html.dark .input-wrapper textarea:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
}

/* 4. Cards & Container Surfaces */
html.dark .glass,
html.dark .calc-card,
html.dark .calc-result-box,
html.dark .whatsapp-card,
html.dark .modal-box,
html.dark .admin-main,
html.dark .admin-sidebar,
html.dark .admin-item {
  background-color: #18181b !important;
  border-color: #27272a !important;
}

html.dark .highlight-item {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
  color: #ffffff !important;
}

/* 5. Buttons & Highlights in Dark Mode */
html.dark ::selection {
  background: #ffffff;
  color: #0a0a0a;
}

html.dark .logo-icon {
  background: #ffffff !important;
  color: #0b0f19 !important;
}

html.dark .logo-icon i {
  color: #0b0f19 !important;
}

html.dark .nav-links a::after,
html.dark .nav-btn-highlight,
html.dark .hamburger span,
html.dark .popular-ribbon,
html.dark .modal-close:hover,
html.dark .class-btn:hover,
html.dark .toast,
html.dark .float-top:hover,
html.dark .footer-socials a:hover,
html.dark .footer-col h4::after {
  background: #ffffff;
}

html.dark .btn-gradient,
html.dark .btn-primary {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

html.dark .btn-gradient:hover,
html.dark .btn-primary:hover {
  background: #e4e4e7 !important;
  color: #0a0a0a !important;
}

html.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #3f3f46;
}

html.dark .btn-secondary:hover {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}

html.dark .nav-btn-highlight {
  color: #0a0a0a !important;
}

html.dark .nav-btn-highlight:hover {
  background: #e4e4e7;
}

html.dark .tab-btn.active {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}

html.dark .scroll-progress {
  background: #22c55e;
}

/* 6. Admin Panel Tabs in Dark Mode */
html.dark .day-tab {
  background-color: #141416;
  border-color: #27272a;
}

html.dark .day-tab.active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

html.dark .day-tab.active .day-label,
html.dark .day-tab.active .day-date,
html.dark .day-tab.active .day-count {
  color: #09090b !important;
}

html.dark .admin-item.unread {
  background: rgba(34, 197, 94, 0.12) !important;
}

/* 7. General Overrides */
html.dark select option {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
}

html.dark ::-webkit-scrollbar-track {
  background: #0a0a0a;
}

html.dark .grid-overlay {
  background-image: radial-gradient(#262626 1px, transparent 1px);
}

html.dark .navbar {
  background: rgba(10, 10, 10, 0.95);
}

html.dark .navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* =====================================================
   ROBOT MASCOT — High-Tech Left Floating Character
   ===================================================== */

/* Master wrapper — fixed at bottom-left */
.robo-mascot {
  position: fixed;
  left: 28px;
  bottom: 28px;
  right: auto;
  top: auto;
  z-index: 9998;
  pointer-events: none;        /* passes clicks through by default */
  transform: none;
  display: flex;
  flex-direction: column-reverse; /* speech on top */
  align-items: center;
  gap: 6px;
  user-select: none;
}

/* Robot figure itself IS clickable */
.robo-figure {
  pointer-events: all;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: roboFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
}

.robo-figure:hover {
  transform: scale(1.06) translateY(-3px);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

@keyframes roboFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-7px) rotate(1.5deg); }
  66%       { transform: translateY(-4px) rotate(-1deg); }
}

/* Ground shadow ring under robot */
.robo-figure::after {
  content: '';
  width: 44px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  filter: blur(4px);
  margin-top: 4px;
  animation: shadowScale 3s ease-in-out infinite;
}

@keyframes shadowScale {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  33%       { transform: scale(0.7); opacity: 0.3; }
  66%       { transform: scale(0.85); opacity: 0.45; }
}

/* ---- Speech Bubble ---- */
.robo-speech {
  pointer-events: none;
  position: relative;
  background: linear-gradient(135deg, #111111, #2a2a2a);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 8px 15px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 12px rgba(59,130,246,0.2);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 4px;
}

/* Show bubble on hover of figure */
.robo-figure:hover ~ .robo-speech,
.robo-mascot.show-bubble .robo-speech {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.robo-speech-tail {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #2a2a2a;
}

/* ---- Antenna ---- */
.robo-antenna {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -3px;
  z-index: 2;
}

.robo-ant-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #86efac, #22c55e);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.3), 0 0 16px rgba(34,197,94,0.95);
  animation: antOrbPulse 1.2s ease-in-out infinite;
}

@keyframes antOrbPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.3), 0 0 12px rgba(34,197,94,0.7); transform: scale(1); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0.15), 0 0 24px rgba(34,197,94,1); transform: scale(1.2); }
}

.robo-ant-pole {
  width: 4px;
  height: 15px;
  background: linear-gradient(to bottom, #52525b, #27272a);
  border-radius: 2px;
}

/* ---- Head (Bigger & Active) ---- */
.robo-head {
  width: 72px;
  height: 56px;
  background: linear-gradient(145deg, #27272a, #141416);
  border-radius: 16px 16px 12px 12px;
  border: 2px solid #52525b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.1s ease-out;
}

/* Ear bolts */
.robo-ear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 18px;
  background: linear-gradient(to right, #3f3f46, #18181b);
  border: 2px solid #52525b;
  border-radius: 5px;
}
.robo-ear-l { left: -11px; border-right: none; border-radius: 5px 0 0 5px; }
.robo-ear-r { right: -11px; border-left: none; border-radius: 0 5px 5px 0; }

/* Visor (eye screen) */
.robo-visor {
  display: flex;
  gap: 10px;
  background: #09090b;
  border-radius: 10px;
  padding: 6px 10px;
  border: 1.5px solid #3f3f46;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.8), 0 0 10px rgba(59,130,246,0.2);
}

/* Eyes */
.robo-eye {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #040405;
  border: 1.5px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.robo-pupil {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bfdbfe, #3b82f6 60%, #1d4ed8);
  box-shadow: 0 0 10px rgba(96,165,250,1), 0 0 4px rgba(255,255,255,0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.06s linear;
  will-change: transform;
  animation: eyeBlink 4.5s ease-in-out infinite;
}

@keyframes eyeBlink {
  0%, 92%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  96%            { transform: translate(-50%, -50%) scaleY(0.08); }
}

/* Grill / talking mouth */
.robo-grill {
  display: flex;
  gap: 3px;
  align-items: center;
}

.robo-grill span {
  width: 9px;
  height: 3.5px;
  background: #3f3f46;
  border-radius: 2px;
  animation: grillTalk 1.4s ease-in-out infinite;
}

.robo-grill span:nth-child(2) { animation-delay: 0.15s; }
.robo-grill span:nth-child(3) { animation-delay: 0.3s; }
.robo-grill span:nth-child(4) { animation-delay: 0.45s; }

@keyframes grillTalk {
  0%, 100% { background: #3f3f46; height: 3.5px; }
  50%       { background: #22c55e; height: 5px; box-shadow: 0 0 6px rgba(34,197,94,0.8); }
}

/* ---- Neck ---- */
.robo-neck {
  width: 22px;
  height: 7px;
  background: linear-gradient(to bottom, #3f3f46, #18181b);
  border: 1px solid #52525b;
  border-radius: 3px;
  margin: -2px 0;
  z-index: 1;
}

/* ---- Torso + Arms ---- */
.robo-torso-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.robo-torso {
  width: 66px;
  height: 52px;
  background: linear-gradient(145deg, #27272a, #141416);
  border-radius: 12px;
  border: 2px solid #52525b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), 0 6px 14px rgba(0,0,0,0.3);
  position: relative;
}

/* Chest Arc Reactor */
.robo-core-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #3b82f6;
  box-shadow: 0 0 12px rgba(59,130,246,0.7), inset 0 0 8px rgba(59,130,246,0.4);
  animation: coreGlow 1.8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 9px;
}

@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(59,130,246,0.6), inset 0 0 6px rgba(59,130,246,0.3); transform: scale(1); }
  50%       { box-shadow: 0 0 20px rgba(59,130,246,1), 0 0 8px rgba(255,255,255,0.6); transform: scale(1.1); }
}

.robo-core-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #60a5fa 50%, #1d4ed8);
  position: absolute;
  top: 15px;
}

/* Vent lines */
.robo-vent-row {
  display: flex;
  gap: 4px;
  position: absolute;
  bottom: 7px;
}

.robo-vent-row span {
  width: 12px;
  height: 3px;
  background: #3f3f46;
  border-radius: 1.5px;
}

/* Arms */
.robo-arm {
  width: 13px;
  height: 38px;
  background: linear-gradient(to bottom, #3f3f46, #1c1c1e);
  border: 2px solid #52525b;
  border-radius: 6px;
  margin-top: 6px;
  position: relative;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

.robo-arm-l {
  border-radius: 6px 3px 3px 6px;
  animation: armSwingL 2.4s ease-in-out infinite;
}

.robo-arm-r {
  border-radius: 3px 6px 6px 3px;
  animation: armSwingR 2.4s ease-in-out infinite;
}

/* Wave arm on hover! */
.robo-figure:hover .robo-arm-r {
  animation: armWave 0.6s ease-in-out infinite alternate;
}

@keyframes armWave {
  0%   { transform: rotate(-20deg); }
  100% { transform: rotate(-100deg); }
}

@keyframes armSwingL {
  0%, 100% { transform: rotate(8deg); }
  50%       { transform: rotate(-10deg); }
}

@keyframes armSwingR {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(10deg); }
}

/* Hands */
.robo-hand {
  position: absolute;
  bottom: -6px;
  width: 15px;
  height: 10px;
  background: #52525b;
  border-radius: 4px;
}

.robo-hand-l { left: -1px; }
.robo-hand-r { right: -1px; }

/* ---- Legs ---- */
.robo-legs {
  display: flex;
  gap: 8px;
  margin-top: 1px;
}

.robo-leg {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robo-shin {
  width: 17px;
  height: 22px;
  background: linear-gradient(to bottom, #3f3f46, #1c1c1e);
  border: 2px solid #52525b;
  border-radius: 4px 4px 0 0;
}

.robo-boot {
  width: 22px;
  height: 11px;
  background: linear-gradient(to right, #18181b, #3f3f46);
  border: 2px solid #52525b;
  border-radius: 3px 3px 6px 6px;
  margin-top: -2px;
}

/* Walk animation for legs */
.robo-leg:first-child .robo-shin {
  animation: legL 2.4s ease-in-out infinite;
  transform-origin: top center;
}
.robo-leg:last-child .robo-shin {
  animation: legR 2.4s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes legL {
  0%, 100% { transform: rotate(5deg); }
  50%       { transform: rotate(-5deg); }
}
@keyframes legR {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}

/* ---- Click ripple effect ---- */
.robo-figure:active {
  animation: roboClick 0.2s ease;
}

@keyframes roboClick {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ---- Robot Chat Panel (fixed bottom-left beside robot) ---- */
.robo-chat-panel {
  position: fixed;
  left: 125px;
  bottom: 28px;
  right: auto;
  z-index: 9999;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.robo-chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Responsive */
@media (max-width: 480px) {
  .robo-chat-panel {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

/* Dark mode robot mascot — Clean Natural Shadow (No Over-Glow) */
html.dark .robo-figure {
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.7));
}

html.dark .robo-head,
html.dark .robo-torso,
html.dark .robo-arm,
html.dark .robo-shin {
  background: linear-gradient(145deg, #27272a, #18181b);
  border-color: #3f3f46;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.04), 0 4px 12px rgba(0,0,0,0.3);
}

html.dark .robo-ant-pole,
html.dark .robo-neck,
html.dark .robo-boot,
html.dark .robo-hand {
  background: #3f3f46;
}

html.dark .robo-ear {
  background: linear-gradient(to right, #27272a, #18181b);
  border-color: #3f3f46;
}

html.dark .robo-chat-panel {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

html.dark .chatbot-quick-replies {
  background: #111111;
  border-color: #2a2a2a;
}

html.dark .quick-chip {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #a1a1aa;
}

html.dark #chatbotInput {
  background: #111111;
  border-color: #2a2a2a;
  color: #ffffff;
}

html.dark .chatbot-input-row {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

html.dark .chat-msg.bot .chat-bubble {
  background: #222222;
  border-color: #2a2a2a;
  color: #ffffff;
}


/* ---- Toggle Button (Left floating pill) ---- */
.chatbot-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(17,17,17,0.25), 0 2px 8px rgba(0,0,0,0.15);
  transition: all var(--transition-smooth);
  animation: botEntrance 0.6s ease-out 1.5s both;
  position: relative;
  overflow: hidden;
}

@keyframes botEntrance {
  from { transform: translateX(-120px); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}

.chatbot-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.chatbot-toggle:hover::before { opacity: 1; }

.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(17,17,17,0.3);
}

.chatbot-toggle.open {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.chatbot-toggle-inner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chatbot-icon-open,
.chatbot-icon-close {
  position: absolute;
  transition: opacity 0.2s, transform 0.3s;
}

.chatbot-icon-open {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.chatbot-icon-close {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

.chatbot-widget.open .chatbot-icon-open {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

.chatbot-widget.open .chatbot-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.chatbot-toggle-label {
  line-height: 1;
  transition: opacity 0.2s;
}

.chatbot-widget.open .chatbot-toggle-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
}

/* Notification ping on toggle button */
.chatbot-toggle .notif-ring {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid white;
  animation: pingRing 2s ease-in-out infinite;
}

@keyframes pingRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* ---- Chat Window ---- */
.chatbot-window {
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  transform: translateX(-20px) scale(0.95);
  pointer-events: none;
  max-height: 0;
  transition: opacity 0.3s var(--transition-smooth),
              transform 0.3s var(--transition-smooth),
              max-height 0.4s ease;
}

.chatbot-widget.open .chatbot-window {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
  max-height: 540px;
}

/* ============================================================
   CHAT PANEL UI — Premium Redesign
   ============================================================ */

/* ---- Chat Header — gradient + wave ---- */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 40px;
  background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circles in header */
.chatbot-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.chatbot-header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Wave bottom on header */
.chatbot-header .header-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 22px;
  background: var(--bg-card);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  border: 1.5px solid rgba(255,255,255,0.15);
  z-index: 1;
}

.chatbot-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #111111;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.08); }
}

.chatbot-header-info { flex: 1; z-index: 1; }

.chatbot-header-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.chatbot-header-info p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-header-info p::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}

.chatbot-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
  z-index: 1;
}

.chatbot-close-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

/* ---- Messages Area ---- */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  min-height: 200px;
  scroll-behavior: smooth;
  background: var(--bg-card);
}

.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Message row */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msgSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.bot  { flex-direction: row; }
.chat-msg.user { flex-direction: row-reverse; }

/* Avatar */
.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.chat-msg.user .chat-msg-avatar {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Bubble wrapper (holds bubble + timestamp) */
.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
}

.chat-msg.bot  .chat-bubble-wrap { align-items: flex-start; }
.chat-msg.user .chat-bubble-wrap { align-items: flex-end; }

/* Bubble */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-main);
  word-break: break-word;
}

.chat-msg.bot .chat-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 5px;
  color: var(--text-main);
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #111111, #2d2d2d);
  color: #ffffff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Timestamp */
.chat-time {
  font-size: 0.65rem;
  color: var(--text-light);
  padding: 0 4px;
}

/* Typing indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  width: fit-content;
}

.typing-bubble span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingDot 1.3s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.18s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: scale(1) translateY(0); opacity: 0.4; }
  30%            { transform: scale(1.3) translateY(-3px); opacity: 1; }
}

/* ---- Quick Reply Chips ---- */
.chatbot-quick-replies {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.quick-chip {
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.quick-chip:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ---- Input Row ---- */
.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

#chatbotInput {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.83rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#chatbotInput:focus {
  border-color: #111111;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.07);
}

#chatbotInput::placeholder {
  color: var(--text-light);
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111111, #2d2d2d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.chatbot-send-btn:hover {
  background: linear-gradient(135deg, #2d2d2d, #111111);
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

/* ---- Dark mode chatbot ---- */
html.dark .chatbot-window {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

html.dark .chat-msg.bot .chat-bubble {
  background: #222222;
  border-color: #2a2a2a;
  color: #ffffff;
}

html.dark .chatbot-quick-replies {
  background: #111111;
  border-color: #2a2a2a;
}

html.dark .quick-chip {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #a1a1aa;
}

html.dark #chatbotInput {
  background: #111111;
  border-color: #2a2a2a;
  color: #ffffff;
}

html.dark .chatbot-input-row {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

html.dark .chatbot-toggle {
  background: #ffffff;
  color: #0a0a0a;
}
