/* ═══════════════════════════════════════════════════════════════
   TREEDA EXPO — School Exhibition Platform
   Premium Design System (RTL)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

main {
  padding-top: 0;
}

:root {
  --brand-primary: #0F71F0;
  --brand-primary-dark: #0E68DD;
  --brand-primary-hover: #0d5fc9;
  --brand-primary-light: #B2D4FC;
  --brand-primary-10: rgba(15, 113, 240, 0.10);
  --brand-primary-20: rgba(15, 113, 240, 0.20);
  --brand-primary-5: rgba(15, 113, 240, 0.05);
  --brand-secondary: #3F8DF3;
  --brand-accent: #F59E0B;
  --brand-accent-light: #FBBF24;

  --surface: #FFFFFF;
  --surface-secondary: #F8FAFC;
  --surface-tertiary: #F1F5F9;
  --bg-body: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 60px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 40px;
  --radius-full: 9999px;

  --font-display: 'Inter', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Inter', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"], .dark-mode {
  --brand-primary: #3F8DF3;
  --brand-primary-dark: #3F8DF3;
  --brand-primary-hover: #5A9EF5;
  --brand-primary-light: #99C6FB;
  --brand-primary-10: rgba(63, 141, 243, 0.10);
  --brand-primary-20: rgba(63, 141, 243, 0.20);
  --brand-primary-5: rgba(63, 141, 243, 0.05);
  --brand-secondary: #5A9EF5;
  --brand-accent: #FBBF24;

  --surface: #272727;
  --surface-secondary: #323232;
  --surface-tertiary: #2A2A2A;
  --bg-body: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #C7C7C7;
  --text-tertiary: #8F8F8F;
  --text-muted: #8F8F8F;
  --border: #3A3A3A;
  --border-light: #323232;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.5);
  --shadow-2xl: 0 25px 60px rgba(0,0,0,0.6);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-primary); color: #fff; }

a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-primary-hover); }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  transition: var(--transition);
}
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-primary-20);
}
.btn-outline-primary {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.btn-outline-primary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

/* ─── Navbar ─── */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-bs-theme="dark"] .navbar-modern,
.dark-mode .navbar-modern {
  background: rgba(39, 39, 39, 0.80);
  border-bottom-color: var(--border);
}
.navbar-modern .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.navbar-modern .navbar-brand img { height: 40px; width: auto; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.navbar-modern .navbar-brand .brand-sub {
  font-size: 9px;
  color: var(--text-tertiary);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.navbar-modern .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
  color: var(--brand-primary);
  background: var(--brand-primary-5);
}
.navbar-modern .btn-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-modern .btn-login:hover { color: var(--brand-primary); background: var(--brand-primary-5); }
.navbar-modern .btn-register {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-primary);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--brand-primary-20);
  transition: var(--transition);
}
.navbar-modern .btn-register:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-primary-20);
}
.navbar-modern .theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
}
.navbar-modern .theme-toggle:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
  padding-bottom: 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(15, 113, 240, 0.05), transparent 60%);
}
[data-bs-theme="dark"] .hero-section,
.dark-mode .hero-section {
  background: radial-gradient(ellipse at top right, rgba(63, 141, 243, 0.08), transparent 60%);
}
.hero-section.has-bg-image {
  background: none;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}
.hero-bg-blur {
  position: absolute;
  top: 0;
  right: 25%;
  width: 400px;
  height: 400px;
  background: var(--brand-primary-10);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}
.hero-bg-blur-2 {
  position: absolute;
  bottom: 10%;
  left: 25%;
  width: 300px;
  height: 300px;
  background: rgba(63, 141, 243, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--brand-primary-10);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
[data-bs-theme="dark"] .hero-badge,
.dark-mode .hero-badge { color: var(--brand-secondary); }

.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.hero-section.has-bg-image h1 {
  color: #ffffff;
}
.hero-section h1 .gradient-text {
  background: linear-gradient(to left, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-section p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-section.has-bg-image p {
  color: rgba(255,255,255,0.9);
}
.hero-section.has-bg-image .hero-badge {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.hero-section.has-bg-image .btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.hero-section.has-bg-image .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.demo-widget {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  z-index: 2;
}
.demo-widget-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.demo-widget-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo-widget-url {
  flex: 1;
  display: flex;
  justify-content: center;
}
.demo-widget-url span {
  font-size: 9px;
  color: var(--text-tertiary);
  font-family: monospace;
  background: var(--surface-tertiary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}
.demo-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.demo-widget-main {
  grid-column: 1 / -1;
  position: relative;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-widget-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.demo-widget-main:hover img { transform: scale(1.05); }
.demo-widget-main .gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}
.demo-widget-main .content {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  color: #fff;
  z-index: 1;
}
.demo-widget-main .content .tag {
  font-size: 9px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.demo-widget-main .content h4 { font-size: 0.875rem; font-weight: 700; margin: 0; }
.demo-widget-main .content p { font-size: 10px; color: rgba(255,255,255,0.8); margin: 0; max-width: 100%; }

.demo-widget-item {
  border: 1px dashed var(--border);
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}
.demo-widget-item:hover {
  background: var(--brand-primary-5);
  border-color: var(--brand-primary);
}
.demo-widget-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.demo-widget-item .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}
.demo-widget-item.vr .icon { background: var(--brand-primary-10); color: var(--brand-primary); }
.demo-widget-item.gallery .icon { background: rgba(15, 113, 240, 0.10); color: #3F8DF3; }

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.floating-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.floating-card.support .icon { background: rgba(16, 185, 129, 0.10); color: #10B981; }
.floating-card.rating .icon { background: rgba(245, 158, 11, 0.10); color: var(--brand-accent); }
.floating-card .info { display: flex; flex-direction: column; }
.floating-card .info .title { font-size: 11px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.floating-card .info .sub { font-size: 9px; color: var(--text-tertiary); }

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

/* ─── Stats Bar ─── */
.stats-bar {
  position: relative;
  margin-top: 0;
  z-index: 5;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.stats-bar-inner {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
[data-bs-theme="dark"] .stats-bar-inner,
.dark-mode .stats-bar-inner {
  background: rgba(39, 39, 39, 0.70);
}
.stat-item {
  text-align: center;
  padding: 1rem;
}
.stat-item .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top right, var(--brand-primary-10), rgba(63, 141, 243, 0.05));
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] .stat-item .stat-icon,
.dark-mode .stat-item .stat-icon { color: var(--brand-secondary); }
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* ─── Recommended Schools (Horizontal Scroll) ─── */
.recommended-scroll-wrapper {
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary-20) transparent;
}
.recommended-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.recommended-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.recommended-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--brand-primary-20);
  border-radius: 3px;
}
.recommended-scroll-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.5rem 0;
}
.recommended-card {
  flex: 0 0 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.recommended-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}
.recommended-card .rc-cover {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.recommended-card .rc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.recommended-card:hover .rc-cover img {
  transform: scale(1.08);
}
.recommended-card .rc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.recommended-card .rc-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  z-index: 1;
}
.recommended-card .rc-body {
  padding: 1rem;
  position: relative;
}
.recommended-card .rc-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--surface);
  margin-top: -2rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.recommended-card .rc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recommended-card .rc-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.recommended-card .rc-body .rc-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.recommended-card .rc-body p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── Section Headers ─── */
.section-header-custom {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.section-header-custom .section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-10);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
[data-bs-theme="dark"] .section-header-custom .section-tag,
.dark-mode .section-header-custom .section-tag { color: var(--brand-secondary); }
.section-header-custom h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.section-header-custom p {
  font-size: 1rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

/* ─── Features / Why Us ─── */
.feature-card {
  position: relative;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.feature-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card .accent-line {
  position: absolute;
  top: 0;
  right: 2rem;
  width: 48px;
  height: 2px;
  background: linear-gradient(to left, var(--brand-primary), var(--brand-secondary));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover .accent-line { opacity: 1; }
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-primary-10);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  transition: var(--transition);
}
[data-bs-theme="dark"] .feature-card .icon,
.dark-mode .feature-card .icon { color: var(--brand-secondary); }
.feature-card:hover .icon { transform: scale(1.1); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.feature-card:hover h3 { color: var(--brand-primary); }
[data-bs-theme="dark"] .feature-card:hover h3,
.dark-mode .feature-card:hover h3 { color: var(--brand-secondary); }
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 300;
  line-height: 1.7;
}
.feature-card .card-cta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
  opacity: 0.5;
  transition: var(--transition);
}
[data-bs-theme="dark"] .feature-card .card-cta,
.dark-mode .feature-card .card-cta { color: var(--brand-secondary); }
.feature-card:hover .card-cta { opacity: 1; }

/* ─── Categories ─── */
.category-card-modern {
  position: relative;
  height: 320px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.category-card-modern:hover {
  box-shadow: var(--shadow-xl);
}
.category-card-modern .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.category-card-modern:hover .bg-image { transform: scale(1.08); }
.category-card-modern .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}
.category-card-modern .top-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.20);
}
.category-card-modern .bottom-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #fff;
}
.category-card-modern .bottom-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  transition: var(--transition);
}
.category-card-modern:hover .bottom-content h3 { color: var(--brand-secondary); }
.category-card-modern .bottom-content p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 0.25rem 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card-modern .bottom-content .hover-cta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.category-card-modern:hover .bottom-content .hover-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── School Cards ─── */
.school-card-modern {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.school-card-modern:hover {
  box-shadow: var(--shadow-xl);
}
.school-card-modern .cover {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.school-card-modern .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.school-card-modern:hover .cover img { transform: scale(1.05); }
.school-card-modern .cover .type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.school-card-modern .cover .trust-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.5rem;
}
.school-card-modern .body {
  position: relative;
  padding-top: 2.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  flex: 1;
}
.school-card-modern .body .logo {
  position: absolute;
  top: -1.5rem;
  right: 0.5rem;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.school-card-modern .body .logo img { width: 100%; height: 100%; object-fit: cover; }
.school-card-modern .body .rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.school-card-modern .body .rating .stars { color: var(--brand-accent); }
.school-card-modern .body .rating strong { color: var(--text-primary); }
.school-card-modern .body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0 0.25rem;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.school-card-modern:hover .body h3 { color: var(--brand-primary); }
[data-bs-theme="dark"] .school-card-modern:hover .body h3,
.dark-mode .school-card-modern:hover .body h3 { color: var(--brand-secondary); }
.school-card-modern .body .location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.school-card-modern .body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0;
}
.school-card-modern .body .tags span {
  font-size: 11px;
  padding: 0.25rem 0.625rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.school-card-modern .body .description {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-card-modern .footer {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.school-card-modern .footer .btn-view {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-primary-5);
  border: 1px solid var(--brand-primary-10);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
[data-bs-theme="dark"] .school-card-modern .footer .btn-view,
.dark-mode .school-card-modern .footer .btn-view { color: var(--brand-secondary); }
.school-card-modern .footer .btn-view:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}

/* ─── Gallery / Masonry ─── */
.gallery-masonry {
  columns: 1;
  gap: 1.25rem;
}
@media (min-width: 640px) { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }
.gallery-masonry .gallery-item-modern {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: zoom-in;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.gallery-masonry .gallery-item-modern:hover { box-shadow: var(--shadow-xl); }
.gallery-masonry .gallery-item-modern img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}
.gallery-masonry .gallery-item-modern:hover img { transform: scale(1.05); }
.gallery-masonry .gallery-item-modern .gallery-overlay {
  position: absolute;
  inset: 0.75rem;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.gallery-masonry .gallery-item-modern:hover .gallery-overlay { opacity: 1; }
.gallery-masonry .gallery-item-modern .gallery-overlay .tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-secondary);
  background: var(--brand-primary-10);
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.gallery-masonry .gallery-item-modern .gallery-overlay h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.gallery-masonry .gallery-item-modern .gallery-overlay .school-name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.gallery-masonry .gallery-item-modern .gallery-overlay .zoom-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: var(--transition);
  transition-delay: 0.1s;
}
.gallery-masonry .gallery-item-modern:hover .gallery-overlay .zoom-icon {
  transform: scale(1);
}

/* ─── Plans / Pricing ─── */
.plan-card-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.plan-card-modern:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}
.plan-card-modern.featured {
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  border-color: var(--brand-primary);
  box-shadow: 0 0 30px var(--brand-primary-20);
  color: #fff;
  z-index: 2;
}
[data-bs-theme="dark"] .plan-card-modern.featured,
.dark-mode .plan-card-modern.featured {
  background: linear-gradient(to bottom, #1a1a2e, #16213e);
}
.plan-card-modern.featured .badge-popular {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 1rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.plan-card-modern h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.plan-card-modern p.sub {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 300;
  line-height: 1.6;
}
.plan-card-modern.featured p.sub { color: rgba(255,255,255,0.6); }
.plan-card-modern .price {
  margin: 1rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.plan-card-modern .price .currency { font-size: 0.75rem; font-weight: 600; color: var(--text-tertiary); }
.plan-card-modern .price .amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-card-modern .price .period { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; }
.plan-card-modern.featured .price .currency,
.plan-card-modern.featured .price .period { color: rgba(255,255,255,0.5); }

.plan-card-modern .features {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.plan-card-modern.featured .features { border-top-color: rgba(255,255,255,0.10); }
.plan-card-modern .features .features-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.75rem;
}
.plan-card-modern.featured .features .features-label { color: var(--brand-secondary); }
.plan-card-modern .features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  list-style: none;
}
.plan-card-modern.featured .features li { color: rgba(255,255,255,0.8); }
.plan-card-modern .features li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.plan-card-modern .features li .check.default { background: var(--brand-primary-10); color: var(--brand-primary); }
.plan-card-modern.featured .features li .check { background: rgba(255,255,255,0.15); color: var(--brand-secondary); }

.plan-card-modern .btn-plan {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: none;
}
.plan-card-modern:not(.featured) .btn-plan {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.plan-card-modern:not(.featured) .btn-plan:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}
.plan-card-modern.featured .btn-plan {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-primary-20);
}
.plan-card-modern.featured .btn-plan:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}
.plan-card-modern .plan-footnote {
  font-size: 10px;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-tertiary);
}

/* ─── How It Works ─── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
}
.step-card .step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.step-card .step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.step-card .step-number.n1 { background: linear-gradient(to top right, #3B82F6, #6366F1); }
.step-card .step-number.n2 { background: linear-gradient(to top right, #06B6D4, #3B82F6); }
.step-card .step-number.n3 { background: linear-gradient(to top right, #A855F7, #EC4899); }
.step-card .step-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}
.step-card .step-visual {
  position: relative;
  height: 140px;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.step-card:hover .step-visual { background: var(--brand-primary-5); }
.step-card .step-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  width: 112px;
  height: 112px;
  transition: var(--transition);
}
.step-card:hover .step-visual .ring { transform: scale(1.15); }
.step-card .step-visual .ring-2 {
  width: 80px;
  height: 80px;
}
.step-card:hover .step-visual .ring-2 { transform: scale(1.1); }
.step-card .step-visual .center-icon {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: var(--brand-primary);
  transition: var(--transition);
}
[data-bs-theme="dark"] .step-card .step-visual .center-icon,
.dark-mode .step-card .step-visual .center-icon { color: var(--brand-secondary); }
.step-card:hover .step-visual .center-icon { transform: scale(1.15); }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 0.5rem;
}
.step-card .step-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: var(--transition);
}
[data-bs-theme="dark"] .step-card .step-cta,
.dark-mode .step-card .step-cta { color: var(--brand-secondary); }

/* ─── Testimonials ─── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--brand-primary-10);
  font-style: italic;
  font-family: serif;
  pointer-events: none;
}
.testimonial-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--brand-primary-10);
}
.testimonial-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .stars { color: var(--brand-accent); display: flex; gap: 0.25rem; }
.testimonial-card .text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}
.testimonial-card .author-info { 
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.testimonial-card .author-info .name { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.testimonial-card .author-info .role { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; }

/* ─── FAQ ─── */
.faq-item-modern {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.faq-item-modern.active {
  border-color: var(--brand-primary);
  background: var(--surface-secondary);
}
.faq-item-modern .faq-question {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
  transition: var(--transition);
}
.faq-item-modern .faq-question .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--text-tertiary);
}
.faq-item-modern.active .faq-question .icon {
  background: var(--brand-primary);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item-modern .faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 300;
  line-height: 1.7;
  display: none;
}
.faq-item-modern.active .faq-answer { display: block !important; }

/* ─── CTA Section ─── */
.cta-section-modern {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: linear-gradient(to bottom right, #0f172a, #1e293b, #000);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-xl);
}
[data-bs-theme="dark"] .cta-section-modern,
.dark-mode .cta-section-modern {
  background: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f0f23);
}
.cta-section-modern .cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--brand-primary-20);
  color: var(--brand-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-primary-10);
  margin-bottom: 1.5rem;
}
.cta-section-modern h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}
.cta-section-modern p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 500px;
  margin: 1rem auto 2rem;
}
.cta-section-modern .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cta-section-modern .btn-light-custom {
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: #fff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-section-modern .btn-light-custom:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.10);
}
.cta-section-modern .btn-cta-primary {
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-section-modern .btn-cta-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--brand-primary-20);
}
.cta-section-modern .cta-footnote {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 1.5rem;
  font-family: monospace;
}

/* ─── Footer ─── */
.footer-modern {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
[data-bs-theme="dark"] .footer-modern,
.dark-mode .footer-modern { background: #0a0a0f; }
.footer-modern h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.footer-modern a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-modern a:hover { color: var(--brand-secondary); }
.footer-modern .social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-modern .social-link:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.footer-modern .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-modern .footer-links li { margin-bottom: 0.5rem; }
.footer-modern .footer-links a { font-size: 0.875rem; font-weight: 300; }
.footer-modern .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.footer-modern .contact-item .icon { color: var(--brand-secondary); flex-shrink: 0; margin-top: 0.25rem; }
.footer-modern .footer-form input,
.footer-modern .footer-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  transition: var(--transition);
}
.footer-modern .footer-form input:focus,
.footer-modern .footer-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}
.footer-modern .footer-form input::placeholder,
.footer-modern .footer-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.footer-modern .footer-form .btn-submit {
  width: 100%;
  padding: 0.625rem;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.footer-modern .footer-form .btn-submit:hover { background: var(--brand-primary-hover); }
.footer-modern .footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ─── Filter Pills ─── */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-pills .pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.filter-pills .pill:hover { background: var(--surface-secondary); }
.filter-pills .pill.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--brand-primary-20);
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ─── Toggle Switch for Plan Billing ─── */
.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.billing-toggle .toggle-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.billing-toggle .toggle-btn.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-primary-20);
}
.billing-toggle .toggle-btn .discount-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.125rem 0.5rem;
  background: var(--brand-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 0.375rem;
  white-space: nowrap;
}

/* ─── Dynamic Sections (from admin builder) ─── */
.section-dynamic { padding: 2rem 0; }
.section-dynamic:nth-child(even) { background: var(--surface-secondary); }

.dynamic-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}
.dynamic-text p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
}

.dynamic-cards .dynamic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.dynamic-cards .dynamic-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.dynamic-cards .dynamic-card h5 { font-weight: 700; color: var(--text-primary); }
.dynamic-cards .dynamic-card p { color: var(--text-tertiary); font-size: 0.875rem; }

.dynamic-stats .stat-number { font-family: var(--font-display); font-weight: 800; }
.dynamic-stats .stat-label { color: var(--text-tertiary); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-tertiary); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── Animations ─── */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ─── Maintenance Bar ─── */
.maintenance-bar {
  background: var(--brand-accent);
  color: #000;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── Flash Messages ─── */
.modern-alert {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-md);
}
.modern-alert.alert-success { background: #D1FAE5; color: #065F46; }
.modern-alert.alert-danger { background: #FEE2E2; color: #991B1B; }
.modern-alert.alert-warning { background: #FEF3C7; color: #92400E; }
.modern-alert.alert-info { background: #DBEAFE; color: #1E40AF; }

/* ─── Section Description fallback ─── */
.section-desc { color: var(--text-secondary); font-weight: 300; line-height: 1.8; }

/* ═══════════════════════════════════════════════════
   WhatsApp Floating Button
   ═══════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  color: #fff;
}
.whatsapp-float:active { transform: scale(0.95); }

.ai-chat-panel {
  position: fixed;
  bottom: 90px; left: 24px;
  z-index: 9999;
  width: 360px; max-width: calc(100vw - 48px);
  height: 480px; max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-chat-panel .chat-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-primary), #1a8aff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-panel .chat-header .chat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.ai-chat-panel .chat-header .chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.ai-chat-panel .chat-header .chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg-bot {
  align-self: flex-start;
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
}
.chat-input-area input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--surface-secondary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-area input:focus {
  border-color: var(--brand-primary);
}
.chat-input-area .chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-input-area .chat-send:hover {
  background: var(--brand-primary-dark);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero-section {
    min-height: auto;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }
  .hero-section .hero-badge { font-size: 0.7rem; }
  .hero-section h1 { font-size: 1.6rem; }
  .hero-section p { font-size: 0.9rem; max-width: 100%; }
  .hero-section .d-flex.gap-3 { flex-direction: column; gap: 0.75rem; }
  .hero-section .d-flex.gap-3 .btn { width: 100%; text-align: center; }

  .hero-bg-blur { width: 200px; height: 200px; right: 10%; }
  .hero-bg-blur-2 { width: 150px; height: 150px; left: 10%; bottom: 5%; }

  .demo-widget { max-width: 100%; }
  .demo-widget-main { height: 140px; }
  .demo-widget-item { height: 75px; padding: 0.5rem; }
  .demo-widget-item .icon { width: 28px; height: 28px; font-size: 0.75rem; }
  .demo-widget-item .label { font-size: 10px; }
  .demo-widget-url span { font-size: 8px; }

  .floating-card { display: none; }

  .stats-bar { margin-top: -2.5rem; padding: 0 1rem; }
  .stats-bar-inner { padding: 1rem; border-radius: var(--radius-xl); }
  .stat-item { padding: 0.75rem 0.5rem; }
  .stat-item .stat-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 0.5rem; }
  .stat-item .stat-number { font-size: 1.25rem; }
  .stat-item .stat-label { font-size: 0.7rem; }

  .section-header-custom h2 { font-size: 1.35rem; }
  .section-header-custom p { font-size: 0.85rem; }
  .section-header-custom { margin-bottom: 1rem; }

  .section-dynamic { padding: 1.5rem 0; }

  .feature-card { padding: 1.25rem; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.8rem; }
  .feature-card .icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0.75rem; }

  .category-card-modern { height: 220px; border-radius: var(--radius-xl); }
  .category-card-modern .bottom-content { padding: 1rem; }
  .category-card-modern .bottom-content h3 { font-size: 1rem; }
  .category-card-modern .bottom-content p { font-size: 0.7rem; }
  .category-card-modern .top-badge { top: 0.75rem; right: 0.75rem; font-size: 0.65rem; }

  .school-card-modern { padding: 0.75rem; border-radius: var(--radius-xl); }
  .school-card-modern .cover { height: 140px; border-radius: var(--radius-md); }
  .school-card-modern .body { padding-top: 2rem; padding-left: 0; padding-right: 0; }
  .school-card-modern .body .logo { width: 48px; height: 48px; top: -1.25rem; }
  .school-card-modern .body h3 { font-size: 1rem; }

  .gallery-masonry { columns: 1 !important; gap: 0.5rem; }
  .gallery-masonry .gallery-item { margin-bottom: 0.5rem; border-radius: var(--radius-md); }
  .gallery-masonry .gallery-item .overlay h5 { font-size: 0.85rem; }
  .gallery-masonry .gallery-item .overlay p { font-size: 0.7rem; }

  .step-card { padding: 1.25rem; }
  .step-card .step-number { width: 40px; height: 40px; font-size: 0.85rem; }
  .step-card h3 { font-size: 0.95rem; }
  .step-card p { font-size: 0.8rem; }

  .plan-card-modern { padding: 1.25rem; border-radius: var(--radius-xl); }
  .plan-card-modern h3 { font-size: 1.1rem; }
  .plan-card-modern .price .amount { font-size: 1.75rem; }
  .plan-card-modern .features li { font-size: 0.8rem; }
  .plan-card-modern .features li i { font-size: 0.7rem; }
  .plan-card-modern .btn { width: 100%; text-align: center; }

  .testimonial-card { padding: 1.25rem; border-radius: var(--radius-xl); }
  .testimonial-card .name { font-size: 0.9rem; }
  .testimonial-card .role { font-size: 0.75rem; }
  .testimonial-card .text { font-size: 0.85rem; }

  .faq-item-modern { padding: 1rem 1.25rem; }
  .faq-item-modern .faq-question h5 { font-size: 0.85rem; }

  .cta-section-modern { padding: 2.5rem 1.5rem; border-radius: var(--radius-xl); }
  .cta-section-modern h2 { font-size: 1.35rem; }
  .cta-section-modern p { font-size: 0.85rem; }
  .cta-section-modern .d-flex.gap-3 { flex-direction: column; gap: 0.75rem; }
  .cta-section-modern .d-flex.gap-3 .btn { width: 100%; text-align: center; }

  .footer-modern { padding: 2.5rem 0 0; }
  .footer-modern .row.g-5 > * { margin-bottom: 1.5rem; }
  .footer-modern .row.g-5 { gap: 0; }

  .navbar-modern { padding: 0.5rem 0; }
  .navbar-modern .navbar-brand img { height: 32px; }
  .navbar-modern .navbar-brand { gap: 0.35rem; }
  .navbar-modern .navbar-brand > div span:first-child { font-size: 0.7rem !important; }
  .navbar-modern .navbar-brand .brand-sub { font-size: 7px; }
  .navbar-modern .theme-toggle { width: 34px; height: 34px; font-size: 0.85rem; }

  .whatsapp-float { width: 48px; height: 48px; font-size: 1.4rem; bottom: 16px; left: 16px; }

  .dynamic-cards .dynamic-card { padding: 1rem; border-radius: var(--radius-lg); }
}

/* ═══════════════════ 3D SCHOOL PROFILE ═══════════════════ */

.school-3d-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-3d-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-2xl);
  padding: 2rem 2.5rem;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.hero-3d-card:hover {
  transform: perspective(1200px) rotateX(2deg) rotateY(-2deg);
}

.school-logo-3d {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  transform: translateZ(30px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.school-logo-3d img, .logo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.school-title-3d {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin: 0;
  transform: translateZ(20px);
}

.meta-3d {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transform: translateZ(15px);
}

.meta-3d i { margin-inline-end: 0.35rem; }

.badge-3d {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  transform: translateZ(25px);
}

.badge-3d.type { background: rgba(15,113,240,0.5); color: #fff; }
.badge-3d.gender { background: rgba(255,255,255,0.15); color: #fff; }
.badge-3d.featured { background: rgba(245,158,11,0.6); color: #fff; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  transform: translateZ(25px);
}

.btn-3d {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-3d.primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(15,113,240,0.4);
}

.btn-3d.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15,113,240,0.5);
  color: #fff;
}

.btn-3d.outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.btn-3d.outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(15,113,240,0.4); }
  50% { box-shadow: 0 8px 50px rgba(15,113,240,0.7); }
}

.scroll-indicator-3d {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.hero-glow-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(15,113,240,0.3);
}

.hero-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.2);
}

/* ─── Tour Navigation ─── */

.tour-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tour-nav.visible { opacity: 1; }

.tour-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-direction: row-reverse;
}

.tour-dot .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tour-dot .dot-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.tour-dot:hover .dot-label,
.tour-dot.active .dot-label {
  opacity: 1;
  transform: translateX(0);
}

.tour-dot.active .dot {
  background: var(--brand-primary);
  border-color: rgba(15,113,240,0.3);
  box-shadow: 0 0 20px rgba(15,113,240,0.4);
  width: 14px;
  height: 14px;
}

.tour-dot:hover .dot {
  background: var(--brand-primary);
  transform: scale(1.2);
}

/* ─── Scene Sections ─── */

.scene-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  inset: 0;
  background: var(--surface-secondary);
  z-index: 0;
}

.scene-bg.alt { background: var(--surface); }

.scene-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-2xl);
  padding: 3rem;
  overflow: hidden;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.scene-card.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.scene-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(15,113,240,0.03), transparent 60%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.scene-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.scene-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-primary);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.scene-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.scene-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text-primary);
  margin: 0;
}

.scene-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ─── Grade Chips ─── */

.grade-chip-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.grade-chip-3d:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(15,113,240,0.15);
}

.grade-chip-3d i { color: var(--brand-primary); }

/* ─── 3D Gallery Grid ─── */

.gallery-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-3d-item {
  perspective: 1000px;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gallery-3d-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.gallery-3d-inner img, .gallery-3d-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-3d-item:hover .gallery-3d-inner img,
.gallery-3d-item:hover .gallery-3d-inner video {
  transform: scale(1.08);
}

.gallery-3d-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.gallery-3d-item:hover .gallery-3d-overlay { opacity: 1; }

.gallery-3d-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.gallery-3d-overlay.video-play { background: rgba(0,0,0,0.4); opacity: 1; }

.play-btn-3d {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.gallery-3d-item.video:hover .play-btn-3d {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: scale(1.1);
}

.gallery-3d-item.video.playing .gallery-3d-overlay.video-play { opacity: 0; }

/* ─── Activity & Service 3D Cards ─── */

.activity-3d-card, .service-3d-card {
  padding: 1.5rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  height: 100%;
}

.activity-3d-card:hover, .service-3d-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: var(--brand-primary-20);
}

.activity-icon, .service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.activity-icon { background: rgba(15,113,240,0.1); color: var(--brand-primary); }
.service-icon { background: rgba(16,185,129,0.1); color: #10b981; }

.activity-3d-card h4, .service-3d-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.activity-3d-card p, .service-3d-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

/* ─── Contact Grid ─── */

.contact-3d-grid {
  display: grid;
  gap: 0.75rem;
}

.contact-3d-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-3d-item:hover {
  transform: translateX(-4px);
  border-color: var(--brand-primary-20);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.contact-3d-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

.contact-3d-item strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-icon.bg-primary { background: var(--brand-primary); }
.contact-icon.bg-pink { background: #ec4899; }
.contact-icon.bg-cyan { background: #06b6d4; }
.contact-icon.bg-green { background: #10b981; }
.contact-icon.bg-whatsapp { background: #25d366; }

/* ─── Social 3D Buttons ─── */

.social-3d {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--social, var(--text-primary));
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-3d:hover {
  background: var(--social);
  color: #fff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ─── Map Container ─── */

.map-3d {
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.map-3d:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: scale(1.01);
}

/* ─── 3D Image Viewer ─── */

.viewer-3d-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.viewer-3d-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.viewer-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.viewer-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.viewer-3d-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.viewer-3d-overlay.active .viewer-3d-content {
  transform: scale(1);
}

.viewer-3d-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.viewer-3d-hint {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .school-3d-hero { min-height: 70vh; }
  .hero-3d-card { padding: 1.25rem; }
  .school-logo-3d { width: 72px; height: 72px; }
  .school-title-3d { font-size: 1.5rem; }
  .scene-card { padding: 1.5rem; }
  .scene-number { font-size: 2rem; }
  .scene-header h2 { font-size: 1.25rem; }
  .gallery-3d-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tour-nav { display: none; }
  .viewer-3d-content { max-width: 95vw; }
  .hero-actions { flex-direction: column; }
  .btn-3d { width: 100%; justify-content: center; }
}


/* ═══════════════════════ ADMIN DASHBOARD ═══════════════════════ */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}

/* ─── Sidebar ─── */
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-secondary) 100%);
  border-inline-end: 1px solid var(--border);
  padding: 1rem 0.75rem;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  z-index: 10;
}

.admin-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar .sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.admin-sidebar .sidebar-brand span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sidebar-section-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  padding: 0.75rem 0.75rem 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.15rem;
  position: relative;
}

.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-link::before {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--brand-primary);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

[dir="ltr"] .sidebar-link::before {
  right: auto;
  left: -0.75rem;
  border-radius: 3px 0 0 3px;
}

.sidebar-link:hover {
  background: var(--brand-primary-5);
  color: var(--brand-primary);
}

.sidebar-link:hover::before {
  height: 60%;
}

.sidebar-link.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--brand-primary-20);
}

.sidebar-link.active::before {
  height: 60%;
  background: #fff;
}

.sidebar-link .badge {
  margin-right: auto;
  font-size: 0.65rem;
  padding: 0.2em 0.55em;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ─── Content Area ─── */
.admin-content {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
  background: var(--surface-secondary);
}

@media (min-width: 1400px) {
  .admin-content {
    padding: 1.5rem 3rem;
  }
}

.admin-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-content-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-content-header > a.btn,
.admin-content-header > button.btn {
  flex-shrink: 0;
}

.admin-content-header h4 {
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0;
  color: var(--text-primary);
}

.admin-content-header h4 i {
  color: var(--brand-primary);
  margin-inline-end: 0.5rem;
}

.admin-content-header p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0;
}

/* ─── Modern Card ─── */
.modern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.modern-card .card-header-custom {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-card .card-header-custom h5 {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.modern-card .card-body-custom {
  padding: 1.5rem;
}

.modern-card .card-body-custom.p-0 {
  padding: 0;
}

/* ─── Stat Cards ─── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 3px 3px 0;
}

[dir="ltr"] .stat-card::after {
  right: auto;
  left: 0;
  border-radius: 3px 0 0 3px;
}

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

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

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

.stat-change {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.stat-change.up { color: #10b981; }
.stat-change.down { color: #ef4444; }

/* stat card color variants */
.stat-blue .stat-icon-wrap { background: rgba(15,113,240,0.12); color: #0F71F0; }
.stat-blue::after { background: #0F71F0; }

.stat-pink .stat-icon-wrap { background: rgba(236,72,153,0.12); color: #ec4899; }
.stat-pink::after { background: #ec4899; }

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

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

.stat-purple .stat-icon-wrap { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-purple::after { background: #8b5cf6; }

.stat-cyan .stat-icon-wrap { background: rgba(6,182,212,0.12); color: #06b6d4; }
.stat-cyan::after { background: #06b6d4; }

/* ─── Badges ─── */
.badge-status {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.badge-pending { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-approved, .badge-active { background: rgba(16,185,129,0.12); color: #059669; }
.badge-rejected, .badge-inactive { background: rgba(239,68,68,0.12); color: #dc2626; }
.badge-featured { background: rgba(251,191,36,0.15); color: #b8860b; }

/* ─── Modern Tables ─── */
.modern-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

@media (min-width: 1200px) {
  .modern-table {
    min-width: 1000px;
  }
}

.modern-table thead th {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.modern-table thead th:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.modern-table thead th:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.modern-table tbody tr {
  transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
  background: var(--brand-primary-5);
}

.modern-table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.modern-table .table-actions {
  display: flex;
  gap: 0.35rem;
}

.modern-table .table-actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.modern-table .user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-table .user-cell img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-secondary);
}

.modern-table .user-cell .user-info strong {
  font-size: 0.9rem;
  display: block;
}

.modern-table .user-cell .user-info small {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ─── Forms ─── */
.admin-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}

.admin-form-card .form-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--brand-primary-5), transparent);
  border-bottom: 1px solid var(--border);
}

.admin-form-card .form-header h4 {
  font-weight: 800;
  margin: 0;
  font-size: 1.1rem;
}

.admin-form-card .form-header p {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: 0.25rem 0 0;
}

.admin-form-card .form-body {
  padding: 2rem;
}

.admin-form-card .form-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface-secondary);
}

.admin-form-card .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.admin-form-card .form-control, .admin-form-card .form-select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: var(--surface);
  color: var(--text-primary);
}

.admin-form-card .form-control:focus, .admin-form-card .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

.admin-form-card .form-control-color {
  padding: 0.25rem;
  height: 42px;
}

.admin-form-card textarea.form-control {
  min-height: 100px;
}

.admin-form-card .form-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* ─── Plan Cards ─── */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-primary);
}

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

.plan-card .plan-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-card .plan-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.plan-card .plan-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.plan-card .plan-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-card .plan-features li i {
  color: var(--brand-primary);
  font-size: 0.9rem;
}

/* ─── Search Bar ─── */
.admin-search {
  position: relative;
  max-width: 480px;
}

.admin-search .form-control {
  padding-inline-start: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
}

.admin-search .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

.admin-search .search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  pointer-events: none;
}

[dir="ltr"] .admin-search .search-icon {
  right: auto;
  left: 1rem;
}

/* ─── Filter Tabs ─── */
.filter-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.filter-tabs .btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-tabs .btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-tabs .btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--brand-primary-20);
}

/* ─── Charts ─── */
.chart-container {
  padding: 1.5rem;
}

.chart-container canvas {
  max-height: 250px;
}

/* ─── Pagination ─── */
.pagination-custom {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.pagination-custom .page-item .page-link {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--surface);
  transition: all 0.2s ease;
}

.pagination-custom .page-item .page-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-5);
}

.pagination-custom .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--brand-primary-20);
}

/* ─── Gallery Grid ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ─── Upload Area ─── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-tertiary);
  background: var(--surface-secondary);
}

.upload-area:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-5);
  color: var(--brand-primary);
}

.upload-area i { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.upload-area p { font-size: 0.85rem; margin: 0; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-tertiary);
  opacity: 0.4;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h5 {
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

/* ─── Misc ─── */
.delete-form { display: inline; }

.admin-page-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.admin-page-title .title-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-10);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.admin-page-title h4 {
  font-weight: 800;
  margin: 0;
  font-size: 1.2rem;
}

.admin-page-title p {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin: 0;
}

/* ─── Sidebar Overlay & Toggle ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* Toggle only visible on mobile */
@media (min-width: 769px) {
  .sidebar-toggle { display: none; }
}

.admin-sidebar .sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-sidebar .sidebar-close:hover {
  background: #EF4444;
  color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .admin-sidebar {
    width: 220px;
    padding: 0.75rem 0.5rem;
  }
  .admin-sidebar .sidebar-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
  .admin-content { padding: 1.25rem; }
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {

  .admin-layout { flex-direction: row; }

  .admin-sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: auto;
    z-index: 1001;
    padding: 0.75rem;
    border-inline-end: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    border-radius: 0;
    visibility: visible;
    opacity: 1;
  }

  [dir="ltr"] .admin-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }

  .admin-sidebar.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .admin-sidebar .sidebar-brand {
    display: flex;
    padding: 0.5rem 0.5rem 1rem;
    justify-content: space-between;
  }

  .admin-sidebar .sidebar-close {
    display: flex;
  }

  .admin-sidebar .sidebar-section-title {
    display: block;
  }

  .admin-sidebar .sidebar-link {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.1rem;
  }

  .admin-sidebar .sidebar-link::before {
    display: block;
  }

  .admin-sidebar .sidebar-link i {
    font-size: 1.1rem;
    width: 22px;
  }

  .admin-content {
    padding: 1rem;
    width: 100%;
  }

  .admin-content-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .admin-content-header h4 {
    font-size: 1.1rem;
  }

  .admin-content-header h4 i {
    font-size: 1rem;
  }

  /* Stat cards: 2 columns */
  .row.g-4 > .col-md-3,
  .row.g-4 > .col-md-6 {
    width: 50%;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

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

  /* Tables: horizontal scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modern-table {
    min-width: 500px;
  }

  .modern-table thead th {
    font-size: 0.7rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
  }

  .modern-table tbody td {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .modern-table .user-cell .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .modern-table .user-cell .user-info strong {
    font-size: 0.8rem;
  }

  .modern-table .user-cell .user-info small {
    font-size: 0.65rem;
  }

  .table-actions .btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  /* Form adjustments */
  .admin-form-card .form-body {
    padding: 1.1rem;
  }

  .admin-form-card .form-header {
    padding: 1rem 1.1rem;
  }

  .admin-form-card .form-footer {
    padding: 0.85rem 1.1rem;
  }

  .admin-form-card .form-header h5 {
    font-size: 0.95rem;
  }

  /* Card adjustments */
  .modern-card .card-header-custom {
    padding: 1rem 1.1rem;
  }

  .modern-card .card-body-custom {
    padding: 1.1rem;
  }

  .modern-card .card-header-custom h5 {
    font-size: 0.9rem;
  }

  /* Plan cards */
  .plan-card {
    padding: 1.1rem;
  }

  .plan-card .plan-price .amount {
    font-size: 1.5rem;
  }

  /* Filter tabs */
  .filter-tabs {
    gap: 0.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .filter-tabs .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
  }

  /* Search */
  .admin-search {
    width: 100%;
  }

  .admin-search input {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item {
    border-radius: var(--radius-md);
  }

  /* Pagination */
  .pagination-custom .page-link {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  /* Charts */
  .chart-container {
    height: 200px !important;
  }

  .chart-container canvas {
    max-height: 200px;
  }

  /* Stats cards from school dashboard */
  .stat-card .stat-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Alert spacing */
  .modern-alert {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* ─── Small Mobile (≤ 576px) ─── */
@media (max-width: 576px) {

  .admin-content {
    padding: 0.75rem;
  }

  .admin-content-header {
    flex-wrap: wrap;
  }

  .admin-content-header h4 {
    font-size: 1rem;
  }

  .admin-content-header .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .admin-content-header .btn i {
    font-size: 0.85rem;
  }

  /* Single column stats on very small screens */
  .row.g-4 > .col-6 {
    width: 100%;
  }

  .stat-card {
    padding: 0.85rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

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

  .modern-card .card-header-custom {
    padding: 0.85rem 0.9rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .modern-card .card-body-custom {
    padding: 0.9rem;
  }

  .admin-form-card .form-body {
    padding: 0.9rem;
  }

  .admin-form-card .form-header {
    padding: 0.85rem 0.9rem;
  }

  .admin-form-card .form-footer {
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-form-card .form-footer .btn {
    width: 100%;
  }

  .plan-card {
    padding: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  /* Make badges etc smaller */
  .badge-status {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .table-actions .btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .modern-table tbody td {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .modern-table thead th {
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
  }
}

/* ─── Auth Pages ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--surface-secondary) 100%);
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-primary-10) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-primary-10) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.auth-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.auth-shape-1 {
  width: 200px;
  height: 200px;
  background: var(--brand-primary-20);
  top: 10%;
  left: 5%;
  animation: floatShape 8s ease-in-out infinite;
}

.auth-shape-2 {
  width: 120px;
  height: 120px;
  background: var(--brand-accent);
  opacity: 0.08;
  bottom: 20%;
  right: 10%;
  animation: floatShape 6s ease-in-out infinite reverse;
}

.auth-shape-3 {
  width: 80px;
  height: 80px;
  background: var(--brand-primary);
  opacity: 0.06;
  top: 40%;
  left: 50%;
  animation: floatShape 10s ease-in-out infinite 2s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: none;
  flex: 1;
  max-width: 400px;
  padding: 2rem;
}

.auth-brand-inner {
  text-align: center;
}

.auth-brand-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.auth-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.auth-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.auth-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.auth-brand-features {
  margin-top: 2rem;
  text-align: right;
}

.auth-brand-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-brand-feature i {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary-10);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-primary-20), var(--brand-primary-10));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.auth-card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.auth-card-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.auth-form .form-group .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.auth-form .input-wrapper {
  position: relative;
}

.auth-form .input-wrapper .input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  color: var(--text-tertiary);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

[dir="ltr"] .auth-form .input-wrapper .input-icon {
  right: auto;
  left: 14px;
}

.auth-form .form-control {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
}

[dir="ltr"] .auth-form .form-control {
  padding: 0.75rem 1rem 0.75rem 2.75rem;
}

.auth-form .form-control:focus {
  border-color: var(--brand-primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

.auth-form .form-control:focus + .input-icon,
.auth-form .form-control:focus ~ .input-icon {
  color: var(--brand-primary);
}

.auth-form .form-control::placeholder {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.auth-form .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-form .form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.auth-form .form-check-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auth-form .form-select {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 2.5rem;
}

[dir="ltr"] .auth-form .form-select {
  background-position: right 14px center;
  padding-left: 1rem;
  padding-right: 2.5rem;
}

.auth-form .form-select:focus {
  border-color: var(--brand-primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-primary-10);
}

.auth-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.auth-btn:hover::before {
  transform: translateX(100%);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15,113,240,0.35);
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-links {
  text-align: center;
  margin-top: 1.25rem;
}

.auth-footer-links p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.auth-footer-links a {
  color: var(--brand-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-footer-links a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.auth-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}

.auth-extra-link:hover {
  color: var(--brand-primary);
}

/* validation errors */
.auth-form .invalid-feedback {
  display: block;
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.3rem;
}

.auth-form .form-control.is-invalid {
  border-color: #EF4444;
  background: rgba(239,68,68,0.03);
}

.auth-form .form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

/* password toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 14px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 2;
}

[dir="ltr"] .password-toggle {
  left: auto;
  right: 14px;
}

.password-toggle:hover {
  color: var(--brand-primary);
}

.auth-forgot-link {
  font-size: 0.82rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-forgot-link:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

@media (min-width: 992px) {
  .auth-brand { display: block; }
  .auth-card { max-width: 440px; }

  .demo-widget {
    max-width: 540px;
  }
  .demo-widget-main {
    height: 280px;
  }
  .demo-widget-item {
    height: 110px;
  }
  .demo-widget .floating-card.support {
    bottom: -1.5rem !important;
    left: -2.5rem !important;
  }
  .demo-widget .floating-card.rating {
    top: -1.5rem !important;
    right: -2.5rem !important;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-xl);
  }
  .auth-card-header h3 { font-size: 1.2rem; }
  .auth-form .form-control { font-size: 0.88rem; padding: 0.7rem 2.5rem 0.7rem 0.9rem; }
  [dir="ltr"] .auth-form .form-control { padding: 0.7rem 0.9rem 0.7rem 2.5rem; }
  .auth-btn { padding: 0.8rem; font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════*/
