:root {
  --luxury-primary: #2563EB;
  --luxury-secondary: #3B82F6;
  --luxury-text: #0F172A;
  --luxury-text-secondary: #64748B;
  --luxury-bg: #F7F9FE;
  --luxury-card: #FFFFFF;
  --luxury-success: #22C55E;
  --luxury-warning: #F59E0B;
  --luxury-danger: #EF4444;
  --luxury-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --luxury-radius: 24px;
  --app-header-height: 68px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--luxury-bg);
  color: var(--luxury-text);
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}


.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 3.5rem 0.95rem 7.2rem;
}

.mobile-header {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 430px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow:
    0 16px 40px rgba(31, 52, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 1050;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef4ff, #dbe8ff);
  color: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(37, 99, 235, 0.10);
  flex-shrink: 0;
}

.brand-logo i,
.brand-logo svg {
  font-size: 18px;
  line-height: 1;
  display: block;
}

.mobile-header-title {
  margin: 0;
  color: #101b34;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
}

.mobile-header-title__accent {
  color: #2563eb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn,
.header-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: rgba(241, 246, 255, 0.9);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, background 160ms ease;
  flex-shrink: 0;
}

.header-icon-btn i,
.header-icon-btn svg,
.header-avatar i,
.header-avatar svg {
  font-size: 17px;
  line-height: 1;
  display: block;
}

.header-icon-btn:active,
.header-avatar:active {
  transform: scale(0.95);
  background: #e4edff;
}

.header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  position: absolute;
  top: 7px;
  right: 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(var(--app-header-height, 68px) + 4px) 1rem 7rem;
}

.app-content {
  display: grid;
  gap: 1.1rem;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.luxury-card {
  background: var(--luxury-card);
  border-radius: var(--luxury-radius);
  box-shadow: var(--luxury-shadow);
  border: 1px solid #e5edff;
}


.dashboard-header-card,
.page-header-card {
  padding: 1.25rem;
}

.dashboard-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: var(--luxury-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.25rem 0;
  letter-spacing: -0.01em;
}

.dashboard-subtitle {
  margin: 0;
  color: var(--luxury-text-secondary);
  font-size: 0.95rem;
}

.dashboard-hero {
  background: linear-gradient(145deg, #ffffff 0%, #edf3ff 100%);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  padding: 0.95rem;
  border-radius: 18px;
  display: grid;
  gap: 0.35rem;
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--luxury-primary);
  background: rgba(37, 99, 235, 0.12);
}

.stat-icon-blue { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.stat-icon-orange { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.stat-icon-green { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.stat-icon-purple { background: rgba(139, 92, 246, 0.14); color: #6d28d9; }

.stat-label {
  margin: 0;
  color: var(--luxury-text-secondary);
  font-size: 0.78rem;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.quick-actions-grid {
  display: grid;
  gap: 0.55rem;
}

.schedule-preview-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem;
  margin-top: 0.5rem;
}

.schedule-preview-time {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--luxury-primary);
}

.schedule-preview-title {
  margin: 0.05rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-preview-sub {
  margin: 0.05rem 0 0;
  font-size: 0.72rem;
  color: var(--luxury-text-secondary);
}

.section-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.section-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--luxury-primary);
  background: rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.day-selector {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0.05rem 0.2rem;
  scrollbar-width: none;
}

.day-selector::-webkit-scrollbar {
  display: none;
}

.day-chip {
  border: none;
  background: #FFFFFF;
  color: #6B7280;
  min-width: 2.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  box-shadow: var(--luxury-shadow);
  font-size: 0.82rem;
  font-weight: 600;
}

.day-chip.active {
  background: var(--luxury-primary);
  color: #FFFFFF;
}

.planning-section {
  display: grid;
  gap: 0.65rem;
}

.planning-grid {
  display: grid;
  gap: 0.75rem;
}

.lesson-card {
  padding: 0.95rem;
  border-left: 4px solid transparent;
}

.lesson-driving {
  border-left-color: #16A34A;
}

.lesson-exam {
  border-left-color: var(--luxury-primary);
}

.lesson-cancelled {
  border-left-color: #DC2626;
}

.lesson-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.lesson-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--luxury-primary);
}

.lesson-type-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5563;
  margin-bottom: 0.45rem;
}

.lesson-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.lesson-meta {
  margin: 0.3rem 0 0;
  color: #6B7280;
  font-size: 0.81rem;
}

.status-pill {
  background: #ECFDF3;
  color: #166534;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  white-space: nowrap;
}

.agenda-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.agenda-view-tab {
  text-align: center;
  background: #ffffff;
  color: #64748b;
  border-radius: 10px;
  padding: 0.36rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.agenda-view-tab.active {
  background: var(--luxury-primary);
  color: #ffffff;
}

.agenda-view-tab i {
  font-size: 0.72rem;
}

.agenda-filter-card {
  padding: 0.95rem;
  margin-top: calc(var(--app-header-height, 84px) + 12px);
}

.agenda-filter-toggle {
  width: 100%;
  border: none;
  background: #eef4ff;
  color: var(--luxury-text);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.agenda-filter-panel {
  display: none;
  margin-top: 0.65rem;
}

.agenda-filter-panel.open {
  display: block;
}

.agenda-page {
  display: grid;
  gap: 0.65rem;
}

.agenda-hero-card {
  min-height: 118px;
  padding: 1rem 1rem 0.95rem;
}

.agenda-hero-card .dashboard-greeting {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
}

.agenda-hero-card .dashboard-title {
  font-size: 1.45rem;
  margin: 0;
}

.agenda-hero-card .dashboard-subtitle {
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.agenda-hero-illustration {
  position: absolute;
  right: -0.1rem;
  bottom: -0.35rem;
  width: 7.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.agenda-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
}

.agenda-filter-submit {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
}

.agenda-filter-form {
  display: grid;
  gap: 0.65rem;
}

.agenda-filter-form .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: #6B7280;
  font-weight: 700;
}

.form-label,
label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F2937;
}

.agenda-filter-form .form-select,
.agenda-filter-form .form-control {
  border-radius: 12px;
  border-color: #E5E7EB;
  font-size: 0.9rem;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 576px) {
  .agenda-filter-form .form-select,
  .agenda-filter-form .form-control {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }
}

.agenda-filter-btn,
.agenda-create-btn {
  border: none;
  border-radius: 12px;
  font-weight: 600;
  background: var(--luxury-primary);
}

.agenda-create-btn {
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.agenda-items-grid {
  display: grid;
  gap: 0.55rem;
}

.agenda-items-grid .section-heading {
  font-size: 1rem;
}

.agenda-item-card {
  padding: 0.95rem;
  border-left: 4px solid transparent;
}

.agenda-day-card {
  border-left-width: 5px;
  border-left-style: solid;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.agenda-theme-lesson {
  border-left-color: var(--luxury-success);
}

.agenda-theme-exam {
  border-left-color: var(--luxury-primary);
}

.agenda-theme-default {
  border-left-color: #94A3B8;
}

.agenda-theme-lesson .agenda-day-avatar {
  background: rgba(34, 197, 94, 0.16);
  color: #15803D;
}

.agenda-theme-exam .agenda-day-avatar {
  background: rgba(37, 99, 235, 0.16);
  color: #1D4ED8;
}

.agenda-theme-default .agenda-day-avatar {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.agenda-type-badge {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
}

.agenda-theme-lesson .agenda-type-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.agenda-theme-exam .agenda-type-badge {
  background: rgba(37, 99, 235, 0.15);
  color: #1E40AF;
}

.agenda-theme-default .agenda-type-badge {
  background: rgba(148, 163, 184, 0.2);
  color: #334155;
}

.agenda-accent-driving {
  border-left-color: #16A34A;
}

.agenda-accent-exam {
  border-left-color: var(--luxury-primary);
}

.agenda-accent-cancelled {
  border-left-color: #DC2626;
}

.agenda-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.agenda-item-time {
  color: var(--luxury-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.agenda-item-meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.agenda-item-meta-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.agenda-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--luxury-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
}

.agenda-timeline-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.35rem;
  align-items: stretch;
}

.agenda-time-column {
  display: grid;
  align-content: space-between;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 600;
  min-width: 2rem;
}

.agenda-line {
  width: 8px;
  position: relative;
  display: flex;
  justify-content: center;
}

.agenda-line::before {
  content: "";
  width: 2px;
  background: #d9e2ff;
  position: absolute;
  top: 0;
  bottom: 0;
}

.agenda-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
  margin-top: 0.48rem;
  z-index: 1;
}

.agenda-theme-lesson .agenda-dot {
  background: #22c55e;
}

.agenda-theme-exam .agenda-dot {
  background: #2563eb;
}

.agenda-schedule-card {
  padding: 0.62rem 0.62rem 0.58rem;
  border-left: 3px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.agenda-schedule-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.28rem;
}

.agenda-status-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #94a3b8;
}

.agenda-status-wrap i {
  font-size: 0.72rem;
}

.agenda-theme-lesson .agenda-schedule-card {
  border-left-color: var(--luxury-success);
}

.agenda-theme-exam .agenda-schedule-card {
  border-left-color: var(--luxury-primary);
}

.agenda-theme-default .agenda-schedule-card {
  border-left-color: #94a3b8;
}

.agenda-fab-wrap {
  position: fixed;
  right: 1rem;
  bottom: 5.3rem;
  z-index: 1060;
}

.agenda-fab-btn {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.32);
  font-size: 1.05rem;
}

.agenda-empty-card {
  padding: 1rem;
}

.agenda-empty-card h2 {
  margin: 0;
  font-size: 1rem;
}

.agenda-empty-card p {
  margin: 0.35rem 0 0;
  color: #6B7280;
  font-size: 0.85rem;
}

.agenda-current-filters-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
}

.agenda-current-date-chip {
  background: rgba(37, 99, 235, 0.14);
  color: var(--luxury-primary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.fab-menu {
  position: fixed;
  right: 1rem;
  bottom: 5.3rem;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.fab-main {
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  color: #FFFFFF;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.fab-actions {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.fab-menu.open .fab-actions {
  display: flex;
}

.fab-action-item {
  background: #FFFFFF;
  color: var(--luxury-text);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  box-shadow: var(--luxury-shadow);
}

.menu-grid {
  display: grid;
  gap: 0.8rem;
}

.menu-card {
  padding: 1rem;
}

.menu-icon {
  font-size: 1.3rem;
}

.menu-card h2 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.menu-card p {
  margin: 0;
  color: #6B7280;
  font-size: 0.85rem;
}

.more-header-card {
  padding: 1.1rem;
}

.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.more-menu-card {
  padding: 0.95rem 0.85rem;
  display: grid;
  gap: 0.55rem;
  min-height: 110px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #F1F3F8;
}

.more-menu-card:active {
  transform: translateY(1px);
}

.more-menu-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(37, 99, 235, 0.14);
  color: var(--luxury-primary);
}

.more-menu-card h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--luxury-text);
}

.more-menu-card.accent-orange {
  border-left: 3px solid var(--luxury-primary);
}

.more-menu-card.accent-danger {
  border-left: 3px solid #DC2626;
}

.more-menu-card.accent-danger .more-menu-icon {
  background: #FEE2E2;
  color: #B91C1C;
}

.more-logout-form {
  margin: 0;
  padding: 0;
  display: contents;
}

.more-menu-card--logout {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  font: inherit;
}

.more-menu-card--logout .more-menu-card__icon,
.more-menu-card--logout .more-menu-icon {
  background: #fee2e2;
  color: #dc2626;
}

.more-menu-card--logout h2 {
  color: #b91c1c;
}

.home-menu-hero {
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #dbe7ff;
}

.home-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-menu-card {
  padding: 1rem 0.9rem;
  display: grid;
  gap: 0.8rem;
  min-height: 120px;
  border-left: 3px solid var(--luxury-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-menu-card:active {
  transform: translateY(1px);
}

.home-menu-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(37, 99, 235, 0.14);
  color: var(--luxury-primary);
}

.home-menu-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.home-menu-card-danger {
  border-left-color: #DC2626;
}

.home-menu-icon-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 430px;
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 4px;
  padding: 6px;
  border: 1px solid #e3eaf7;
  border-radius: 20px;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  z-index: 1050;
}

.bottom-nav--student {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bottom-nav-link {
  position: relative;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: #6a7588;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.bottom-nav-link i,
.bottom-nav-link svg {
  font-size: 20px;
  line-height: 1;
  display: block;
}

.bottom-nav-link span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-link.active {
  color: #1d4ed8;
  background: #eef4ff;
  box-shadow: none;
  transform: none;
}

.bottom-nav-link.active i,
.bottom-nav-link.active svg,
.bottom-nav-link.active span {
  color: #1d4ed8;
}

.bottom-nav-link.active::after {
  content: none;
}

.bottom-nav-link:not(.active):hover {
  background: #f4f7fd;
  color: #334155;
}

.bottom-nav-link:active {
  transform: scale(0.96);
}

.mobile-empty-state {
  padding: 1.1rem;
  text-align: center;
}

.mobile-empty-state .empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  margin: 0 auto 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.14);
  color: var(--luxury-primary);
  font-size: 1.2rem;
}

.mobile-empty-state h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.mobile-empty-state p {
  margin: 0.35rem 0 0;
  color: #6B7280;
  font-size: 0.85rem;
}

.status-badge {
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.14rem 0.45rem;
  white-space: nowrap;
}

.status-badge-neutral {
  background: #F3F4F6;
  color: #374151;
}

.status-badge-success {
  background: #ECFDF3;
  color: #166534;
}

.status-badge-warning {
  background: #FFF3EA;
  color: #C2410C;
}

.status-badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.luxury-input,
.luxury-select,
.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
  border-radius: 14px;
}

.form-control,
.form-select {
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid #E5E7EB;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 120px;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

@media (max-width: 576px) {
  .form-control,
  .form-select {
    min-height: 56px;
    padding: 0.95rem 1rem;
    font-size: 1.02rem;
  }

  textarea.form-control {
    min-height: 132px;
  }

  .luxury-btn {
    min-height: 56px;
    font-size: 1.02rem;
    padding: 1rem 1.25rem;
  }

  .form-label,
  label {
    font-size: 1rem;
  }

  .package-list-grid,
  .package-summary-grid,
  .package-metrics,
  .package-lesson-stats {
    gap: 12px;
  }

  .package-summary-card,
  .package-metric,
  .package-card,
  .package-hero-card,
  .package-summary-shell,
  .package-detail-card {
    padding: 15px;
  }
}

.luxury-btn {
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--luxury-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.page-section {
  display: grid;
  gap: 1rem;
}

.module-list-grid {
  display: grid;
  gap: 1rem;
}

.module-list-card {
  padding: 1rem;
  border-radius: 18px;
}

.module-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.module-user-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
}

.module-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--luxury-primary);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.module-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.module-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--luxury-text-secondary);
}

.module-meta {
  margin: 0.3rem 0 0;
  color: var(--luxury-text-secondary);
  font-size: 0.79rem;
}

.module-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.lesson-mobile-card {
  position: relative;
  padding: 0.75rem;
  border-radius: 16px;
  border-left: 3px solid #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lesson-mobile-card.lesson-driving {
  border-left-color: var(--luxury-success);
}

.lesson-mobile-card.lesson-exam {
  border-left-color: var(--luxury-primary);
}

.lesson-mobile-card.lesson-cancelled {
  border-left-color: var(--luxury-danger);
}

.lesson-mobile-card:active {
  transform: scale(0.992);
}

.lesson-mobile-main-link {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.lesson-mobile-time-col {
  display: grid;
  gap: 0.1rem;
  min-width: 2.1rem;
  font-size: 0.64rem;
  color: var(--luxury-text-secondary);
  font-weight: 600;
}

.lesson-mobile-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
}

.lesson-mobile-content {
  min-width: 0;
}

.lesson-mobile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.lesson-mobile-content .module-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.lesson-mobile-right {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  color: #94a3b8;
}

.lesson-mobile-menu {
  position: absolute;
  top: 0.34rem;
  right: 0.34rem;
}

.lesson-menu-btn {
  border: none;
  background: #e8f0ff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #2563eb;
}

.lesson-sheet-trigger {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
}

.lesson-modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lesson-action-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.16s ease;
  background: #fff;
}

.lesson-action-btn:hover {
  transform: translateY(-1px);
}

.lesson-action-btn-primary {
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.lesson-action-btn-neutral {
  border-color: #d1d5db;
  color: #334155;
  background: #fff;
}

.lesson-action-btn-danger {
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.lesson-sheet-modal .modal-dialog {
  margin: 0;
  max-width: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75vh;
}

.lesson-action-sheet {
  border: none;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.2);
  background: #fff;
  height: 100%;
}

.lesson-sheet-modal .modal-content {
  transform: translateY(24px);
  transition: transform 0.26s ease;
}

.lesson-sheet-modal.show .modal-content {
  transform: translateY(0);
}

.glass-backdrop {
  backdrop-filter: blur(12px);
}

.modal-backdrop.show {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.lesson-sheet-handle {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: #dbe5ff;
  margin: 12px auto 4px;
}

.lesson-sheet-body {
  padding: 0.8rem 1rem 1.35rem;
  overflow-y: auto;
}

.lesson-sheet-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.lesson-sheet-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.lesson-sheet-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.action-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border: none;
  border-radius: 22px;
  padding: 0.9rem 0.8rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card:active {
  transform: scale(0.99);
}

.action-card strong {
  display: block;
  font-size: 0.98rem;
}

.action-card small {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  margin-top: 1px;
}

.action-card-btn {
  text-align: left;
}

.action-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.action-icon-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.action-icon-indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.action-icon-green { background: rgba(34, 197, 94, 0.14); color: #16a34a; }
.action-icon-orange { background: rgba(249, 115, 22, 0.14); color: #ea580c; }
.action-icon-purple { background: rgba(168, 85, 247, 0.14); color: #9333ea; }
.action-icon-danger { background: rgba(239, 68, 68, 0.14); color: #ef4444; }

.action-chevron {
  color: #94a3b8;
}

.action-card-danger {
  background: rgba(239, 68, 68, 0.08);
}

.action-card-danger strong,
.action-card-danger .action-chevron {
  color: #ef4444;
}

.home-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 6px;
  display: grid;
  gap: 0.7rem;
}

.home-compact-hero {
  display: grid;
  gap: 2px;
  margin-top: 0;
}

.home-compact-hero__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.home-compact-hero__subtitle {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #64748b;
}

.quick-action-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.quick-action-card {
  border-radius: 14px;
  padding: 0.55rem 0.5rem;
  color: #fff;
  min-height: 82px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-action-card:active {
  transform: translateY(1px);
}

.quick-action-card i {
  font-size: 0.95rem;
}

.quick-action-card h3 {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.quick-action-card p {
  margin: 0;
  font-size: 0.66rem;
  opacity: 0.9;
}

.qa-blue { background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%); }
.qa-purple { background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%); }
.qa-green { background: linear-gradient(135deg, #14B8A6 0%, #22C55E 100%); }

.main-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.menu-card {
  padding: 0.58rem 0.42rem;
  min-height: 74px;
  text-align: center;
}

.menu-card h2 {
  font-size: 0.67rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

.menu-card .home-menu-icon {
  margin: 0 auto;
}

.schedule-card {
  padding: 1rem;
  border-radius: 22px;
}

.schedule-item-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  border: 1px solid #e3ebff;
  border-left: 4px solid var(--luxury-primary);
  border-radius: 12px;
  padding: 0.5rem;
}

.schedule-time-column {
  font-size: 0.75rem;
  color: var(--luxury-text-secondary);
  line-height: 1.25;
}

.schedule-time-column p {
  margin: 0;
}

.schedule-main-column {
  min-width: 0;
}

.schedule-side-column {
  display: grid;
  align-content: space-between;
  justify-items: end;
  color: #94a3b8;
}

.type-chip {
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-block;
}

.type-chip-lesson {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.dark-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.home-page--planning {
  gap: 0.7rem;
}

.home-page--planning .section-heading-wrap {
  margin-bottom: 0.45rem;
}

.home-page--planning .section-heading {
  font-size: 0.95rem;
}

.planning-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 420px) {
  .home-page--planning .planning-summary-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .home-page--planning .planning-summary-grid::-webkit-scrollbar {
    display: none;
  }
}

.planning-stat {
  min-height: 86px;
  padding: 0.5rem 0.38rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  border: 1px solid #e7eefc;
  align-content: start;
}

.planning-stat .stat-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  margin-bottom: 4px;
}

.planning-stat h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.planning-stat .stat-label {
  margin-top: 3px;
  font-size: 0.63rem;
  line-height: 1.15;
  min-height: 22px;
}

.planning-stat-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  margin-top: 4px;
}

.planning-stat-line--blue { background: #2563eb; }
.planning-stat-line--orange { background: #fb923c; }
.planning-stat-line--yellow { background: #f59e0b; }
.planning-stat-line--green { background: #22c55e; }
.planning-stat-line--red { background: #ef4444; }

.planning-stat--waiting .stat-icon {
  background: #fff7e7;
  color: #d97706;
}

.planning-stat--confirmed .stat-icon {
  background: #ecfdf3;
  color: #16a34a;
}

.planning-stat--declined .stat-icon {
  background: #fff1f2;
  color: #ef4444;
}

.planning-schedule-card {
  padding: 0.6rem;
  border-radius: 14px;
}

.planning-schedule-card .section-heading {
  font-size: 1rem;
}

.planning-row {
  margin-top: 6px;
  border-radius: 12px;
  border-left-width: 3px;
  padding: 0.48rem;
}

.planning-time-column {
  min-width: 42px;
  color: #334155;
  font-weight: 700;
  font-size: 0.72rem;
}

.planning-side-column {
  gap: 4px;
}

.status-waiting {
  background: #fff4e8;
  color: #ea580c;
}

.status-confirmed {
  background: #ecfdf3;
  color: #16a34a;
}

.status-declined {
  background: #fff1f2;
  color: #ef4444;
}

.type-chip-exam {
  background: #fff2e8;
  color: #ea580c;
}

.form-shell-card {
  padding: 1rem;
  border-radius: 20px;
}

.form-grid-group {
  display: grid;
  gap: 0.3rem;
}

.form-grid-group .form-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--luxury-text-secondary);
}

.login-account-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 14px;
}

.login-account-card__header span {
  display: inline-block;
  margin-bottom: 4px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-account-card__header h2 {
  margin: 0;
  color: #101b34;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.login-account-card__header p {
  margin: 6px 0 0;
  color: #647188;
  font-size: 14px;
  line-height: 1.45;
}

.login-account-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-account-toggle .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.login-account-toggle .form-check-label {
  margin: 0;
  color: #17233c;
  font-size: 14px;
  font-weight: 750;
}

.login-account-fields {
  display: grid;
  gap: 12px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .form-control {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #eef4ff;
  color: #2962ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle-btn i {
  font-size: 15px;
}

/* Student create page */
.student-create-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: calc(var(--app-header-height, 84px) + 16px) 18px 120px;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}

.student-create-form {
  display: grid;
  gap: 14px;
}

.student-create-hero {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow: 0 14px 36px rgba(31, 52, 96, 0.08);
}

.student-create-hero__label {
  display: block;
  margin-bottom: 5px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-create-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: #07142f;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.student-create-hero p {
  margin: 0;
  color: #62708a;
  font-size: 14px;
  line-height: 1.45;
}

.student-form-card {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 14px 34px rgba(31, 52, 96, 0.08);
}

.student-form-card__header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f7;
}

.student-form-card__header span {
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-form-card__header h2 {
  margin: 4px 0 4px;
  color: #101b34;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}

.student-form-card__header p {
  margin: 0;
  color: #647188;
  font-size: 14px;
}

.student-form-grid,
.student-login-grid {
  display: grid;
  gap: 14px;
}

.student-form-group {
  display: grid;
  gap: 7px;
}

.student-form-group label {
  color: #17233c;
  font-size: 13px;
  font-weight: 750;
}

.student-form-control,
.student-form-card input,
.student-form-card select,
.student-form-card textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #fff;
  color: #101b34;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
}

.student-form-card textarea,
.student-form-control textarea,
textarea.student-form-control {
  min-height: 110px;
  padding-top: 14px;
}

.student-form-control:focus,
.student-form-card input:focus,
.student-form-card select:focus,
.student-form-card textarea:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.12);
}

.student-login-card {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f7faff);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow: 0 14px 34px rgba(31, 52, 96, 0.08);
}

.student-login-card__header {
  margin-bottom: 14px;
}

.student-login-card__header span {
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-login-card__header h2 {
  margin: 4px 0 4px;
  color: #101b34;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}

.student-login-card__header p {
  margin: 0;
  color: #647188;
  font-size: 14px;
  line-height: 1.45;
}

.student-login-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #17233c;
  font-size: 14px;
  font-weight: 750;
}

.student-login-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.student-login-fields[hidden] {
  display: none;
}

.student-login-email-preview {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #f8fbff;
  color: #43516a;
  font-size: 14px;
}

.student-password-field {
  position: relative;
}

.student-password-field input {
  padding-right: 46px;
}

.student-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #6b768a;
}

.student-create-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 4px;
}

.student-create-cancel,
.student-create-save {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.student-create-cancel {
  border: 1px solid #dfe6f1;
  background: #fff;
  color: #43516a;
}

.student-create-save {
  border: 0;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 28px rgba(41, 98, 255, 0.24);
}

@media (max-width: 360px) {
  .student-create-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .student-create-actions {
    grid-template-columns: 1fr;
  }
}

.detail-list-card {
  padding: 1rem;
  border-radius: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2ff;
  font-size: 0.86rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--luxury-text-secondary);
  font-weight: 600;
}

.delete-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

@media (min-width: 768px) {
  .mobile-header {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px;
    box-shadow:
      0 16px 40px rgba(31, 52, 96, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 430px;
    border-radius: 20px;
  }

  .bottom-nav--student {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell {
    max-width: 430px;
  }

  .fab-menu,
  .agenda-fab-wrap {
    right: calc(50% - 205px);
  }

  .more-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-menu-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-menu-hero {
    padding: 1.35rem;
  }
}

/* === STUDENTS PAGE V2 (COMPACT MOBILE) === */

.students-v2-page {
  display: grid;
  gap: 12px;
  padding: 0;
}

.students-v2-header {
  min-height: 128px;
  border-radius: 18px;
  border: 1px solid #e3ebfb;
  background: linear-gradient(150deg, #ffffff 0%, #f3f7ff 100%);
  padding: 14px 14px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.students-v2-header__content {
  min-width: 0;
}

.students-v2-header__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 4px;
}

.students-v2-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.students-v2-header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
}

.students-v2-header__illustration {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #eaf1ff;
  border: 1px solid #d9e6ff;
}

.students-v2-header__illustration i {
  font-size: 22px;
}

.students-v2-create-btn {
  min-height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  text-decoration: none;
}

.students-v2-create-btn i {
  font-size: 14px;
}

.students-v2-create-btn--inline {
  width: auto;
  padding: 0 14px;
}

.students-v2-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.students-v2-stat-card {
  border-radius: 16px;
  border: 1px solid #e5edff;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  padding: 12px;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.students-v2-stat-card__label {
  font-size: 12px;
  color: #64748b;
}

.students-v2-stat-card__value {
  font-size: 23px;
  line-height: 1;
  color: #1d4ed8;
  font-weight: 850;
}

.students-v2-list {
  display: grid;
  gap: 10px;
}

.students-v2-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid #e6edf9;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  padding: 12px;
}

.students-v2-card__link {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  padding-right: 34px;
}

.students-v2-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.students-v2-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #1d4ed8;
  background: linear-gradient(145deg, #eef4ff, #e3edff);
  border: 1px solid #d7e5ff;
  flex-shrink: 0;
}

.students-v2-card__identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.students-v2-card__identity h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.students-v2-card__status {
  width: fit-content;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.students-v2-card__status--active {
  color: #15803d;
  background: #ecfdf3;
}

.students-v2-card__status--inactive {
  color: #b45309;
  background: #fff7ed;
}

.students-v2-card__meta {
  display: grid;
  gap: 6px;
}

.students-v2-card__meta p {
  margin: 0;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.25;
}

.students-v2-card__meta p i {
  font-size: 12px;
  color: #2563eb;
}

.students-v2-card__meta p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.students-v2-card__menu {
  position: absolute;
  top: 8px;
  right: 8px;
}

.students-v2-card__menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid #dce7fb;
  background: #f8faff;
  color: #51617f;
  display: grid;
  place-items: center;
  padding: 0;
}

.students-v2-card__menu-btn i {
  font-size: 14px;
}

.students-v2-card__dropdown {
  border-radius: 12px;
  border: 1px solid #e3eaf8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  font-size: 13px;
}

.students-v2-empty {
  border-radius: 18px;
  border: 1px solid #e5edff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  padding: 16px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.students-v2-empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: #2563eb;
}

.students-v2-empty__icon i {
  font-size: 18px;
}

.students-v2-empty h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.students-v2-empty p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 390px) {
  .students-v2-header {
    min-height: 122px;
    padding: 13px 12px 11px;
  }

  .students-v2-header h1 {
    font-size: 22px;
  }

  .students-v2-card__identity h3 {
    font-size: 15px;
  }
}

/* === SHARED MANAGEMENT PAGE COMPONENTS === */
/* Reusable classes for Students and Instructors pages */

.management-page {
  padding: 12px 16px 110px;
}

.management-hero {
  background: linear-gradient(140deg, #ffffff 0%, #f0f6ff 100%);
  padding: 18px 20px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.management-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.management-hero-content {
  position: relative;
  z-index: 1;
}

.management-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--luxury-primary);
  margin-bottom: 4px;
}

.management-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--luxury-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.management-subtitle {
  font-size: 15px;
  color: var(--luxury-text-secondary);
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

.management-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 0 18px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 12px;
  text-decoration: none;
  cursor: pointer;
}

.management-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.management-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.16);
}

.management-cta-btn i {
  font-size: 1.1rem;
}

.management-card {
  background: var(--luxury-card);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #e5edff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.management-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.management-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.management-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.management-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(37, 99, 235, 0.12);
}

.management-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--luxury-text);
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.management-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.management-status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.management-status-inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.management-info {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.management-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  color: var(--luxury-text-secondary);
}

.management-info-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luxury-primary);
  font-size: 14px;
  flex-shrink: 0;
}

.management-info-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.management-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2962ff;
  font-size: 12px;
  font-weight: 700;
}

.management-pill i {
  font-size: 13px;
}

.management-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f4f9;
}

.management-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
}

.management-action-details {
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.management-action-details:hover {
  background: linear-gradient(135deg, #dbe5ff 0%, #e7efff 100%);
  border-color: rgba(37, 99, 235, 0.3);
}

.management-action-edit {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.management-action-edit:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.management-action-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.management-action-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.management-action:active {
  transform: scale(0.95);
}

.management-action-icon {
  font-size: 14px;
}

.management-list {
  display: grid;
  gap: 12px;
}

.management-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.management-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.management-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--luxury-text);
  margin: 0 0 0.5rem;
}

.management-empty-subtitle {
  font-size: 0.9rem;
  color: var(--luxury-text-secondary);
  margin: 0;
  max-width: 300px;
}

/* Mobile responsiveness for management pages */
@media (max-width: 350px) {
  .management-action span:last-child {
    display: none;
  }

  .management-action {
    justify-content: center;
    padding: 7px;
  }
}

@media (max-width: 380px) {
  .management-hero {
    padding: 14px 16px;
  }

  .management-title {
    font-size: 22px;
  }

  .management-card {
    padding: 12px;
  }
}

/* === INSTRUCTORS PAGE STYLES === */

.instructors-page {
  padding: 12px 16px 110px;
}

.instructors-hero {
  background: linear-gradient(140deg, #ffffff 0%, #f0f6ff 100%);
  padding: 18px 20px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.instructors-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.instructors-hero-content {
  position: relative;
  z-index: 1;
}

.instructors-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--luxury-primary);
  margin-bottom: 4px;
}

.instructors-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--luxury-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.instructors-subtitle {
  font-size: 15px;
  color: var(--luxury-text-secondary);
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

.instructors-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 0 18px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 12px;
  text-decoration: none;
  cursor: pointer;
}

.instructors-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.instructors-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.16);
}

.instructors-cta-btn i {
  font-size: 1.1rem;
}

.instructor-card {
  background: var(--luxury-card);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #e5edff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:active {
  transform: scale(0.985);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.instructor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.instructor-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.instructor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(37, 99, 235, 0.12);
}

.instructor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--luxury-text);
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.instructor-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.instructor-status--active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.instructor-status--inactive {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.instructor-info {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.instructor-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 14px;
  color: var(--luxury-text-secondary);
}

.instructor-info-row i {
  width: 16px;
  color: #2962ff;
  font-size: 14px;
  flex-shrink: 0;
}

.instructor-info-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instructor-license {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2962ff;
  font-size: 12px;
  font-weight: 700;
}

.instructor-license i {
  font-size: 13px;
}

.instructor-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.instructor-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
}

.instructor-action-details {
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.instructor-action-details:hover {
  background: linear-gradient(135deg, #dbe5ff 0%, #e7efff 100%);
  border-color: rgba(37, 99, 235, 0.3);
}

.instructor-action-edit {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.instructor-action-edit:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.instructor-action-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.instructor-action-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.instructor-action:active {
  transform: scale(0.95);
}

.instructor-action-icon {
  font-size: 14px;
}

.instructors-list {
  display: grid;
  gap: 12px;
}

.instructors-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.instructors-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.instructors-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--luxury-text);
  margin: 0 0 0.5rem;
}

.instructors-empty-subtitle {
  font-size: 0.9rem;
  color: var(--luxury-text-secondary);
  margin: 0;
  max-width: 300px;
}

/* Mobile responsiveness */
@media (max-width: 350px) {
  .instructor-action span:last-child {
    display: none;
  }

  .instructor-action {
    justify-content: center;
    padding: 7px;
  }
}

@media (max-width: 380px) {
  .instructors-hero {
    padding: 14px 16px;
  }

  .instructors-title {
    font-size: 22px;
  }

  .instructor-card {
    padding: 12px;
  }
}

/* === LESSONS PAGE STYLES === */

.lessons-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 16px 120px;
  display: grid;
  gap: 0.8rem;
}

.lessons-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(140deg, #ffffff 0%, #f0f6ff 100%);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.lessons-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.lessons-hero-content {
  position: relative;
  z-index: 1;
}

.lessons-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--luxury-primary);
  margin-bottom: 4px;
}

.lessons-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--luxury-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lessons-subtitle {
  font-size: 15px;
  color: var(--luxury-text-secondary);
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

/* Search Bar */
.lessons-search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 52, 96, 0.05);
}

.lessons-search i {
  color: var(--luxury-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.lessons-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--luxury-text);
  padding: 0;
}

.lessons-search input::placeholder {
  color: var(--luxury-text-secondary);
}

.lessons-filter-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #edf3ff;
  color: #2962ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.lessons-filter-button:hover {
  background: #dbe5ff;
}

.lessons-filter-button:active {
  transform: scale(0.95);
}

/* Filter Chips */
.lesson-filter-chips {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.lesson-filter-chips::-webkit-scrollbar {
  display: none;
}

.lesson-filter-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #dfe7f3;
  border-radius: 17px;
  background: #fff;
  color: #65728a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.lesson-filter-chip:hover {
  border-color: #2962ff;
  background: #f0f6ff;
}

.lesson-filter-chip.is-active {
  border-color: #2962ff;
  background: #2962ff;
  color: #fff;
}

/* Results Header */
.lessons-results-header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 14px;
  margin-bottom: 7px;
}

.lessons-results-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2f3b52;
  text-transform: none;
  letter-spacing: 0.01em;
}

.lessons-result-count {
  height: 27px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #2962ff;
  background: #edf3ff;
  padding: 0 9px;
  border-radius: 999px;
}

/* Lessons List & Cards */
.lessons-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.lessons-list--compact {
  gap: 0;
}

.lesson-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  min-height: 0;
  height: auto;
  padding: 10px 12px;
  border: 1px solid #e7edf7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 52, 96, 0.05);
  overflow: hidden;
  transition: all 0.2s ease;
  margin: 0 0 8px;
}

.lesson-card--compact {
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border-color: #e7edf7;
  margin: 0 0 8px;
}

.lessons-list .lesson-card:last-child {
  margin-bottom: 0;
}


.lesson-card:active {
  transform: scale(0.99);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

/* Card Header */
.lesson-card__header {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-height: 40px;
  padding-right: 34px;
}

.lesson-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  padding-right: 0;
}

.lesson-card__title-group {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px;
}

.lesson-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
}

.lesson-type {
  display: block;
  margin-bottom: 0;
  color: #718099;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-student-name {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  color: #101b34;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.lesson-status--planned {
  background: #eaf1ff;
  color: #2962ff;
}

.lesson-status--completed {
  background: #eaf8ef;
  color: #137333;
}

.lesson-status--cancelled {
  background: #eef1f5;
  color: #687386;
}

.lesson-status--no-show {
  background: #fff0ed;
  color: #d93025;
}

/* Schedule Block */
.lesson-card__schedule {
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  border-radius: 9px;
  background: #f7f9fd;
  box-sizing: border-box;
}

.lesson-card__schedule--compact {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.lesson-card__schedule-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lesson-time-inline,
.lesson-date-inline {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lesson-time-inline {
  flex: 1;
}

.lesson-date-inline {
  flex: 0 0 auto;
}

.lesson-time-inline i,
.lesson-date-inline i {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #2962ff;
  font-size: 15px;
}

.lesson-time-inline strong {
  display: block;
  font-size: 13px;
  color: #14213d;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lesson-date-inline span {
  display: block;
  font-size: 11px;
  color: #718099;
  line-height: 1;
  white-space: nowrap;
}

/* Card Info */
/* Lespakket pages */
.package-hero-card,
.package-summary-shell,
.package-detail-card,
.package-card {
  padding: 18px;
  border-radius: 20px;
}

.package-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
  border: 1px solid rgba(41, 98, 255, 0.08);
}

.package-hero-card--details {
  align-items: center;
}

.package-hero-label {
  margin: 0 0 4px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-hero-action {
  align-self: center;
  white-space: nowrap;
}

.package-hero-stack {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.package-hero-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.package-list-grid,
.package-summary-grid {
  display: grid;
  gap: 16px;
}

.package-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-card {
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 12px 30px rgba(31, 52, 96, 0.07);
}

.package-card__top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.package-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4ff, #dbe8ff);
  color: #2962ff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.package-card__heading h3 {
  margin: 0;
  color: #101b34;
  font-size: 16px;
  font-weight: 800;
}

.package-card__eyebrow {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.package-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.package-status--active { background: #eaf1ff; color: #2962ff; }
.package-status--completed { background: #eaf8ef; color: #137333; }
.package-status--cancelled { background: #fff0ed; color: #d93025; }

.package-metrics,
.package-lesson-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.package-summary-grid {
  margin-top: 12px;
}

.package-summary-card,
.package-metric {
  padding: 16px;
  border-radius: 16px;
  background: #f7f9fd;
  text-align: center;
}

.package-summary-card--primary,
.package-metric--accent {
  background: linear-gradient(135deg, #eef4ff, #e1ecff);
}

.package-summary-card small,
.package-metric small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-summary-card strong,
.package-metric strong {
  display: block;
  margin-top: 4px;
  color: #101b34;
  font-size: 20px;
  font-weight: 900;
}

.package-summary-card span,
.package-metric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.package-progress {
  margin-top: 16px;
}

.package-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: #e5ecfb;
  overflow: hidden;
}

.package-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2962ff, #5b8dff);
}

.package-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.package-detail-card h2 {
  margin: 0 0 10px;
  color: #101b34;
  font-size: 18px;
  font-weight: 850;
}

.package-summary-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.package-summary-shell__header h3 {
  margin: 0;
  color: #101b34;
  font-size: 18px;
  font-weight: 850;
}

.package-summary-shell__header span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.package-summary-shell .package-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.package-summary-shell .package-summary-card strong {
  font-size: 18px;
}

.package-card__top,
.package-summary-shell__header,
.package-hero-card,
.package-detail-card {
  width: 100%;
}

.package-list-grid .package-card {
  display: grid;
  gap: 12px;
}

.package-progress--large .package-progress__bar {
  height: 12px;
}

.package-progress--large .package-progress__meta {
  font-size: 13px;
}

.lesson-card__info {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0;
  margin-top: 7px;
  box-sizing: border-box;
}

.lesson-info-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #62708a;
  font-size: 11.5px;
  line-height: 16px;
  box-sizing: border-box;
}

.lesson-card__info--compact {
  gap: 0;
  margin-top: 7px;
}

.lesson-meta-row {
  width: 100%;
  min-width: 0;
  height: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.lesson-meta-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #62708a;
  font-size: 11.5px;
  line-height: 16px;
  white-space: nowrap;
}

.lesson-schedule-chevron {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #3b82f6;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  font-size: 11px;
  margin-left: auto;
}

.lesson-card__menu {
  position: absolute;
  top: 9px;
  right: 8px;
}

.lesson-card__menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #dbe6fa;
  background: #f9fbff;
  color: #64748b;
  display: grid;
  place-items: center;
  padding: 0;
}

.lesson-card__menu-btn i {
  font-size: 14px;
  line-height: 1;
}

.lesson-card__dropdown {
  border-radius: 12px;
  border: 1px solid #e3ebfb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  font-size: 13px;
}

.lesson-info-row i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #2962ff;
  font-size: 14px;
}

.lesson-meta-item i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #2962ff;
  font-size: 14px;
}

.lesson-info-row span,
.lesson-meta-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Actions */
.lesson-card__actions {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf1f7;
  box-sizing: border-box;
}

.lesson-action {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  box-sizing: border-box;
}

.lesson-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-action-details {
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.lesson-action-details:hover {
  background: linear-gradient(135deg, #dbe5ff 0%, #e7efff 100%);
  border-color: rgba(37, 99, 235, 0.3);
}

.lesson-action-edit {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.lesson-action-edit:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.lesson-action-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.lesson-action-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.lesson-action:active {
  transform: scale(0.95);
}

.lesson-action i {
  flex-shrink: 0;
  font-size: 14px;
}

/* =========================================
   LESDETAILS - MOBILE
   ========================================= */

.lesson-details-page {
  --primary: #1769f5;
  --primary-dark: #0f5be8;
  --primary-soft: #edf4ff;

  --text-primary: #0b1833;
  --text-secondary: #66748d;
  --border: #e8edf5;

  --danger: #ff3434;
  --danger-soft: #fff1f1;

  --success: #15a85a;
  --success-soft: #edf9f2;

  --page-bg: #f5f8fd;
  --card-bg: #ffffff;

  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px 110px;
  background: var(--page-bg);
  color: var(--text-primary);
  box-sizing: border-box;
}

.lesson-details-titlebar {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  height: 58px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.lesson-back-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #26364f;
  font-size: 20px;
  cursor: pointer;
}

.lesson-details-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 24px;
  font-weight: 750;
  color: #0b1833;
}

.lesson-student-summary {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 52, 93, 0.045);
  margin-bottom: 14px;
}

.lesson-student-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf4ff;
  color: #1769f5;
  font-size: 16px;
  font-weight: 800;
  margin-right: 12px;
  text-transform: uppercase;
}

.lesson-student-main {
  min-width: 0;
  flex: 1;
}

.lesson-student-name {
  margin: 0;
  font-size: 17px;
  line-height: 21px;
  font-weight: 750;
  color: #0b1833;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-student-type {
  margin-top: 3px;
  color: #6c7b94;
  font-size: 12px;
  line-height: 15px;
  font-weight: 550;
}

.lesson-details-page .lesson-status {
  flex-shrink: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 750;
  text-transform: uppercase;
}

.lesson-details-page .lesson-status--planned {
  color: #1769f5;
  background: #edf4ff;
}

.lesson-details-page .lesson-status--completed {
  color: #119952;
  background: #ecf9f1;
}

.lesson-details-page .lesson-status--cancelled {
  color: #e73535;
  background: #fff0f0;
}

.lesson-info-card {
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 18px;
  padding: 6px 16px;
  box-shadow: 0 8px 24px rgba(24, 52, 93, 0.04);
  margin-bottom: 14px;
}

.lesson-details-page .lesson-info-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(85px, auto) 1fr;
  align-items: center;
  column-gap: 10px;
  border-bottom: 1px solid #edf1f7;
}

.lesson-details-page .lesson-info-row:last-child {
  border-bottom: none;
}

.lesson-info-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1769f5;
  font-size: 17px;
}

.lesson-info-label {
  color: #64738c;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 650;
}

.lesson-info-value {
  min-width: 0;
  text-align: right;
  color: #0b1833;
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.lesson-info-value.empty {
  color: #9aa5b6;
}

.lesson-info-value .lesson-inline-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.lesson-inline-status--planned {
  background: #edf4ff;
  color: #1769f5;
}

.lesson-inline-status--completed {
  background: #ecf9f1;
  color: #119952;
}

.lesson-inline-status--cancelled {
  background: #fff0f0;
  color: #e73535;
}

.lesson-details-page .lesson-info-row.notes-row {
  align-items: start;
  padding-top: 13px;
  padding-bottom: 13px;
  min-height: 52px;
}

.notes-row .lesson-info-icon {
  margin-top: 1px;
}

.lesson-notes-value {
  text-align: right;
  font-size: 12.5px;
  color: #5f6e86;
  line-height: 18px;
}

.lesson-details-page .lesson-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.lesson-details-page .lesson-actions form {
  margin: 0;
}

.lesson-details-page .lesson-action-btn {
  min-width: 0;
  min-height: 52px;
  width: 100%;
  padding: 8px 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.lesson-details-page .lesson-action-btn:active {
  transform: scale(0.98);
}

.lesson-details-page .lesson-action-edit {
  color: #1769f5;
  background: #fff;
  border: 1px solid #1769f5;
}

.lesson-details-page .lesson-action-cancel {
  color: #ef3038;
  background: #fff;
  border: 1px solid #ef3038;
}

.lesson-details-page .lesson-action-complete {
  color: #fff;
  background: linear-gradient(135deg, #1769f5, #0f5be8);
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(23, 105, 245, 0.2);
}

.lesson-details-page .lesson-action-btn i,
.lesson-details-page .lesson-action-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .lesson-details-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .lesson-info-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .lesson-details-page .lesson-info-row {
    grid-template-columns: 21px minmax(72px, auto) 1fr;
    column-gap: 7px;
  }

  .lesson-info-label {
    font-size: 11.5px;
  }

  .lesson-info-value {
    font-size: 12px;
  }

  .lesson-details-page .lesson-actions {
    gap: 6px;
  }

  .lesson-details-page .lesson-action-btn {
    font-size: 11px;
  }
}

/* Filter Bottom Sheet */
.lesson-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lesson-filter-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lesson-filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.lesson-filter-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-filter-sheet.is-open .lesson-filter-sheet__panel {
  transform: translateY(0);
}

.lesson-filter-sheet__handle {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 8px auto;
  cursor: grab;
}

.lesson-filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid #f0f1f3;
}

.lesson-filter-sheet__header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--luxury-text);
  margin: 0;
}

.lesson-filter-sheet__header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.lesson-filter-sheet__header button:hover {
  background: #e5e7eb;
}

.lesson-filter-sheet__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.lesson-filter-group {
  margin-bottom: 20px;
}

.lesson-filter-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--luxury-text-secondary);
  margin-bottom: 10px;
}

.lesson-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-filter-option:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.lesson-filter-option input[type="radio"],
.lesson-filter-option input[type="checkbox"] {
  cursor: pointer;
}

.lesson-filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: var(--luxury-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-filter-select:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.lesson-filter-select:focus {
  outline: 0;
  border-color: #2962ff;
  background: #fff;
}

.lesson-filter-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 24px;
  border-top: 1px solid #f0f1f3;
  background: #fff;
}

.lesson-filter-sheet__actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-filter-sheet__actions button:first-child {
  background: #f3f4f6;
  color: #6b7280;
}

.lesson-filter-sheet__actions button:first-child:hover {
  background: #e5e7eb;
}

.lesson-filter-sheet__actions button:last-child {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.lesson-filter-sheet__actions button:last-child:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 100%);
}

.lessons-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.72;
}

.lessons-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid #dbe8ff;
  border-top-color: #2962ff;
  animation: lessons-spin 0.75s linear infinite;
}

@keyframes lessons-spin {
  to { transform: rotate(360deg); }
}

.lessons-ajax-error {
  margin: 2px 2px 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.3;
}

/* Empty States */
.lessons-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.lessons-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: var(--luxury-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.lessons-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--luxury-text);
  margin: 0 0 0.5rem;
}

.lessons-empty-subtitle {
  font-size: 0.9rem;
  color: var(--luxury-text-secondary);
  margin: 0 0 1rem;
  max-width: 300px;
}

.lessons-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lessons-empty-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 100%);
}

/* FAB */
.lessons-fab {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottom-nav-height, 65px) + 18px);
  z-index: 40;
}

/* Mobile Responsive */
@media (max-width: 350px) {
  .mobile-header {
    width: calc(100% - 20px);
    min-height: 60px;
    padding: 8px 12px;
    border-radius: 20px;
    top: calc(10px + env(safe-area-inset-top));
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .mobile-header-title {
    font-size: 18px;
  }

  .header-icon-btn,
  .header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .bottom-nav {
    width: calc(100% - 20px);
    min-height: 70px;
    padding: 6px;
    border-radius: 22px;
    gap: 4px;
  }

  .bottom-nav-link {
    min-height: 52px;
    font-size: 10px;
    border-radius: 15px;
  }

  .bottom-nav-link i,
  .bottom-nav-link svg {
    font-size: 18px;
  }

  .bottom-nav-link.active::after {
    bottom: 4px;
    width: 16px;
  }

  .lesson-action span {
    display: none;
  }

  .lesson-action {
    justify-content: center;
    padding: 6px;
  }
}

@media (max-width: 380px) {
  .lessons-hero {
    padding: 14px 16px;
  }

  .lessons-title {
    font-size: 22px;
  }

  .lesson-card {
    padding: 10px 11px;
    border-radius: 14px;
  }

  .lesson-card--compact {
    padding: 10px 11px;
    border-radius: 14px;
  }

  .lesson-card__header {
    min-height: 38px;
    gap: 7px;
  }

  .lesson-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .lesson-student-name {
    font-size: 13px;
    line-height: 16px;
  }

  .lesson-card__schedule--compact {
    height: 34px;
    min-height: 34px;
  }

  .lesson-meta-row {
    height: 22px;
    gap: 7px;
  }

  .lesson-filter-sheet__actions {
    grid-template-columns: 1fr;
  }
}

/* === EXAMS PAGE STYLES === */
.exams-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-top: calc(64px + 12px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 120px;
  display: grid;
  gap: 1rem;
}

.exams-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(140deg, #ffffff 0%, #f0f6ff 100%);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.exams-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.exams-hero-content {
  position: relative;
  z-index: 1;
}

.exams-hero__label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2962ff;
  text-transform: uppercase;
}

.exams-hero__title {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.15;
  color: #07142f;
  font-weight: 800;
}

.exams-hero__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #62708a;
}

.exams-add-button {
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(41, 98, 255, 0.24);
  text-decoration: none;
}

.exams-add-button i {
  font-size: 16px;
}

.exams-search-form,
.exams-search,
.exams-list,
.exam-card,
.exams-hero,
.exams-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.exams-search {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 52, 96, 0.05);
}

.exams-search i {
  color: #2962ff;
  font-size: 16px;
}

.exams-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #101b34;
  padding: 0;
}

.exams-search input::placeholder {
  color: #718099;
}

.exams-filter-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: #edf3ff;
  color: #2962ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.exam-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.exam-filter-chips::-webkit-scrollbar {
  display: none;
}

.exam-filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dfe7f3;
  border-radius: 999px;
  background: #fff;
  color: #65728a;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.exam-filter-chip.is-active {
  border-color: #2962ff;
  background: #2962ff;
  color: #fff;
}

.exams-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.exams-results-title {
  font-size: 14px;
  font-weight: 700;
  color: #62708a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exams-result-count {
  font-size: 13px;
  font-weight: 700;
  color: #2962ff;
  background: #edf3ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.exams-list {
  display: grid;
  gap: 12px;
}

.exam-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(41, 98, 255, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 52, 96, 0.07);
  overflow: hidden;
}

.exam-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
}

.exam-card--theory::before {
  background: #7c3aed;
}

.exam-card--practical::before {
  background: #f59e0b;
}

.exam-card__header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.exam-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #2962ff;
  font-size: 16px;
  font-weight: 800;
}

.exam-card__identity {
  min-width: 0;
}

.exam-type {
  display: block;
  margin-bottom: 2px;
  color: #718099;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exam-student-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #101b34;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.exam-status--planned {
  background: #eaf1ff;
  color: #2962ff;
}

.exam-status--passed {
  background: #eaf8ef;
  color: #137333;
}

.exam-status--failed {
  background: #fff0ed;
  color: #d93025;
}

.exam-status--cancelled {
  background: #eef1f5;
  color: #687386;
}

.exam-card__schedule {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f7f9fd;
}

.exam-time-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-time-block i {
  width: 16px;
  color: #2962ff;
  font-size: 14px;
}

.exam-time-block strong {
  display: block;
  font-size: 14px;
  color: #14213d;
  font-weight: 700;
}

.exam-time-block span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #718099;
  text-transform: lowercase;
}

.exam-card__info {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.exam-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #62708a;
  font-size: 14px;
}

.exam-info-row i {
  width: 18px;
  color: #2962ff;
}

.exam-info-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.exam-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.exam-action-details {
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: #2962ff;
  border-color: rgba(37, 99, 235, 0.2);
}

.exam-action-edit {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.exam-action-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.exams-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 20px;
}

.exams-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7efff 0%, #edf3ff 100%);
  color: #2962ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.exams-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #101b34;
  margin: 0 0 0.5rem;
}

.exams-empty-subtitle {
  font-size: 0.9rem;
  color: #62708a;
  margin: 0;
  max-width: 300px;
}

.exam-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.exam-filter-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.exam-filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.exam-filter-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-filter-sheet.is-open .exam-filter-sheet__panel {
  transform: translateY(0);
}

.exam-filter-sheet__handle {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 8px auto;
}

.exam-filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid #f0f1f3;
}

.exam-filter-sheet__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #101b34;
}

.exam-filter-sheet__header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.exam-filter-sheet__content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.exam-filter-group {
  margin-bottom: 20px;
}

.exam-filter-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #62708a;
  margin-bottom: 10px;
}

.exam-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exam-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.exam-filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #101b34;
  font-size: 14px;
}

.exam-filter-select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.exam-filter-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 24px;
  border-top: 1px solid #f0f1f3;
  background: #fff;
}

.exam-filter-sheet__actions a,
.exam-filter-sheet__actions button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.exam-filter-sheet__actions a {
  background: #f3f4f6;
  color: #6b7280;
}

.exam-filter-sheet__actions button {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
}

@media (max-width: 380px) {
  .exams-hero {
    padding: 14px 16px;
  }

  .exams-hero__title {
    font-size: 22px;
  }

  .exam-card {
    padding: 12px;
  }

  .exam-filter-sheet__actions {
    grid-template-columns: 1fr;
  }
}

/* ===================== Identity Manage (Account Settings) ===================== */
.settings-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: calc(var(--app-header-height, 84px) + 16px) 18px 120px;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}

.settings-page .row {
  display: block;
  margin: 0;
}

.settings-page [class*="col-"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: none;
  float: none;
  padding: 0;
}

.settings-hero {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow: 0 14px 36px rgba(31, 52, 96, 0.08);
}

.settings-hero__label {
  display: block;
  margin-bottom: 5px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.settings-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: #07142f;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.settings-hero p {
  margin: 0;
  color: #62708a;
  font-size: 14px;
  line-height: 1.45;
}

.settings-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  scrollbar-width: none;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dfe7f3;
  background: #fff;
  color: #62708a;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.settings-tab.active,
.settings-tab.is-active {
  border-color: #2962ff;
  background: #2962ff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(41, 98, 255, 0.22);
}

.settings-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 14px 34px rgba(31, 52, 96, 0.08);
  box-sizing: border-box;
}

.settings-card h2,
.settings-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
  color: #101b34;
  font-weight: 850;
}

.settings-card form {
  width: 100%;
  display: grid;
  gap: 14px;
}

.settings-card .form-floating,
.settings-card .form-group,
.settings-card .mb-3 {
  width: 100%;
  margin: 0;
}

.settings-card label {
  display: block;
  margin-bottom: 7px;
  color: #17233c;
  font-size: 13px;
  font-weight: 750;
}

.settings-card input,
.settings-card select,
.settings-card textarea,
.settings-card .form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #fff;
  color: #101b34;
  font-size: 15px;
  box-sizing: border-box;
}

.settings-card textarea {
  min-height: 110px;
  padding-top: 14px;
}

.settings-card input:focus,
.settings-card select:focus,
.settings-card textarea:focus,
.settings-card .form-control:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.12);
  outline: none;
}

.settings-card .form-floating > label {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #647188;
}

.settings-card button[type="submit"],
.settings-save-button,
.settings-card .btn-primary,
.settings-card .btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(41, 98, 255, 0.24);
}

@media (max-width: 360px) {
  .settings-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .settings-hero {
    padding: 16px;
  }

  .settings-hero h1 {
    font-size: 24px;
  }

  .settings-card {
    padding: 14px;
  }
}

/* ===================== Auth / Login ===================== */
.auth-page {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background:
    radial-gradient(circle at top right, rgba(41, 98, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 26px 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow:
    0 24px 60px rgba(31, 52, 96, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  box-shadow: 0 16px 32px rgba(41, 98, 255, 0.28);
}

.auth-logo i {
  font-size: 28px;
}

.auth-brand h1 {
  margin: 0;
  color: #07142f;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-brand p {
  margin: 8px 0 0;
  color: #62708a;
  font-size: 15px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .form-floating,
.auth-form .form-group,
.auth-form .mb-3 {
  width: 100%;
  margin: 0;
}

.auth-form label {
  display: block;
  margin-bottom: 7px;
  color: #17233c;
  font-size: 13px;
  font-weight: 750;
}

.auth-form input,
.auth-form .form-control {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #dfe6f1;
  border-radius: 17px;
  background: #fff;
  color: #101b34;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
}

.auth-form input:focus,
.auth-form .form-control:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.12);
}

.auth-form .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.auth-form .form-check-input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.auth-form .form-check-label {
  margin: 0;
  color: #43516a;
  font-size: 14px;
  font-weight: 650;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(41, 98, 255, 0.28);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  text-align: center;
}

.auth-links a {
  color: #2962ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-form .text-danger,
.auth-validation {
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

.student-home-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 0;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 104px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  overflow-x: hidden;
}

.student-home-page--lux {
  gap: 8px;
}

.student-home-page--lux .student-dashboard-strip {
  gap: 8px;
}

.student-home-page--lux .student-dashboard-pill {
  min-height: 82px;
  padding: 10px;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

.student-home-page--lux .student-dashboard-pill:nth-child(1) {
  background: #e8f1ff;
}

.student-home-page--lux .student-dashboard-pill:nth-child(2) {
  background: #ecfbf4;
}

.student-home-page--lux .student-dashboard-pill:nth-child(3) {
  background: #efeaff;
}

.student-home-page--lux .student-dashboard-pill:nth-child(4) {
  background: #fff5e9;
}

.student-home-page--lux .student-dashboard-pill:nth-child(5) {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #ffeff2 0%, #fff8f8 100%);
}

.student-home-page--lux .student-dashboard-pill__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 7px;
}

.student-home-page--lux .student-dashboard-pill__icon i {
  font-size: 12px;
}

.student-home-page--lux .student-dashboard-pill span {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.student-home-page--lux .student-dashboard-pill strong {
  font-size: 18px;
  margin-top: 5px;
}

.student-home-page--lux .student-section-card {
  border-radius: 14px;
  padding: 11px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.student-home-page--lux .student-section-card--hero {
  border-color: #d9e8ff;
  background: #ffffff;
}

.student-home-page--lux .student-section-card--package {
  border-color: #dce8fb;
}

.student-home-page--lux .student-section-card__header {
  margin-bottom: 8px;
}

.student-home-page--lux .student-section-card__header h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.student-home-page--lux .student-section-card__header a {
  font-size: 12px;
  color: #3b82f6;
}

.student-home-page--lux .student-next-item--hero {
  background: #f2f7ff;
  border-color: #deebff;
}

.student-home-page--lux .student-next-item--hero .student-next-item__type {
  gap: 5px;
  background: #e6f0ff;
  color: #0b4cbc;
}

.student-home-page--lux .student-next-item__type i,
.student-home-page--lux .student-next-item__instructor i,
.student-home-page--lux .student-next-item__location i {
  font-size: 11px;
}

.student-home-page--lux .student-next-item__status {
  font-size: 10px;
}

.student-home-page--lux .student-next-item__schedule {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  color: #07245c;
}

.student-home-page--lux .student-next-item__instructor,
.student-home-page--lux .student-next-item__location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.student-home-page--lux .student-next-item__actions--hero {
  margin-top: 10px;
}

.student-home-page--lux .student-next-item__actions--hero .btn {
  min-height: 36px;
  border-radius: 9px;
  font-size: 13px;
  gap: 5px;
}

.student-home-page--lux .student-action-btn--confirm {
  background: linear-gradient(135deg, #11b384 0%, #0f9f75 100%);
  box-shadow: none;
}

.student-home-page--lux .student-action-btn--confirm:hover,
.student-home-page--lux .student-action-btn--confirm:focus {
  background: linear-gradient(135deg, #0fa676 0%, #0a8f66 100%);
  box-shadow: none;
}

.student-home-page--lux .student-action-btn--decline {
  background: linear-gradient(135deg, #ff5d74 0%, #ff3559 100%);
  color: #fff;
  border-color: transparent;
}

.student-home-page--lux .student-action-btn--decline:hover,
.student-home-page--lux .student-action-btn--decline:focus {
  background: linear-gradient(135deg, #ff4c66 0%, #f8254b 100%);
  color: #fff;
  border-color: transparent;
}

.student-home-page--lux .student-action-btn i {
  font-size: 12px;
}

.student-home-page--lux .student-package-item {
  background: #f7fbff;
  border: 1px solid #dceafe;
  border-radius: 12px;
  padding: 10px;
}

.student-home-page--lux .student-package-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.student-home-page--lux .student-package-item__head strong {
  font-size: 14px;
  color: #0f2d64;
}

.student-home-page--lux .student-package-item__head span {
  font-size: 12px;
  font-weight: 800;
  color: #3b82f6;
}

.student-home-page--lux .student-package-item p {
  margin: 4px 0 8px;
  color: #66768f;
  font-size: 12px;
}

.student-home-page--lux .student-package-progress {
  height: 8px;
  border-radius: 999px;
  background: #e4eeff;
  overflow: hidden;
}

.student-home-page--lux .student-package-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4da1ff 0%, #2563eb 100%);
}

.student-home-page--lux .student-pending-lessons-list {
  gap: 7px;
}

.student-home-page--lux .student-pending-lessons-list .student-next-item {
  background: #ffffff;
}

.student-home-page--lux .student-empty-state__icon {
  background: #eef5ff;
  color: #1d4ed8;
}

.student-home-page--lux .student-empty-state h3 {
  font-size: 14px;
}

.student-home-page--lux .student-empty-state p {
  font-size: 12px;
}

.student-dashboard-grid,
.student-dashboard-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0;
}

.student-dashboard-pill,
.student-stat-card {
  min-width: 0;
  min-height: 74px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf7;
  box-shadow: none;
}

.student-dashboard-pill__icon,
.student-stat-card__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 8px;
}

.student-dashboard-pill__icon i,
.student-stat-card__icon i {
  font-size: 12px;
}

.student-dashboard-pill span,
.student-stat-card__label {
  display: block;
  min-height: 0;
  color: #62708a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.student-dashboard-pill strong,
.student-stat-card__value {
  display: block;
  margin-top: 4px;
  color: #07142f;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.student-dashboard-pill--paid .student-dashboard-pill__icon {
  background: #eaf8ef;
  color: #16a34a;
}

.student-dashboard-pill--agreed .student-dashboard-pill__icon {
  background: #e0f2fe;
  color: #0369a1;
}

.student-dashboard-pill--purchased .student-dashboard-pill__icon {
  background: #eef4ff;
  color: #2962ff;
}

.student-dashboard-pill--used .student-dashboard-pill__icon {
  background: #fff3e8;
  color: #ea580c;
}

.student-dashboard-pill--remaining .student-dashboard-pill__icon {
  background: #f2ebff;
  color: #7c3aed;
}

.student-dashboard-pill--outstanding .student-dashboard-pill__icon {
  background: #eef4ff;
  color: #2563eb;
}

.student-dashboard-pill--lessons .student-dashboard-pill__icon {
  background: #eef2ff;
  color: #4f46e5;
}

.student-section-card {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf7;
  box-shadow: none;
}

.student-section-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.student-section-card__header h2 {
  margin: 0;
  color: #07142f;
  font-size: 14px;
  font-weight: 850;
}

.student-section-card__header p {
  margin: 2px 0 0;
  color: #7a879b;
  font-size: 11px;
  line-height: 1.3;
}

.student-section-card__header a {
  color: #2962ff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.student-section-card__body {
  color: #62708a;
  font-size: 15px;
  line-height: 1.5;
}

.student-empty-state {
  display: grid;
  gap: 6px;
  padding: 8px 0 0;
}

.student-empty-state__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2962ff;
  font-size: 16px;
}

.student-empty-state h3 {
  margin: 0;
  color: #101b34;
  font-size: 15px;
  font-weight: 800;
}

.student-empty-state p {
  margin: 0;
  color: #6f7c91;
  font-size: 13px;
  line-height: 1.45;
}

.student-next-item {
  padding: 10px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e7eef8;
}

.student-next-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.student-next-item__type,
.student-next-item__status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.student-next-item__type {
  background: #eaf1ff;
  color: #2962ff;
}

.student-next-item__status {
  background: #fff4e8;
  color: #ea580c;
}

.student-next-item__status--waiting {
  background: #fff4e8;
  color: #ea580c;
}

.student-next-item__status--confirmed {
  background: #ecfdf3;
  color: #166534;
}

.student-next-item__status--declined {
  background: #fee2e2;
  color: #991b1b;
}

.student-next-item h3 {
  margin: 0;
  color: #07142f;
  font-size: 15px;
  font-weight: 800;
  text-transform: capitalize;
}

.student-next-item p,
.student-next-item ul,
.student-next-item li {
  margin: 0;
  color: #62708a;
  font-size: 12px;
  line-height: 1.35;
  list-style: none;
  padding: 0;
}

.student-next-item p {
  margin-top: 3px;
}

.student-next-item__schedule {
  color: #1e2f4d;
  font-size: 12px;
  font-weight: 700;
}

.student-next-item__instructor,
.student-next-item__location {
  color: #62708a;
  font-size: 12px;
}

.student-next-item ul {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.student-next-item__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.student-next-item__actions .d-inline {
  display: block !important;
}

.student-next-item__actions .btn {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  padding-inline: 10px;
  font-size: 12px;
  font-weight: 700;
}

.student-action-btn {
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.student-action-btn:hover {
  transform: translateY(-1px);
}

.student-action-btn:active {
  transform: translateY(0);
}

.student-action-btn--confirm {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.26);
}

.student-action-btn--confirm:hover,
.student-action-btn--confirm:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.30);
}

.student-action-btn--decline {
  background: #ffffff;
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.32);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.student-action-btn--decline:hover,
.student-action-btn--decline:focus {
  background: #fff1f2;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.38);
  box-shadow: 0 10px 18px rgba(185, 28, 28, 0.12);
}

.student-pending-lessons-list {
  display: grid;
  gap: 8px;
}

.student-payment-list {
  display: grid;
  gap: 10px;
}

.student-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f7;
}

.student-payment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.student-payment-item strong {
  display: block;
  color: #101b34;
  font-size: 15px;
  font-weight: 800;
}

.student-payment-item p {
  margin: 4px 0 0;
  color: #7a879b;
  font-size: 13px;
}

.student-payment-item__amount {
  color: #07142f;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.student-overview-page {
  display: grid;
  gap: 12px;
}

.student-overview-hero {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #edf3ff 100%);
}

.student-overview-hero__top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.student-overview-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf1ff;
  color: #2962ff;
  font-size: 15px;
  font-weight: 900;
}

.student-overview-label {
  margin: 0 0 4px;
  color: #2962ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-overview-hero .dashboard-title {
  font-size: 1.4rem;
  margin: 0;
}

.student-overview-hero .dashboard-subtitle {
  margin-top: 4px;
}

.student-account-actions-card {
  padding: 12px;
  border-radius: 20px;
}

.student-payment-history-card {
  padding: 14px;
}

.student-payment-history-card header {
  margin-bottom: 10px;
}

.student-payment-history-card header > div {
  display: grid;
  gap: 2px;
}

.student-payment-history-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #101b34;
}

.student-payment-history-card header span {
  font-size: 12px;
  color: #62708a;
  font-weight: 700;
}

.student-payment-history-summary {
  margin-bottom: 10px;
}

.student-payment-history-summary .payment-overview-box strong {
  font-size: 15px;
}

.student-payment-history-timeline {
  margin-top: 6px;
}

.student-payment-history-item p,
.student-payment-history-item small {
  display: block;
  margin-top: 3px;
}

.student-logout-form {
  margin: 0;
}

.student-logout-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  background: #fff;
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 52, 96, 0.06);
}

.student-logout-button i {
  font-size: 18px;
}

.student-logout-button:active {
  transform: scale(0.98);
}

.payments-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: calc(var(--app-header-height, 84px) + 16px) 18px 120px;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}

.payments-hero {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow: 0 14px 36px rgba(31, 52, 96, 0.08);
}

.payments-hero__label {
  display: block;
  margin-bottom: 5px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payments-hero h1 {
  margin: 0 0 6px;
  color: #07142f;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
}

.payments-hero p {
  margin: 0;
  color: #62708a;
  font-size: 14px;
  line-height: 1.45;
}

.payments-add-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(41, 98, 255, 0.24);
}

.payments-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payments-summary-card {
  min-height: 82px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 10px 22px rgba(31, 52, 96, 0.06);
}

.payments-summary-card span {
  display: block;
  color: #62708a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.payments-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #07142f;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.payments-toolbar {
  display: grid;
  gap: 10px;
}

.payments-search {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 52, 96, 0.05);
}

.payments-search > i {
  color: #7a879b;
}

.payments-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #101b34;
}

.payments-filter-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: #edf3ff;
  color: #2962ff;
}

.payments-filter-chips {
  padding-bottom: 0;
}

.payments-list {
  display: grid;
  gap: 12px;
}

.payment-card {
  position: relative;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 14px 32px rgba(31, 52, 96, 0.08);
  overflow: hidden;
}

.payment-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
}

.payment-card--paid::before {
  background: #16a34a;
}

.payment-card--partially-paid::before {
  background: #f59e0b;
}

.payment-card--unpaid::before {
  background: #ef4444;
}

.payment-card__header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.payment-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #2962ff;
  font-size: 16px;
  font-weight: 800;
}

.payment-card__identity {
  min-width: 0;
}

.payment-date {
  display: block;
  margin-bottom: 2px;
  color: #718099;
  font-size: 12px;
  font-weight: 700;
}

.payment-card__identity h3 {
  margin: 0;
  color: #101b34;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card__amount {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.payment-card__amount > div {
  padding: 12px;
  border-radius: 15px;
  background: #f7f9fd;
}

.payment-card__amount span {
  display: block;
  color: #718099;
  font-size: 12px;
  font-weight: 700;
}

.payment-card__amount strong {
  display: block;
  margin-top: 5px;
  color: #07142f;
  font-size: 17px;
  font-weight: 900;
}

.payment-card__info {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.payment-info-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #62708a;
  font-size: 14px;
}

.payment-info-row i {
  width: 18px;
  color: #2962ff;
}

.payment-info-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-status--paid {
  background: #eaf8ef;
  color: #137333;
}

.payment-status--partially-paid {
  background: #fff4e8;
  color: #ea580c;
}

.payment-status--unpaid {
  background: #fee2e2;
  color: #dc2626;
}

.payment-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.payment-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.payment-action--details {
  background: #edf3ff;
  color: #2962ff;
}

.payment-action--edit {
  background: #f5f7fb;
  color: #43516a;
}

.payment-action--delete {
  background: #fff1f2;
  color: #dc2626;
}

.payments-empty-state-card {
  padding: 18px;
}

.payment-edit-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: calc(var(--app-header-height, 84px) + 16px) 18px 120px;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}

.payment-edit-hero {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(41, 98, 255, 0.10);
  box-shadow: 0 14px 36px rgba(31, 52, 96, 0.08);
}

.payment-edit-hero__label,
.payment-add-card header span,
.payment-details-card header span {
  display: block;
  margin-bottom: 5px;
  color: #2962ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-edit-hero h1,
.payment-add-card header h2,
.payment-details-card header h2 {
  margin: 0 0 6px;
  color: #07142f;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.payment-edit-hero p,
.payment-add-card header p,
.payment-details-card header p {
  margin: 0;
  color: #62708a;
  font-size: 14px;
  line-height: 1.45;
}

.payment-edit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 14px 34px rgba(31, 52, 96, 0.08);
}

.payment-edit-summary div,
.payment-live-preview div {
  padding: 12px;
  border-radius: 16px;
  background: #f7f9fd;
}

.payment-edit-summary span,
.payment-live-preview span {
  display: block;
  color: #62708a;
  font-size: 12px;
  font-weight: 700;
}

.payment-edit-summary strong,
.payment-live-preview strong {
  display: block;
  margin-top: 6px;
  color: #07142f;
  font-size: 18px;
  font-weight: 900;
}

.payment-edit-state-card,
.payment-add-card,
.payment-details-card {
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 14px 34px rgba(31, 52, 96, 0.08);
}

.payment-edit-state-card p {
  margin: 0;
  color: #43516a;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.payment-edit-form {
  display: grid;
  gap: 14px;
}

.payment-form-group {
  display: grid;
  gap: 6px;
}

.payment-form-group label {
  margin: 0;
  color: #43516a;
  font-size: 13px;
  font-weight: 700;
}

.payment-live-preview,
.payment-form-grid {
  display: grid;
  gap: 10px;
}

.payment-live-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.payment-form-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-form-group--full {
  grid-column: 1 / -1;
}

.payment-edit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-edit-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 800;
}

@media (max-width: 360px) {
  .payments-page,
  .payment-edit-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .payments-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-card__header {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .payment-status {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 51px;
  }

  .payment-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .payment-card__identity h3,
  .payment-edit-hero h1,
  .payment-add-card header h2,
  .payment-details-card header h2 {
    font-size: 16px;
  }

  .payment-edit-summary,
  .payment-live-preview,
  .payment-form-grid,
  .payment-edit-actions {
    grid-template-columns: 1fr;
  }
}

.payment-details-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: calc(var(--app-header-height, 84px) + 12px) 16px 115px;
  display: grid;
  gap: 12px;
  box-sizing: border-box;
}

.payment-details-hero {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 10px 24px rgba(31, 52, 96, 0.06);
}

.payment-details-hero__label {
  display: block;
  margin-bottom: 4px;
  color: #2962ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-details-hero h1 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 4px;
  color: #07142f;
  font-weight: 800;
}

.payment-details-hero p {
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  color: #62708a;
}

.payment-details-card,
.payment-history-card,
.payment-progress-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 10px 24px rgba(31, 52, 96, 0.06);
}

.payment-details-summary-card {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(41, 98, 255, 0.08);
  box-shadow: 0 10px 24px rgba(31, 52, 96, 0.06);
}

.payment-details-avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #2962ff;
  font-weight: 800;
}

.payment-details-summary-card h1,
.payment-details-summary-card h2,
.payment-details-summary-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  color: #101b34;
  font-weight: 800;
}

.payment-details-summary-card > div span {
  display: block;
  color: #718099;
  font-size: 12px;
  font-weight: 700;
}

.payment-progress-card {
  padding: 14px;
  border-radius: 18px;
}

.payment-progress-card__header,
.payment-progress-card__footer,
.payment-history-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-progress-card__header span,
.payment-progress-card__footer span,
.payment-history-card header span {
  font-size: 12px;
  color: #62708a;
  font-weight: 700;
}

.payment-progress-card__header strong,
.payment-progress-card__footer strong {
  font-size: 18px;
  color: #07142f;
  font-weight: 800;
}

.payment-progress-card__percentage {
  font-size: 13px;
  font-weight: 700;
  color: #62708a;
}

.payment-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
  margin: 10px 0 12px;
}

.payment-progress > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
}

.payment-details-card {
  padding: 14px;
  border-radius: 18px;
}

.payment-details-card__label {
  font-size: 11px;
  margin-bottom: 4px;
  color: #2962ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-details-card h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #07142f;
  font-weight: 800;
}

.payment-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.payment-overview-box {
  padding: 10px;
  border-radius: 14px;
  background: #f7f9fd;
}

.payment-overview-box span {
  display: block;
  font-size: 11px;
  color: #62708a;
  font-weight: 700;
}

.payment-overview-box strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
  color: #07142f;
  font-weight: 800;
}

.payment-info-list {
  display: grid;
  gap: 8px;
}

.payment-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5f6d83;
}

.payment-info-row i {
  width: 16px;
  font-size: 15px;
  color: #2962ff;
}

.payment-info-row--multiline {
  align-items: flex-start;
}

.payment-info-row--multiline span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.payment-history-card {
  padding: 14px;
  border-radius: 18px;
}

.payment-history-card h2 {
  font-size: 18px;
  margin: 0;
  color: #101b34;
  font-weight: 800;
}

.payment-history-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.payment-history-item__dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #2962ff;
  box-shadow: 0 0 0 5px rgba(41, 98, 255, 0.12);
}

.payment-history-item strong {
  display: block;
  font-size: 15px;
  color: #07142f;
  font-weight: 800;
}

.payment-history-item span,
.payment-history-item p {
  font-size: 12px;
}

.payment-history-item span {
  display: block;
  margin-top: 3px;
  color: #62708a;
}

.payment-history-item p {
  margin: 4px 0 0;
  color: #7a879b;
}

.payment-details-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-details-action {
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.payment-details-action--back {
  background: #f5f7fb;
  color: #43516a;
  border: 1px solid #dfe7f3;
}

.payment-details-action--edit {
  background: linear-gradient(135deg, #2962ff, #1d4ed8);
  color: #fff;
  border: 0;
}

.payment-details-action--delete {
  background: #fff1f2;
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

@media (max-width: 360px) {
  .payment-details-page,
  .student-home-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-page--planning .planning-summary-grid {
    grid-auto-columns: minmax(68px, 1fr);
  }

  .payment-details-summary-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .payment-details-summary-card .payment-status {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 52px;
  }

  .student-overview-hero__top {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .student-overview-avatar {
    width: 44px;
    height: 44px;
  }

  .payment-progress-card__header,
  .payment-progress-card__footer,
  .payment-history-card header,
  .payment-details-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-overview-grid {
    grid-template-columns: 1fr;
  }

  .student-dashboard-grid,
  .student-dashboard-strip {
    gap: 6px;
  }

  .student-dashboard-pill,
  .student-stat-card {
    min-height: 72px;
    padding: 8px;
  }

  .student-dashboard-pill strong,
  .student-stat-card__value {
    font-size: 16px;
  }
}
