/* ==========================================================================
   Quick Progressive Carrier Point - Clean Modern Responsive Theme
   Vibrant Royal Blue / Indigo Accent Palette with Strict 100% Mobile Viewport Constraints
   ========================================================================== */

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

:root {
  /* Color Palette - Vibrant Royal Blue Theme */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* Surface Colors */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --glass-border: #e2e8f0;
  --glass-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(37, 99, 235, 0.15), 0 10px 15px -5px rgba(15, 23, 42, 0.06);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
}

/* Ensure FontAwesome icons inherit their font-family on pseudo-elements */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

.fa-brands {
  font-family: "Font Awesome 6 Brands", sans-serif !important;
}

[class*="fa-"]::before {
  font-family: inherit !important;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-heading);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.65rem 0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  min-width: 0;
  max-width: calc(100% - 50px);
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-title {
  line-height: 1.15;
  word-break: break-word;
}

.brand-title span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Mobile Menu Button & Drawer */
.desktop-only {
  display: flex;
}

.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.mobile-drawer.active {
  display: block;
}

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

.mobile-nav-links {
  list-style: none;
  margin-bottom: 1.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-auth-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.btn-teacher-portal {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-teacher-portal:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

/* User Badge in Header */
.user-menu-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.user-avatar-tiny {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.role-badge.student { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.role-badge.verified_teacher { background: var(--accent-emerald-light); color: var(--accent-emerald); border: 1px solid #a7f3d0; }
.role-badge.teacher_applicant { background: #fffbeb; color: var(--accent-amber); border: 1px solid #fde68a; }
.role-badge.admin { background: #fff1f2; color: var(--accent-rose); border: 1px solid #fecdd3; }

/* Hero Section */
.hero {
  padding: 2.25rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.hero-title .gradient-text {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

.stat-item h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--glass-border);
  background: #fff;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

/* Section & Page Headers */
.page-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.3rem;
  line-height: 1.25;
}

.page-header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.section {
  padding: 4rem 0;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

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

/* Teacher Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  flex-wrap: wrap;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.5rem;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.chip.active, .chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.responsive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Teacher Card Grid */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: var(--transition-normal);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.teacher-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.teacher-avatar-wrap {
  position: relative;
}

.teacher-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.play-demo-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--accent-rose);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 8px rgba(225, 29, 72, 0.4);
  transition: var(--transition-fast);
}

.play-demo-btn:hover {
  transform: scale(1.15);
}

.teacher-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.teacher-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.subject-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.subject-tag {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
}

.teacher-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.teacher-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

.meta-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}

.meta-item strong {
  font-size: 1rem;
  color: var(--text-main);
}

.meta-item strong.price {
  color: var(--accent-emerald);
}

.teacher-card-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.teacher-card-actions .btn {
  flex: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  transform: translateY(15px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.lg {
  max-width: 760px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
  background: #e2e8f0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Tab Switcher inside Modal */
.tab-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 0.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--glass-border);
  width: 100%;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Demo Video Modal Container */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #0f172a;
  margin-bottom: 1.1rem;
  width: 100%;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Status Cards */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: var(--glass-shadow);
  width: 100%;
}

.status-icon-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fffbeb;
  color: var(--accent-amber);
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.1rem;
}

/* Privacy Alert Box */
.privacy-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--glass-shadow);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.user-profile-header {
  text-align: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.1rem;
}

.user-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  list-style: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-nav-item {
  margin-bottom: 0.35rem;
  width: 100%;
}

.main-dash-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-nav-btn {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.sidebar-nav-btn.active, .sidebar-nav-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Dashboard Card Layouts */
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.dash-user-info {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.dash-user-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.dash-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.dash-card-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Tables & Admin Lists */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--glass-shadow);
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #f8fafc;
}

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

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Privacy Lock Tag */
.privacy-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff1f2;
  color: var(--accent-rose);
  border: 1px solid #fecdd3;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: calc(100vw - 32px);
}

.toast {
  background: #0f172a;
  border: 1px solid #334155;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.25s ease;
  font-size: 0.85rem;
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid var(--accent-rose); }
.toast-info { border-left: 4px solid var(--primary); }

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

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.75rem;
  margin-top: 3.5rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 320px;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

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

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

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

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

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

  .brand-logo-img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 868px) {
  .page-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .page-header-actions {
    width: 100%;
  }

  .page-header-actions .btn {
    flex: 1;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero {
    padding: 1.25rem 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-img {
    height: 280px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sidebar-card {
    padding: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav-item {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar-nav-btn {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .dash-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .dash-card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .dash-card-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  h2, .section-title {
    font-size: 1.3rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .dash-card-actions .btn, .dash-card-btn-group .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0.5rem;
    max-width: calc(100% - 48px);
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 0.88rem;
    line-height: 1.15;
    word-break: break-word;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .stat-item h3 {
    font-size: 1.15rem;
  }

  .stat-item p {
    font-size: 0.68rem;
  }

  .filter-bar {
    padding: 0.65rem;
    align-items: stretch;
  }

  .filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
  }

  .responsive-card-grid, .teachers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .teacher-card {
    padding: 1rem;
  }

  .teacher-card-actions {
    flex-direction: column;
    gap: 0.45rem;
  }

  .teacher-card-actions .btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .modal-card, .modal-card.lg {
    width: 95vw;
    max-width: 95vw;
    padding: 1.1rem;
    margin: 0 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 400px) {
  .brand-title {
    font-size: 0.82rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

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