/* ----------------------------------------------------
   BraidsTribe � dashboard.css
   Dashboard styles for customers and stylists
   ---------------------------------------------------- */

/* -----------------------------------------------------
   Inline Video Modal Player
----------------------------------------------------- */
#vmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#vmodal-overlay.vmodal-open { opacity: 1; }

.vmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}

.vmodal-box {
  position: relative;
  z-index: 1;
  width: min(92vw, 900px);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
#vmodal-overlay.vmodal-open .vmodal-box { transform: scale(1); }

.vmodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  gap: 12px;
}

.vmodal-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.vmodal-close {
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.vmodal-close:hover { background: rgba(252,70,170,0.7); }

.vmodal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vmodal-player iframe,
.vmodal-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .vmodal-box { width: 100vw; border-radius: 12px 12px 0 0; align-self: flex-end; }
  #vmodal-overlay { align-items: flex-end; }
}

/* -----------------------------------------------------
   Class Detail Modal
----------------------------------------------------- */
#cmodal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
}
#cmodal-overlay.cmodal-open { opacity: 1; }

.cmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.cmodal-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  width: min(480px, 96vw); max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: scale(.94); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
#cmodal-overlay.cmodal-open .cmodal-box { transform: scale(1); }

.cmodal-close-btn {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.45); color: #fff; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s;
}
.cmodal-close-btn:hover { background: rgba(252,70,170,.8); }

.cmodal-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f0f0f5; }
.cmodal-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmodal-img-placeholder { display: flex; align-items: center; justify-content: center; }
.cmodal-virtual  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.cmodal-inperson { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

.cmodal-body { padding: 20px 22px 24px; }
.cmodal-top  { margin-bottom: 10px; }

.cmodal-type-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
}
.cmodal-badge-virtual  { background: #e3f2fd; color: #1565c0; }
.cmodal-badge-inperson { background: #e8f5e9; color: #2e7d32; }

.cmodal-title {
  font-size: 20px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 14px; line-height: 1.3;
}
.cmodal-meta-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #555; margin-bottom: 8px;
}
.cmodal-meta-row svg { flex-shrink: 0; color: #888; }
.cmodal-dot { color: #ccc; }

.cmodal-seats       { font-size: 13px; color: #555; }
.cmodal-seats-full  { color: #e53935; font-weight: 600; }

.cmodal-desc-wrap { margin: 14px 0; border-top: 1px solid #f0f0f0; padding-top: 14px; }
.cmodal-description { font-size: 14px; color: #555; line-height: 1.6; margin: 0; white-space: pre-wrap; }

.cmodal-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 20px; flex-wrap: wrap;
}
.cmodal-price-wrap { font-size: 15px; }
.cmodal-free {
  font-size: 16px; font-weight: 700; color: #2e7d32;
  background: #e8f5e9; padding: 4px 14px; border-radius: 20px;
}
.cmodal-price-amount { font-size: 22px; font-weight: 700; color: var(--primary, #FC46AA); }

.cmodal-register-btn {
  flex: 1; min-width: 140px; padding: 13px 20px;
  background: var(--primary, #FC46AA); color: #fff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
}
.cmodal-register-btn:hover:not(:disabled) { background: #e03d9a; transform: translateY(-1px); }
.cmodal-register-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.cmodal-msg       { font-size: 13px; margin: 10px 0 0; text-align: center; min-height: 18px; }
.cmodal-msg-success { color: #2e7d32; }
.cmodal-msg-error   { color: #c62828; }
.cmodal-msg-info    { color: #1565c0; }

/* Registration form inside modal */
.cmodal-price-row { margin: 14px 0 0; }

.cmodal-divider { height: 1px; background: #f0f0f0; margin: 18px 0; }

.cmodal-already-registered {
  font-size: 13px; font-weight: 600; color: #2e7d32;
  background: #e8f5e9; border-radius: 8px;
  padding: 10px 14px; margin: 0 0 12px; display: none;
}

.cmodal-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #2d3748; margin-bottom: 8px;
}
.cmodal-optional { font-weight: 400; color: #888; font-size: 12px; }

.cmodal-textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: #2d3748; resize: vertical; min-height: 80px;
  outline: none; transition: border-color .15s;
}
.cmodal-textarea:focus { border-color: #FC46AA; }
.cmodal-textarea::placeholder { color: #a0aec0; }

.cmodal-notice {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 8px; padding: 12px; font-size: 12px;
  line-height: 1.5; margin: 12px 0 0;
}
.cmodal-notice svg { flex-shrink: 0; margin-top: 1px; }
.cmodal-notice-virtual  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cmodal-notice-virtual svg { color: #1d4ed8; }
.cmodal-notice-inperson { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.cmodal-notice-inperson svg { color: #15803d; }

.cmodal-warning {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 10px 12px;
  font-size: 11px; color: #92400e; line-height: 1.5; margin: 10px 0 0;
}
.cmodal-warning svg { flex-shrink: 0; margin-top: 1px; color: #d97706; }

.cmodal-footer { margin-top: 18px; }
.cmodal-register-btn {
  width: 100%; padding: 14px 20px;
  background: var(--primary, #FC46AA); color: #fff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
  font-family: inherit;
}
.cmodal-register-btn:hover:not(:disabled) { background: #e03d9a; transform: translateY(-1px); }
.cmodal-register-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.cmodal-register-btn.cmodal-registered { background: #2e7d32; cursor: default; }

@media (max-width: 600px) {
  .cmodal-box { width: 100vw; border-radius: 18px 18px 0 0; align-self: flex-end; max-height: 88vh; }
  #cmodal-overlay { align-items: flex-end; }
}

/* -----------------------------------------------------
   Dashboard Layout
----------------------------------------------------- */
.dashboard-page {
  background: #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
}

.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* -----------------------------------------------------
   Sidebar
----------------------------------------------------- */
.dash-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width 0.25s ease;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 18px;
}

.sidebar-logo img {
  border-radius: 8px;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #666;
}

/* Desktop hamburger toggle */
.sidebar-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #555;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.sidebar-hamburger:hover {
  background: #f5f5f5;
  color: #333;
}

/* ── Collapsed sidebar (icon-only rail) ── */
.dash-layout.sidebar-collapsed .dash-sidebar {
  width: 64px;
}
.dash-layout.sidebar-collapsed .dash-main {
  margin-left: 64px;
  max-width: calc(100vw - 64px);
}
.dash-layout.sidebar-collapsed .sidebar-logo-text,
.dash-layout.sidebar-collapsed .nav-item span:not(.nav-badge),
.dash-layout.sidebar-collapsed .sidebar-footer .user-info,
.dash-layout.sidebar-collapsed .sidebar-footer .user-menu-btn,
.dash-layout.sidebar-collapsed .sidebar-footer .user-dropdown {
  display: none;
}
.dash-layout.sidebar-collapsed .nav-badge {
  display: none !important;
}
.dash-layout.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}
.dash-layout.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 20px 16px 16px;
}
.dash-layout.sidebar-collapsed .sidebar-logo {
  display: none;
}
.dash-layout.sidebar-collapsed .user-card {
  justify-content: center;
  padding: 10px;
}
.dash-layout.sidebar-collapsed .nav-divider {
  margin: 4px 8px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.nav-item:hover {
  background: #f5f5f5;
  color: #333;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(252,70,170,0.1), rgba(154,103,234,0.1));
  color: var(--primary);
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.nav-divider {
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

/* Sidebar Footer / User Card */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  position: relative;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  display: block;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #888;
  transition: color 0.15s;
}

.user-menu-btn:hover {
  color: #333;
}

.user-dropdown {
  position: absolute;
  bottom: 100%;
  left: 16px;
  right: 16px;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 8px;
  overflow: hidden;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.user-dropdown a:hover {
  background: #f5f5f5;
}

.user-dropdown a:last-child {
  color: #dc2626;
  border-top: 1px solid #eee;
}

/* -----------------------------------------------------
   Mobile Header
----------------------------------------------------- */
.dash-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #333;
}

.dash-mobile-title {
  font-weight: 600;
  font-size: 16px;
}

.dash-mobile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 95;
}

.sidebar-overlay.active {
  display: block;
}

/* -----------------------------------------------------
   Main Content
----------------------------------------------------- */
.dash-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: calc(100vw - 260px);
  transition: margin-left 0.25s ease, max-width 0.25s ease;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.dash-subtitle {
  color: #666;
  font-size: 15px;
}

/* -----------------------------------------------------
   Tabs
----------------------------------------------------- */
.dash-tab {
  display: none;
}

.dash-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab Filters */
.tab-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-filter {
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 25px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* -----------------------------------------------------
   Stats Cards
----------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-orders { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.stat-icon-bookings { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: var(--primary); }
.stat-icon-favorites { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #f59e0b; }
.stat-icon-member { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #10b981; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #888;
}

/* -----------------------------------------------------
   Dashboard Grid & Cards
----------------------------------------------------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.dash-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.card-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.card-link:hover {
  text-decoration: underline;
}

.card-body {
  padding: 16px 24px;
}

/* List Items */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-subtitle {
  display: block;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.empty-state svg {
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* -----------------------------------------------------
   Quick Actions
----------------------------------------------------- */
.quick-actions h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: #555;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  color: var(--primary);
}

.action-card svg {
  margin-bottom: 12px;
}

.action-card span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

/* -----------------------------------------------------
   Order Cards
----------------------------------------------------- */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.order-number {
  font-weight: 600;
  color: #333;
}

.order-date {
  font-size: 13px;
  color: #888;
  margin-left: 12px;
}

.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-confirmed { background: #dbeafe; color: #2563eb; }
.status-complete, .status-completed { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

.order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.order-item .item-name {
  flex: 1;
  color: #555;
}

.order-item .item-qty {
  color: #888;
}

.order-item .item-price {
  font-weight: 500;
  color: #333;
}

.order-item.more {
  color: #888;
  font-style: italic;
}

.order-footer {
  padding-top: 12px;
  text-align: right;
}

.order-total {
  font-size: 15px;
  color: #555;
}

.order-total strong {
  color: #1a1a2e;
  font-size: 17px;
}

/* -----------------------------------------------------
   Booking Cards
----------------------------------------------------- */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-card {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.booking-date-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.booking-date-badge .month {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.booking-date-badge .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.booking-details {
  flex: 1;
  min-width: 0;
}

.booking-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.booking-stylist {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.booking-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.booking-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.booking-price {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

/* -----------------------------------------------------
   Favorites Grid
----------------------------------------------------- */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.favorite-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f2f2f2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.favorite-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.favorite-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.favorite-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorite-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.favorite-remove:hover {
  background: white;
  color: #dc2626;
  transform: scale(1.06);
}

.favorite-info {
  padding: 14px 14px 16px;
}

.favorite-type {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6b7280;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 8px;
}

.favorite-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-name:hover {
  color: var(--primary);
}

.favorite-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.favorite-view-link {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
}

.favorite-view-link:hover {
  color: var(--primary);
}

/* -----------------------------------------------------
   Settings
----------------------------------------------------- */
.settings-grid {
  display: grid;
  gap: 24px;
  max-width: 700px;
}

.settings-grid.settings-grid-wide {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.settings-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(252, 70, 170, 0.08), rgba(127, 86, 217, 0.06));
  border: 1px solid #f3d7ea;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.settings-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.settings-profile-copy h3 {
  margin: 0;
  font-size: 20px;
  color: #1a1a2e;
}

.settings-profile-copy p {
  margin: 4px 0 0;
  color: #565b68;
  font-size: 14px;
}

.settings-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.settings-role-pill {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}

.settings-member-since {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.settings-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.settings-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.settings-card .form-group {
  margin-bottom: 18px;
}

.settings-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.settings-card .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
}

.settings-card .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 92px;
  transition: all 0.2s;
}

.settings-card .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,70,170,0.1);
}

.settings-card .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252,70,170,0.1);
}

.settings-card .form-group input:disabled {
  background: #f5f5f5;
  color: #888;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-hint {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  display: block;
}

.form-actions {
  margin-top: 24px;
}

.settings-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin: 8px 0 14px;
}

.settings-card .btn-secondary {
  border: 1.5px solid #d2d6dc;
  color: #374151;
  background: #fff;
}

.settings-card .btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Toggle Switches */
.settings-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.settings-toggle span:first-child {
  flex: 1;
}

.settings-toggle strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.settings-toggle small {
  font-size: 13px;
  color: #888;
}

.settings-toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: #ddd;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.settings-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.settings-toggle input:checked + .toggle-slider::after {
  transform: translateX(22px);
}

/* Danger Zone */
.settings-danger {
  border: 2px solid #fee2e2;
}

.settings-danger h3 {
  color: #dc2626;
}

.settings-danger p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.btn-danger {
  background: white;
  color: #dc2626;
  border: 2px solid #dc2626;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------
   Responsive
----------------------------------------------------- */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .settings-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-grid.settings-grid-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dash-mobile-header {
    display: flex;
  }
  
  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  
  .dash-sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-close {
    display: block;
  }

  .sidebar-hamburger {
    display: none;
  }

  /* Reset collapsed state on mobile */
  .dash-layout.sidebar-collapsed .dash-sidebar {
    width: 280px;
  }
  .dash-layout.sidebar-collapsed .dash-main {
    margin-left: 0;
    max-width: 100vw;
  }
  
  .dash-main {
    margin-left: 0;
    padding: 80px 20px 24px;
    max-width: 100vw;
  }
  
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    width: 44px;
    height: 44px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .action-card {
    padding: 16px;
  }
  
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dash-header h1 {
    font-size: 24px;
  }
  
  .booking-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .booking-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* -----------------------------------------------------
   Dashboard Overview � Home Sections
----------------------------------------------------- */
.dash-home-section {
  margin-bottom: 36px;
}

.dash-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.dash-section-header .card-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #FC46AA);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.dash-section-header .card-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------
   Section eyebrow label (TRENDING NOW / CONNECT / LEARN)
----------------------------------------------------- */
.section-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--primary, #FC46AA);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dash-home-section .dash-section-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.15;
}

/* -----------------------------------------------------
   Category Filter Chips
----------------------------------------------------- */
.dash-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.dash-category-chips::-webkit-scrollbar { display: none; }

.dash-cat-chip {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: #f0f0f5;
  color: #555;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-cat-chip:hover {
  background: rgba(252,70,170,0.1);
  color: var(--primary);
}

.dash-cat-chip.active {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,26,46,0.3);
}

/* -----------------------------------------------------
   Videos Horizontal Scroll
----------------------------------------------------- */
.dash-videos-scroll {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 4px 0 12px;
}

/* -----------------------------------------------------
   Video Card
----------------------------------------------------- */
.dash-video-card {
  flex: 0 0 220px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.dash-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

/* Thumbnail area � 16:9 */
.dv-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
  overflow: hidden;
}

.dv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dash-video-card:hover .dv-thumb img {
  transform: scale(1.05);
}

.dv-no-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
}

/* Play button overlay */
.dv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  opacity: 0;
  transition: opacity 0.2s;
}

.dash-video-card:hover .dv-play {
  opacity: 1;
}

.dv-play svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  background: rgba(252,70,170,0.85);
  border-radius: 50%;
  padding: 10px;
}

/* Category badge on thumbnail */
.dv-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 10px;
  pointer-events: none;
  text-transform: uppercase;
}

/* Card info */
.dv-info {
  padding: 12px 14px 14px;
}

.dv-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

/* Empty state for video section */
.dash-videos-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: #bbb;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

/* Popular Styles Gallery (legacy � keep for compat) */

/* Featured Stylists � horizontal scroll row */
.dash-stylists-row {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding-bottom: 8px;
}

.dash-stylist-card {
  flex: 0 0 130px;
  background: white;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #eee;
  transition: box-shadow 0.15s, transform 0.15s;
}

.dash-stylist-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.dash-stylist-card .fs-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
}

.dash-stylist-card .fs-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-stylist-card .fs-location {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Upcoming Classes Preview */
.uc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}

.uc-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.uc-card .uc-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary, #FC46AA), var(--secondary, #9A67EA));
  border-radius: 10px;
  padding: 10px 8px;
  color: white;
}

.uc-card .uc-month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uc-card .uc-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.uc-card .uc-info {
  flex: 1;
}

.uc-card .uc-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.uc-card .uc-meta {
  font-size: 13px;
  color: #666;
}

.uc-free {
  color: #16a34a;
  font-weight: 700;
}

/* -----------------------------------------------------
   Overview � Monthly Classes (image cards, uc2)
----------------------------------------------------- */
.uc2-scroll {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 4px 0 12px;
  flex-wrap: wrap;
}

.uc2-card {
  flex: 0 0 200px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.uc2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(252,70,170,.15);
}

.uc2-img {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f0f0f5;
}
.uc2-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc2-virtual  { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.uc2-inperson { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }

.uc2-time-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 1;
}
.ucb-blue   { background: #e3f2fd; color: #1565c0; }
.ucb-orange { background: #fff3e0; color: #e65100; }
.ucb-green  { background: #e8f5e9; color: #2e7d32; }
.ucb-grey   { background: #f5f5f5; color: #757575; }

.uc2-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 1;
}

.uc2-body  { padding: 10px 12px 12px; }
.uc2-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uc2-date  { font-size: 11px; color: #888; margin: 0 0 5px; }
.uc2-price { margin: 0; }
.uc2-free  {
  font-size: 12px;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
}
.uc2-paid  { font-size: 13px; font-weight: 700; color: var(--primary, #FC46AA); }

@media (max-width: 600px) {
  .uc2-card { flex: 0 0 170px; }
}

/* -----------------------------------------------------
   Stylists Tab � Full List
----------------------------------------------------- */

/* Stylists Search & Filter Controls */
.dsf-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.dsf-search-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
}

.dsf-search-wrap svg {
  flex-shrink: 0;
}

.dsf-search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1a1a2e;
  outline: none;
}

.dsf-search-wrap input::placeholder {
  color: #aaa;
}

.dsf-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsf-sort-wrap label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  white-space: nowrap;
}

.dsf-sort-wrap select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #1a1a2e;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.dsf-sort-wrap select:hover,
.dsf-sort-wrap select:focus {
  border-color: var(--primary);
}

.dsf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dsf-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.dsf-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.dsf-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.dsf-photo {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.dsf-photo img,
.dsf-photo .fs-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dsf-photo .fs-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.dsf-name-rating {
  flex: 1;
}

.dsf-info {
  flex: 1;
  min-width: 0;
  margin-bottom: 12px;
}

.dsf-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.dsf-location {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dsf-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.dsf-rating .star.filled { color: #f59e0b; }
.dsf-rating .star { color: #ddd; font-size: 13px; }

.dsf-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dsf-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
}

.dsf-badge.specialty {
  background: #ffe5f0;
  color: #c2185b;
}

.dsf-actions {
  display: flex;
  gap: 8px;
}

.dsf-actions button {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: white;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.dsf-actions .btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dsf-actions .btn-primary:hover {
  opacity: 0.9;
}

.dsf-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* -----------------------------------------------------
   Classes Tab
----------------------------------------------------- */
/* -----------------------------------------------------
  Shop Tab
----------------------------------------------------- */
.shop-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .shop-cat-btn {
    padding: 9px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    background: white;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }

  .shop-cat-btn.active,
  .shop-cat-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .shop-controls {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .shop-search-wrap {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
  }

  .shop-search-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
  }

  .shop-search-wrap input::placeholder { color: #aaa; }

  .shop-sort-wrap select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
  }

  .shop-sort-wrap select:focus { border-color: var(--primary); }

  .shop-panel { display: none; }
  .shop-panel.active { display: block; }

  .shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .shop-product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
  }

  .shop-product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    transform: translateY(-2px);
  }

  .shop-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f7f7;
  }

  .shop-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
  }

  .shop-product-card:hover .shop-card-img-wrap img { transform: scale(1.04); }

  .shop-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  }

  .shop-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
  }

  .shop-card-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .shop-card-badge.sale { background: #ef4444; }

  .shop-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
  }

  .shop-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }

  .shop-card-name:hover { color: var(--primary); }

  .shop-card-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
  }

  .shop-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
  }

  .shop-card-orig-price {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
  }

  .shop-card-cart-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
  }

  .shop-card-cart-btn:hover { opacity: 0.88; }

  /* -----------------------------------------------------
    Classes Tab
  ----------------------------------------------------- */
  .dash-classes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-class-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  transition: box-shadow 0.15s;
}

.dash-class-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dash-class-card.class-past {
  opacity: 0.65;
}

.dcc-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background: linear-gradient(135deg, var(--primary, #FC46AA), var(--secondary, #9A67EA));
  border-radius: 10px;
  padding: 10px 8px;
  color: white;
}

.dcc-month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dcc-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.dcc-dow {
  font-size: 10px;
  opacity: 0.85;
  text-transform: uppercase;
}

.dcc-info {
  flex: 1;
  min-width: 0;
}

.dcc-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.dcc-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.dcc-host {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.class-free-badge {
  color: #16a34a;
  font-weight: 700;
}

.class-ended-badge {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.dash-classes-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.dash-class-card-v2 {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.dash-class-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(252,70,170,0.28);
}

.dash-class-card-v2.class-past {
  opacity: .72;
}

.dcc2-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8f8fb, #eeeeff);
  overflow: hidden;
}

.dcc2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dcc2-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,46,.45);
}

.dcc2-thumb.dcc2-virtual {
  background: linear-gradient(135deg, #e3f2fd, #c8e6ff);
}

.dcc2-thumb.dcc2-inperson {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.dcc2-status,
.dcc2-type {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 999px;
  padding: 5px 10px;
  backdrop-filter: blur(4px);
}

.dcc2-status {
  left: 10px;
  color: #fff;
  background: rgba(26,26,46,.75);
}

.dcc2-type {
  right: 10px;
  color: #1a1a2e;
  background: rgba(255,255,255,.86);
}

.dcc2-body {
  padding: 14px 14px 14px;
}

.dcc2-datetime {
  font-size: 12px;
  color: #667085;
  margin-bottom: 6px;
  font-weight: 600;
}

.dcc2-title {
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a2e;
  margin: 0 0 7px;
  font-weight: 700;
}

.dcc2-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #5f6675;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dcc2-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  font-size: 12px;
  color: #475467;
  margin-bottom: 12px;
}

.dcc2-meta-grid strong {
  color: #1f2937;
}

.dcc2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f2f4f7;
  padding-top: 10px;
}

.dcc2-host {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dcc2-host-name {
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.dcc2-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .dash-classes-grid-list {
    grid-template-columns: 1fr;
  }

  .dcc2-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* -----------------------------------------------------
   Community Tab � matches app PostCard
----------------------------------------------------- */
.dash-community-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.dcp-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* -- Header row -- */
.dcp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}

.dcp-avatar-wrap {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(252,70,170,0.12);
}
.dcp-avatar-wrap img,
.dcp-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcp-avatar-fallback {
  width: 100%; height: 100%;
  display: none; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--primary, #FC46AA);
}

.dcp-meta { flex: 1; min-width: 0; }
.dcp-name {
  display: block; font-size: 14.5px; font-weight: 600; color: #2D3748;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dcp-sub-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.dcp-type-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
  white-space: nowrap;
}
.dcp-time { font-size: 11.5px; color: #9e9e9e; }

/* -- Body -- */
.dcp-title {
  margin: 12px 16px 4px;
  font-size: 17px; font-weight: 700; color: #2D3748; line-height: 1.3;
}
.dcp-content {
  margin: 0 16px 12px;
  font-size: 14px; color: #555; line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -- Media (4:5 ratio matching app) -- */
.dcp-media {
  margin: 0 16px 12px;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/5;
  background: rgba(252,70,170,0.05);
}
.dcp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -- Tags -- */
.dcp-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.dcp-tag {
  font-size: 12px; font-weight: 500; color: #FF6B8B;
  background: rgba(251,228,231,0.5);
  padding: 4px 10px; border-radius: 20px;
}

/* -- Action bar -- */
.dcp-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid #f0f0f0;
}
.dcp-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #616161;
  background: #f5f5f5; border-radius: 10px; padding: 6px 10px;
}
.dcp-action svg { stroke: #9e9e9e; flex-shrink: 0; }
.dcp-action-end { margin-left: auto; }
.comm-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comm-new-post-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary, #FC46AA), var(--secondary, #9A67EA));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(252,70,170,.18);
}

.dcp-actions button.dcp-action {
  border: none;
  cursor: pointer;
}

.dcp-like-btn.liked {
  background: rgba(252,70,170,.1);
  color: var(--primary, #FC46AA);
}
.dcp-like-btn.liked svg {
  stroke: var(--primary, #FC46AA);
}

.dcp-comment-btn:hover,
.dcp-like-btn:hover {
  background: rgba(252,70,170,.08);
  color: var(--primary, #FC46AA);
}

.dcp-comments-section {
  border-top: 1px solid #f3f3f3;
  background: #fafafd;
}

.dcp-comments-inner {
  padding: 14px 16px 16px;
}

.dcp-comments-loading {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.dcp-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.dcp-comment {
  display: flex;
  gap: 10px;
}

.dcp-c-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(252,70,170,.1);
  flex-shrink: 0;
}

.dcp-c-avatar img,
.dcp-c-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dcp-c-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #FC46AA);
  font-size: 13px;
  font-weight: 700;
}

.dcp-c-body {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 10px 12px;
}

.dcp-c-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dcp-c-name {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
}

.dcp-c-time {
  font-size: 11.5px;
  color: #9e9e9e;
}

.dcp-c-text {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  white-space: pre-wrap;
}

.dcp-no-comments,
.dcp-sign-in-prompt {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.dcp-sign-in-prompt a {
  color: var(--primary, #FC46AA);
  font-weight: 600;
  text-decoration: none;
}

.dcp-add-comment {
  margin-top: 8px;
}

.dcp-c-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.dcp-c-input {
  flex: 1;
  min-height: 42px;
  max-height: 140px;
  resize: none;
  border: 1px solid #ececf2;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  background: #fff;
}

.dcp-c-input:focus {
  outline: none;
  border-color: rgba(252,70,170,.45);
  box-shadow: 0 0 0 3px rgba(252,70,170,.08);
}

.dcp-c-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: var(--primary, #FC46AA);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dcp-c-send:disabled {
  opacity: .55;
  cursor: default;
}

#comm-new-post-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

#comm-new-post-modal.cnp-open {
  opacity: 1;
  pointer-events: auto;
}

.cnp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
}

.cnp-box {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 24px));
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.24);
  transform: translateY(18px) scale(.98);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}

#comm-new-post-modal.cnp-open .cnp-box {
  transform: translateY(0) scale(1);
}

.cnp-header,
.cnp-footer {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cnp-header {
  border-bottom: 1px solid #f2f2f6;
}

.cnp-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1a1a2e;
}

.cnp-close {
  border: none;
  background: #f5f5f7;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cnp-body {
  padding: 18px 20px 8px;
}

.cnp-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cnp-type-btn {
  border: 1px solid #ececf2;
  background: #fff;
  color: #555;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.cnp-type-btn.active {
  border-color: var(--primary, #FC46AA);
  background: rgba(252,70,170,.08);
  color: var(--primary, #FC46AA);
}

.cnp-title-input,
.cnp-text-input {
  width: 100%;
  border: 1px solid #ececf2;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.cnp-title-input {
  margin-bottom: 12px;
  font-size: 14px;
}

.cnp-text-input {
  resize: vertical;
  min-height: 140px;
  font-size: 14px;
  line-height: 1.5;
}

.cnp-title-input:focus,
.cnp-text-input:focus {
  outline: none;
  border-color: rgba(252,70,170,.45);
  box-shadow: 0 0 0 3px rgba(252,70,170,.08);
}

.cnp-char-count {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  color: #999;
}

.cnp-footer {
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f2f2f6;
}

@media (max-width: 600px) {
  .dcp-comments-inner {
    padding: 12px;
  }
  .cnp-box {
    width: calc(100vw - 16px);
    border-radius: 18px;
  }
  .cnp-header,
  .cnp-body,
  .cnp-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* -----------------------------------------------------
   Tutorials Tab
----------------------------------------------------- */
.dash-tutorials-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dash-tutorial-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.dash-tutorial-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.dt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #f0f0f0;
  overflow: hidden;
}

.dt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.dt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s;
}

.dash-tutorial-card:hover .dt-play {
  opacity: 1;
}

.dt-play svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.dt-info {
  padding: 12px;
}

.dt-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary, #FC46AA);
  background: rgba(252,70,170,0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Host Avatar (Classes tab) */
.host-avatar-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.host-avatar-wrap img,
.host-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.host-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary, #FC46AA), var(--secondary, #9A67EA));
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* Section empty placeholder */
.section-empty {
  text-align: center;
  padding: 32px 20px;
  color: #aaa;
  font-size: 14px;
}

/* -----------------------------------------------------
   Product Cards � Human Hair / Synthetic / Accessories
----------------------------------------------------- */
.dash-products-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 4px 0 12px;
}

.dash-product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s ease;
}

.dash-product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 28px rgba(252,70,170,0.15);
}

.dp-img {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dash-product-card:hover .dp-img img {
  transform: scale(1.05);
}

.dp-img.dp-no-img {
  background: #f0f0f5;
}

.dp-no-img-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dp-info {
  padding: 10px 12px 12px;
}

.dp-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.dp-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #FC46AA);
}

/* -----------------------------------------------------
   Community Care Card
----------------------------------------------------- */
#dash-overview-community-care {
  display: grid;
  grid-template-columns: minmax(0, 480px);
  justify-content: start;
}

.ccare-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
  width: 100%;
  max-width: 480px;
}

.ccare-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(252,70,170,0.08), rgba(154,103,234,0.08));
  overflow: hidden;
}

.ccare-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ccare-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(252,70,170,0.08), rgba(154,103,234,0.08));
}

.ccare-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary, #FC46AA);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(252,70,170,0.4);
}

/* Gradient header shown when no banner image is set */
.ccare-gradient-header {
  padding: 20px 20px 16px;
  background: linear-gradient(to bottom, #FFF1F4, #ffffff);
  border-bottom: 1px solid #f0f0f0;
}

.ccare-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #888;
  text-transform: uppercase;
}

.ccare-body {
  padding: 18px 20px 20px;
  background: rgba(252,70,170,0.04);
}

.ccare-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.ccare-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
  margin: 0;
}

.ccare-tagline-box {
  background: #F8F9FA;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary, #FC46AA);
  font-style: italic;
  line-height: 1.45;
  margin-top: 10px;
}

.ccare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccare-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ccare-chip:hover { opacity: 0.8; }

.ccare-green  { background: rgba(76,175,80,0.12);  color: #2e7d32; }
.ccare-pink   { background: rgba(252,70,170,0.12); color: var(--primary, #FC46AA); }
.ccare-purple { background: rgba(156,39,176,0.12); color: #7b1fa2; }

/* -----------------------------------------------------
   Responsive � New Sections
----------------------------------------------------- */
@media (max-width: 600px) {
  .dash-styles-gallery {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .dash-tutorials-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .dash-class-card,
  .dsf-card {
    flex-wrap: wrap;
  }

  .dash-video-card {
    flex: 0 0 160px;
  }

  .dash-home-section .dash-section-header h3 {
    font-size: 18px;
  }

  .uc2-card {
    flex: 1 1 calc(50% - 7px);
    min-width: 140px;
  }
}

/* -----------------------------------------------------
   BraidsTribe Academy Cards
----------------------------------------------------- */
.dash-academy-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.dash-academy-scroll::-webkit-scrollbar { display: none; }

.dash-academy-card {
  position: relative;
  flex: 0 0 260px;
  min-width: 260px;
  border-radius: 20px;
  padding: 22px 20px 20px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dash-academy-card:hover {
  transform: translateY(-4px);
}

/* decorative circle */
.dac-decor {
  position: absolute;
  right: -24px;
  top: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.dac-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(255,255,255,0.22);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.dac-emoji {
  font-size: 28px;
  line-height: 1;
  margin-top: 4px;
}

.dac-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.85;
}

.dac-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.dac-desc {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.88;
  margin: 0;
  flex: 1;
}

.dac-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.dac-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.dac-price {
  font-size: 15px;
  font-weight: 800;
}

.dac-btn {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.95);
  color: #2d3748;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.dac-btn:hover { background: #fff; }

@media (max-width: 600px) {
  .dash-academy-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

/* -----------------------------------------------------
   Stylist Profile Modal
----------------------------------------------------- */
#spmodal-overlay {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
#spmodal-overlay.spmodal-open {
  opacity: 1;
  pointer-events: auto;
}

.spmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}

.spmodal-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  width: min(520px, 96vw); max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: scale(.94); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
#spmodal-overlay.spmodal-open .spmodal-box { transform: scale(1); }

.spmodal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.4); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s;
}
.spmodal-close:hover { background: var(--primary, #FC46AA); }

.spmodal-header {
  display: flex; gap: 16px; padding: 24px 22px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.spmodal-photo-wrap {
  position: relative; flex-shrink: 0;
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.spmodal-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spmodal-avatar-fallback {
  width: 100%; height: 100%;
  display: none; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}

.spmodal-head-info { flex: 1; min-width: 0; }
.spmodal-head-info h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #2d3748; }

.spmodal-location {
  font-size: 13px; color: #666; display: flex; align-items: center; gap: 4px; margin: 0 0 6px;
}
.spmodal-location svg { flex-shrink: 0; }

.spmodal-stars {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #555;
}
.spmodal-stars .star       { color: #ddd; }
.spmodal-stars .star.filled { color: #ffc107; }

.spmodal-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 22px; border-bottom: 1px solid #f0f0f0;
}
.spmodal-link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary, #FC46AA);
  background: rgba(252,70,170,.08); padding: 7px 14px;
  border-radius: 20px; text-decoration: none; transition: background .15s;
}
.spmodal-link-btn:hover { background: rgba(252,70,170,.16); }

.spmodal-section {
  padding: 16px 22px;
  border-bottom: 1px solid #f5f5f5;
}
.spmodal-section:last-of-type { border-bottom: none; }
.spmodal-section h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #2d3748; text-transform: uppercase; letter-spacing: .5px; }
.spmodal-section p  { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }

.spmodal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spmodal-tag {
  font-size: 12.5px; font-weight: 600;
  background: rgba(252,70,170,.1); color: var(--primary, #FC46AA);
  padding: 5px 12px; border-radius: 20px;
}

.spmodal-services { display: flex; flex-direction: column; gap: 8px; }
.spmodal-svc-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #444;
  background: #fafafa; border-radius: 8px; padding: 8px 12px;
}
.spmodal-svc-price { font-weight: 700; color: var(--primary, #FC46AA); }

.spmodal-portfolio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.spmodal-portfolio-item {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f0f0f5;
}
.spmodal-portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spmodal-portfolio-more {
  grid-column: 1 / -1; text-align: center;
  font-size: 13px; color: #888; padding: 4px 0;
}

.spmodal-cta {
  padding: 18px 22px 22px;
  background: linear-gradient(135deg, rgba(252,70,170,.04), rgba(154,103,234,.04));
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.spmodal-cta p { margin: 0 0 12px; font-size: 13.5px; color: #555; }
.spmodal-cta-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* -----------------------------------------------------
   Booking Modal
----------------------------------------------------- */
#booking-modal-overlay {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
#booking-modal-overlay.booking-open {
  opacity: 1;
  pointer-events: auto;
}

.booking-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}

.booking-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  width: min(420px, 96vw); max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: scale(.94); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  padding: 28px 24px;
}
#booking-modal-overlay.booking-open .booking-box { transform: scale(1); }

.booking-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.4); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s;
}
.booking-close:hover { background: var(--primary, #FC46AA); }

.booking-content h3 {
  margin: 0 0 20px; font-size: 20px; font-weight: 700; color: #1a1a2e;
}

.booking-field {
  margin-bottom: 16px;
  display: flex; flex-direction: column;
}

.booking-field label {
  font-size: 13px; font-weight: 600; color: #1a1a2e;
  margin-bottom: 6px; text-transform: capitalize;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  padding: 10px 12px;
  border: 1px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; color: #1a1a2e;
  font-family: inherit; background: #fafafa;
  transition: border-color .15s, background .15s;
  outline: none;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  background: white; border-color: var(--primary, #FC46AA);
}

.booking-field textarea {
  resize: vertical;
}

.booking-actions {
  display: flex; gap: 10px; margin: 24px 0 16px;
}

.booking-actions .btn-primary,
.booking-actions .btn-secondary {
  flex: 1; padding: 12px 16px;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}

.booking-actions .btn-primary {
  background: var(--primary, #FC46AA); color: white;
}
.booking-actions .btn-primary:hover { opacity: 0.9; }

.booking-actions .btn-secondary {
  background: #f0f0f0; color: #1a1a2e;
}
.booking-actions .btn-secondary:hover { background: #e0e0e0; }

.booking-notice {
  font-size: 12px; color: #666;
  text-align: center; margin: 0;
}

.booking-success-toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #10b981; color: white;
  padding: 14px 20px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; z-index: 3000;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .3s ease;
}
.booking-success-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* -----------------------------------------------------
   Academy Course Detail Modal � matches CourseDetailScreen
----------------------------------------------------- */
#acdmodal-overlay {
  position: fixed; inset: 0; z-index: 2200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
#acdmodal-overlay.acdmodal-open { opacity: 1; pointer-events: auto; }

.acdmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}

.acdmodal-box {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 -12px 60px rgba(0,0,0,.2);
  transform: translateY(60px);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
#acdmodal-overlay.acdmodal-open .acdmodal-box { transform: translateY(0); }

.acdmodal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.35); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s;
}
.acdmodal-close:hover { background: rgba(0,0,0,.55); }

/* -- Hero gradient header -- */
.acdmodal-hero {
  position: relative; overflow: hidden;
  padding: 36px 24px 28px;
  color: #fff;
}
.acdmodal-hero-decor {
  position: absolute; right: -30px; top: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.12); pointer-events: none;
}
.acdmodal-lvl-badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  background: rgba(255,255,255,.22);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px;
}
.acdmodal-hero-emoji { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.acdmodal-hero-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
.acdmodal-hero-sub   { font-size: 13px; opacity: .85; margin: 0; }

/* -- Body sections -- */
.acdmodal-body { padding: 0 0 24px; }

.acdmodal-section {
  padding: 20px 22px 0;
}
.acdmodal-section h3 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: #2d3748; margin: 0 0 12px;
}
.acdmodal-section p { font-size: 14.5px; color: #555; line-height: 1.65; margin: 0; }

/* -- Feature checklist -- */
.acdmodal-features { display: flex; flex-direction: column; gap: 10px; }
.acdmodal-feature  {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #444; line-height: 1.5;
}
.acdmodal-feature svg { flex-shrink: 0; margin-top: 2px; }

/* -- CTA block -- */
.acdmodal-cta {
  margin: 20px 22px 0;
  background: linear-gradient(135deg, rgba(252,70,170,.04), rgba(154,103,234,.04));
  border: 1px solid rgba(252,70,170,.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.acdmodal-price-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.acdmodal-price-label { font-size: 13px; color: #666; }
.acdmodal-price { font-size: 26px; font-weight: 800; color: var(--primary, #FC46AA); }
.acdmodal-cta-note { font-size: 13px; color: #888; margin: 0 0 14px; }
.acdmodal-store-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.acdmodal-store-btns .btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
}

  /* -----------------------------------------------------
     Academy Tab � App Badge & Level Tabs
  ----------------------------------------------------- */
  .academy-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(252,70,170,.1), rgba(154,103,234,.1));
    border: 1px solid rgba(252,70,170,.25);
    color: var(--primary, #FC46AA);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .academy-level-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .academy-level-tab {
    background: #f5f5f7;
    border: 1.5px solid transparent;
    color: #555;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .academy-level-tab:hover {
    background: rgba(252,70,170,.08);
    color: var(--primary, #FC46AA);
  }
  .academy-level-tab.active {
    background: var(--primary, #FC46AA);
    color: #fff;
    border-color: var(--primary, #FC46AA);
  }

  /* -----------------------------------------------------
     Academy Level Section
  ----------------------------------------------------- */
  .academy-level-section {
    margin-bottom: 40px;
  }

  .academy-section-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 18px;
    color: #fff;
    margin-bottom: 18px;
  }

  .academy-section-decor {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    pointer-events: none;
  }

  .academy-section-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .academy-section-emoji {
    font-size: 34px;
    line-height: 1;
    flex-shrink: 0;
  }

  .academy-section-level {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 2px;
  }

  .academy-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.25;
  }

  .academy-section-desc {
    font-size: 12.5px;
    opacity: .88;
    margin: 0;
    max-width: 340px;
  }

  .academy-section-count {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,.22);
    padding: 6px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* -----------------------------------------------------
     Academy Video Grid & Cards
  ----------------------------------------------------- */
  .academy-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .academy-video-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .academy-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  .avcard-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #f0f0f5;
    overflow: hidden;
  }
  .avcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .avcard-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
  }

  .avcard-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.32);
    opacity: 0;
    transition: opacity .18s ease;
  }
  .academy-video-card:hover .avcard-play { opacity: 1; }
  .avcard-play svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }

  .avcard-step {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary, #FC46AA);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
  }

  .avcard-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
  }

  .avcard-info {
    padding: 12px 14px;
  }
  .avcard-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .avcard-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .academy-empty-level {
    background: #f9f9fb;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    font-size: 14px;
    color: #777;
  }

  @media (max-width: 600px) {
    .academy-section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 16px 18px;
    }
    .academy-section-count {
      align-self: flex-start;
    }
    .academy-videos-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 10px;
    }
    .academy-section-desc { max-width: 100%; }
  }

/* ---------------------------------------------------
   COMMUNITY CARE
--------------------------------------------------- */

/* Sub-nav */
.comm-subnav {
  display: flex; gap: 4px;
  background: #f8f9fa; border-radius: 12px;
  padding: 5px; margin-bottom: 28px;
  width: fit-content;
}
.comm-subnav-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  border: none; background: transparent;
  font-size: 13.5px; font-weight: 600; color: #666;
  cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.comm-subnav-btn svg { stroke: currentColor; flex-shrink: 0; }
.comm-subnav-btn:hover { background: rgba(252,70,170,.07); color: #FC46AA; }
.comm-subnav-btn.active { background: #fff; color: #FC46AA; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* Sub-tab panes */
.comm-subtab { animation: fadeIn .22s ease; }

/* Hero */
.ccare-hero {
  background: linear-gradient(135deg, #fff1f6, #f3eeff);
  border: 1px solid #f0dff7;
  border-radius: 20px; padding: 36px 32px; margin-bottom: 32px;
}
.ccare-hero-eyebrow {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.3px;
  color: #9A67EA; text-transform: uppercase; margin-bottom: 10px;
}
.ccare-hero-title {
  font-size: 28px; font-weight: 800; color: #1a1a2e;
  margin: 0 0 10px; letter-spacing: -0.5px;
}
.ccare-hero-desc {
  font-size: 15.5px; color: #555; line-height: 1.55; margin: 0 0 16px;
  max-width: 580px;
}
.ccare-hero-tagline {
  display: inline-block;
  background: #fff;
  border: 1px solid #e8d5f0; border-radius: 10px;
  padding: 12px 18px;
  font-size: 14.5px; font-weight: 500; font-style: italic;
  color: #FC46AA; line-height: 1.4;
}

/* Section headings */
.ccare-section-title {
  font-size: 18px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 6px; letter-spacing: -0.2px;
}
.ccare-section-sub {
  font-size: 13.5px; color: #777; margin: 0 0 20px; line-height: 1.5;
}

/* Role Cards */
.ccare-roles-section { margin-bottom: 36px; }
.ccare-roles-grid {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 640px;
}
.ccare-role-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1.5px solid #eee;
  border-radius: 16px; padding: 20px;
  cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ccare-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.ccare-role-green:hover { border-color: #4CAF50; }
.ccare-role-pink:hover  { border-color: #FC46AA; }
.ccare-role-blue:hover  { border-color: #2196F3; }

.ccare-role-icon {
  width: 56px; height: 56px; border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ccare-role-green .ccare-role-icon { background: rgba(76,175,80,.1); color: #4CAF50; }
.ccare-role-pink  .ccare-role-icon { background: rgba(252,70,170,.1); color: #FC46AA; }
.ccare-role-blue  .ccare-role-icon { background: rgba(33,150,243,.1); color: #2196F3; }

.ccare-role-body { flex: 1; min-width: 0; }
.ccare-role-body h4 { margin: 0 0 5px; font-size: 16.5px; font-weight: 700; color: #1a1a2e; }
.ccare-role-body p  { margin: 0; font-size: 13.5px; color: #666; line-height: 1.45; }
.ccare-role-chevron { flex-shrink: 0; stroke: #bbb; }

/* Offers section */
.ccare-offers-section { margin-bottom: 36px; }
.ccare-offers-header  { margin-bottom: 0; }
.ccare-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ccare-offer-card {
  background: #fff; border: 1px solid #eee;
  border-radius: 14px; padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .18s;
}
.ccare-offer-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.ccare-oc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ccare-oc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.ccare-oc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccare-oc-avatar-fall {
  width: 100%; height: 100%;
  display: none; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
}
.ccare-oc-info { flex: 1; min-width: 0; }
.ccare-oc-name { display: block; font-size: 14.5px; font-weight: 700; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccare-oc-loc  { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #888; margin-top: 3px; }
.ccare-oc-loc svg { flex-shrink: 0; stroke: #bbb; }

.ccare-oc-body { padding: 14px 16px; }
.ccare-oc-type {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #9A67EA; background: rgba(154,103,234,.1);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.ccare-oc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ccare-stat { font-size: 12.5px; color: #555; }
.ccare-stat strong { color: #1a1a2e; }
.ccare-stat-done { color: #4CAF50; }

/* My Activity */
.ccare-my-activity { margin-bottom: 32px; }
.ccare-activity-label {
  font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 10px;
}
.ccare-activity-list { display: flex; flex-direction: column; gap: 8px; }
.ccare-activity-item {
  display: flex; align-items: center; gap: 10px;
  background: #f8f9fa; border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px;
}
.ccare-act-type { font-weight: 600; color: #1a1a2e; flex-shrink: 0; }
.ccare-act-loc  { color: #777; flex: 1; }
.ccare-act-status {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; flex-shrink: 0; text-transform: capitalize;
}
.ccare-status-pending    { background: rgba(245,158,11,.12); color: #b45309; }
.ccare-status-matched    { background: rgba(33,150,243,.12); color: #1565c0; }
.ccare-status-scheduled  { background: rgba(154,103,234,.12); color: #6d28d9; }
.ccare-status-completed  { background: rgba(76,175,80,.12); color: #2e7d32; }
.ccare-status-cancelled  { background: rgba(239,68,68,.12); color: #b91c1c; }
.ccare-status-active     { background: rgba(76,175,80,.12); color: #2e7d32; }

/* Empty state */
.ccare-empty {
  text-align: center; color: #aaa; font-size: 14px;
  padding: 32px 16px;
}

/* -- Community Care Modals -- */
.ccare-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.ccare-modal-overlay.ccare-modal-open { opacity: 1; pointer-events: auto; }

.ccare-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.ccare-modal-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  width: min(480px, 96vw); max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: scale(.94); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.ccare-modal-overlay.ccare-modal-open .ccare-modal-box { transform: scale(1); }

.ccare-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.ccare-modal-header h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; color: #1a1a2e; }
.ccare-modal-green svg { stroke: #4CAF50; }
.ccare-modal-pink  svg { stroke: #FC46AA; }
.ccare-modal-blue  svg { stroke: #2196F3; }
.ccare-modal-green { border-top: 4px solid #4CAF50; border-radius: 18px 18px 0 0; }
.ccare-modal-pink  { border-top: 4px solid #FC46AA; border-radius: 18px 18px 0 0; }
.ccare-modal-blue  { border-top: 4px solid #2196F3; border-radius: 18px 18px 0 0; }

.ccare-modal-close {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: #f0f0f0; color: #555; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ccare-modal-close:hover { background: #e0e0e0; }

.ccare-modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ccare-modal-note {
  font-size: 13px; color: #777; background: #f8f9fa;
  border-radius: 8px; padding: 10px 14px; line-height: 1.45;
}
.ccare-label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: -6px; }
.ccare-label-hint { font-weight: 400; color: #aaa; }
.ccare-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 14px; color: #1a1a2e; background: #fff;
  outline: none; transition: border-color .15s;
  font-family: inherit;
}
.ccare-input:focus { border-color: #FC46AA; }
.ccare-textarea { resize: vertical; min-height: 80px; }
.ccare-row { display: flex; gap: 12px; }
.ccare-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ccare-err {
  font-size: 13px; color: #e53935; background: rgba(229,57,53,.07);
  padding: 9px 14px; border-radius: 8px;
}

/* Stepper */
.ccare-stepper {
  display: flex; align-items: center; gap: 14px; width: fit-content;
}
.ccare-stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #e0e0e0;
  background: #fff; color: #333; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.ccare-stepper button:hover { border-color: #FC46AA; background: rgba(252,70,170,.05); }
.ccare-stepper span { font-size: 20px; font-weight: 700; color: #1a1a2e; min-width: 26px; text-align: center; }

/* Modal footer */
.ccare-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 22px; border-top: 1px solid #f0f0f0;
}

/* Button color variants */
.ccare-btn-green { background: #4CAF50; border-color: #4CAF50; }
.ccare-btn-green:hover { background: #388E3C; border-color: #388E3C; }
.ccare-btn-pink  { background: #FC46AA; border-color: #FC46AA; }
.ccare-btn-pink:hover  { background: #e0389a; border-color: #e0389a; }
.ccare-btn-blue  { background: #2196F3; border-color: #2196F3; }
.ccare-btn-blue:hover  { background: #1565c0; border-color: #1565c0; }

/* Sponsor modal */
.ccare-sponsor-lead {
  font-size: 14.5px; color: #555; line-height: 1.55; margin: 0;
}
.ccare-impact-cards {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ccare-impact-card {
  flex: 1; min-width: 100px;
  background: #f8f9fa; border: 1.5px solid #eee; border-radius: 12px;
  padding: 14px 12px; text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.ccare-impact-featured {
  border-color: #2196F3; background: rgba(33,150,243,.04);
  box-shadow: 0 2px 12px rgba(33,150,243,.12);
}
.ccare-impact-amt { font-size: 22px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.ccare-impact-desc { font-size: 12px; color: #666; line-height: 1.4; }
.ccare-sponsor-cta-text { font-size: 13.5px; color: #666; margin: 0; }
.ccare-sponsor-email-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; width: 100%;
}

/* Toast */
.ccare-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(24px);
  background: #1a1a2e; color: #fff; font-size: 14px; font-weight: 500;
  padding: 13px 24px; border-radius: 30px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 10000; white-space: nowrap;
}
.ccare-toast.ccare-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─────────────────────────────────────────────────────
   Community Care — Responsive
───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Sub-nav: full-width on mobile */
  .comm-subnav {
    width: 100%;
    box-sizing: border-box;
  }
  .comm-subnav-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  /* Hero */
  .ccare-hero { padding: 22px 18px; margin-bottom: 22px; }
  .ccare-hero-title { font-size: 21px; }
  .ccare-hero-desc { font-size: 14px; }

  /* Role cards: full-width, compact */
  .ccare-roles-grid { max-width: 100%; }
  .ccare-role-card { padding: 14px; }
  .ccare-role-icon { width: 44px; height: 44px; }
  .ccare-role-body h4 { font-size: 14.5px; }

  /* Offers grid: single column */
  .ccare-offers-grid {
    grid-template-columns: 1fr;
  }

  /* Activity items: stack vertically on tiny screens */
  .ccare-activity-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ccare-act-loc { width: 100%; }
  .ccare-act-status { align-self: flex-start; }

  /* Modals: slide up from bottom */
  .ccare-modal-overlay { align-items: flex-end; }
  .ccare-modal-box {
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  /* Form row: stack on mobile */
  .ccare-row { flex-direction: column; }

  /* Impact cards: wrap nicely */
  .ccare-impact-cards { flex-direction: column; }
  .ccare-impact-card { min-width: unset; }

  /* Toast: full-width on tiny screens */
  .ccare-toast {
    left: 12px; right: 12px;
    transform: translateY(24px);
    width: auto;
    text-align: center;
    white-space: normal;
    bottom: 16px;
  }
  .ccare-toast.ccare-toast-show { transform: translateY(0); }
}
