@import 'animations.css';

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Primary Brand - Royal Blue */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;

  /* Secondary - Emerald Green */
  --secondary: #10B981;
  --secondary-dark: #059669;

  /* Accent - Cyan/Aqua */
  --accent: #06B6D4;
  --accent-light: #67E8F9;

  /* Neutrals & Text */
  --dark: #0F172A;
  /* Very dark navy for headings */
  --text: #64748B;
  /* Medium gray-blue for body */
  --light: #F8FAFC;
  /* Very light gray-blue background */
  --white: #ffffff;
  --border: #E2E8F0;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0F172A 0%, #2563EB 50%, #06B6D4 100%);
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  --grad-cta: linear-gradient(135deg, #0F172A 0%, #2563EB 60%, #06B6D4 100%);

  /* Spacing Scale */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 3rem;
  /* 48px */
  --space-6: 4rem;
  /* 64px */
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.lw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.lw-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 40, 80, 0.08);
}

.lw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.lw-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.lw-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.lw-logo-text {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.02em;
}

.lw-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.lw-nav a {
  position: relative;
  padding-bottom: 2px;
  color: var(--dark);
  transition: color 0.2s ease;
}

.lw-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

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

.lw-nav a:hover::after {
  width: 100%;
}

.lw-btn {
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.lw-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.lw-btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

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

.lw-btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.4rem 1rem;
}

.lw-btn-ghost:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.lw-hero {
  padding: 5rem 0 6rem;
  background: var(--grad-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.lw-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lw-hero-copy h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.lw-hero-copy p {
  max-width: 520px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.lw-hero-actions {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lw-stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.lw-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.lw-hero-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lw-hero-card-header {
  margin-bottom: 1rem;
}

.lw-hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #55627a;
  font-weight: 600;
}

.lw-chip {
  display: inline-block;
  font-size: 0.75rem;
  background: #eef3ff;
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.25rem;
  font-weight: 500;
}

.lw-hero-student {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.lw-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--grad-primary);
}

.lw-hero-student-name {
  font-weight: 600;
  color: var(--dark);
}

.lw-hero-student-meta {
  font-size: 0.85rem;
  color: var(--text);
}

.lw-hero-list {
  padding-left: 1.25rem;
  margin: 0;
  color: var(--text);
}

.lw-hero-list li {
  margin-bottom: 0.4rem;
}

.lw-floating-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.lw-icon-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(15, 40, 80, 0.08);
  border: 1px solid var(--border);
  font-weight: 500;
}

.lw-section {
  padding: 5rem 0;
}

.lw-bg-soft {
  background: linear-gradient(180deg, var(--light) 0%, #E0E7FF 100%);
}

.lw-section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.lw-section-subtitle {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
  color: var(--text);
}

.lw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.lw-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lw-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
  border-color: var(--primary-light);
}

.lw-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.lw-card-icon svg {
  width: 24px;
  height: 24px;
}

.lw-card-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
}

.lw-tutor-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lw-tutor-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem 2rem;
  width: 100%;
  scrollbar-width: none;
}

.lw-tutor-track::-webkit-scrollbar {
  display: none;
}

.lw-tutor-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-width: 280px;
  flex: 0 0 280px;
  transition: transform 0.2s ease;
}

.lw-tutor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}

.lw-tutor-photo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.lw-tutor-exp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #E0E7FF 0%, #CFFAFE 100%);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lw-tutor-card--hero .lw-tutor-exp {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.lw-tutor-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  top: -50px;
  right: -40px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.05;
  filter: blur(20px);
}

.lw-tutor-card--hero {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lw-carousel-btn:hover {
  transform: scale(1.05);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.lw-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 28, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
}

.lw-confirm-overlay.active {
  display: flex;
}

.lw-confirm-box {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.lw-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.lw-back-home {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dark);
}

@media (max-width: 900px) {
  .lw-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .lw-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .lw-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .lw-dashboard-grid,
  .lw-auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lw-nav {
    display: none;
  }

  .lw-tutor-card--hero {
    grid-column: span 1;
  }
}

/* Timeline / How it works */
.lw-timeline-grid {
  position: relative;
}

.lw-timeline-grid::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  z-index: 0;
  opacity: 0.3;
}

.lw-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .lw-timeline-grid::before {
    display: none;
  }
}

/* Success Story Card */
.lw-hero-quote {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

/* Portal Toggle */
.lw-auth-toggle {
  display: flex;
  background: #F1F5F9;
  padding: 0.25rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  position: relative;
  border: 1px solid var(--border);
}

.lw-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.lw-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

.lw-auth-inner {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lw-auth-inner.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.lw-story-bad {
  color: #EF4444;
  /* Red for problem */
}

.lw-story-good {
  color: #10B981;
  /* Green for solution */
}

.lw-story-bad strong,
.lw-story-good strong {
  color: inherit;
}

/* Missing Layout Classes */
.lw-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dashboard Styles */
.lw-dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.lw-profile-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.lw-profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.lw-profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--grad-primary);
  color: var(--white);
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.lw-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lw-profile-role {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.lw-status-dot.active {
  background: var(--secondary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.lw-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lw-dashboard-content {
  padding: 2rem 3rem;
  background: #F8FAFC;
}

.lw-dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.lw-breadcrumb {
  font-size: 0.9rem;
  color: var(--text);
}

.lw-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.lw-breadcrumb-separator {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

.lw-breadcrumb-current {
  color: var(--dark);
  font-weight: 500;
}

/* Cards */
.lw-dash-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.lw-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.lw-dash-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lw-dash-desc {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* Stats */
.lw-stats-row {
  display: flex;
  gap: 1.5rem;
}

.lw-stat-item {
  flex: 1;
  background: #F8FAFC;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 1px solid var(--border);
}

.lw-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.lw-stat-lbl {
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

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

.lw-stat-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lw-stat-value {
  font-size: 2rem;
  font-weight: 800;
  gap: 1.5rem;
}

.lw-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lw-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.lw-input,
.lw-textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lw-input:focus,
.lw-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lw-helper-text {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0;
}

.lw-actions-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Lists */
.lw-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.lw-list-item:last-child {
  border-bottom: none;
}

.lw-item-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lw-item-content h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.lw-item-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.lw-item-actions {
  display: flex;
  gap: 0.5rem;
}

.lw-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lw-badge-success {
  background: #DCFCE7;
  color: #166534;
}

.lw-badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

/* Modal */
.lw-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lw-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lw-modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .lw-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .lw-profile-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

/* CTA Banner */
.lw-cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.lw-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.lw-cta-inner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.lw-cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Contact Page Styles */
.lw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.lw-contact-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease;
}

.lw-contact-card:hover {
  transform: translateY(-5px);
}

.lw-contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lw-contact-card p {
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Auth Styles */
.lw-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--white);
}

.lw-auth-panel {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.lw-auth-benefits {
  background: #F8FAFC;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.lw-gradient-pill {
  display: inline-block;
  background: linear-gradient(135deg, #E0E7FF 0%, #CFFAFE 100%);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lw-panel-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.lw-nav-user {
  color: var(--text);
  font-size: 1rem;
}

.lw-benefit-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.lw-benefit-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--dark);
}

.lw-benefit-icon {
  width: 24px;
  height: 24px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

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

  .lw-auth-benefits {
    display: none;
  }

  .lw-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Refined Contact Page Styles */
.lw-contact-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.lw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.lw-contact-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lw-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.lw-contact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lw-contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.lw-contact-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--dark);
}

.lw-contact-card p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.lw-badge-primary {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lw-contact-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lw-btn-full {
  width: 100%;
  justify-content: center;
}

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

.lw-btn-outline:hover {
  background: #F8FAFC;
  border-color: #cbd5e1;
}

/* Background Pattern */
.lw-bg-pattern {
  background-color: var(--white);
  background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Review Form Styles */
.lw-review-form-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  border: 1px solid #E2E8F0;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.lw-review-form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #F1F5F9;
}

.lw-review-form-header h3 {
  color: var(--dark);
  font-weight: 600;
}

.lw-review-form-header p {
  margin-top: 0.5rem;
}

.lw-review-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.lw-review-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}

.lw-review-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border-color: #CBD5E1;
}

.lw-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lw-review-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.lw-stars {
  color: #F59E0B;
  font-size: 1rem;
}

.lw-review-card p {
  color: var(--text);
  line-height: 1.6;
  margin: 0.75rem 0;
  font-style: italic;
}

.lw-review-meta {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 1rem;
  font-style: normal !important;
}


/* Eyebrow Label */
.lw-eyebrow-label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Star Rating Selector */
.lw-star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: 2rem;
  margin: 1rem 0;
}

.lw-star-rating .star {
  cursor: pointer;
  color: #CBD5E1;
  transition: all 0.2s;
  user-select: none;
}

.lw-star-rating .star:hover,
.lw-star-rating .star.active {
  color: #F59E0B;
  transform: scale(1.1);
}

/* Character Counter */
.lw-char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 0.5rem;
}

/* Placeholder Review */
.lw-placeholder-review {
  opacity: 0.7;
  border: 2px dashed #CBD5E1 !important;
}

/* Submit Button Styles */
.lw-submit-review {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  transition: all 0.2s;
}

.lw-submit-review:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94A3B8;
}

.lw-submit-review:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(30, 92, 200, 0.3);
}

/* Success Message */
.lw-success-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  border-radius: 0.5rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.lw-success-message svg {
  flex-shrink: 0;
  color: #16A34A;
}

/* Enhanced Review Form Card */
.lw-review-form-card {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  border: 1px solid #E5E9F2;
}

.lw-review-form-header {
  border-bottom: 1px solid #F1F5F9;
}

/* Hero Redesign Styles */
.lw-hero-eyebrow {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.lw-hero-subheading {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.lw-hero-assurance {
  font-size: 0.875rem;
  padding: 1rem;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  border-radius: 0.5rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.lw-success-message svg {
  flex-shrink: 0;
  color: #16A34A;
}

/* Enhanced Review Form Card */
.lw-review-form-card {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  border: 1px solid #E5E9F2;
}

.lw-review-form-header {
  border-bottom: 1px solid #F1F5F9;
}

/* Hero Redesign Styles */
.lw-hero-eyebrow {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.lw-hero-subheading {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.lw-hero-assurance {
  font-size: 0.875rem;
  color: #64748B;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Fix Ghost Button for Blue Background */
.lw-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Hero Primary Button Enhancement */
.lw-btn-hero-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.lw-trust-text strong {
  color: var(--dark);
  font-weight: 600;
}

/* Hero Rating */
.lw-hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.lw-rating-stars {
  color: #F59E0B;
  font-size: 1rem;
}

.lw-rating-text {
  font-weight: 600;
  color: var(--dark);
}

.lw-verified-badge {
  color: #64748B;
  font-size: 0.875rem;
}

/* Hero Card Enhancement */
.lw-hero-card {
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  position: relative;
}

.lw-hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.25rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(30, 92, 200, 0.1), rgba(30, 92, 200, 0.05));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Quote styling fix */
.lw-hero-quote {
  margin-top: 1rem;
  font-style: italic;
  color: var(--text);
  font-size: 0.9rem;
}

/* Mobile Login Button */
.lw-btn-mobile-login {
  display: none;
  padding: 0.5rem;
  min-width: 40px;
}

/* Footer Spacing */
footer.lw-footer,
.lw-footer {
  margin-top: 5rem;
  padding-top: 3rem;
}

/* Mobile Responsive Fixes */
@media (max-width: 900px) {
  .lw-btn-mobile-login {
    display: inline-flex;
  }

  .lw-hero-actions {
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
  }

  .lw-btn-hero-primary,
  .lw-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .lw-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
  }

  /* Prevent card overflow */
  .lw-hero-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .lw-floating-icons {
    flex-wrap: wrap;
  }

  /* Trust chips scrolling */
  .lw-hero-trust {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1rem;
    margin-right: -1.5rem;
    /* Allow scrolling to edge */
    padding-right: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .lw-hero-trust::-webkit-scrollbar {
    display: none;
  }

  .lw-trust-chip {
    flex: 0 0 auto;
    width: 85%;
    /* Show part of next chip */
    max-width: 300px;
  }
}

/* Fixes for Visual Regressions */

/* Reset Hero Assurance (remove green box) */
.lw-hero-assurance {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: 1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0 !important;
}

.lw-hero-assurance::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.7rem;
  color: white;
}

/* Fix Carousel Buttons */
.lw-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-size: 1.2rem;
  z-index: 10;
}

.lw-carousel-btn:hover {
  transform: scale(1.1) !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
  max-width: none !important;
  width: 40px !important;
  text-align: center;
}

/* Fix Tutor Card Overflow */
.lw-tutor-card {
  overflow: hidden;
  /* Ensure content stays inside */
  display: flex;
  flex-direction: column;
}

.lw-tutor-card::after {
  /* Ensure the blob doesn't cause layout issues */
  pointer-events: none;
}


/* Fix Hero Actions Container (remove unwanted box) */
.lw-hero-actions {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Fix Hero Assurance Text Alignment */
.lw-hero-assurance {
  margin-top: 1.5rem !important;
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  display: flex;
  align-items: flex-start;
  /* Align to top for multi-line */
  gap: 0.75rem;
  line-height: 1.5;
}

.lw-hero-assurance::before {
  content: '?';
  /* Keep question mark as requested or change to check if preferred */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  /* Fixed width to prevent shrinking */
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  color: white;
  margin-top: 0.2rem;
  /* Visual alignment with text */
}

/* Fix Trust Chips Layout */
.lw-hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lw-trust-chip {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
}

.lw-trust-text strong {
  color: white !important;
  font-weight: 700;
}

/* Fix Hero Assurance Icon (Checkmark) */
.lw-hero-assurance::before {
  content: '\2713' !important;
  /* Unicode checkmark */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  color: white;
  margin-top: 0.1rem;
  font-weight: bold;
}

/* Mobile Responsive Fixes for Hero Actions */
@media (max-width: 768px) {
  .lw-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .lw-hero-actions button,
  .lw-hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .lw-hero-assurance {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    font-size: 0.85rem !important;
  }

  .lw-hero-trust {
    margin-top: 2rem;
  }
}


/* Allow text wrapping in experience chip */
.lw-tutor-exp {
  white-space: normal !important;
  height: auto !important;
  text-align: left;
  line-height: 1.3;
  padding: 0.5rem 0.85rem;
  max-width: 100%;
  display: inline-block !important;
  /* Switch to block to allow wrapping */
}

/* Fix Tutor Card Cutoff on Mobile */
@media (max-width: 480px) {
  .lw-tutor-card {
    min-width: 85vw !important;
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    margin-right: 1rem;
  }

  .lw-tutor-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* Mobile Carousel Fixes: Hide arrows and adjust track */
@media (max-width: 768px) {
  .lw-carousel-btn {
    display: none !important;
  }

  .lw-tutor-carousel {
    display: block !important;
    /* Remove flex to allow track to be full width */
  }

  .lw-tutor-track {
    width: 100%;
    padding: 1rem 1.5rem;
    /* Add side padding for peek effect */
    gap: 1rem;
  }

  .lw-tutor-card {
    min-width: 85vw !important;
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    margin-right: 0;
    /* Gap is handled by track gap */
  }
}


/* Mobile Carousel & Login Fixes */
@media (max-width: 768px) {

  /* Show arrows again */
  .lw-carousel-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 1rem !important;
  }

  /* Adjust track to fit arrows */
  .lw-tutor-carousel {
    display: flex !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem;
  }

  .lw-tutor-track {
    width: 100%;
    padding: 1rem 0.5rem;
    gap: 1rem;
    overflow-x: auto;
  }

  /* Shrink cards to fit with arrows */
  .lw-tutor-card {
    min-width: 65vw !important;
    /* Smaller width to fit with arrows */
    flex: 0 0 65vw !important;
    max-width: 65vw !important;
    margin-right: 0;
  }

  /* Mobile Login Button */
  .lw-btn-mobile-login {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    margin-left: 0.5rem;
    text-decoration: none;
  }

  .lw-nav {
    display: none;
    /* Ensure nav is hidden on mobile if not already */
  }

  #nav-cta {
    display: none;
    /* Hide desktop CTA on mobile if needed, or keep if fits */
  }
}


/* Fix Mobile Card Cutoff & Login Button */
@media (max-width: 768px) {

  /* Shrink cards further to fit between arrows */
  .lw-tutor-card {
    min-width: calc(100vw - 110px) !important;
    /* Exact calculation: 100vw - (arrows + gaps + padding) */
    flex: 0 0 calc(100vw - 110px) !important;
    max-width: calc(100vw - 110px) !important;
  }

  /* Text-based Mobile Login Button */
  .lw-btn-mobile-login {
    width: auto !important;
    height: auto !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: 1px solid var(--primary) !important;
  }
}


/* Fix Tutor Card Responsiveness & Mobile Login */
@media (max-width: 768px) {

  /* Make cards fully responsive like 'How it works' boxes */
  .lw-tutor-card {
    min-width: 0 !important;
    /* Allow shrinking */
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    /* Take full width of container */
    margin-right: 0;
  }

  /* Adjust track to handle single card view or responsive sizing */
  .lw-tutor-track {
    display: grid !important;
    grid-template-columns: 1fr;
    /* Stack cards or show one by one */
    gap: 1rem;
    padding: 0 1rem;
    overflow: visible;
    /* Let grid handle layout */
  }

  /* If carousel behavior is desired, we need a different approach. 
     But user asked for 'responsive like boxes', which implies stacking or full width.
     Let's try flex with shrink for carousel behavior but responsive width. */

  .lw-tutor-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 1rem 3rem;
    /* Space for arrows */
  }

  .lw-tutor-card {
    min-width: 100% !important;
    /* Full width of the track area */
    flex: 0 0 100% !important;
    scroll-snap-align: center;
  }

  /* Refine Mobile Login Button */
  .lw-btn-mobile-login {
    width: auto !important;
    height: auto !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--primary) !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-left: 0.5rem;
  }

  /* Ensure SVG is hidden if it was there */
  .lw-btn-mobile-login svg {
    display: none !important;
  }
}


/* Final Mobile Layout Refinements */
@media (max-width: 768px) {

  /* Header Layout: Logo Centered, Button Right */
  .lw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .lw-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Ensure logo text is visible or adjust if too long */
  .lw-logo-text {
    font-size: 1.1rem;
  }

  /* Mobile Login Button Styling */
  .lw-btn-mobile-login {
    margin-left: auto;
    /* Push to right if needed, but absolute logo handles center */
    margin-left: 0;
    /* Reset margin since we use flex/absolute */
    position: absolute;
    right: 1.5rem;
    /* Match container padding */

    padding: 0.4rem 0.85rem !important;
    border: 1px solid var(--primary) !important;
    border-radius: 6px !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    background: transparent !important;
    text-decoration: none !important;
    display: inline-block !important;
  }

  /* Fix Tutor Cards: Full Width & Responsive */
  .lw-tutor-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 !important;
    /* Remove side padding to let cards be full width */
    gap: 1rem;
    width: 100%;
  }

  .lw-tutor-card {
    min-width: 85vw !important;
    /* Back to 85vw for peek effect, or 90vw */
    width: 85vw !important;
    flex: 0 0 85vw !important;
    scroll-snap-align: center;
    margin-left: 1rem;
    /* Add spacing for first card */
  }

  /* Ensure last card has spacing */
  .lw-tutor-card:last-child {
    margin-right: 1rem;
  }
}


/* Final Mobile Layout Fixes: Stacked Cards & Header Tweaks */
@media (max-width: 768px) {

  /* Header: Logo Centered, Login Button Right with space */
  .lw-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything */
    position: relative;
    padding: 0.75rem 1rem;
  }

  .lw-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .lw-btn-mobile-login {
    position: absolute;
    right: 1rem;
    /* Space from right edge */
    margin: 0;
    z-index: 20;

    /* Better Button Styling */
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    background: var(--primary) !important;
    /* Filled button for better visibility */
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  }

  /* Tutor Cards: Vertical Stack (No Carousel) */
  .lw-tutor-carousel {
    display: block !important;
  }

  .lw-tutor-track {
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertically */
    gap: 1.5rem !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .lw-tutor-card {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }

  /* Hide arrows in stacked mode */
  .lw-carousel-btn {
    display: none !important;
  }
}


/* Fix Mobile Header Height & Overflow */
@media (max-width: 768px) {
  .lw-header-inner {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    min-height: 70px;
    /* Ensure enough height */
  }

  /* Ensure logo doesn't overflow */
  .lw-header .lw-logo {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Ensure button is vertically centered */
  .lw-btn-mobile-login {
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
  }
}


/* Fix Redundant Logo in Main Content */
main .lw-logo {
  display: none !important;
}

/* Admin Dashboard Mobile Optimization */
@media (max-width: 768px) {

  /* Stack Stats Grid */
  .lw-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Stack List Items (Tutors, Reviews) */
  .lw-list-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .lw-item-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }

  /* Adjust Sidebar for Mobile */
  .lw-profile-sidebar {
    padding: 1.5rem !important;
    background: var(--white) !important;
    margin-bottom: 1rem !important;
  }

  /* Ensure modal fits on mobile */
  .lw-modal-content {
    padding: 1.5rem !important;
    margin: 1rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Emergency Fix: Reset Footer Logo on Mobile */
@media (max-width: 768px) {
  .lw-footer .lw-logo {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
    margin: 0 auto 1rem auto !important;
    text-align: center !important;
  }

  .lw-footer .lw-logo-icon,
  .lw-footer .lw-logo-text {
    display: inline-block !important;
    vertical-align: middle !important;
  }
}


/* Custom Confirmation Modal */
.lw-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lw-confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lw-confirm-box {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.lw-confirm-overlay.active .lw-confirm-box {
  transform: scale(1);
}

.lw-confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Toggle Switch */
.lw-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.lw-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lw-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}

.lw-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.lw-slider {
  background-color: var(--primary);
}

input:focus+.lw-slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked+.lw-slider:before {
  transform: translateX(20px);
}


/* Skeleton Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.lw-skeleton {
  background: #f1f5f9;
  background-image: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
}

.lw-skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: 0.5rem;
}

.lw-skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.lw-skeleton-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}

.lw-skeleton-block {
  width: 100%;
  height: 200px;
  border-radius: 1rem;
}


/* Mobile Header Actions */
.lw-mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  .lw-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .lw-btn-mobile-book {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  }

  .lw-btn-mobile-login {
    /* Reset previous absolute styles */
    position: static !important;
    transform: none !important;
    margin: 0 !important;

    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
    border: 1px solid var(--border) !important;
    background: white !important;
    color: var(--text) !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
  }

  /* Ensure logo stays centered */
  .lw-header .lw-logo {
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  /* Prevent collision on small screens */
  @media (max-width: 400px) {
    .lw-logo-text {
      display: none;
    }

    .lw-mobile-actions {
      gap: 0.25rem;
    }

    .lw-btn-mobile-book,
    .lw-btn-mobile-login {
      padding: 0.35rem 0.6rem;
      font-size: 0.8rem;
    }
  }
}


/* Ephemeral Toast Notification */
.lw-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.lw-toast-message {
  background: var(--dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out forwards;
  pointer-events: auto;
  min-width: 300px;
}

.lw-toast-message.success {
  border-left: 4px solid var(--secondary);
}

.lw-toast-message.error {
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}


/* Admin Stats Visibility Fix */
.lw-stat-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lw-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.lw-stat-label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}


/* Mobile Book Button Styling (Match Primary) */
.lw-btn-mobile-book {
  background: var(--grad-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  border: none !important;
}

/* Footer Fixes */
.lw-footer {
  margin-top: 0 !important;
  /* Remove huge margin */
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.lw-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}


/* Ensure no gap between CTA and Footer */
.lw-cta-banner {
  margin-bottom: 0 !important;
}

main {
  padding-bottom: 0 !important;
}

/* Refine Footer Typography */
.lw-footer p {
  color: var(--text);
  font-size: 0.9rem;
}


/* Mobile Header Layout Fix (Logo Left, Book Center, Login Right) */
@media (max-width: 768px) {
  .lw-header-inner {
    justify-content: space-between !important;
    padding: 0.75rem 1rem !important;
  }

  /* Logo: Left & Smaller */
  .lw-header .lw-logo {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  .lw-header .lw-logo-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }

  /* Mobile Actions Container */
  .lw-mobile-actions {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  /* Book Button: Natural flow, not absolute */
  .lw-btn-mobile-book {
    position: static !important;
    transform: none !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Login Button: Same sizing for visual balance */
  .lw-btn-mobile-login {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
  }
}

/* Extra Small Screens: Hide Logo Text to prevent overlap */
@media (max-width: 380px) {
  .lw-header .lw-logo-text {
    display: none !important;
  }
}


/* Visual Separation: Tutors Section Gradient */
#tutors {
  background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Mobile Header Spacing Fix */
@media (max-width: 768px) {
  .lw-header-inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}


/* Fix Mobile Dashboard Layout */
@media (max-width: 768px) {
  .lw-list-item {
    flex-direction: column !important;
    align-items: stretch !important;
    /* Stretch to fill width */
    gap: 1rem !important;
  }

  .lw-item-main {
    display: flex !important;
    align-items: flex-start !important;
    /* Align avatar to top */
    gap: 1rem !important;
    width: 100% !important;
  }

  .lw-profile-avatar {
    flex-shrink: 0 !important;
    /* Prevent avatar shrinking */
  }

  .lw-item-content {
    flex: 1 !important;
    /* Take remaining space */
    min-width: 0 !important;
    /* Allow text truncation */
  }

  .lw-item-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--border) !important;
    /* Separator for actions */
  }
}

/* Fix Featured Tutors Alignment (Start from left to prevent card disappearing) */
.lw-tutor-track {
  justify-content: flex-start;
  /* Start from left - center causes cards to shift off-screen with many tutors */
}


/* Toast Notifications */
.lw-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lw-toast-message {
  background: white;
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid var(--primary);
  font-weight: 500;
}

.lw-toast-message.error {
  border-left-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Mobile Toast Position */
@media (max-width: 768px) {
  .lw-toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* Hide sidebar actions on mobile (redundant with header) */
@media (max-width: 768px) {
  .lw-sidebar-actions {
    display: none !important;
  }
}

/* Featured Tutors Section Gradient */
#tutors {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

#tutors .lw-section-title,
#tutors .lw-section-subtitle {
  color: white;
}

/* Ensure tutor cards maintain readability */
#tutors .lw-tutor-card {
  background: white;
  color: var(--text);
}

/* Ensure tutor cards maintain readability with gradient */
#tutors .lw-tutor-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==========================================
   MOBILE DASHBOARD - HAMBURGER MENU
   ========================================== */

/* Hamburger Button */
.lw-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.lw-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.lw-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.lw-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.lw-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar Overlay */
.lw-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lw-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
  .lw-hamburger {
    display: flex;
  }

  .lw-dashboard-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lw-profile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 160;
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }

  .lw-profile-sidebar.active {
    transform: translateX(0);
  }

  .lw-dashboard-content {
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 60px);
  }

  .lw-dash-topbar {
    margin-bottom: 1.5rem;
  }

  .lw-dash-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .lw-stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  .lw-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lw-form-grid {
    grid-template-columns: 1fr !important;
  }

  .lw-item-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .lw-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lw-item-main {
    width: 100%;
  }

  .lw-sidebar-actions {
    display: flex !important;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
}

/* ==========================================
   TERMS & CONDITIONS MODAL
   ========================================== */

.lw-tcs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lw-tcs-modal.active {
  display: flex;
  opacity: 1;
}

.lw-tcs-content {
  background: var(--white);
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

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

.lw-tcs-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.lw-tcs-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.lw-tcs-close:hover {
  color: var(--dark);
}

.lw-tcs-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}

.lw-tcs-body h4 {
  color: var(--primary);
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
}

.lw-tcs-body h4:first-child {
  margin-top: 0;
}

.lw-tcs-body p,
.lw-tcs-body li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.lw-tcs-body ul,
.lw-tcs-body ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.lw-tcs-body li {
  margin-bottom: 0.5rem;
}

.lw-tcs-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: #F8FAFC;
  border-radius: 0 0 1rem 1rem;
}

/* ==========================================
   SIGNATURE PAD
   ========================================== */

.lw-signature-section {
  margin-top: 1rem;
}

.lw-signature-section label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.lw-signature-pad-container {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: #FAFAFA;
  position: relative;
  overflow: hidden;
}

.lw-signature-canvas {
  display: block;
  width: 100%;
  height: 150px;
  cursor: crosshair;
  touch-action: none;
}

.lw-signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #F1F5F9;
  border-top: 1px solid var(--border);
}

.lw-btn-clear-sig {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lw-btn-clear-sig:hover {
  background: var(--white);
  border-color: #cbd5e1;
}

.lw-signature-hint {
  font-size: 0.8rem;
  color: var(--text);
}

/* Signature Preview */
.lw-signature-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: #F8FAFC;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.lw-signature-preview img {
  max-height: 80px;
  display: block;
}

.lw-signature-preview-label {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Checkbox Styling */
.lw-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
}

.lw-checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.lw-checkbox-group label {
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.5;
}

/* T&Cs Button in Form */
.lw-tcs-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  border-radius: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

.lw-tcs-trigger:hover {
  background: #E0E7FF;
  border-color: var(--primary);
}

.lw-tcs-trigger.accepted {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

/* ==========================================
   ADMIN TUTOR DETAIL MODAL
   ========================================== */

.lw-tutor-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 200;
  overflow-y: auto;
}

.lw-tutor-detail-modal.active {
  display: flex;
}

.lw-tutor-detail-content {
  background: var(--white);
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

.lw-tutor-detail-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1rem 1rem 0 0;
  color: white;
}

.lw-tutor-detail-header h3 {
  margin: 0;
  color: white;
}

.lw-tutor-detail-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  line-height: 1;
  transition: background 0.2s;
}

.lw-tutor-detail-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lw-tutor-detail-body {
  padding: 1.5rem;
}

.lw-detail-section {
  margin-bottom: 2rem;
}

.lw-detail-section:last-child {
  margin-bottom: 0;
}

.lw-detail-section h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E0E7FF;
}

.lw-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lw-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lw-detail-label {
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lw-detail-value {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}

.lw-signature-display {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.lw-signature-display img {
  max-height: 120px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: white;
}

.lw-signature-timestamp {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 0.75rem;
}

.lw-no-signature {
  color: var(--text);
  font-style: italic;
  padding: 2rem;
}

@media (max-width: 600px) {
  .lw-detail-grid {
    grid-template-columns: 1fr;
  }

  .lw-tutor-detail-modal {
    padding: 1rem 0.5rem;
  }
}

/* ==========================================
   MOBILE DASHBOARD - FINAL FIXES
   ========================================== */
@media (max-width: 768px) {

  /* Dashboard Root: Prevent horizontal overflow */
  #dashboard-root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Dashboard Layout: Single column */
  .lw-dashboard-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Main Content: Proper mobile padding */
  .lw-dashboard-content {
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Dashboard Cards: Full width, no overflow */
  .lw-dash-card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Stats Row: Stack vertically */
  .lw-stats-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .lw-stat-item {
    width: 100% !important;
    padding: 1rem !important;
    text-align: center !important;
  }

  /* Form Grid: Single column */
  .lw-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  /* Profile Picture Section */
  .lw-profile-pic-container,
  .lw-profile-photo-section {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  /* File upload button fix */
  .lw-dash-card input[type="file"] {
    max-width: 100% !important;
    font-size: 0.85rem !important;
  }

  /* Actions Bar: Stack buttons */
  .lw-actions-bar {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .lw-actions-bar button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Topbar: Better mobile layout */
  .lw-dash-topbar {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
  }

  /* Hamburger visible */
  .lw-hamburger {
    display: flex !important;
    order: 1 !important;
  }

  .lw-breadcrumb {
    order: 2 !important;
    font-size: 0.85rem !important;
  }
}

/* ==========================================
   FEATURED TUTORS CAROUSEL - FINAL FIXES
   ========================================== */
/* Desktop: Horizontal scroll carousel */
.lw-tutor-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  overflow: hidden;
}

.lw-tutor-track {
  display: flex !important;
  gap: 1rem !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  padding: 1rem 0.5rem 1.5rem !important;
  width: 100% !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
}

.lw-tutor-track::-webkit-scrollbar {
  display: none !important;
}

/* Desktop card size */
.lw-tutor-card {
  min-width: 280px !important;
  max-width: 320px !important;
  flex: 0 0 280px !important;
  scroll-snap-align: start !important;
}

/* Carousel buttons */
.lw-carousel-btn {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
  z-index: 5 !important;
}

/* Mobile: Full-width stacked cards */
@media (max-width: 768px) {
  .lw-tutor-carousel {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Hide carousel buttons on mobile */
  .lw-carousel-btn {
    display: none !important;
  }

  /* Stack cards vertically on mobile */
  .lw-tutor-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  /* Full-width cards on mobile */
  .lw-tutor-card {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }
}

/* Tablet: Horizontal scroll with smaller cards */
@media (min-width: 769px) and (max-width: 1024px) {
  .lw-tutor-card {
    min-width: 260px !important;
    max-width: 280px !important;
    flex: 0 0 260px !important;
  }
}

/* Large screens: Ensure cards don't grow too big */
@media (min-width: 1200px) {
  .lw-tutor-card {
    min-width: 300px !important;
    max-width: 340px !important;
    flex: 0 0 300px !important;
  }
}

/* ==========================================
   PROFILE PICTURE UPLOAD - MOBILE FIX
   ========================================== */
@media (max-width: 768px) {

  /* Profile image form: Stack vertically on mobile */
  #tutor-image-form {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  #tutor-image-form>div {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* File input and button container: Stack vertically */
  #tutor-image-form>div>div {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* File input: Full width */
  #tutor-image-form input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.5rem !important;
  }

  /* Upload button: Full width */
  #tutor-image-form button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Profile preview image centered */
  #preview-avatar {
    margin: 0 auto !important;
    display: block !important;
  }
}

/* ==========================================
   ADMIN TUTOR FILTER BAR
   ========================================== */
.lw-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.lw-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
  flex: 1;
}

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

.lw-filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lw-filter-select:hover {
  border-color: var(--primary);
}

.lw-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lw-filter-reset {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lw-filter-reset:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.lw-filter-results {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.lw-filter-results span {
  font-weight: 600;
  color: var(--primary);
}

/* Mobile filter bar */
@media (max-width: 768px) {
  .lw-filter-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .lw-filter-group {
    width: 100%;
    min-width: auto;
  }

  .lw-filter-select {
    width: 100%;
  }

  .lw-filter-reset {
    width: 100%;
  }
}

/* ==========================================
   CNIC PREVIEW & DISPLAY STYLES
   ========================================== */
/* CNIC preview in registration form */
.lw-cnic-preview {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.lw-cnic-preview-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.lw-cnic-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* CNIC display in admin modal */
.lw-cnic-display {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.lw-cnic-display img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.lw-no-cnic {
  padding: 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================
   TUTOR REGISTRATION FORM - MOBILE FIX
   ========================================== */
@media (max-width: 768px) {

  /* Auth grid: Single column on mobile */
  .lw-auth-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  /* Auth panel: Full width with proper padding */
  .lw-auth-panel {
    padding: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hide benefits panel on mobile */
  .lw-auth-benefits {
    display: none !important;
  }

  /* Panel header */
  .lw-panel-header {
    margin-bottom: 1rem !important;
  }

  .lw-panel-title {
    font-size: 1.25rem !important;
  }

  /* Auth toggle tabs */
  .lw-auth-toggle {
    margin-bottom: 1.5rem !important;
  }

  .lw-tab {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Form fields */
  .lw-auth-panel .lw-field {
    margin-bottom: 0.75rem !important;
  }

  .lw-auth-panel .lw-label {
    font-size: 0.85rem !important;
  }

  .lw-auth-panel .lw-input,
  .lw-auth-panel .lw-textarea {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* File input styling */
  .lw-auth-panel input[type="file"] {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }

  /* Helper text */
  .lw-auth-panel .lw-helper-text {
    font-size: 0.75rem !important;
  }

  /* T&Cs trigger button */
  .lw-auth-panel .lw-tcs-trigger {
    font-size: 0.85rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  /* Submit button */
  .lw-auth-panel .lw-btn-primary {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* CNIC preview */
  .lw-cnic-preview img {
    max-height: 150px !important;
  }

  /* Signature preview */
  .lw-signature-preview img {
    max-height: 60px !important;
  }
}