:root {
  --bg-dark: #090c10;
  --bg-card: rgba(22, 27, 34, 0.75);
  --bg-card-hover: rgba(33, 38, 45, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(56, 189, 248, 0.35);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --secondary: #818cf8;
  --accent: #f43f5e;
  --accent-green: #10b981;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --glass: blur(16px);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Ambient Glows */
.ambient-glow-1,
.ambient-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ambient-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.ambient-glow-2 {
  width: 600px;
  height: 600px;
  bottom: 50px;
  right: -100px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(9, 12, 16, 0.82);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.logo-badge {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-cta {
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: #040914 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-cta:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5);
}

.nav-cta.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Page Section Container */
.page-view {
  display: none !important;
  visibility: hidden !important;
  position: relative;
  z-index: 1;
}

.page-view.active {
  display: block !important;
  visibility: visible !important;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SECTION 1: HOMEPAGE ================= */
.home-section {
  padding-top: 72px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Hero */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: #040914;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

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

/* Why Join Section */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* How To Join Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card.best-value {
  border-color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-badge.badge-green {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #022c22;
}

.pricing-badge.badge-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #451a03;
}

/* Custom Schedule Dashboard Spotlight Box */
.custom-dashboard-spotlight {
  margin-top: 2.5rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 868px) {
  .custom-dashboard-spotlight {
    grid-template-columns: 1fr;
    padding: 1.8rem 1.4rem;
  }
}

.spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.spotlight-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.spotlight-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 580px) {
  .spotlight-highlights {
    grid-template-columns: 1fr;
  }
}

.spotlight-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.spotlight-highlight-item span {
  font-size: 1.1rem;
}

.spotlight-pricing-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spotlight-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.spotlight-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.spotlight-subtext {
  font-size: 0.82rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.pricing-features li.included {
  color: var(--text-main);
}

.pricing-features li.included::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 800;
}

.pricing-features li.not-included {
  opacity: 0.4;
}

.pricing-features li.not-included::before {
  content: '✕';
  color: var(--text-dim);
}

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

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

/* Study Hall Minimal Mode (Compact back pill, zero overlap with Current Time) */
body.study-hall-mode .navbar {
  display: none !important;
}

body.study-hall-mode .dashboard-view-wrapper {
  padding-top: 0 !important;
  height: 100vh !important;
}

/* ================= SECTION 4: ADMIN PORTAL ================= */
.admin-section {
  padding-top: 100px;
  padding-bottom: 5rem;
  min-height: 100vh;
}

/* Admin Auth Gate */
.admin-auth-card {
  max-width: 440px;
  margin: 2rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.admin-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-input,
.admin-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.admin-input:focus,
.admin-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Schedule Slot Rows */
.schedule-builder {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.slot-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-slot-delete {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  border-radius: var(--radius-sm);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition);
}

.btn-slot-delete:hover {
  background: #f43f5e;
  color: #fff;
}

.slot-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

/* Generated Code Result Box */
.generated-code-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

.generated-code-text {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin: 0.5rem 0 1rem;
}

/* Saved Codes Table */
.saved-codes-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  max-height: 450px;
  overflow-y: auto;
}

.saved-code-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.saved-code-badge {
  font-family: 'Courier New', monospace;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

@media (max-width: 968px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ================= SECTION 2: LIVE DASHBOARD VIEW ================= */
.dashboard-view-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding-top: 72px;
  overflow: hidden;
  background: #000;
}

#flutter_container {
  width: 100%;
  height: calc(100vh - 72px);
  position: relative;
  overflow: hidden;
}

#flutter_scaler {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  width: 100%;
  height: 100%;
}

#flutter_target {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}

/* ================= SECTION 3: CUSTOM DASHBOARD & STUDY HALL ================= */
.custom-dashboard-section {
  padding-top: 100px;
  padding-bottom: 5rem;
  min-height: 100vh;
}

/* Cinematic Fullscreen Custom Study Hall View */
.custom-study-hall-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('assets/assets/background1.jpg');
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  overflow: hidden;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease;
}

.custom-study-hall-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.custom-hall-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Hall Top Bar */
.hall-top-bar {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
}

.hall-exit-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hall-exit-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hall-quote {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
}

.hall-time-display {
  text-align: right;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hall-time-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: block;
}

/* Center Stage: Clock & Active Badge */
.hall-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.hall-big-clock {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.95);
  user-select: none;
}

.hall-active-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563eb;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1.75rem;
}

.hall-active-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.5);
  background: #1d4ed8;
}

/* Hall Bottom Countdown */
.hall-bottom-countdown {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hall-countdown-title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  opacity: 0.95;
}

.hall-countdown-days {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-top: 2px;
}

/* Schedule Drawer Modal */
.hall-drawer-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  border-radius: 24px 24px 0 0;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  display: none;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 768px) {
  .hall-top-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .hall-quote {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 0.5rem;
  }
  .custom-study-hall-wrapper {
    padding: 1rem 1rem 2rem;
  }
}

.code-activation-card {
  max-width: 650px;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.code-input-group {
  display: flex;
  gap: 10px;
  margin: 1.75rem 0 1rem;
}

.code-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  outline: none;
  transition: var(--transition);
}

.code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.sample-codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chip-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

/* Custom Live Dashboard Display */
.custom-board {
  display: none;
  background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.board-student-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.board-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.board-timer-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-clock {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin: 1rem 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.current-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* Schedule Timeline */
.timeline-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.timeline-item.active-slot {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  font-weight: 700;
  color: var(--primary);
}

.timeline-time {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Target Countdown Bar */
.target-countdown-bar {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Mobile Layouts */
@media (max-width: 868px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 12, 16, 0.95);
    backdrop-filter: var(--glass);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .board-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= SECTION: REVIEWS & FEEDBACK STYLES ================= */
.reviews-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.reviews-summary-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
}

.reviews-stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.reviews-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-user-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-verified {
  color: #38bdf8;
  font-size: 0.85rem;
}

.review-exam-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.review-quote-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.review-stat-chip {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* WhatsApp Chat Screenshot Proof Card */
.chat-proof-card {
  background: #0b141a;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.chat-proof-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #25d366;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2c34;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e9edef;
}

.chat-badge {
  font-size: 0.72rem;
  color: #8696a0;
}

.chat-app-tag {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-bubble {
  background: #005c4b;
  color: #e9edef;
  padding: 12px 14px;
  border-radius: 12px 12px 4px 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 10px;
  align-self: flex-end;
  max-width: 95%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.chat-ticks {
  color: #53bdeb;
}

.screenshot-placeholder-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  margin-top: 8px;
}

.screenshot-placeholder-box img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ================= CHECKOUT / BUY PAGE STYLES ================= */
.checkout-section {
  padding: 6.5rem 1.5rem 6rem;
  max-width: 1050px;
  margin: 0 auto;
}

.checkout-wrapper {
  animation: fadeIn 0.4s ease;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 868px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.checkout-plan-summary {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.qr-code-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.qr-frame:hover {
  transform: scale(1.03);
}

.upi-id-copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 1rem;
}

.verification-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.verification-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.v-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.v-step-text {
  line-height: 1.5;
  color: var(--text-muted);
}

.v-step-text strong {
  color: var(--text-main);
}

/* ================= IN-APP CHECKOUT FORM STYLES ================= */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.checkout-label span {
  color: #f43f5e;
}

.checkout-input,
select.checkout-input,
textarea.checkout-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #f0f6fc;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  box-sizing: border-box;
}

select.checkout-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

select.checkout-input option {
  background: #0f172a;
  color: #f0f6fc;
  padding: 10px;
}

textarea.checkout-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.checkout-input:focus,
select.checkout-input:focus,
textarea.checkout-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(22, 27, 34, 0.95);
}

.checkout-input::placeholder,
textarea.checkout-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.checkout-success-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.checkout-success-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.whatsapp-submit-btn {
  background: #25d366;
  color: #042f1a !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  margin-top: 1rem;
}

.whatsapp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ================= ADMIN: STUDENT MANAGEMENT SYSTEM ================= */
.admin-tab-nav {
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  width: fit-content;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #040914;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.admin-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

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

.admin-filter-select,
.admin-filter-group select {
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 36px 9px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: var(--transition);
}

.admin-filter-select:hover,
.admin-filter-group select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(22, 27, 34, 0.95);
}

.admin-filter-select:focus,
.admin-filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: rgba(22, 27, 34, 0.95);
}

.admin-filter-select option,
.admin-filter-group select option {
  background: #0f172a;
  color: #f0f6fc;
  padding: 10px;
}

.student-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.student-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.student-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #000;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.student-name-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.student-contacts {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.student-contacts a {
  color: #38bdf8;
  text-decoration: none;
}

.student-contacts a:hover {
  text-decoration: underline;
}

.student-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-expired {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.student-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.info-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 3px;
}

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

.student-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.student-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modal styles */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.admin-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* ================= SECTION 6: CONTACT & SUPPORT ================= */
.contact-section {
  position: relative;
  padding-bottom: 4rem;
}

.contact-header-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.5rem auto 0;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.contact-channels-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-channel-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.wa-channel-card:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15);
}

.ig-channel-card:hover {
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 12px 32px rgba(225, 48, 108, 0.15);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.85rem;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.wa-icon-wrapper {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.ig-icon-wrapper {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.15), rgba(220, 39, 67, 0.15), rgba(188, 24, 136, 0.15));
  border: 1px solid rgba(225, 48, 108, 0.35);
  color: #f43f5e;
}

.call-icon-wrapper {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.contact-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.wa-status-badge {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.ig-status-badge {
  background: rgba(225, 48, 108, 0.12);
  color: #f472b6;
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.call-status-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.contact-channel-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.contact-channel-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.contact-detail-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-wa-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-wa-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  filter: brightness(1.08);
}

.btn-ig-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
}

.btn-ig-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.45);
  filter: brightness(1.08);
}

/* Contact Message Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  position: relative;
}

.contact-form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.contact-form-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-success-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.contact-success-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-success-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #34d399;
  margin-bottom: 0.35rem;
}

.contact-success-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================= ADMIN: INQUIRIES & MESSAGES ================= */
.inquiries-badge-count {
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
  display: inline-block;
  vertical-align: middle;
}

.inquiries-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.inquiry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  backdrop-filter: var(--glass);
}

.inquiry-card.unread {
  border-left: 4px solid #fbbf24;
  background: rgba(33, 38, 45, 0.85);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.inquiry-card.replied {
  border-left: 4px solid #10b981;
}

.inquiry-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}

.inquiry-sender-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.inquiry-sender-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inquiry-sender-meta a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.inquiry-sender-meta a:hover {
  text-decoration: underline;
}

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

.inquiry-badge-subject {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.inquiry-badge-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.inquiry-badge-status.unread {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.inquiry-badge-status.replied {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.inquiry-message-content {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1.2rem;
}

.inquiry-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.inquiry-timestamp {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}




