/* ==========================================================================
   TEACHER OS — Mobile-First Personal Teacher Copilot Design System
   Engineered for seamless native Android UX, touch ergonomics, and private branding.
   ========================================================================== */

:root {
  --primary-500: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --accent-500: #059669;
  --accent-600: #047857;
  --accent-50: #ECFDF5;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --danger-500: #EF4444;
  --danger-50: #FEF2F2;
  --warning-500: #F59E0B;
  --warning-50: #FFFBEB;
  --bg-app: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px -2px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Cairo", "Tajawal", sans-serif;
  background: #0B1120;
  color: var(--text-main);
  direction: rtl;
  display: block !important;
  width: 100% !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Mobile-First Shell - Strictly Hidden by Default */
#view-app-workspace,
.app-viewport-wrapper {
  display: none !important;
  width: 100%;
}

body.in-app-mode #view-app-workspace,
body.in-app-mode .app-viewport-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex !important;
  justify-content: center;
  background: #0B1120;
}

.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.4);
  padding-bottom: 78px; /* Clearance for bottom nav */
}

@media (max-width: 520px) {
  body.in-app-mode, body.in-app-mode .app-viewport-wrapper {
    background: var(--bg-app);
  }
  .mobile-app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ── Top Bar ─────────────────────────────────────────────── */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
}

.topbar-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teacher-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
}

.teacher-avatar-circle .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.teacher-title-wrap {
  display: flex;
  flex-direction: column;
}

.teacher-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.teacher-subtitle {
  font-size: 0.74rem;
  color: var(--primary-600);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:active {
  transform: scale(0.95);
  background: #F1F5F9;
}

/* Persona Switcher Segmented Bar */
.persona-segmented-bar {
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  margin-top: 8px;
}

.persona-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 4px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.persona-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-weight: 800;
}

/* ── Content Viewport ────────────────────────────────────── */
.app-content-viewport {
  flex: 1;
  padding: 14px;
}

.portal-view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.portal-view.active {
  display: block;
}

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

/* ── Mobile Tab Panes ────────────────────────────────────── */
.m-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.m-tab-pane.active {
  display: block;
}

/* ── Clean Mobile Cards ──────────────────────────────────── */
.m-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.m-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.m-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Copilot Hero Card */
.copilot-hero-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(5,150,105,0.08) 100%);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.copilot-hero-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.copilot-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.copilot-hero-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
}

.copilot-hero-text {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Stats Grid */
.m-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.m-stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.m-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.m-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.m-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Quick Actions Grid */
.m-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.m-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  text-align: right;
}

.m-action-btn:active {
  transform: scale(0.97);
  background: #F8FAFC;
}

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

/* Student Cards List */
.m-student-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.m-student-card:active {
  border-color: var(--primary-500);
}

.m-student-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.m-student-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EEF2FF;
  color: var(--primary-600);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.m-student-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1E293B;
}

.m-student-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.m-student-pairing-box {
  background: #FEF3C7;
  border: 1px dashed #F59E0B;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pairing-pin-badge {
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 1px;
  background: #FFF;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #FCD34D;
}

.m-student-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-primary { background: var(--primary-50); color: var(--primary-700); }
.badge-good { background: #ECFDF5; color: #047857; }
.badge-urgent { background: #FEF2F2; color: #B91C1C; }
.badge-warning { background: #FFFBEB; color: #B45309; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 44px;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: #334155; }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 10px rgba(37,211,102,0.25); }
.btn-block { width: 100%; }

/* Input Fields */
.m-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #FFFFFF;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.m-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.m-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

/* ── Bottom Navigation Bar ───────────────────────────────── */
.m-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.m-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  min-height: 52px;
  transition: all 0.2s;
}

.m-nav-tab.active {
  color: var(--primary-600);
}

.m-nav-tab .icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* ── Bottom Sheets (Modals) ──────────────────────────────── */
.m-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.m-sheet-overlay.active {
  display: flex;
}

.m-sheet-content {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 16px 18px 28px 18px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.m-sheet-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 14px auto;
}

.m-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.m-sheet-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E293B;
}

.m-sheet-close {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Splash / Onboarding Screen ──────────────────────────── */
.m-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.m-splash-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  max-height: 95vh;
  overflow-y: auto;
  text-align: center;
}

.m-splash-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

.m-splash-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.m-splash-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 16px;
}

.m-role-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.m-role-pill {
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.m-role-pill.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

.demo-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.demo-chip-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.demo-chip-btn:active {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

/* Branding Studio Swatches */
.branding-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px 0;
}

.color-swatch-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.color-swatch-card.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 6px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swatch-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1E293B;
  display: block;
}

/* Showcase Items */
.showcase-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.hall-of-fame-item {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

/* ── Chat & Socratic Coach Bubbles ───────────────────────── */
.chat-stream-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 4px;
  margin-bottom: 10px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  border-bottom-right-radius: 4px;
}

.chat-bubble.student {
  align-self: flex-end;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-bottom-left-radius: 4px;
}

.chat-bubble.teacher {
  align-self: flex-start;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Quiz & Question Elements ────────────────────────────── */
.quiz-q-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  background: #F8FAFC;
}

.quiz-option.correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  font-weight: 700;
}

/* ── Dropzone & Uploads ──────────────────────────────────── */
.upload-dropzone {
  border: 2px dashed #93C5FD;
  background: #F0F7FF;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.upload-dropzone:hover {
  background: #E0E7FF;
  border-color: var(--primary-500);
}

/* ── Progress & Pulse ────────────────────────────────────── */
.m-progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}

.m-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.pulse-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.parent-locked-banner {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

/* ==========================================================================
   DARK LUXURY PORTFOLIO & TEACHER SHOWCASE (Image Reference Template)
   Features deep obsidian palette, purple/indigo radial glow, floating code card,
   skills progress bars, and Mo3lem.eg / Mo3lem.chat integrated suites.
   ========================================================================== */

/* View Visibility Toggles */
#view-dark-showcase {
  display: block;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

#view-app-workspace {
  display: none !important;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.dark-portfolio-wrapper {
  background: #0B0F19;
  color: #F8FAFC;
  width: 100%;
  min-height: 100vh;
  direction: rtl;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Cairo", "Tajawal", sans-serif;
  overflow-x: hidden;
}

/* ── Showcase Navbar ─────────────────────────────────────── */
.portfolio-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-code {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-code .brand-tag {
  color: #8B5CF6;
  font-weight: 900;
}

.nav-links-wrap {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link-item {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link-item:hover, .nav-link-item.active {
  color: #FFFFFF;
}

.btn-top-cta {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-top-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5);
}

/* ── Hero Section ────────────────────────────────────────── */
.portfolio-hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 40px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.pill-teacher-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #C7D2FE;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-main-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.hero-main-title .highlight-purple {
  background: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #E2E8F0;
  margin-bottom: 14px;
}

.hero-lead-text {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-tech-stack .tech-stack-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.tech-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #CBD5E1;
}

/* ── Hero Visual Column ──────────────────────────────────── */
.hero-visual-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-glow-aura {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, rgba(99, 102, 241, 0.3) 45%, transparent 70%);
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
}

.hero-teacher-portrait-box {
  position: relative;
  z-index: 2;
  width: 270px;
  height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 20px;
}

.floating-code-card {
  position: absolute;
  bottom: -15px;
  left: -20px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.55);
  font-family: monospace;
  font-size: 0.74rem;
  max-width: 260px;
  direction: ltr;
  text-align: left;
  line-height: 1.5;
}

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

.code-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

/* ── About & Stats Section ───────────────────────────────── */
.showcase-stats-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.dark-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dark-stat-card {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.dark-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
}

.dark-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dark-stat-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
}

.dark-stat-label {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 3px;
}

/* ── Skills & Mastery Section ────────────────────────────── */
.showcase-skills-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: right;
  margin-top: 24px;
}

.dark-skill-item {
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
}

.dark-skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #F1F5F9;
}

.dark-skill-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.dark-skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
}

/* ── Featured Projects / Courses & Booklets ──────────────── */
.showcase-projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.dark-project-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.dark-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.project-number-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: #A78BFA;
  background: rgba(139, 92, 246, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.project-preview-mock {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 2.2rem;
}

.project-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.project-card-desc {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.project-card-cta {
  color: #818CF8;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ── Mo3lem Chat Section (AI Physics Assistant) ──────────── */
.mo3lem-chat-section {
  max-width: 900px;
  margin: 30px auto 50px auto;
  padding: 0 20px;
}

.mo3lem-chat-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(11, 15, 25, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.preset-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 12px 0;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818CF8;
  color: #FFFFFF;
}

/* ── Testimonial & Footer ────────────────────────────────── */
.showcase-footer-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-testimonial-box {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px;
}

.floating-app-launcher-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-app-launcher-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

/* Responsive adjustments */
@media (max-width: 868px) {
  .portfolio-hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-actions-row {
    justify-content: center;
  }
  .hero-lead-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual-column {
    margin-top: 20px;
  }
  .showcase-stats-section {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-cards-grid {
    grid-template-columns: 1fr;
  }
  .showcase-footer-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-links-wrap {
    display: none;
  }
}


/* ==========================================================================
   UNIFIED DARK LUXURY THEME & CURRICULUM VAULT STYLING
   Enforces consistent dark palette (#0B0F19 / #0F172A), neon glowing accents,
   and responsive mobile components across the entire operational workspace.
   ========================================================================== */

/* 1. Base App Viewport & Shell */
body.in-app-mode .app-viewport-wrapper {
  background: #0B0F19 !important;
  color: #F8FAFC !important;
}

.mobile-app-shell {
  background: #0B0F19 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7) !important;
}

/* 2. Topbar in Dark Theme */
.app-topbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.teacher-name {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.teacher-subtitle {
  color: #94A3B8 !important;
}

#active-session-bar {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

#header-user-badge {
  color: #C4B5FD !important;
}

/* 3. Cards & Hero Copilot in Dark Luxury */
.m-card {
  background: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F1F5F9 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.m-card-title {
  color: #FFFFFF !important;
}

.copilot-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.25)) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15) !important;
}

.copilot-hero-title {
  color: #FFFFFF !important;
}

.copilot-hero-text {
  color: #CBD5E1 !important;
}

/* 4. Stats Grid in Dark Theme */
.m-stat-box {
  background: #1E293B !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.m-stat-val {
  color: #FFFFFF !important;
}

.m-stat-lbl {
  color: #94A3B8 !important;
}

/* 5. Quick Actions & Touch Buttons */
.m-action-btn {
  background: #1E293B !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.m-action-btn:hover {
  background: #334155 !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}

.m-action-btn.primary {
  background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
}

/* 6. Form Inputs & Selects */
.m-input {
  background: #1E293B !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
}

.m-input:focus {
  border-color: #8B5CF6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

.m-input-label {
  color: #CBD5E1 !important;
}

/* 7. Bottom Navigation Bar */
.mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.m-nav-tab {
  color: #94A3B8 !important;
}

.m-nav-tab.active {
  color: #A78BFA !important;
}

/* 8. Bottom Sheets & Overlays */
.m-sheet-content {
  background: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
}

.m-sheet-handle {
  background: #475569 !important;
}

.m-sheet-title {
  color: #FFFFFF !important;
}

.m-sheet-close {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

/* 9. Realistic Teacher Portrait in Hero & Topbar */
.hero-teacher-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #8B5CF6;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5), 0 10px 25px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

.topbar-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 10. Student Vault & Teacher File Cards */
.vault-file-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.vault-file-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.vault-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vault-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.vault-file-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #F8FAFC;
  word-break: break-word;
}

.vault-file-meta {
  font-size: 0.76rem;
  color: #94A3B8;
  margin-top: 3px;
}

.vault-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-publish-toggle {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-publish-toggle.published {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-publish-toggle.hidden {
  background: rgba(100, 116, 139, 0.2);
  color: #94A3B8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.upload-dropzone-dark {
  background: rgba(15, 23, 42, 0.75);
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-dropzone-dark:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #8B5CF6;
}

/* 11. Student Video Lessons & Challenge Cards */
.student-lesson-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-challenge-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.teacher-announcement-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}


/* ==========================================================================
   ADAPTIVE DUAL-MODE LAYOUT: NATIVE ANDROID MOBILE + EXPANSIVE DESKTOP DASHBOARD
   - Mobile (< 768px): Full-screen 100% width, native Android shell, bottom nav bar, sliding sheets.
   - Desktop (>= 769px): Wide multi-column dashboard (up to 1400px), desktop sidebar, centered modal dialogs.
   ========================================================================== */

/* 1. Mobile Android Mode (Default & Screens < 768px) */
@media (max-width: 768px) {
  body {
    background: #0B0F19 !important;
    overflow-x: hidden !important;
  }

  body.in-app-mode .app-viewport-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 0 !important;
    background: #0B0F19 !important;
  }

  .mobile-app-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 84px !important; /* clearance for bottom nav */
  }

  .app-sidebar {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    padding-bottom: env(safe-area-inset-bottom, 8px) !important;
  }

  .desktop-grid-2col,
  .desktop-grid-3col,
  .desktop-grid-4col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Bottom Sheets on Mobile slide from bottom */
  .m-sheet-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .m-sheet-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    max-height: 90vh !important;
  }

  /* Portfolio Mobile Adjustments */
  .portfolio-hero-section {
    padding: 24px 14px 40px 14px !important;
  }

  .hero-main-title {
    font-size: 2.1rem !important;
  }

  .hero-sub-title {
    font-size: 1.15rem !important;
  }

  .hero-teacher-photo {
    width: 110px !important;
    height: 110px !important;
  }

  .projects-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Expansive Desktop Dashboard Mode (Screens >= 769px) */
@media (min-width: 769px) {
  body {
    background: #060911 !important;
  }

  body.in-app-mode .app-viewport-wrapper {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 24px 20px 40px 20px !important;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.08) 0%, #060911 80%) !important;
    display: flex !important;
    justify-content: center !important;
  }

  .mobile-app-shell {
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    background: #0B0F19 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7) !important;
    padding-bottom: 24px !important;
    overflow: hidden !important;
  }

  /* Hide bottom nav on desktop */
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Desktop Topbar */
  .app-topbar {
    padding: 18px 28px !important;
  }

  .app-content-viewport {
    padding: 24px 28px !important;
  }

  /* Multi-Column Desktop Grids */
  .desktop-grid-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
  }

  .desktop-grid-3col {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
  }

  .desktop-grid-4col {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  .m-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  .m-quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }

  /* Centered Desktop Dialogs for Sheets */
  .m-sheet-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
  }

  .m-sheet-content {
    width: 100% !important;
    max-width: 620px !important;
    border-radius: 24px !important;
    max-height: 85vh !important;
    margin: auto !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85) !important;
  }

  /* Portfolio Desktop Adjustments */
  .portfolio-hero-section {
    padding: 60px 40px 80px 40px !important;
  }

  .hero-main-title {
    font-size: 3.2rem !important;
  }

  .hero-sub-title {
    font-size: 1.6rem !important;
  }

  .projects-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}

/* 3. Cloud Sync Status Pill */
.cloud-sync-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #A7F3D0;
}

.cloud-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 10px #10B981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* 4. Desktop Navigation Tabs inside Workspace */
.desktop-nav-tabs-bar {
  display: none;
}

@media (min-width: 769px) {
  .desktop-nav-tabs-bar {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
  }

  .desktop-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .desktop-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
  }

  .desktop-tab-btn.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  }
}


/* ==========================================================================
   ATTENDANCE, EVALUATION & PACKAGES MODULE STYLES
   ========================================================================== */
.m-att-card, .m-eval-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.m-att-card:hover, .m-eval-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.att-header, .eval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.att-toggle-group {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  flex-wrap: wrap;
}

.att-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.att-btn:hover {
  color: #FFFFFF;
}

.att-btn.active-present {
  background: #059669 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.att-btn.active-absent {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.att-btn.active-late {
  background: #D97706 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.att-btn.active-excused {
  background: #6366F1 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* Evaluation Styles */
.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

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

.eval-score-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eval-score-input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.7);
  color: #FFFFFF;
  font-weight: 800;
  text-align: center;
  font-size: 0.95rem;
}

/* Package Card Styles */
.m-package-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-package-card.highlight {
  border-color: #6366F1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.pkg-price-badge {
  font-size: 1.45rem;
  font-weight: 900;
  color: #38BDF8;
}

.pkg-period-label {
  font-size: 0.76rem;
  color: #94A3B8;
  font-weight: 600;
}

.pkg-feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  font-size: 0.8rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.pkg-feature-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-overdue-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}


/* ==========================================================================
   RICH STUDENT CARDS & DIGITAL STORE MODULE STYLES
   ========================================================================== */

/* Rich Student Card */
.m-student-card-rich {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.m-student-card-rich:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.student-top-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.student-photo-box {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #10B981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
  background: #334155;
}

.student-photo-box.overdue {
  border-color: #EF4444;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.student-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-info-main {
  flex: 1;
  min-width: 200px;
}

.student-full-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

/* Complete Data Grid of Student Metadata */
.student-data-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  margin: 12px 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
}

.student-data-chip {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
}

.student-data-chip .chip-label {
  color: #94A3B8;
  font-weight: 600;
}

.student-data-chip .chip-val {
  color: #E2E8F0;
  font-weight: 800;
  margin-top: 1px;
}

/* Compact Controls Toolbar */
.student-compact-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-compact {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-compact:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-compact.primary {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.btn-compact.whatsapp {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

.btn-compact.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.1);
}

/* Digital Products CMS Rows */
.cms-product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.2s ease;
}

.cms-product-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.cms-product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #C4B5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW ISOLATION: PORTFOLIO VS APP WORKSPACE (PREVENTS SPLIT SCREEN)
   ========================================================================== */
#view-dark-showcase {
  display: block;
  width: 100%;
}

#view-app-workspace,
.app-viewport-wrapper {
  display: none !important;
  width: 100%;
}

body:not(.in-app-mode) #view-app-workspace,
body:not(.in-app-mode) .app-viewport-wrapper {
  display: none !important;
}

body.in-app-mode #view-dark-showcase {
  display: none !important;
}

body.in-app-mode #view-sales-pitch {
  display: none !important;
}

body.in-app-mode #view-app-workspace,
body.in-app-mode .app-viewport-wrapper {
  display: block !important;
  width: 100% !important;
}

body.in-portfolio-mode #view-dark-showcase {
  display: block !important;
  width: 100% !important;
}

body.in-portfolio-mode #view-sales-pitch {
  display: none !important;
}

body.in-portfolio-mode #view-app-workspace,
body.in-portfolio-mode .app-viewport-wrapper {
  display: none !important;
}

body.in-pitch-mode #view-sales-pitch {
  display: block !important;
  width: 100% !important;
}

body.in-pitch-mode #view-dark-showcase,
body.in-pitch-mode #view-app-workspace,
body.in-pitch-mode .app-viewport-wrapper {
  display: none !important;
}

/* Hide teacher bottom bar when in Student or Parent portal */
body.portal-not-teacher #mobile-bottom-bar,
body.portal-not-teacher .m-bottom-nav,
body.portal-not-teacher .mobile-bottom-nav {
  display: none !important;
}

/* ==========================================================================
   MOBILE VIEW: NATIVE APP EXPERIENCE (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
    background: #0B1120 !important;
  }

  body.in-app-mode .app-viewport-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-app-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 88px 0 !important; /* Critical clearance for fixed bottom nav */
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #0B1120 !important;
  }

  /* Desktop top tabs completely hidden on mobile */
  .desktop-nav-tabs-bar {
    display: none !important;
  }

  /* Mobile Bottom Navigation Bar: Permanently fixed at bottom */
  #mobile-bottom-bar,
  .m-bottom-nav,
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.6) !important;
    z-index: 99990 !important;
    margin: 0 !important;
    padding: 0 4px !important;
    justify-content: space-around !important;
    align-items: center !important;
    pointer-events: auto !important;
  }

  .m-nav-tab {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 2px !important;
    min-height: 54px !important;
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
  }

  .m-nav-tab .icon {
    font-size: 1.35rem !important;
    line-height: 1 !important;
    margin-bottom: 3px !important;
    transition: transform 0.2s ease !important;
  }

  .m-nav-tab.active {
    color: #A78BFA !important;
  }

  .m-nav-tab.active .icon {
    transform: scale(1.18) !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)) !important;
  }
}

/* ==========================================================================
   DESKTOP VIEW: LUXURY EXPANSIVE DASHBOARD (>= 769px)
   ========================================================================== */
@media (min-width: 769px) {
  body {
    display: block !important;
    width: 100% !important;
  }

  body.in-app-mode .app-viewport-wrapper {
    width: 100% !important;
    max-width: 1420px !important;
    margin: 0 auto !important;
    padding: 16px 24px !important;
    display: block !important;
  }

  .mobile-app-shell {
    width: 100% !important;
    max-width: 1380px !important;
    margin: 0 auto 40px auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    background: #0F172A !important;
    padding: 24px !important;
    min-height: 85vh !important;
  }

  /* Mobile bottom bar hidden on desktop */
  #mobile-bottom-bar,
  .m-bottom-nav,
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Desktop tabs bar visible and beautiful */
  .desktop-nav-tabs-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    margin-bottom: 24px !important;
  }

  .desktop-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .desktop-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #FFFFFF !important;
  }

  .desktop-tab-btn.active {
    background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
  }
}
/* END OF VIEW ISOLATION */



/* ==========================================================================
   LIVE IN-PAGE PORTFOLIO VISUAL EDITOR STYLES
   ========================================================================== */

/* Strictly hidden by default for public/visitors. Only visible for authenticated teacher in edit mode */
#portfolio-live-editor-bar,
.portfolio-live-editor-bar {
  display: none !important;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 2px solid #F59E0B;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.2);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 99999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.teacher-live-edit-active #portfolio-live-editor-bar,
body.teacher-live-edit-active .portfolio-live-editor-bar {
  display: block !important;
}

body:not(.teacher-live-edit-active) #portfolio-live-editor-bar,
body:not(.teacher-live-edit-active) .portfolio-live-editor-bar {
  display: none !important;
}

/* Floating Teacher Edit Trigger FAB (Only visible on portfolio when teacher is logged in) */
.teacher-floating-edit-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  align-items: center;
  gap: 6px;
}

.teacher-floating-edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #D97706, #B45309);
}

body.teacher-logged-in.in-portfolio-mode:not(.teacher-live-edit-active) .teacher-floating-edit-btn,
body.teacher-logged-in.in-portfolio-mode:not(.teacher-live-edit-active) #teacher-floating-edit-btn {
  display: flex !important;
}

body.teacher-live-edit-active .teacher-floating-edit-btn,
body:not(.teacher-logged-in) .teacher-floating-edit-btn {
  display: none !important;
}

.editor-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.editor-status-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-editor-dot {
  width: 10px;
  height: 10px;
  background: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 10px #F59E0B;
  animation: pulse-dot 1.5s infinite;
}

.editor-tools-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-editor-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-editor-tool:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-editor-tool.active {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-color: #FCD34D;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.editor-palette-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-dot:hover {
  transform: scale(1.25);
}

.color-dot.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
}

.color-dot.purple { background: #8B5CF6; }
.color-dot.gold { background: #F59E0B; }
.color-dot.emerald { background: #10B981; }
.color-dot.blue { background: #2563EB; }

.btn-editor-save {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-editor-save:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-editor-reset {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Editable Highlight Styles when Live Edit is Enabled */
body.live-editing-enabled .live-editable {
  outline: 1.5px dashed rgba(245, 158, 11, 0.5) !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
  cursor: text !important;
  transition: all 0.2s ease !important;
}

body.live-editing-enabled .live-editable:hover {
  outline: 2px dashed #F59E0B !important;
  background: rgba(245, 158, 11, 0.08) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

body.live-editing-enabled .live-editable:focus {
  outline: 2px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.14) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important;
}

/* Portrait photo hover overlay */
body.live-editing-enabled .hero-teacher-portrait-box {
  cursor: pointer;
  position: relative;
}

body.live-editing-enabled .hero-teacher-portrait-box:hover .photo-edit-overlay {
  opacity: 1;
}

.photo-edit-overlay {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FCD34D;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Presets Card inside Modal */
.avatar-preset-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-preset-card:hover {
  border-color: #8B5CF6;
  transform: translateY(-2px);
}

.avatar-preset-card.active {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.avatar-preset-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}

.avatar-preset-card span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #CBD5E1;
}

/* Mobile Adjustments for Live Editor Bar */
@media (max-width: 768px) {
  .portfolio-live-editor-bar {
    padding: 8px 10px !important;
  }

  .editor-status-col {
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  .editor-tools-cluster {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }
}


/* ==========================================================================
   IMMERSIVE CURRICULUM LIVE AI VOICE LAB & SOCRATIC TUTOR STYLES
   Inspired by Zack Akil's Immergo (Gemini Live API Architecture)
   ========================================================================== */

/* 1. Modal Overlay & Container */
.voice-lab-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.voice-lab-modal-overlay.active {
  display: flex !important;
}

.voice-lab-modal-content {
  background: #0F172A;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  min-height: 580px;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Audio Visualizer Canvas */
.audio-visualizer-container {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.audio-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-label {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #C4B5FD;
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.visualizer-label.user {
  right: auto;
  left: 14px;
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.3);
}

/* 3. Glowing Big Mic CTA Button (Immergo Style) */
.voice-lab-mic-cta {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFFFFF;
  padding: 18px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  min-width: 240px;
  user-select: none;
}

.voice-lab-mic-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.5), 0 0 25px rgba(99, 102, 241, 0.3);
}

.voice-lab-mic-cta:active {
  transform: translateY(-1px) scale(0.98);
}

.voice-lab-mic-cta.recording {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6), 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
  animation: pulse-red-ring 1.5s infinite;
}

@keyframes pulse-red-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 4. Live Transcript Stream Box */
.voice-lab-transcript-box {
  flex: 1;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 220px;
  margin: 10px 0;
}

.voice-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.25s ease;
}

.voice-bubble.ai {
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #EDE9FE;
}

.voice-bubble.student {
  align-self: flex-end;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FEF3C7;
  text-align: right;
}

/* 5. Mission Selection Cards */
.voice-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 12px 0;
}

.voice-mission-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voice-mission-card:hover {
  transform: translateY(-3px);
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.voice-mission-card.active {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* 6. Mission Accomplished Summary */
.summary-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.summary-rank-badge.peritus {
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid #F59E0B;
  color: #FCD34D;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.summary-rank-badge.proficiens {
  background: rgba(59, 130, 246, 0.2);
  border: 1.5px solid #3B82F6;
  color: #93C5FD;
}

.summary-rank-badge.tiro {
  background: rgba(148, 163, 184, 0.2);
  border: 1.5px solid #94A3B8;
  color: #E2E8F0;
}

/* 7. Teacher Copilot Voice Box */
.teacher-copilot-voice-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
}


/* ==========================================================================
   AI PRESENTER VIDEO STUDIO & VIDEO CAPSULE STYLES
   Inspired by Lanshu (lanshu-create-ai-presenter-video) Architecture
   ========================================================================== */

/* 1. Main Studio Layout */
.presenter-studio-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 16px;
}

@media (max-width: 992px) {
  .presenter-studio-wrap {
    grid-template-columns: 1fr;
  }
}

.presenter-stage-card {
  background: #0B0F19;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.presenter-canvas-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(124, 58, 237, 0.25);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presenter-canvas-container.aspect-9-16 {
  width: 320px;
  height: 568px;
}

.presenter-canvas-container.aspect-16-9 {
  width: 100%;
  max-width: 640px;
  height: 360px;
}

.presenter-canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 2. Studio Player Control Bar */
.presenter-player-bar {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.presenter-seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.presenter-seek-slider {
  flex: 1;
  accent-color: #8B5CF6;
  height: 6px;
  cursor: pointer;
}

.presenter-time-label {
  font-family: monospace;
  font-size: 13px;
  color: #94A3B8;
  min-width: 85px;
  text-align: center;
}

.presenter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-presenter-play {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-presenter-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-presenter-export {
  background: #10B981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-presenter-export:hover {
  background: #059669;
}

/* 3. Controls & Editor Form */
.presenter-editor-panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.presenter-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.presenter-input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
}

.presenter-input,
.presenter-select,
.presenter-textarea {
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 10px 12px;
  color: #F9FAFB;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.presenter-input:focus,
.presenter-select:focus,
.presenter-textarea:focus {
  border-color: #8B5CF6;
}

.aspect-toggle-group {
  display: flex;
  gap: 8px;
}

.aspect-btn {
  flex: 1;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 8px;
  color: #9CA3AF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.aspect-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8B5CF6;
  color: #C4B5FD;
}

/* 4. Capsule Gallery Cards */
.video-capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.video-capsule-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.video-capsule-card:hover {
  transform: translateY(-4px);
  border-color: #8B5CF6;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

.capsule-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #0B0F19;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.capsule-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.capsule-aspect-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.capsule-duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #F8FAFC;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.capsule-play-overlay {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.capsule-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.capsule-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.4;
}

.capsule-card-topic {
  font-size: 12px;
  color: #94A3B8;
}

.capsule-card-formula {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
  font-family: monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
}

.capsule-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
}

.capsule-author {
  font-size: 12px;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 5. Capsule Modal Player */
.capsule-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 17, 0.95);
  backdrop-filter: blur(20px);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.capsule-modal-overlay.active {
  display: flex !important;
}

.capsule-modal-box {
  background: #0B0F19;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}


/* ==========================================================================
   PROMOTIONAL SHOWCASE STYLES (MAIN APP, PORTFOLIO & PARENT PORTAL)
   Heavily marketing the Immergo Voice Lab & Lanshu Presenter Engine
   ========================================================================== */

/* 1. Main App Hero Promo Section */
.promo-revolution-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px 20px;
}

.promo-main-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.promo-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.promo-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .promo-grid-2col {
    grid-template-columns: 1fr;
  }
}

.promo-feature-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.promo-feature-card:hover {
  transform: translateY(-6px);
  border-color: #8B5CF6;
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.25);
}

.promo-feature-card.voice-card {
  border-top: 3px solid #8B5CF6;
}

.promo-feature-card.video-card {
  border-top: 3px solid #F59E0B;
}

.promo-card-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.promo-icon-circle.voice {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.promo-icon-circle.video {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.promo-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-card-bullets li {
  font-size: 0.86rem;
  color: #CBD5E1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.promo-card-bullets li span.check-icon {
  color: #10B981;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-promo-cta {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: all 0.2s;
  width: 100%;
}

.btn-promo-cta.purple {
  background: linear-gradient(135deg, #7C3AED, #6366F1);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-promo-cta.purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.btn-promo-cta.gold {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-promo-cta.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* 2. Parent Portal Super Trust Card */
.parent-super-trust-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.parent-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.parent-trust-reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.parent-trust-reason-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parent-trust-reason-item strong {
  font-size: 0.85rem;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

.parent-trust-reason-item p {
  font-size: 0.76rem;
  color: #94A3B8;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   MODERN AUTH ENHANCEMENTS: EYE TOGGLE & INLINE VALIDATION
   ========================================================================== */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
.auth-input-wrapper .m-input {
  margin-bottom: 0 !important;
  padding-left: 42px !important;
}
.auth-eye-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  color: #94A3B8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.2s, transform 0.15s;
  z-index: 5;
}
.auth-eye-btn:hover {
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}
.auth-inline-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
  font-weight: 700;
  text-align: right;
  direction: rtl;
}
.auth-inline-alert.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid #EF4444 !important;
  color: #FCA5A5 !important;
  animation: authShake 0.4s ease-in-out;
}
.auth-inline-alert.success {
  display: block !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10B981 !important;
  color: #6EE7B7 !important;
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

