/* ==========================================================================
   Puneeth Sir Coaching Academy - Premium Ultra-Fast EdTech Design System
   Pure Vanilla CSS | Vibrant Multi-Color RGB Accents | Zero External Bloat
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Clean Background Palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-surface: #1e293b;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Vibrant Multi-Color RGB Palette */
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #ecfdf5;
  --emerald-rgb: 16, 185, 129;

  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light: #eef2ff;
  --indigo-rgb: 99, 102, 241;

  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-light: #ecfeff;
  --cyan-rgb: 6, 182, 212;

  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fffbeb;
  --amber-rgb: 245, 158, 11;

  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --rose-light: #fff1f2;
  --rose-rgb: 244, 63, 94;

  --violet: #8b5cf6;
  --violet-dark: #7c3aed;
  --violet-light: #f5f3ff;
  --violet-rgb: 139, 92, 246;

  --blue: #2563eb;
  --blue-light: #eff6ff;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow-green: 0 10px 25px -5px rgba(16, 185, 129, 0.35);
  --shadow-glow-indigo: 0 10px 25px -5px rgba(99, 102, 241, 0.35);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.badge-green {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid rgba(var(--emerald-rgb), 0.2);
}

.badge-indigo {
  background: var(--indigo-light);
  color: var(--indigo-dark);
  border: 1px solid rgba(var(--indigo-rgb), 0.2);
}

.badge-amber {
  background: var(--amber-light);
  color: var(--amber-dark);
  border: 1px solid rgba(var(--amber-rgb), 0.2);
}

.badge-rose {
  background: var(--rose-light);
  color: var(--rose-dark);
  border: 1px solid rgba(var(--rose-rgb), 0.2);
}

.badge-cyan {
  background: var(--cyan-light);
  color: var(--cyan-dark);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
}

.badge-violet {
  background: var(--violet-light);
  color: var(--violet-dark);
  border: 1px solid rgba(var(--violet-rgb), 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Gradient Text */
.gradient-text-green {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-multi {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar - Redesigned & Elevated */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-img-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.brand-logo:hover .brand-img-logo {
  transform: scale(1.06) rotate(3deg);
  border-color: #059669;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  gap: 4px;
}

.brand-word-puneeth {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
  line-height: 1;
}

.brand-word-puneeth-light {
  color: #ffffff !important;
}

.brand-word-forum {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-word-forum::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-left: 3px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Fallback for regular span */
.brand-logo > span:not(.brand-text) {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #065f46 45%, #059669 75%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  letter-spacing: -0.025em;
}

.admin-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  letter-spacing: 0.05em;
  vertical-align: middle;
  text-transform: uppercase;
}

.mobile-menu-auth-strip {
  display: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-drawer-header {
  display: none;
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: #334155;
  position: relative;
  padding: 9px 18px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.3);
}

.nav-link.active::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

.nav-actions .btn.btn-ghost {
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}

.nav-actions .btn.btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.nav-actions .btn.btn-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.nav-actions .btn.btn-green:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.nav-actions .btn.btn-outline {
  color: #475569;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}

.nav-actions .btn.btn-outline:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.mobile-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-green {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-green);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.45);
}

.btn-indigo {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-indigo);
}

.btn-indigo:hover {
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--emerald-dark);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 80px 0;
  background: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Card Illustration */
.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-visual-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 30px;
  position: relative;
}

.hero-floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Category Filter Bar */
.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 15px;
  margin-bottom: 35px;
  scrollbar-width: thin;
}

.category-pill {
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

/* Course Grid & Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--emerald-rgb), 0.4);
}

.course-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  overflow: hidden;
}

.course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb {
  transform: scale(1.05);
}

.course-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.course-offer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
}

.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-exam-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--indigo-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.course-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.course-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.course-price-strike {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Feature Grid (Why Choose Us) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.icon-green {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}

.icon-indigo {
  background: var(--indigo-light);
  color: var(--indigo-dark);
}

.icon-amber {
  background: var(--amber-light);
  color: var(--amber-dark);
}

.icon-rose {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.icon-cyan {
  background: var(--cyan-light);
  color: var(--cyan-dark);
}

.icon-violet {
  background: var(--violet-light);
  color: var(--violet-dark);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  user-select: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--emerald-dark);
}

.faq-body {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 70px 0 30px 0;
  border-top: 1px solid #1e293b;
}

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

.footer-brand-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 15px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Password Visibility Toggle Eye Icon */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .form-input {
  width: 100%;
  padding-right: 46px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 3;
}

.password-toggle-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

.password-toggle-btn svg {
  display: block;
}

.password-toggle-btn .eye-icon-hide {
  display: none;
}

.password-input-wrap.is-visible .password-toggle-btn .eye-icon-show {
  display: none;
}

.password-input-wrap.is-visible .password-toggle-btn .eye-icon-hide {
  display: block;
  color: #059669;
}

/* ==========================================================================
   MODERN INTERACTIVE FORM VALIDATION & DESIGN SYSTEM
   ========================================================================== */
.form-input.is-valid,
.form-select.is-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18) !important;
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: #f43f5e !important;
  background-color: #fff1f2 !important;
  box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.18) !important;
  animation: inputValidationShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes inputValidationShake {
  10%, 90% { transform: translate3d(-1.5px, 0, 0); }
  20%, 80% { transform: translate3d(2.5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3.5px, 0, 0); }
  40%, 60% { transform: translate3d(3.5px, 0, 0); }
}

.field-feedback-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 7px;
  padding: 5px 11px;
  border-radius: 7px;
  line-height: 1.35;
  transition: all 0.22s ease-in-out;
  animation: feedbackSlideIn 0.22s ease-out;
}

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

.field-feedback-badge.is-error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.08);
}

.field-feedback-badge.is-valid {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.field-feedback-badge .badge-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Password Live Strength Meter */
.password-strength-wrap {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
}

.password-strength-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

/* ==========================================================================
   IMMERSIVE VIDEO FULLSCREEN ENGINE (MOBILE & WEB)
   ========================================================================== */
.classroom-video-fullscreen,
.player-container.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 9999999 !important;
  background: #000000 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.classroom-video-fullscreen iframe,
.classroom-video-fullscreen video,
.player-container.is-fullscreen iframe,
.player-container.is-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.btn-exit-fs {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10000000 !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.btn-exit-fs:hover {
  background: rgba(225, 29, 72, 0.95) !important;
  border-color: #fda4af !important;
  transform: scale(1.04) !important;
}

/* Floating On-Screen Minimize Button for In-Page Video Players */
.video-floating-exit-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 2147483647 !important;
  background: rgba(15, 23, 42, 0.90) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75) !important;
  display: none;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.video-floating-exit-btn:hover,
.video-floating-exit-btn:active {
  background: rgba(225, 29, 72, 0.95) !important;
  border-color: #fda4af !important;
  transform: scale(1.05) !important;
}

.classroom-video-fullscreen .video-floating-exit-btn,
.player-container.is-fullscreen .video-floating-exit-btn {
  display: inline-flex !important;
}

/* Authentication Cards */
.auth-wrapper {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    var(--bg-main);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

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

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

/* OTP Input Boxes */
.otp-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-box {
  width: 50px;
  height: 56px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition);
}

.otp-box:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Dashboard & Admin Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 74px);
}

.dashboard-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 10px 12px;
  margin-top: 10px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.sidebar-link:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--emerald-light) 0%, rgba(var(--emerald-rgb), 0.1) 100%);
  color: var(--emerald-dark);
  font-weight: 700;
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.08);
  transition: all 0.2s ease;
}

.sidebar-link:hover .sidebar-icon {
  transform: scale(1.08);
  background: rgba(148, 163, 184, 0.16);
}

.sidebar-link.active .sidebar-icon {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.sidebar-icon .svg-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.mobile-nav-icon .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.quick-tile-icon .svg-icon,
.metric-icon-badge .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* Solid background buttons override icon stroke to crisp white */
.btn-primary .svg-icon,
.btn-green .svg-icon,
.btn-indigo .svg-icon,
.btn-danger .svg-icon,
.btn-dark .svg-icon,
.btn-accent .svg-icon {
  stroke: #ffffff !important;
}

.dashboard-content {
  padding: 36px 40px;
  overflow-y: auto;
}

/* Metrics Cards (Admin & Dashboard) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Continue Learning Banner */
.continue-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* Learning Classroom Layout (learn.php) */
.classroom-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 74px);
  overflow: hidden;
}

.curriculum-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.classroom-main {
  overflow-y: auto;
  padding: 24px 30px;
  background: var(--bg-main);
}

/* Custom In-Page Video Player (Sleek, Compact, Perfectly Proportioned) */
.player-container {
  width: 100%;
  max-width: 840px;
  max-height: 470px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 20px auto;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.player-scrubber-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.player-scrubber-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 4px;
  width: 0%;
}

.player-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.player-left-group,
.player-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-btn {
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.player-btn:hover {
  color: var(--emerald);
  transform: scale(1.1);
}

/* Classroom Dedicated Header & Controls */
.classroom-navbar {
  height: 62px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.classroom-nav-wrapper {
  max-width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 12px;
}

.classroom-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.classroom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.classroom-course-info {
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.classroom-course-tag {
  font-size: 0.68rem;
  color: var(--indigo-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.classroom-course-title {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  line-height: 1.3;
}

.classroom-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.classroom-syllabus-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border: 1.5px solid var(--emerald);
  border-radius: var(--radius-md);
  color: var(--emerald-dark);
  background: var(--emerald-light);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  height: 36px;
  line-height: 1;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.classroom-syllabus-btn:hover {
  background: var(--emerald);
  color: #ffffff;
}

.classroom-sidebar-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.classroom-sidebar-close:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.classroom-pdf-frame {
  width: 100%;
  min-height: 540px;
  height: 65vh;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f1f5f9;
}

@media (max-width: 992px) {
  .classroom-syllabus-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 576px) {
  .classroom-navbar {
    height: 56px !important;
  }
  .classroom-nav-wrapper {
    height: 56px !important;
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .classroom-nav-left {
    gap: 6px;
  }
  .classroom-back-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .classroom-back-text {
    display: none;
  }
  .classroom-course-info {
    padding-left: 8px;
  }
  .classroom-course-title {
    font-size: 0.85rem;
  }
  .classroom-syllabus-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    height: 34px;
  }
  .classroom-pdf-frame {
    height: 480px;
    min-height: 400px;
  }
}

/* Support Chat UI */
.chat-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.93rem;
  line-height: 1.5;
}

.chat-bubble.student {
  align-self: flex-end;
  background: var(--emerald);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.admin {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-input-bar {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 420px;
}

.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast-error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.toast-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.toast-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Data Tables */
.data-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:hover td {
  background: var(--bg-subtle);
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show,
.modal-backdrop.active {
  display: flex !important;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px 26px;
}

/* ==========================================================================
   Checkout Order Summary Modal & Bill Details Breakdown
   ========================================================================== */
.checkout-modal-content {
  max-width: 520px !important;
  width: 95% !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: var(--radius-xl);
  overflow: hidden !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.checkout-modal-content .modal-header {
  flex-shrink: 0 !important;
  padding: 16px 20px !important;
}

.checkout-modal-content .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 18px 20px 32px 20px !important;
  flex: 1 1 auto !important;
  max-height: calc(90dvh - 65px) !important;
}


.checkout-course-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.checkout-course-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #ffffff;
  border: 1.5px solid var(--emerald);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.checkout-course-info {
  flex: 1;
  min-width: 0;
}

.checkout-course-title {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.checkout-bill-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.checkout-bill-title {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.checkout-row-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.checkout-row-val {
  font-weight: 600;
  color: var(--text-main);
}

.checkout-row-tax {
  color: #334155;
}

.checkout-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 4px 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 2px solid var(--border-color);
}

.checkout-total-amount {
  font-size: 1.35rem;
  font-weight: 850;
  color: #047857;
  font-family: var(--font-heading);
}

.checkout-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 14px;
  text-align: center;
}


/* ==========================================================================
   Core Layout Grids & Semantic Responsive Containers (Base Desktop)
   ========================================================================== */
.single-course-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.counselor-card-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.dash-support-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-support-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.dash-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.modal-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-form-grid-title-dur {
  grid-template-columns: 2fr 1fr;
}

.card-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.course-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.course-filter-bar .filter-search-input {
  flex: 1;
}

.course-filter-bar .filter-cat-select {
  width: auto;
  min-width: 200px;
}

.course-hero-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

.table-responsive table {
  min-width: 600px;
}

/* Responsive Media Queries & Mobile-First Enhancements */
.mobile-bottom-nav {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .single-course-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .counselor-card-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dash-support-grid,
  .admin-support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dash-profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mobile-toggle,
  button.mobile-toggle {
    display: inline-flex !important;
  }

  /* Header Navbar Mobile Elevate & Stacking Context Fix */
  .navbar {
    z-index: 10002 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.nav-menu-open .navbar {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }

  body.nav-menu-open .navbar .brand-logo,
  body.nav-menu-open .navbar .nav-actions {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
  }

  /* Off-canvas Sliding Nav Drawer for Public Pages (index.php & course.php) */
  .nav-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    width: 100% !important;
  }

  .drawer-close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.35) !important;
    z-index: 10010 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 22px 20px 100px 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    transform: translateX(105%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
  }

  .nav-menu.show-mobile {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .nav-menu .nav-link {
    padding: 13px 16px !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    border: 1px solid transparent !important;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
  }

  .mobile-menu-auth-strip {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--border-color) !important;
    width: 100% !important;
  }

  /* Off-canvas Sliding Sidebar for Dashboard & Admin */
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 295px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10010 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    background: var(--bg-surface);
    padding: 20px 16px 110px 16px !important;
    box-sizing: border-box !important;
  }

  .dashboard-sidebar .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 40px;
  }

  .dashboard-sidebar.show-mobile {
    transform: translateX(0);
  }

  /* Classroom Layout Mobile Sliding Drawer */
  .classroom-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 64px);
    overflow: visible;
  }

  .curriculum-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10010 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    background: var(--bg-surface);
    padding-bottom: 90px !important;
    box-sizing: border-box !important;
  }

  .curriculum-sidebar.show-mobile {
    transform: translateX(0);
  }

  .classroom-main {
    padding: 16px 16px 80px 16px;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {

  /* Header Navbar */
  .navbar {
    height: 60px !important;
  }

  .nav-wrapper {
    height: 60px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .brand-logo {
    gap: 7px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  .brand-img-logo {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    gap: 3px !important;
  }

  .brand-word-puneeth,
  .brand-word-forum,
  .brand-logo > span:not(.brand-text) {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .brand-word-forum::after {
    width: 4px !important;
    height: 4px !important;
    margin-left: 2px !important;
  }

  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

    /* Compact, sleek Join Free button on mobile */
    .nav-actions .nav-cta-btn,
    .nav-cta-btn {
      font-size: 0.78rem !important;
      font-weight: 750 !important;
      padding: 0 12px !important;
      height: 32px !important;
      min-height: 32px !important;
      max-height: 32px !important;
      line-height: 32px !important;
      box-sizing: border-box !important;
      border-radius: var(--radius-pill) !important;
      white-space: nowrap !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 4px !important;
    }

    .nav-actions .desktop-only-btn,
    a.desktop-only-btn {
      display: none !important;
    }

    .mobile-toggle {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 34px !important;
      height: 34px !important;
      min-height: 34px !important;
      max-height: 34px !important;
      line-height: 34px !important;
      font-size: 1.2rem !important;
      border-radius: 8px !important;
      border: 1.5px solid #e2e8f0 !important;
      background: #ffffff !important;
      cursor: pointer !important;
      color: #0f172a !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      transition: all 0.2s ease;
    }

    .mobile-toggle:hover {
      background: #f1f5f9;
      border-color: #cbd5e1;
    }

    @keyframes slideDownMobile {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Hero Section */
    .hero-section {
      padding: 40px 0 50px 0;
    }

    .hero-headline {
      font-size: 2.15rem;
      line-height: 1.2;
      margin-bottom: 14px;
    }

    .hero-lead {
      font-size: 1rem;
      margin-bottom: 24px;
    }

    .hero-cta-group {
      flex-direction: column;
      width: 100%;
      gap: 12px;
      margin-bottom: 30px;
    }

    .hero-cta-group .btn {
      width: 100%;
      min-height: 48px;
      justify-content: center;
    }

    .hero-stats-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding-top: 20px;
      text-align: center;
    }

    .stat-number {
      font-size: 1.45rem;
    }

    .stat-label {
      font-size: 0.75rem;
    }

    /* Floating Authority Badge Container Fix (Zero Horizontal Scroll/Overflow) */
    .hero-floating-badge {
      position: relative !important;
      bottom: auto !important;
      right: auto !important;
      margin-top: 14px;
      width: 100%;
      justify-content: center;
      box-sizing: border-box;
    }

    /* Hero Ticker Mobile Ergonomics */
    .hero-ticker-wrap::before,
    .hero-ticker-wrap::after {
      width: 32px !important;
    }

    .hero-ticker-label {
      margin-left: 10px !important;
      margin-right: 8px !important;
      padding: 6px 12px !important;
      font-size: 0.72rem !important;
    }

    /* Category Filter Pills (Swipeable on touch) */
    .category-pills {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      white-space: nowrap;
      padding: 4px 2px 14px 2px;
      margin-bottom: 24px;
    }

    .category-pills::-webkit-scrollbar {
      display: none;
    }

    .category-pill {
      padding: 7px 14px;
      font-size: 0.84rem;
      flex-shrink: 0;
    }

    /* Course Grid */
    .course-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .course-card {
      border-radius: var(--radius-lg);
    }

    .course-thumb-wrap {
      aspect-ratio: 16 / 9;
    }

    .course-body {
      padding: 18px;
    }

    .course-title {
      font-size: 1.08rem;
    }

    .app-download-grid {
      grid-template-columns: 1fr !important;
      gap: 30px !important;
    }

    /* Dashboard Content & Metrics */
    .dashboard-content {
      padding: 20px 16px 90px 16px;
    }

    .metrics-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }

    .metric-card {
      padding: 14px 16px;
      border-radius: var(--radius-md);
    }

    .metric-val {
      font-size: 1.4rem;
    }

    .metric-label {
      font-size: 0.78rem;
    }

    .metric-icon-badge {
      width: 38px;
      height: 38px;
      font-size: 1.15rem;
      border-radius: 10px;
    }

    .continue-banner {
      padding: 20px;
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      border-radius: var(--radius-lg);
    }

    .continue-banner .btn {
      width: 100%;
      justify-content: center;
      min-height: 44px;
    }

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 64px;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-top: 1px solid var(--border-color);
      align-items: center;
      justify-content: space-around;
      z-index: 9999;
      box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
      padding: 0 4px;
    }

    .mobile-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text-muted);
      text-decoration: none;
      flex: 1;
      height: 100%;
      transition: var(--transition);
    }

    .mobile-nav-item.active {
      color: var(--emerald-dark);
      font-weight: 700;
    }

    .mobile-nav-icon {
      font-size: 1.25rem;
      line-height: 1;
      transition: transform 0.2s ease;
    }

    .mobile-nav-item.active .mobile-nav-icon {
      transform: translateY(-2px);
      filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
    }

    /* Chat Window */
    .chat-window {
      height: 440px;
    }

    .chat-bubble {
      max-width: 88%;
    }

    /* Modals */
    .modal-content {
      max-width: 95%;
      border-radius: var(--radius-lg);
      max-height: 85vh;
    }

    .modal-header {
      padding: 16px 20px;
    }

    .modal-body {
      padding: 18px 20px;
    }

    .checkout-modal-content {
      width: 95% !important;
      max-height: 88vh !important;
      max-height: 88dvh !important;
      margin: auto !important;
    }

    .checkout-modal-content .modal-body {
      padding: 14px 14px 35px 14px !important;
      max-height: calc(88dvh - 65px) !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
    }


    /* Footer */
    .footer {
      padding: 45px 0 30px 0;
    }

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .footer-bottom {
      flex-direction: column;
      text-align: center;
      gap: 12px;
    }

    /* Counselor Callback Card Mobile Polish */
    .counselor-card-wrap {
      grid-template-columns: 1fr !important;
      padding: 22px 18px !important;
      border-radius: var(--radius-lg) !important;
      gap: 24px !important;
    }

    /* Single Course Details Page */
    .single-course-grid {
      grid-template-columns: 1fr !important;
      gap: 24px !important;
    }

    .course-hero-wrap {
      padding: 30px 0 !important;
    }

    .course-hero-wrap h1 {
      font-size: 1.85rem !important;
    }

    /* Course Search & Filter Bar */
    .course-filter-bar {
      flex-direction: column !important;
      padding: 14px !important;
      gap: 10px !important;
    }

    .course-filter-bar .filter-search-input,
    .course-filter-bar .filter-cat-select,
    .course-filter-bar .filter-search-btn {
      width: 100% !important;
    }

    /* Dashboard & Admin Support / Profile Grids */
    .dash-support-grid,
    .admin-support-grid {
      grid-template-columns: 1fr !important;
      gap: 18px !important;
    }

    .dash-profile-grid {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
    }

    /* Admin Modal Form 2-Column Grids */
    .modal-form-grid-2,
    .modal-form-grid-title-dur {
      grid-template-columns: 1fr !important;
      gap: 12px !important;
    }

    /* Student Welcome Banner Mobile Polish */
    .student-welcome-banner {
      padding: 20px 16px !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 16px !important;
    }

    .welcome-info {
      width: 100% !important;
      min-width: unset !important;
    }

    .welcome-avatar {
      width: 52px !important;
      height: 52px !important;
      font-size: 1.4rem !important;
    }

    .welcome-title {
      font-size: 1.35rem !important;
    }

    .welcome-banner-actions {
      width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
    }

    .welcome-banner-actions .btn {
      width: 100% !important;
      justify-content: center !important;
    }

    .overview-quick-tiles {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }

    .quick-tile {
      padding: 12px 14px !important;
      gap: 10px !important;
    }

    .quick-tile-icon {
      width: 38px !important;
      height: 38px !important;
      font-size: 1.15rem !important;
    }

    .continue-card-pro {
      padding: 20px 16px !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 16px !important;
    }

    .continue-pro-actions {
      width: 100% !important;
    }

    .continue-pro-actions .btn {
      width: 100% !important;
      justify-content: center !important;
    }

    /* Touch Targets & Form Ergonomics (No iOS Safari auto-zoom) */
    .form-input,
    .form-select,
    .form-textarea {
      font-size: 16px !important;
      min-height: 44px;
    }

    .btn:not(.nav-cta-btn):not(.btn-sm) {
      min-height: 44px;
      touch-action: manipulation;
    }

    /* Mobile bottom nav safe-area padding */
    .mobile-bottom-nav {
      padding-bottom: max(6px, env(safe-area-inset-bottom));
      height: calc(64px + env(safe-area-inset-bottom, 0px));
    }
  }

  @media (max-width: 480px) {
    .nav-wrapper {
      padding: 0 8px !important;
      gap: 5px !important;
    }

    .brand-logo {
      gap: 5px !important;
    }

    .brand-img-logo {
      width: 28px !important;
      height: 28px !important;
    }

    .brand-text {
      gap: 2px !important;
    }

    .brand-word-puneeth,
    .brand-word-forum,
    .brand-logo > span:not(.brand-text) {
      font-size: 1.02rem !important;
    }

    .admin-brand-tag {
      font-size: 0.55rem !important;
      padding: 1px 4px !important;
    }

    .nav-actions {
      gap: 5px !important;
    }

    .nav-actions .nav-cta-btn,
    .nav-cta-btn {
      font-size: 0.75rem !important;
      padding: 0 10px !important;
      height: 30px !important;
      min-height: 30px !important;
      max-height: 30px !important;
      line-height: 30px !important;
    }

    .nav-actions .desktop-only-btn,
    a.desktop-only-btn {
      display: none !important;
    }

    .mobile-toggle {
      width: 30px !important;
      height: 30px !important;
      min-height: 30px !important;
      max-height: 30px !important;
      font-size: 1.05rem !important;
    }

    .hero-headline {
      font-size: 1.75rem;
    }

    .section-title {
      font-size: 1.55rem;
    }

    .hero-stats-row {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }

    .stat-number {
      font-size: 1.18rem;
    }

    .stat-label {
      font-size: 0.68rem;
    }

    .auth-card {
      padding: 22px 16px !important;
      border-radius: var(--radius-lg) !important;
    }

    .auth-wrapper {
      padding: 16px 10px !important;
    }

    .otp-input-group {
      gap: 6px !important;
    }

    .otp-box {
      width: 38px !important;
      height: 46px !important;
      font-size: 1.2rem !important;
    }

    .overview-quick-tiles {
      grid-template-columns: 1fr !important;
    }

    .callback-cards-grid {
      grid-template-columns: 1fr !important;
    }

    .course-hero-wrap h1 {
      font-size: 1.6rem !important;
    }
  }

  /* ==========================================================================
   Admin Easy-Use Course Management & Studio Additions
   ========================================================================== */
  .admin-guide-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
  }

  .guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
  }

  .guide-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--emerald);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
  }

  .guide-arrow {
    color: var(--emerald);
    font-size: 1.4rem;
    font-weight: bold;
    opacity: 0.7;
  }

  @media (max-width: 768px) {
    .guide-arrow {
      display: none;
    }
  }

  .studio-stat-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
  }

  .lesson-row-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    gap: 16px;
    flex-wrap: wrap;
  }

  .classroom-pdf-frame {
    height: 720px;
  }

  @media (max-width: 1024px) {
    .mobile-only-close {
      display: flex !important;
    }
  }

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

  @media (max-width: 768px) {
    .desktop-only-user {
      display: none !important;
    }

    .classroom-pdf-frame {
      height: 440px !important;
    }

    .classroom-nav-controls {
      flex-direction: column !important;
      align-items: stretch !important;
    }

    .classroom-nav-btn {
      width: 100% !important;
      justify-content: center !important;
      min-height: 44px !important;
    }
  }

  /* ==========================================================================
   Student Overview Page Redesign Styles
   ========================================================================== */
  .student-welcome-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 55%, #eff6ff 100%);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
  }

  .student-welcome-banner::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  .welcome-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 260px;
  }

  .welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
    border: 3px solid #ffffff;
  }

  .welcome-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
  }

  .welcome-badge-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
  }

  .overview-quick-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
  }

  .quick-tile {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
  }

  .quick-tile:hover {
    border-color: var(--emerald);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .quick-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
  }

  .continue-card-pro {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #1e293b 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-xl);
    padding: 26px 30px;
    color: #fff;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.45), 0 0 20px -2px rgba(16, 185, 129, 0.2);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    position: relative;
    overflow: hidden;
  }

  .continue-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--emerald) 0%, var(--cyan) 100%);
  }

  .continue-pro-thumb {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
  }

  .pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseLight 1.5s infinite;
  }

  @keyframes pulseLight {
    0% {
      transform: scale(0.9);
      opacity: 0.8;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
      transform: scale(1.1);
      opacity: 1;
      box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
      transform: scale(0.9);
      opacity: 0.8;
    }
  }

  .notice-strip {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 25px;
  }

  /* System Diagnostics & Server Info Styles */
  .system-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 24px;
  }

  @media (max-width: 992px) {
    .system-grid-2 {
      grid-template-columns: 1fr;
    }
  }

  .system-diag-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .system-diag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border-color);
  }

  .system-diag-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .system-spec-table {
    width: 100%;
    border-collapse: collapse;
  }

  .system-spec-table tr {
    border-bottom: 1px solid var(--border-subtle);
  }

  .system-spec-table tr:last-child {
    border-bottom: none;
  }

  .system-spec-table td {
    padding: 10px 6px;
    font-size: 0.88rem;
    vertical-align: middle;
  }

  .system-spec-label {
    color: var(--text-muted);
    font-weight: 600;
    width: 40%;
  }

  .system-spec-value {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    word-break: break-all;
  }

  .system-telemetry-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .meter-track {
    width: 100%;
    height: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: 8px;
  }

  .meter-bar {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.4s ease;
  }

  /* ==========================================================================
   Elevated Homepage (index.php) Visual Styles
   ========================================================================== */

  /* Hero Exam Ticker Ribbon with Multi-Color & Smooth Continuous Marquee */
  .hero-ticker-wrap {
    background: #080f1e;
    border-top: 1.5px solid #1e293b;
    border-bottom: 1.5px solid #1e293b;
    padding: 14px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .hero-ticker-wrap::before,
  .hero-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
  }

  .hero-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #080f1e 10%, transparent);
  }

  .hero-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #080f1e 10%, transparent);
  }

  .hero-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin-left: 20px;
    margin-right: 14px;
    flex-shrink: 0;
    z-index: 3;
  }

  .hero-ticker-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: tickerContinuousScroll 32s linear infinite;
    will-change: transform;
  }

  .hero-ticker-wrap:hover .hero-ticker-track {
    animation-play-state: paused;
  }

  @keyframes tickerContinuousScroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  .hero-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .hero-ticker-item:hover {
    transform: translateY(-3px) scale(1.05);
  }

  /* Individual Distinct Vibrant Multi-Colors */
  .ticker-indigo {
    background: rgba(99, 102, 241, 0.16);
    border: 1.5px solid #818cf8;
    color: #e0e7ff;
  }

  .ticker-indigo:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #c7d2fe;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
  }

  .ticker-emerald {
    background: rgba(16, 185, 129, 0.16);
    border: 1.5px solid #34d399;
    color: #d1fae5;
  }

  .ticker-emerald:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #a7f3d0;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
  }

  .ticker-amber {
    background: rgba(245, 158, 11, 0.16);
    border: 1.5px solid #fbbf24;
    color: #fef3c7;
  }

  .ticker-amber:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #fef08a;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
  }

  .ticker-rose {
    background: rgba(244, 63, 94, 0.16);
    border: 1.5px solid #fb7185;
    color: #ffe4e6;
  }

  .ticker-rose:hover {
    background: #f43f5e;
    color: #ffffff;
    border-color: #fecdd3;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.5);
  }

  .ticker-cyan {
    background: rgba(6, 182, 212, 0.16);
    border: 1.5px solid #22d3ee;
    color: #cffafe;
  }

  .ticker-cyan:hover {
    background: #06b6d4;
    color: #ffffff;
    border-color: #bae6fd;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
  }

  .ticker-violet {
    background: rgba(139, 92, 246, 0.16);
    border: 1.5px solid #a78bfa;
    color: #ede9fe;
  }

  .ticker-violet:hover {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #e9d5ff;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
  }

  .ticker-orange {
    background: rgba(249, 115, 22, 0.16);
    border: 1.5px solid #fb923c;
    color: #ffedd5;
  }

  .ticker-orange:hover {
    background: #f97316;
    color: #ffffff;
    border-color: #fed7aa;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
  }


  /* Goal / Category Grid */
  .goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
  }

  .goal-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
  }

  .goal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(var(--emerald-rgb), 0.4);
  }

  .goal-card:hover::before {
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
  }

  .goal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .goal-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
  }

  .goal-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .goal-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--emerald-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
  }

  /* Course Feature Chips Strip */
  .course-chips-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 14px 0;
  }

  .course-chip {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* Faculty Spotlight Section */
  .faculty-spotlight-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: 45px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid #334155;
  }

  .faculty-spotlight-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
  }

  @media (max-width: 850px) {
    .faculty-spotlight-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  }

  .faculty-avatar-wrap {
    position: relative;
    text-align: center;
  }

  .faculty-avatar-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
  }

  .faculty-pills-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  @media (max-width: 850px) {
    .faculty-pills-row {
      justify-content: center;
    }
  }

  .faculty-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
  }

  /* =========================================================
   CALLBACK LEADS & REQUESTS CARDS (ADMIN)
   ========================================================= */
  .callback-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }

  .callback-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
  }

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

  .callback-card.status-pending {
    border-left: 4px solid var(--amber);
  }

  .callback-card.status-contacted {
    border-left: 4px solid var(--emerald);
  }

  .callback-card.status-resolved {
    border-left: 4px solid var(--cyan);
  }

  .callback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .callback-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .callback-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .callback-card.status-pending .callback-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }

  .callback-card.status-contacted .callback-avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

  .callback-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--text-main);
    margin: 0 0 2px 0;
    line-height: 1.2;
  }

  .callback-exam-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .callback-status-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  .callback-status-badge.badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
  }

  .callback-status-badge.badge-contacted {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
  }

  .callback-status-badge.badge-resolved {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
  }

  .callback-phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    gap: 10px;
    flex-wrap: wrap;
  }

  .callback-phone-num {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .callback-quick-links {
    display: flex;
    gap: 6px;
  }

  .btn-cb-action {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
  }

  .btn-cb-call {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }

  .btn-cb-call:hover {
    background: #1d4ed8;
    color: #ffffff;
  }

  .btn-cb-wa {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
  }

  .btn-cb-wa:hover {
    background: #10b981;
    color: #ffffff;
  }

  .callback-msg-bubble {
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 8px 12px;
    font-size: 0.84rem;
    color: #475569;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    line-height: 1.4;
  }

  .callback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    font-size: 0.8rem;
  }

  .callback-time {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .callback-actions-btns {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-cb-status {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .status-mark-contacted {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
  }

  .status-mark-contacted:hover {
    background: #059669;
    color: #ffffff;
  }

  .status-mark-resolved {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
  }

  .status-mark-resolved:hover {
    background: #15803d;
    color: #ffffff;
  }

  .btn-cb-del {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .btn-cb-del:hover {
    background: #ef4444;
    color: #ffffff;
  }

/* =========================================================
   PDF NOTES SELLING MODULE STYLES (MATCHES THEME PERFECTLY)
   ========================================================= */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.note-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.note-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.note-card:hover .note-thumb {
  transform: scale(1.05);
}

.note-subject-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 2;
}

.note-format-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
  z-index: 2;
}

.note-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.note-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 10px;
}

.note-target-box {
  background: #f8fafc;
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 9px 12px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.note-target-box strong {
  color: var(--text-main);
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.note-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.note-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.note-price-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-price-col {
  display: flex;
  flex-direction: column;
}

.note-regular-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.note-offer-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-dark);
  line-height: 1.2;
}

.note-btn-buy {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.note-btn-unlocked {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.note-actions-unlocked {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.note-actions-unlocked .btn {
  flex: 1;
  text-align: center;
  font-size: 0.84rem;
  padding: 9px 10px;
}

/* =========================================================
   NOTES MODULE MOBILE RESPONSIVE ENHANCEMENTS
   ========================================================= */
@media (max-width: 768px) {
  .notes-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .note-card {
    border-radius: var(--radius-lg) !important;
    max-width: 100% !important;
  }

  .note-content {
    padding: 16px 14px !important;
  }

  .note-title {
    font-size: 1.05rem !important;
  }

  .note-target-box {
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
  }

  .note-meta-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 0.78rem !important;
    margin-bottom: 14px !important;
  }

  .note-price-footer {
    padding-top: 12px !important;
  }

  .note-offer-price {
    font-size: 1.25rem !important;
  }

  .note-actions-unlocked {
    flex-direction: row !important;
    gap: 8px !important;
  }

  .admin-notes-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .note-actions-unlocked {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .note-actions-unlocked .btn {
    width: 100% !important;
    padding: 10px !important;
  }

  .note-price-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .note-btn-buy,
  .note-btn-unlocked {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .admin-notes-metrics {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-note-card .note-content > div:last-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
}

/* =========================================================
   PURCHASE INVOICES RESPONSIVE VIEW & RECEIPT MODAL
   ========================================================= */
.desktop-purchases-table {
  display: block;
}

.mobile-purchases-cards {
  display: none;
}

.purchase-card-mobile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.purchase-card-mobile:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-md);
}

.purchase-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.purchase-mobile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.purchase-mobile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.purchase-mobile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.purchase-mobile-actions .btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 768px) {
  .desktop-purchases-table {
    display: none !important;
  }

  .mobile-purchases-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
}

/* Printable Official Invoice Modal */
.invoice-paper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 95%;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.invoice-paper::-webkit-scrollbar {
  width: 6px;
}
.invoice-paper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.invoice-paper-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.invoice-paper-body {
  padding: 28px;
}

@media (max-width: 480px) {
  .invoice-paper-header {
    padding: 18px 16px;
    flex-direction: column;
    gap: 14px;
  }

  .invoice-paper-body {
    padding: 18px 16px;
  }
}

/* ==========================================================================
   NEW MODERN HOMEPAGE SECTIONS:
   1. Interactive Study Hub & Daily Practice Widget (MCQ & Affairs)
   2. CBT Test Series Live Cockpit
   3. Platform Comparison Matrix (Puneeth Forum vs Offline Coaching)
   4. 4-Step Structured Learning Roadmap
   5. Topper Hall of Fame & Verification Wall
   6. Mobile Floating Quick Action Dock
   ========================================================================== */

/* 1. Daily Study Hub & Interactive Practice Box */
.daily-hub-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 10px;
}

.daily-hub-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hub-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
}

.hub-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.hub-tab-btn.active {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.daily-hub-body {
  padding: 28px;
}

/* MCQ Interactive Quiz Card */
.mcq-container {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.mcq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--indigo-light);
  color: var(--indigo-dark);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.mcq-question-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
}

.mcq-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mcq-option-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mcq-option-btn:hover:not(:disabled) {
  border-color: var(--emerald);
  background: var(--emerald-light);
  transform: translateY(-2px);
}

.mcq-option-btn.correct {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  font-weight: 800;
}

.mcq-option-btn.incorrect {
  border-color: #f43f5e !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

.mcq-explanation-box {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Exam Countdown Ticker Ribbon */
.exam-countdown-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.exam-countdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.exam-countdown-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald);
}

/* 2. CBT Mock Test Series Live Cockpit Section */
.cbt-cockpit-wrap {
  background: linear-gradient(135deg, #0b1120 0%, #172554 50%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cbt-cockpit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cbt-mock-preview-ui {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* 3. Platform Comparison Matrix */
.comparison-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th {
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.comparison-table th.highlight-col {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-dark);
  border-top: 4px solid var(--emerald);
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

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

.comparison-table td.highlight-col {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 700;
  color: var(--text-main);
}

/* 4. 4-Step Learning Roadmap Timeline */
.journey-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 30px;
}

.journey-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.journey-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald);
}

.journey-step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* 5. Topper Hall of Fame Cards */
.topper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.topper-badge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.topper-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.topper-rank-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* 6. Floating Mobile Bottom Bar */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.mobile-bottom-dock-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-dock-btn.active,
.mobile-dock-btn:hover {
  color: var(--emerald-dark);
}

.mobile-dock-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Responsiveness for all new sections */
@media (max-width: 900px) {
  .cbt-cockpit-grid {
    grid-template-columns: 1fr;
  }
  .journey-timeline-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .mcq-options-grid {
    grid-template-columns: 1fr;
  }
  .journey-timeline-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-dock {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   IN-APP UNIVERSAL PDF VIEWER POPUP MODAL (PDF.js Engine)
   ========================================================================== */
.ps-pdf-modal-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
  margin: 0;
}

.ps-pdf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ps-pdf-modal-container {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .ps-pdf-modal-overlay {
    padding: 20px;
  }
  .ps-pdf-modal-container {
    width: 94vw;
    height: 94vh;
    max-width: 1100px;
    max-height: 94vh;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.ps-pdf-modal-header {
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 10;
}

.ps-pdf-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  max-width: 320px;
}

.ps-pdf-modal-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-pdf-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ps-pdf-page-controls,
.ps-pdf-zoom-controls,
.ps-pdf-action-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-pdf-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  line-height: 1;
}

.ps-pdf-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.ps-pdf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ps-pdf-download-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  text-decoration: none;
}

.ps-pdf-download-btn:hover {
  background: var(--primary-dark);
}

.ps-pdf-close-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 1.1rem;
  padding: 4px 10px;
}

.ps-pdf-close-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.ps-pdf-page-indicator {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
  padding: 0 4px;
}

.ps-pdf-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #090d16;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.ps-pdf-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ps-pdf-canvas-container canvas {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  background: #ffffff;
  margin-bottom: 16px;
  max-width: 100%;
}

.ps-pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.95rem;
}

.ps-pdf-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: psSpin 0.8s linear infinite;
}

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

/* ==========================================================================
   APP NOTICE MODAL DIALOG
   ========================================================================== */
.app-notice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-notice-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-notice-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-notice-modal-overlay.active .app-notice-modal-card {
  transform: scale(1);
}

.app-notice-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: bounceNotice 1.5s infinite;
}

@keyframes bounceNotice {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.app-notice-modal-title {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.app-notice-modal-message {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #1e293b;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-weight: 600;
  text-align: left;
  word-break: break-word;
}

.app-notice-modal-actions {
  display: flex;
  justify-content: center;
}