/* ==========================================================================
   SWARVEDA MUSIC ACADEMY PREMIUM STYLING SYSTEM
   Colors: Deep Cocoa Brown, Soft Off-White/Cream, Warm Mustard Gold
   Typography: Cinzel (Headings), Montserrat (Body)
   ========================================================================== */

:root {
  --cocoa-dark: #1b0e0c;
  --cocoa-primary: #2d1b16;
  --cocoa-light: #4a312a;
  --cocoa-border: rgba(45, 27, 22, 0.15);
  --cream-canvas: #fbf9f6;
  --cream-card: #f4efe6;
  --cream-light: #ffffff;
  --gold-primary: #d4af37;
  --gold-hover: #e5be53;
  --gold-light: #fbf6e6;
  --text-dark: #2d1b16;
  --text-muted: #6e5850;
  --text-light: #fbf9f6;
  
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --error: #c62828;
  --error-light: #ffebee;
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(27, 14, 12, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 14, 12, 0.12);
  --shadow-lg: 0 16px 40px rgba(27, 14, 12, 0.2);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--cream-canvas);
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--cream-canvas);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   TYPOGRAPHY & TEXT UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.margin-top { margin-top: 1.5rem; }
.margin-bottom { margin-bottom: 1.5rem; }
.full-width { grid-column: 1 / -1 !important; }
.req { color: var(--error); }

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(45, 27, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-light);
}

.logo-accent {
  color: var(--gold-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.portal-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.signup-nav-btn {
  background-color: var(--gold-primary) !important;
  color: var(--cocoa-dark) !important;
  border: 1px solid var(--gold-primary) !important;
  font-weight: 600 !important;
}

.signup-nav-btn:hover {
  background-color: var(--gold-hover) !important;
}

.nav-link {
  color: rgba(251, 249, 246, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.4rem 0.35rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-smooth);
}

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

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

.nav-btn-cta {
  background-color: var(--gold-primary);
  color: var(--cocoa-dark) !important;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-btn-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.nav-btn-cta::after {
  display: none;
}

.portal-btn {
  background-color: rgba(251, 249, 246, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.78rem;
}

.portal-btn:hover {
  background-color: rgba(251, 249, 246, 0.2);
}

.portal-btn::after {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--gold-primary);
  color: var(--cocoa-dark);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(45, 27, 22, 0.2);
}

.btn-secondary:hover {
  background-color: var(--cocoa-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 27, 22, 0.35);
}

.btn-success {
  background-color: var(--success);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-success:hover {
  background-color: #276629;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--cocoa-primary);
  color: var(--cocoa-primary);
}

.btn-outline:hover {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
}

.btn-full {
  display: flex;
  width: 100%;
}

.btn-large {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   APP STRUCTURE & ROUTING CONTROLS
   ========================================================================== */
.app-viewport {
  margin-top: 0;
  min-height: 100vh;
}

.spa-section {
  display: none;
  animation: sectionFadeIn 0.6s ease-out forwards;
}

.spa-section.active {
  display: block;
}

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

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-heading {
  font-size: 2.5rem;
  color: var(--cocoa-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30%;
  width: 40%;
  height: 3px;
  background-color: var(--gold-primary);
}

.section-subheading {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1.5rem auto 3.5rem auto;
}

/* ==========================================================================
   HOME PAGE SLIDING BANNER (#home)
   ========================================================================== */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  background-color: var(--cocoa-dark);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.slide-content {
  max-width: 800px;
  padding: 2rem;
  color: var(--text-light);
  z-index: 2;
  transform: translateY(20px);
  animation: slideContentUp 1s 0.3s ease-out forwards;
}

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

.slide-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(27, 14, 12, 0.7);
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(27, 14, 12, 0.7);
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(251, 249, 246, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator.active {
  background-color: var(--gold-primary);
  transform: scale(1.2);
}

/* Floating Card inside Home View */
.floating-vocal-card {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 10;
  background-color: rgba(45, 27, 22, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(5px);
  animation: floatMotion 4s ease-in-out infinite;
}

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

.card-wave-icon {
  color: var(--gold-primary);
  font-size: 1.25rem;
}

.card-text {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ==========================================================================
   ABOUT GRID WITH SCROLL EFFECT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background-color: var(--cream-card);
  padding: 3rem 2rem;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.about-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  color: var(--cocoa-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

/* Scroll Fade Animations */
.scroll-fade {
  opacity: 0.2;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   LIVE COURSES SECTION WITH MOBILE CAROUSEL
   ========================================================================== */
.courses-carousel-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.courses-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.course-card {
  background-color: var(--cream-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid rgba(45, 27, 22, 0.05);
}

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

.course-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--cocoa-primary);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
}

.course-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--cocoa-light);
  background-size: cover;
  background-position: center;
}

.course-card-body {
  padding: 2rem;
}

.course-card-body h3 {
  color: var(--cocoa-primary);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5rem;
  line-height: 1.5rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--cocoa-border);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   PRE-RECORDED MARKETPLACE
   ========================================================================== */
.prerecorded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  gap: 2rem;
  justify-content: center;
}

.prerec-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cocoa-primary);
}

.btn-unlocked {
  background-color: var(--success-light);
  color: var(--success);
  cursor: default;
  border: 1px solid var(--success);
  padding: 0.8rem 1.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--cream-light);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 27, 22, 0.05);
}

.stars {
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.student-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--cream-card);
  color: var(--cocoa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--gold-primary);
}

.student-author h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cocoa-primary);
}

.student-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INTAKE & BOOKING CALENDAR HUB (#book-slot)
   ========================================================================== */
.intake-hub-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.intake-form-column, .calendar-card, .time-slots-card {
  background-color: var(--cream-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.calendar-card {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
}

/* Intake Form controls */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.calendar-card label, .auth-form label {
  color: inherit;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cocoa-border);
  border-radius: 4px;
  background-color: var(--cream-light);
  font-family: var(--font-sans);
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-summary-notice {
  background-color: rgba(45, 27, 22, 0.05);
  border-left: 3px solid var(--cocoa-primary);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.selected-slot-preview {
  background-color: var(--gold-light);
  border: 1px dashed var(--gold-primary);
  padding: 1rem;
  border-radius: 4px;
  color: var(--cocoa-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Custom Calendar Styling */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-header h3 {
  font-size: 1.25rem;
  color: var(--gold-primary);
}

.calendar-header button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
}

.calendar-header button:hover {
  color: var(--gold-primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(251, 249, 246, 0.6);
  margin-bottom: 0.75rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day:not(.empty):hover {
  background-color: rgba(251, 249, 246, 0.15);
}

.calendar-day.today {
  border: 1px solid var(--gold-primary);
}

.calendar-day.selected {
  background-color: var(--gold-primary) !important;
  color: var(--cocoa-dark) !important;
  font-weight: 700;
}

.calendar-day.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-tz-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 249, 246, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(251, 249, 246, 0.6);
}

/* Time Slots Card */
.time-slots-card {
  margin-top: 1.5rem;
}

.time-slots-card h4 {
  font-size: 1.05rem;
  color: var(--cocoa-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--cocoa-border);
  padding-bottom: 0.5rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
}

.slot-btn {
  background-color: var(--cream-light);
  border: 1px solid var(--cocoa-border);
  padding: 0.6rem 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slot-btn:hover {
  border-color: var(--gold-primary);
  background-color: var(--gold-light);
}

.slot-btn.selected {
  background-color: var(--gold-primary);
  color: var(--cocoa-dark);
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.slot-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: rgba(0,0,0,0.05);
}

/* ==========================================================================
   PORTAL LOGINS & DASHBOARDS
   ========================================================================== */
.portal-box {
  background-color: var(--cream-card);
  max-width: 500px;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-tabs {
  display: flex;
  background-color: var(--cocoa-primary);
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: rgba(251, 249, 246, 0.6);
  padding: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  color: var(--gold-primary);
  background-color: rgba(251, 249, 246, 0.05);
  border-bottom: 3px solid var(--gold-primary);
}

.auth-forms-container {
  padding: 3rem 2.5rem;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h3 {
  font-size: 1.6rem;
  color: var(--cocoa-primary);
  margin-bottom: 0.5rem;
}

.auth-form label {
  color: var(--cocoa-primary);
}

.auth-demo-hint {
  background-color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  color: #705510;
  line-height: 1.5;
}

.auth-demo-hint code {
  background-color: rgba(0,0,0,0.05);
  padding: 0.15rem 0.3rem;
  border-radius: 2px;
}

/* User Role Badges */
.user-role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.user-role-badge.student { background-color: #e3f2fd; color: #1565c0; }
.user-role-badge.teacher { background-color: #f3e5f5; color: #6a1b9a; }
.user-role-badge.admin { background-color: #fff8e1; color: #f57f17; }

/* Dashboards Generic Layout */
.dashboard-box {
  background-color: var(--cream-card);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  animation: sectionFadeIn 0.5s ease-out;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cocoa-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.dash-card {
  background-color: var(--cream-light);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.dash-card h3 {
  font-size: 1.2rem;
  color: var(--cocoa-primary);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Student Dashboard Items */
.credit-counter {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--gold-light);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.credit-counter span {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cocoa-primary);
  line-height: 1;
}

.unlocked-courses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unlocked-course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: var(--cream-card);
  border-radius: 4px;
}

.unlocked-course-thumb {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.unlocked-course-info h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cocoa-primary);
}

.unlocked-course-info span {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
}

.unlocked-course-btn {
  margin-left: auto;
  background-color: var(--success);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-weight: 600;
}

.unlocked-course-btn:hover {
  background-color: #246327;
}

/* Dashboard Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.dashboard-table th {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  font-weight: 600;
  padding: 1rem;
}

.dashboard-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--cocoa-border);
  color: var(--text-dark);
}

.dashboard-table tbody tr:hover {
  background-color: rgba(45, 27, 22, 0.02);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
}

.status-badge.pending { background-color: #fff9c4; color: #f57f17; }
.status-badge.confirmed { background-color: #e8f5e9; color: #2e7d32; }
.status-badge.cancelled { background-color: #efebe9; color: #4e342e; }
.status-badge.no-show { background-color: #ffebee; color: #c62828; }

/* Instructor dashboard styling */
.teacher-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--cream-light);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 3px solid var(--gold-primary);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cocoa-primary);
  margin-bottom: 0.25rem;
}

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

.classroom-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #e3f2fd;
  color: #1e88e5;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid #bbdefb;
}

.classroom-link-btn:hover {
  background-color: #bbdefb;
}

.disabled-link {
  color: var(--text-muted);
  background-color: #eee;
  border-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* Actions in tables */
.table-action-group {
  display: flex;
  gap: 0.5rem;
}

/* Admin Dashboard Double-Column Form */
.progress-notes-editor-box {
  display: flex;
  flex-direction: column;
}

/* Notifications feed in student dashboard */
.notification-feed-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--cocoa-border);
  background-color: var(--cream-light);
  border-radius: 4px;
  padding: 0.5rem;
}

.notification-feed-item {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(45, 27, 22, 0.05);
  font-size: 0.8rem;
}

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

.notification-feed-item .notif-title {
  font-weight: 700;
  color: var(--cocoa-primary);
  display: block;
}

.notification-feed-item .notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: block;
}

/* ==========================================================================
   STRIPE SIMULATED CHECKOUT MODAL
   ========================================================================== */
.payment-modal-overlay, .legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 14, 12, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.payment-modal-box {
  background-color: var(--cream-canvas);
  border-radius: 8px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.payment-header {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-primary);
}

.stripe-icon {
  color: var(--gold-primary);
  font-size: 1.15rem;
}

.payment-close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.payment-summary {
  background-color: var(--cream-card);
  padding: 1.5rem;
  border-bottom: 1px solid var(--cocoa-border);
}

.payment-summary h4 {
  font-size: 1.1rem;
  color: var(--cocoa-primary);
  margin-bottom: 0.5rem;
}

.payment-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.price-val {
  font-weight: 700;
  color: var(--cocoa-primary);
  font-size: 1.1rem;
}

.payment-details-form {
  padding: 2rem 1.5rem;
}

.simulated-card-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--cream-light);
  border: 1px solid var(--cocoa-border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.simulated-card-input-wrapper input {
  border: none !important;
  box-shadow: none !important;
  padding: 0.6rem 0.25rem !important;
}

.card-brand {
  color: #6b7c93;
  padding-left: 0.5rem;
}

.simulated-stripe-badge {
  font-size: 0.75rem;
  color: #6b7c93;
  text-align: center;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==========================================================================
   LEGAL MODAL OVERLAYS
   ========================================================================== */
.legal-modal-content {
  background-color: var(--cream-canvas);
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--cocoa-border);
}

.legal-header {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

.legal-body {
  padding: 2.5rem;
  overflow-y: auto;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-body h3 {
  font-size: 1.2rem;
  color: var(--cocoa-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   NOTIFICATION MATRIX TOAST
   ========================================================================== */
.matrix-notification-toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  border-left: 4px solid var(--gold-primary);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.matrix-notification-toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.toast-content i {
  color: var(--gold-primary);
}

.toast-close {
  background: none;
  border: none;
  color: rgba(251, 249, 246, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text-light);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--cocoa-dark);
  color: rgba(251, 249, 246, 0.6);
  padding: 4rem 2rem 2rem 2rem;
  border-top: 3px solid var(--gold-primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-info {
  max-width: 400px;
}

.footer-info h3 {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(251, 249, 246, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 992px) {
  .intake-hub-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .slide-subtitle {
    font-size: 1rem;
  }
  
  .carousel-container {
    height: 60vh;
  }
  
  .navbar-container {
    padding: 1rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cocoa-primary);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--cocoa-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-menu.show {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-btn-cta {
    width: 80%;
    text-align: center;
    margin-left: 0;
  }
  
  .portal-nav-group {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 1.5rem;
    align-items: center;
  }
  
  .portal-btn {
    width: 80%;
    text-align: center;
  }
  
  .login-nav-btn, .signup-nav-btn, .dashboard-nav-btn {
    width: 100% !important;
    text-align: center;
  }

  /* Transform live classes row into swipeable horizontal container on mobile */
  .courses-carousel-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
  }
  
  .courses-row {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    margin-top: 1rem;
  }
  
  .course-card {
    width: 290px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .floating-vocal-card {
    bottom: 2rem;
    right: 2rem;
    left: 2rem;
    justify-content: center;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Helper Class to Hide elements */
.hidden {
  display: none !important;
}

#portal {
  padding-top: 76px;
}

/* ==========================================================================
   FOOTER SOCIAL ICONS
   ========================================================================== */
.footer-social-icons {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer-social-icons a {
  font-size: 1.4rem;
  color: rgba(251, 249, 246, 0.7);
  transition: var(--transition-smooth);
}

.footer-social-icons a:hover {
  color: var(--gold-primary);
  transform: scale(1.15);
}

/* ==========================================================================
   UNIFIED PRIVACY CONSENT BANNER (GDPR, CCPA, DPDP COMPLIANT)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(27, 14, 12, 0.98);
  border-top: 3px solid var(--gold-primary);
  color: var(--text-light);
  z-index: 9999;
  padding: 1.5rem 2rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.consent-text h4 {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consent-text p {
  font-size: 0.85rem;
  color: rgba(251, 249, 246, 0.8);
  line-height: 1.5;
}

.consent-preferences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  background-color: rgba(251, 249, 246, 0.05);
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 249, 246, 0.1);
  margin: 0.5rem 0;
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pref-label {
  display: flex;
  flex-direction: column;
}

.pref-label strong {
  font-size: 0.85rem;
  color: var(--text-light);
}

.preference-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-actions button {
  min-height: 48px;
  padding: 0 1.5rem;
}

/* ==========================================================================
   FLOATING SOCIAL CHAT WIDGET
   ========================================================================== */
.social-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  font-family: var(--font-sans);
}

.chat-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  color: var(--cocoa-dark);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  position: relative;
}

.chat-trigger-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--gold-hover);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--error);
  color: white;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--gold-primary);
  animation: bounce 2s infinite;
}

.chat-menu {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  background-color: var(--cream-light);
  border: 1px solid var(--cocoa-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-menu-header {
  background-color: var(--cocoa-primary);
  color: var(--text-light);
  padding: 1.25rem;
  border-bottom: 2px solid var(--gold-primary);
}

.chat-menu-header h4 {
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.chat-links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.5rem;
}

.chat-links.blurred-disabled {
  filter: blur(2.5px);
  pointer-events: none;
  opacity: 0.5;
}

.chat-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  min-height: 48px;
}

.chat-link:hover {
  background-color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(4px);
}

.chat-link i {
  font-size: 1.6rem;
}

.whatsapp-chat i { color: #25D366; }
.messenger-chat i { color: #0084FF; }
.instagram-chat i { color: #E1306C; }

.chat-link strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* ==========================================================================
   VISUAL TELEMETRY FEED CONSOLE
   ========================================================================== */
.telemetry-console-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 380px;
  background-color: #0f0a09;
  border: 1px solid #2d1b16;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  font-family: 'Courier New', Courier, monospace;
  color: #4af626;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.telemetry-console-widget.collapsed {
  height: 45px;
}

.telemetry-header {
  background-color: #1b0e0c;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(74, 246, 38, 0.15);
  height: 45px;
}

.telemetry-header h4 {
  font-size: 0.85rem;
  color: #4af626;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #4af626;
  border-radius: 50%;
  box-shadow: 0 0 8px #4af626;
  animation: pulse 1.5s infinite;
}

.telemetry-toggle-btn {
  background: none;
  border: none;
  color: #4af626;
  cursor: pointer;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telemetry-body {
  height: 220px;
  overflow-y: auto;
  padding: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  background-color: #0c0807;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-entry {
  border-bottom: 1px solid rgba(74, 246, 38, 0.05);
  padding-bottom: 0.25rem;
  word-break: break-all;
}

.log-entry.system { color: #a5d6a7; }
.log-entry.gtag { color: #81d4fa; }
.log-entry.fb_pixel { color: #f48fb1; }
.log-entry.blocked { color: #ef9a9a; }
.log-time { color: rgba(74, 246, 38, 0.5); }
.log-source { font-weight: bold; }
.log-event { color: #fff; }
.log-params { color: #ffb74d; }

.usd-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 0.5rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 246, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 246, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 246, 38, 0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

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

/* ==========================================================================
   MOBILE TOUCH TARGET SIZE COMPATIBILITY (MIN 48PX SCREEN TARGETS)
   ========================================================================== */
.slot-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-close, .payment-close-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .mobile-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cookie-consent-banner {
    padding: 1.25rem 1rem;
  }

  .cookie-consent-banner .btn {
    width: 100%;
    min-height: 48px;
  }

  .consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .social-chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .telemetry-console-widget {
    left: 1rem;
    bottom: 5.5rem;
    width: calc(100% - 2rem);
  }
}
