body {
  background: #f6f7fb;
}

.card {
  border: 0;
  border-radius: 1rem;
}

.card-header:first-child {
  border-radius: 1rem 1rem 0 0;
}

.btn,
.form-control,
.form-select {
  border-radius: 0.75rem;
}

.navbar-brand {
  letter-spacing: -0.02em;
}

.badge {
  border-radius: 999px;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1.h3 {
    font-size: 1.45rem;
  }
}

@media print {
  .navbar,
  .no-print,
  .alert {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  main.container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .receipt-page {
    box-shadow: none !important;
    border: 0 !important;
  }

  .card {
    box-shadow: none !important;
  }
}

/* RED-style public marketing pages */
.public-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 193, 7, 0.32), transparent 30%),
    linear-gradient(135deg, #111827 0%, #1f2937 58%, #0f172a 100%);
  color: #fff;
  padding: 5rem 0;
}

.hero-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-card {
  background: #fff;
  color: #111827;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.sub-hero {
  background: linear-gradient(135deg, #111827, #253044);
  color: #fff;
  padding: 3.5rem 0;
}

.sub-hero h1 {
  font-weight: 800;
}

.sub-hero p {
  max-width: 760px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
}

.public-section-alt {
  background: #eef2f7;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading span {
  display: inline-block;
  font-weight: 800;
  color: #0d6efd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.section-heading h2 {
  font-weight: 800;
}

.public-card,
.service-stat,
.package-card,
.step-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.06);
}

.service-stat {
  height: 100%;
  text-align: center;
}

.service-stat p,
.public-card p,
.package-card p,
.step-card p {
  color: #64748b;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.package-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: #111827;
}

.public-cta {
  background: #0f172a;
  color: #fff;
  padding: 3rem 0;
}

.public-cta p {
  color: rgba(255,255,255,0.75);
}

.area-tile {
  display: block;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.06);
}

.area-tile:hover {
  transform: translateY(-2px);
  color: #0d6efd;
}

.area-tile span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffc107;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

@media (max-width: 576px) {
  .public-hero {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2.2rem;
  }
}

.report-mini {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.8rem;
  background: #f8fafc;
}

.report-mini span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
}

.report-mini strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

/* Phase 8A mobile/admin polish */
@media (max-width: 768px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .card {
    border-radius: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table-responsive {
    border-radius: 1rem;
  }

  table.table {
    font-size: 0.92rem;
  }

  .btn {
    white-space: normal;
  }

  .btn-sm {
    padding: 0.45rem 0.65rem;
  }

  .navbar-nav .btn {
    width: 100%;
    margin-left: 0 !important;
  }

  .report-mini {
    padding: 0.7rem;
  }

  .report-mini strong {
    font-size: 1.25rem;
  }

  .package-price {
    font-size: 1.65rem;
  }

  .hero-card {
    border-radius: 1.15rem;
  }

  .public-card,
  .package-card,
  .service-stat,
  .step-card {
    border-radius: 1rem;
  }
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-action-row > * {
  flex: 0 0 auto;
}

@media (max-width: 576px) {
  .admin-action-row > * {
    flex: 1 1 100%;
  }

  .admin-action-row .btn {
    width: 100%;
  }
}

/* Phase 8B navbar polish */
.navbar .dropdown-menu {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.navbar .dropdown-item {
  padding: 0.55rem 1rem;
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    box-shadow: none;
    border-radius: 0.75rem;
    margin: 0.35rem 0 0.6rem 0;
  }

  .navbar .btn {
    width: 100%;
  }
}

/* Navbar + homepage click fix */
.navbar {
  z-index: 1050;
}

.public-hero,
.hero-card,
.public-card,
.package-card,
.service-stat,
.step-card,
.public-cta {
  position: relative;
  z-index: 1;
}

.public-hero a,
.hero-card a,
.public-card a,
.package-card a,
.service-stat a,
.step-card a,
.public-cta a,
.btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.nav-scroll {
  gap: 0.15rem;
}

@media (min-width: 1200px) {
  .nav-scroll {
    flex-wrap: wrap;
  }

  .navbar .nav-link {
    font-size: 0.92rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

@media (max-width: 1199px) {
  .navbar-nav .nav-link {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .navbar .btn {
    width: 100%;
  }
}

/* Phase 9A coverage/mobile polish */
.coverage-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.coverage-good {
  border-color: rgba(25, 135, 84, 0.35);
  box-shadow: 0 10px 28px rgba(25, 135, 84, 0.12);
}

.coverage-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.coverage-row span {
  color: #64748b;
}

.coverage-row strong {
  text-align: right;
}

@media (max-width: 576px) {
  .coverage-card {
    border-radius: 1rem;
    padding: 1rem;
  }

  .coverage-row {
    display: block;
  }

  .coverage-row strong {
    display: block;
    text-align: left;
    margin-top: 0.2rem;
  }

  textarea.form-control {
    min-height: 88px;
  }
}

/* Phase 9B - 7 day diary board */
.diary-instructor-card {
  border-radius: 1.25rem;
  overflow: hidden;
}

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.diary-day {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  min-height: 180px;
  padding: 0.75rem;
}

.diary-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.5rem;
}

.diary-lessons {
  display: grid;
  gap: 0.65rem;
}

.diary-lesson {
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.75rem;
  border-left: 5px solid #0d6efd;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.lesson-status-completed {
  border-left-color: #198754;
}

.lesson-status-cancelled {
  border-left-color: #6c757d;
}

.lesson-status-no_show {
  border-left-color: #dc3545;
}

.empty-day-note {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 1rem 0.25rem;
  text-align: center;
}

@media (max-width: 991px) {
  .week-board {
    display: block;
    overflow-x: visible;
  }

  .diary-day {
    margin-bottom: 0.85rem;
    min-height: auto;
  }

  .diary-day-head {
    position: sticky;
    top: 56px;
    background: #f8fafc;
    z-index: 2;
    border-radius: 0.75rem;
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .diary-instructor-card .card-header,
  .diary-instructor-card .card-body {
    padding: 0.85rem;
  }

  .diary-day {
    border-radius: 0.85rem;
    padding: 0.65rem;
  }

  .diary-lesson {
    border-radius: 0.75rem;
    padding: 0.65rem;
  }
}

/* Phase 9C clash prevention polish */
.clash-warning {
  border-left: 5px solid #dc3545;
  background: #fff5f5;
  border-radius: 1rem;
  padding: 1rem;
}

.safe-slot-note {
  border-left: 5px solid #198754;
  background: #f0fff4;
  border-radius: 1rem;
  padding: 1rem;
}

/* Phase 9B add-on: assigned students on week diary */
.assigned-students-strip {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.assigned-student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.assigned-student-pill {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.assigned-student-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 96px;
}

@media (max-width: 576px) {
  .assigned-student-pill {
    display: block;
  }

  .assigned-student-actions {
    margin-top: 0.75rem;
    flex-direction: row;
  }

  .assigned-student-actions .btn {
    flex: 1;
  }
}

/* Phase 9E improvement: simple 7-day move slot picker */
.move-week-board {
  align-items: start;
}

.taken-slot-mini {
  background: #fff5f5;
  border-left: 4px solid #dc3545;
  border-radius: 0.75rem;
  padding: 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.slot-choice-grid {
  display: grid;
  gap: 0.45rem;
}

.slot-choice-form {
  margin: 0;
}

.slot-choice {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.55rem;
  font-weight: 600;
}

.slot-available {
  background: #ecfdf3;
  color: #146c43;
  border-color: rgba(25, 135, 84, 0.35);
}

.slot-available:hover {
  background: #d1e7dd;
}

.slot-blocked {
  background: #f8d7da;
  color: #842029;
  opacity: 0.75;
}

@media (max-width: 576px) {
  .slot-choice {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
}

/* Phase 9G easy slot picker */
.easy-slot-picker-card {
  border-radius: 1.2rem;
  overflow: hidden;
}

.easy-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.easy-slot-day {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.75rem;
}

.easy-slot-day-title {
  font-weight: 700;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.4rem;
}

.easy-slot-btn {
  width: 100%;
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: #fff;
  color: #0d6efd;
  border-radius: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.easy-slot-btn:hover,
.easy-slot-btn.selected {
  background: #0d6efd;
  color: #fff;
}

@media (max-width: 768px) {
  .easy-slot-grid {
    display: block;
    overflow: visible;
  }

  .easy-slot-day {
    margin-bottom: 0.8rem;
  }

  .easy-slot-btn {
    padding: 0.65rem;
  }
}

/* Clean role based navigation */
.app-top-nav {
  z-index: 1030;
}

.role-nav-wrap {
  position: sticky;
  top: 57px;
  z-index: 1020;
}

.role-nav-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.65rem 0;
  scrollbar-width: thin;
}

.role-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.role-nav-link:hover {
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.35);
  background: #f8fbff;
}

.role-nav-primary {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.role-nav-primary:hover {
  background: #0b5ed7;
  color: #fff;
}

.app-main {
  min-height: calc(100vh - 180px);
}

.flash-stack {
  max-width: 1100px;
}

@media (max-width: 768px) {
  .navbar-brand {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .role-nav-wrap {
    top: 56px;
  }

  .role-nav-scroll {
    padding: 0.55rem 0;
  }

  .role-nav-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Phase 9H: grouped menu and mobile bottom nav */
.role-nav-dropdown {
  display: inline-flex;
}

.role-nav-dropdown .role-nav-link {
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.role-nav-dropdown .dropdown-menu {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 3000;
}

.role-nav-dropdown .dropdown-item {
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
}

.role-nav-dropdown .dropdown-item:hover {
  background: #f1f5ff;
  color: #0d6efd;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }

  .role-nav-scroll {
    gap: 0.45rem;
  }

  .role-nav-dropdown .dropdown-menu {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: 112px !important;
    width: auto !important;
    transform: none !important;
    max-height: 70vh;
    overflow-y: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
  }

  .mobile-bottom-nav a {
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    padding: 0.65rem 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus {
    color: #0d6efd;
    background: #f8fbff;
  }

  footer {
    margin-bottom: 64px;
  }
}

/* Phase 10A Admin dashboard */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  margin-top: 0.25rem;
}

.kpi-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.kpi-card.warning {
  border-left: 5px solid #ffc107;
}

.kpi-card.success {
  border-left: 5px solid #198754;
}

.kpi-card.danger {
  border-left: 5px solid #dc3545;
}

.kpi-card.info {
  border-left: 5px solid #0dcaf0;
}

.chart-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.chart-wrap {
  position: relative;
  min-height: 310px;
}

.chart-wrap.small-chart {
  min-height: 260px;
}

.empty-chart {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 1rem;
  color: #64748b;
  font-weight: 700;
}

.dashboard-accordion .accordion-item {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.dashboard-accordion .accordion-button {
  font-weight: 800;
}

.mini-lesson-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.85rem;
  height: 100%;
  background: #f8fafc;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.75rem;
}

.quick-action-card {
  text-decoration: none;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  font-weight: 800;
  background: #f8fafc;
  text-align: center;
}

.quick-action-card:hover {
  color: #0d6efd;
  background: #f1f5ff;
}

/* Fix dropdown going behind content */
.role-nav-wrap {
  z-index: 5000;
}

.role-nav-dropdown .dropdown-menu {
  z-index: 6000;
}

@media (min-width: 769px) {
  .role-nav-scroll {
    overflow: visible;
  }
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-hero {
    flex-direction: column;
    border-radius: 1rem;
    padding: 1rem;
  }

  .dashboard-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-hero-actions .btn {
    width: 100%;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-card {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .kpi-value {
    font-size: 1.6rem;
  }

  .chart-card-head {
    flex-direction: column;
  }

  .chart-card-head .btn {
    width: 100%;
  }

  .chart-wrap,
  .chart-wrap.small-chart {
    min-height: 240px;
  }

  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Easy lesson slot picker on Add Lesson page */
.easy-slot-picker-card {
  border-radius: 1.2rem;
  overflow: hidden;
}

.easy-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.easy-slot-day {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.75rem;
}

.easy-slot-day-title {
  font-weight: 800;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.4rem;
}

.easy-slot-btn {
  width: 100%;
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: #fff;
  color: #0d6efd;
  border-radius: 0.75rem;
  padding: 0.55rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.easy-slot-btn:hover,
.easy-slot-btn.selected {
  background: #0d6efd;
  color: #fff;
}

@media (max-width: 768px) {
  .easy-slot-grid {
    display: block;
    overflow: visible;
  }

  .easy-slot-day {
    margin-bottom: 0.8rem;
  }

  .easy-slot-btn {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
}

/* Force visible lesson time slot picker */
.force-slot-picker {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.easy-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.easy-slot-day {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1rem;
  padding: 0.75rem;
}

.easy-slot-day-title {
  font-weight: 800;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.easy-slot-btn {
  display: block;
  width: 100%;
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: #ffffff;
  color: #0d6efd;
  border-radius: 0.75rem;
  padding: 0.6rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.easy-slot-btn:hover,
.easy-slot-btn.selected {
  background: #0d6efd;
  color: #ffffff;
}

@media (max-width: 768px) {
  .easy-slot-grid {
    display: block;
    overflow: visible;
  }

  .easy-slot-day {
    margin-bottom: 0.8rem;
  }

  .easy-slot-btn {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

/* Phase 10B Smart availability slot picker */
.smart-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.smart-slot-day {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1rem;
  padding: 0.75rem;
  min-height: 120px;
}

.smart-slot-day-title {
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.smart-slot-empty {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.smart-slot-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(25, 135, 84, 0.35);
  background: #ecfdf3;
  color: #14532d;
  border-radius: 0.85rem;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.smart-slot-btn:hover,
.smart-slot-btn.selected {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.smart-slot-btn.selected .text-muted,
.smart-slot-btn:hover .text-muted {
  color: rgba(255,255,255,0.8) !important;
}

@media (max-width: 768px) {
  .smart-slot-grid {
    display: block;
    overflow: visible;
  }

  .smart-slot-day {
    margin-bottom: 0.8rem;
  }

  .smart-slot-btn {
    padding: 0.75rem;
  }
}

/* Phase 10C working rules */
.day-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.6rem;
}

.day-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  padding: 0.65rem;
  background: #fff;
  font-weight: 700;
}

.day-checkbox input {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .day-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phase 10D mobile-friendly booking picker */
.mobile-booking-picker {
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
}

.selected-slot-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
}

.selected-slot-box.selected {
  border-color: rgba(25, 135, 84, 0.45);
  background: #ecfdf3;
}

.selected-slot-title {
  font-weight: 800;
  color: #0f172a;
}

.selected-slot-help {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.mobile-slot-list {
  display: grid;
  gap: 0.9rem;
}

.mobile-slot-day {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem;
}

.mobile-slot-day-title {
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.mobile-slot-empty {
  color: #94a3b8;
  font-size: 0.9rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.mobile-slot-btn {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid rgba(25, 135, 84, 0.35);
  background: #f0fdf4;
  color: #14532d;
  border-radius: 1rem;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.mobile-slot-btn:hover,
.mobile-slot-btn.selected {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

.mobile-slot-btn .slot-time {
  font-size: 1.05rem;
  font-weight: 900;
}

.mobile-slot-btn .slot-meta {
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.mobile-slot-btn .slot-tag {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-slot-btn.selected .slot-tag,
.mobile-slot-btn:hover .slot-tag {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

@media (min-width: 992px) {
  .mobile-slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mobile-booking-picker .btn-lg {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .mobile-slot-day {
    padding: 0.75rem;
  }

  .mobile-slot-btn {
    padding: 1rem;
  }
}

/* Simple student booking request page */
.booking-request-page .card {
  border-radius: 1rem;
  overflow: hidden;
}

.booking-request-page .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.booking-request-page .form-label {
  font-weight: 700;
}

.selected-slot-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
}

.selected-slot-box.selected {
  border-color: rgba(25, 135, 84, 0.45);
  background: #ecfdf3;
}

.selected-slot-title {
  font-weight: 900;
  color: #0f172a;
}

.selected-slot-help {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.simple-slot-picker select.form-select-lg,
.simple-slot-picker input.form-control {
  min-height: 3rem;
}

@media (max-width: 768px) {
  .booking-request-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .booking-request-page .card-body {
    padding: 1rem;
  }

  .booking-request-page .btn-lg,
  .booking-request-page .form-select-lg,
  .booking-request-page .form-control-lg {
    font-size: 1rem;
  }

  .booking-request-page .card-footer .btn {
    width: 100%;
  }
}

/* Student diary-style slot picker */
.booking-request-page .card {
  border-radius: 1rem;
  overflow: hidden;
}

.booking-request-page .form-label {
  font-weight: 700;
}

.selected-slot-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
}

.selected-slot-box.selected {
  border-color: rgba(25, 135, 84, 0.45);
  background: #ecfdf3;
}

.selected-slot-title {
  font-weight: 900;
  color: #0f172a;
}

.selected-slot-help {
  color: #64748b;
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.slot-diary-panel {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1rem;
}

.slot-diary-toolbar {
  display: grid;
  grid-template-columns: 1fr 170px 150px;
  gap: 0.75rem;
}

.slot-diary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.slot-day-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 0.9rem;
  padding: 0.75rem;
}

.slot-day-title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.slot-time-btn {
  display: block;
  width: 100%;
  border: 1px solid rgba(25, 135, 84, 0.35);
  background: #f0fdf4;
  color: #14532d;
  border-radius: 0.8rem;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
  font-weight: 900;
  text-align: center;
}

.slot-time-btn:hover,
.slot-time-btn.selected {
  background: #198754;
  border-color: #198754;
  color: #fff;
}

@media (max-width: 768px) {
  .booking-request-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .booking-request-page .card-body {
    padding: 1rem;
  }

  .booking-request-page .btn-lg,
  .booking-request-page .form-select-lg,
  .booking-request-page .form-control-lg {
    font-size: 1rem;
  }

  .slot-diary-toolbar {
    grid-template-columns: 1fr;
  }

  .slot-diary-grid {
    display: block;
    overflow: visible;
  }

  .slot-day-card {
    margin-bottom: 0.75rem;
  }

  .slot-time-btn {
    padding: 0.85rem;
  }
}

/* Availability coach/admin page */
.availability-action-card {
  border-radius: 1rem;
  padding: 1rem;
  min-height: 115px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.availability-action-card .action-title {
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.availability-action-card .action-text {
  color: #64748b;
}

.availability-action-card.available {
  border-color: rgba(25, 135, 84, 0.35);
  background: #f0fdf4;
}

.availability-action-card.unavailable {
  border-color: rgba(220, 53, 69, 0.30);
  background: #fff1f2;
}

.availability-action-card.holiday {
  border-color: rgba(255, 193, 7, 0.45);
  background: #fffbeb;
}

@media (max-width: 768px) {
  .availability-page .btn {
    width: 100%;
  }

  .availability-action-card {
    min-height: auto;
  }
}


/* Mobile navigation cleanup */
@media (max-width: 991.98px) {
  .role-nav-wrap {
    display: none !important;
  }

  .app-main {
    padding-bottom: 72px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }

  .mobile-bottom-nav a {
    padding: .55rem .25rem;
    text-align: center;
    font-size: .75rem;
    text-decoration: none;
    color: #333;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}


/* Mobile bottom badge buttons */
@media (max-width: 991.98px) {
  .mobile-bottom-nav {
    padding: .35rem .45rem calc(.35rem + env(safe-area-inset-bottom));
    gap: .35rem;
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-height: 54px;
    border-radius: 999px;
    background: #f8f9fa;
    font-weight: 600;
  }

  .mobile-bottom-nav a span {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-bottom-nav a small {
    font-size: .68rem;
    line-height: 1;
  }

  .mobile-bottom-nav a:active {
    transform: scale(.96);
  }
}
