/* ==========================================================================
   YOGA STUDIO MASTER DESIGN SYSTEM
   Dynamic Branding, Zero Emojis, Pure Responsive Vanilla CSS
   ========================================================================== */

:root {
  /* Default Branding Palette (Overridden dynamically via studio settings) */
  --brand-primary: #0d9488;
  --brand-primary-rgb: 13, 148, 136;
  --brand-primary-light: rgba(13, 148, 136, 0.12);
  --brand-primary-glow: rgba(13, 148, 136, 0.25);
  
  --brand-secondary: #0f766e;
  --brand-secondary-rgb: 15, 118, 110;
  
  --brand-accent: #f59e0b;
  --brand-accent-rgb: 245, 158, 11;
  --brand-accent-light: rgba(245, 158, 11, 0.14);

  /* Serene Surface & Neutral Colors */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: var(--brand-primary);

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;

  /* Typography & Sizing */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-brand: 0 10px 20px -5px var(--brand-primary-glow);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.th-hide{
	display: none;
}
.ctitle{
	font-weight: bold; text-transform: uppercase;
}
main {
  flex: 1 0 auto;
}

img, svg {
  vertical-align: middle;
}

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

a:hover {
  color: var(--brand-secondary);
}

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

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1400px;
}

/* Announcement Top Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.announcement-bar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* Header & Navigation Bar */
.site-header {
  background-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

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

/* Studio Branding Logo */
.studio-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-light);
  border-radius: 50%;
  padding: 4px;
}

.brand-logo-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-subtext {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navigation Links */
.main-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

/* Header Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Portal Quick Dropdown / Switcher */
.portal-select-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background-color: var(--brand-secondary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px var(--brand-primary-glow);
}

.btn-secondary {
  background-color: var(--brand-primary-light);
  color: var(--brand-secondary);
  border-color: rgba(var(--brand-primary-rgb), 0.2);
}

.btn-secondary:hover {
  background-color: rgba(var(--brand-primary-rgb), 0.18);
  color: var(--brand-secondary);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

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

.btn-accent {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-danger {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at 80% 20%, rgba(var(--brand-primary-rgb), 0.08) 0%, rgba(248, 250, 252, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(var(--brand-accent-rgb), 0.06) 0%, rgba(248, 250, 252, 0) 60%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--brand-primary-light);
  color: var(--brand-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--brand-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item .stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

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

/* Hero Quick Portal Cards */
.hero-portal-deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-gateway-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.portal-gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, var(--brand-primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.portal-gateway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--card-accent, var(--brand-primary));
}

.portal-gateway-card:hover::before {
  opacity: 1;
}

.portal-gateway-card.portal-customer { --card-accent: var(--brand-primary); }
.portal-gateway-card.portal-instructor { --card-accent: #0284c7; }
.portal-gateway-card.portal-admin { --card-accent: #7c3aed; }

.portal-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--card-bg, var(--brand-primary-light));
  color: var(--card-color, var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-customer .portal-card-icon { --card-bg: var(--brand-primary-light); --card-color: var(--brand-secondary); }
.portal-instructor .portal-card-icon { --card-bg: rgba(2, 132, 199, 0.12); --card-color: #0284c7; }
.portal-admin .portal-card-icon { --card-bg: rgba(124, 58, 237, 0.12); --card-color: #7c3aed; }

.portal-card-content {
  flex: 1;
}

.portal-card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.portal-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.portal-card-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.portal-gateway-card:hover .portal-card-arrow {
  transform: translateX(4px);
  color: var(--brand-primary);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

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

/* Cards & Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

/* Yoga Class Card */
.class-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.class-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-primary);
}

.class-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.class-card-body {
  flex: 1;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.class-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.class-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.class-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.class-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Schedule Matrix / Table */
.schedule-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

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

.schedule-table th {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  vertical-align: middle;
}

.schedule-table tbody tr:hover {
  background-color: var(--brand-primary-light);
}

.time-slot {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.time-slot-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

/* Instructor Card */
.instructor-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.instructor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border-subtle);
}

.instructor-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.instructor-spec {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.instructor-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Badges & Tags */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: #b45309; }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger); }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info); }
.badge-neutral { background: var(--bg-alt);          color: var(--text-secondary); }

.difficulty-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diff-all          { background: rgba(var(--brand-primary-rgb), 0.12); color: var(--brand-secondary); }
.diff-beginner     { background: #ecfdf5; color: #047857; }
.diff-intermediate { background: #eff6ff; color: #1d4ed8; }
.diff-advanced     { background: #fff1f2; color: #be123c; }

/* Delivery Mode Badges */
.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-in-person { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-online    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-both      { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

/* Attendance Toggle Controls */
.attendance-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-alt);
  padding: 0.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.att-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.att-toggle-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.att-toggle-btn.btn-present.active-attended,
.att-toggle-btn.btn-present.active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: var(--shadow-sm);
}

.att-toggle-btn.btn-noshow.active-absent,
.att-toggle-btn.btn-noshow.active {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: var(--shadow-sm);
}

/* Responsive Table Wrapper & Overflow Scrolling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

.schedule-table,
.data-table,
.table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.data-table th,
.table th {
  white-space: nowrap;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.675rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Fixed Floating Flash Notification Overlay */
.flash-overlay-container {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 99999;
  max-width: 440px;
  width: calc(100% - 3rem);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flash-overlay-container .flash-alert,
.flash-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  font-size: 0.925rem;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: flashToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.flash-alert .flash-icon {
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.flash-alert .flash-text {
  flex: 1;
  line-height: 1.4;
}

.flash-alert .flash-close {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  color: inherit;
  margin-left: 0.75rem;
  padding: 2px;
  border-radius: 4px;
}

.flash-alert .flash-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.06);
}

.flash-success { background-color: rgba(236, 253, 245, 0.95); color: #065f46; border: 1px solid #6ee7b7; }
.flash-error   { background-color: rgba(254, 242, 242, 0.95); color: #991b1b; border: 1px solid #fca5a5; }
.flash-warning { background-color: rgba(255, 251, 235, 0.95); color: #92400e; border: 1px solid #fcd34d; }
.flash-info    { background-color: rgba(240, 249, 255, 0.95); color: #075985; border: 1px solid #7dd3fc; }

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Window */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-backdrop[style*="display: flex"],
.modal-overlay[style*="display: flex"],
.modal-backdrop.active,
.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 960px;
  width: 94%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-smooth);
}

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

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.modal-close,
.modal-close-btn {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
  text-decoration: none !important;
  outline: none !important;
}

.modal-close:hover,
.modal-close-btn:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transform: scale(1.12) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5) !important;
}

.modal-close:active,
.modal-close-btn:active {
  transform: scale(0.95) !important;
}

.modal-close svg,
.modal-close-btn svg {
  stroke: #ffffff !important;
  fill: none !important;
  width: 16px !important;
  height: 16px !important;
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-alt);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand .brand-subtext {
  color: #94a3b8;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
	
  .container {
    padding: 0 1.25rem;
  }
  .hero-grid,
  .hero-grid-responsive {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.th-class,.th-level{
	display: none;
}
.ctitle-cat{
	text-transform: uppercase; font-size: .9em;
}

@media (max-width: 768px) {
	.th-instructor,.th-level,.th-available,.th-class{
		display: none;
	}
  .container {
    padding: 0 1rem;
  }
  .nav-wrapper {
    height: auto;
    min-height: 60px;
    padding: 0.6rem 0;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .studio-brand-logo {
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 1.15rem !important;
  }
  .brand-subtext {
    font-size: 0.725rem;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .nav-actions .btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.65rem !important;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section {
    padding: 2.75rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
    width: calc(100% + 1rem);
  }
  .schedule-table {
   
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0;
  }
  .nav-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand-subtext {
    display: none;
  }
  .nav-actions {
    gap: 0.3rem;
  }
  .nav-actions .btn {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.55rem !important;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .modal-dialog {
    width: 95% !important;
    padding: 1rem !important;
    margin: 0.75rem auto !important;
  }
  .schedule-table {
   
  }
}

/* ==========================================================================
   AI Assistant Floating Chatbot Widget
   ========================================================================== */
.prana-chat-toggle-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.prana-chat-toggle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.chat-btn-icon {
  display: flex;
  align-items: center;
}

.chat-unread-badge {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* Chat Modal Window */
.prana-chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 9995;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 530px;
  max-height: calc(100vh - 7rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prana-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.prana-chat-header {
  background: var(--brand-primary);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prana-chat-title-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prana-chat-avatar {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prana-chat-name {
  font-weight: 700;
  font-size: 1rem;
}

.prana-chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
}

.prana-chat-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.prana-chat-close-btn:hover {
  opacity: 1;
}

/* Chat Messages */
.prana-chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-alt);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg.msg-bot {
  align-self: flex-start;
}

.chat-msg.msg-user {
  align-self: flex-end;
}

.chat-msg .msg-bubble {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg.msg-bot .msg-bubble {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.msg-user .msg-bubble {
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Suggestions Container */
.chat-suggestions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.chat-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-chip:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Footer Input Bar */
.prana-chat-footer {
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.prana-chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  outline: none;
  background: var(--bg-alt);
  color: var(--text-primary);
}

.prana-chat-input:focus {
  border-color: var(--brand-primary);
  background: var(--bg-surface);
}

.prana-chat-send-btn {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.prana-chat-send-btn:hover {
  opacity: 0.9;
}
