/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #FF5FAD;
  --primary-light:#FF89C8;
  --gradient:     linear-gradient(135deg, #FF5FAD, #FF89C8);
  --bg:           #FFF0F7;
  --card-bg:      #FFFFFF;
  --border:       #FFD6ED;
  --lavender:     #8B6BE0;
  --lavender-bg:  #EDE9FF;
  --mint:         #2BA882;
  --mint-bg:      #E4F7F0;
  --text:         #2D1430;
  --text-muted:   #9B5A7A;
  --shadow:       0 8px 24px rgba(255,107,157,.2);
  --shadow-hover: 0 12px 32px rgba(255,107,157,.28);
  --radius:       20px;
  --radius-sm:    12px;
  --font:         'Nunito', system-ui, sans-serif;
}

html { scroll-behavior: smooth; background: #E9E4E8; }

/* K-NAIL is mobile-only, by design -- one layout, sized for a Samsung
   Galaxy S25 FE-class screen (~402px CSS width). On a wider window
   (desktop browser, tablet) this just centers as a fixed-width column
   instead of stretching into a desktop layout -- there is no desktop
   layout to stretch into, intentionally. */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 402px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.12);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

main { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(255,107,157,.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}
.logo sup { font-size: 0.75em; color: var(--lavender); }
.logo:hover { color: var(--primary); opacity: 0.85; }

.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.nav-link:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--primary);
}
.nav-link--muted {
  border-color: transparent;
  font-size: 0.78rem;
  padding: 6px 10px;
  opacity: 0.7;
}
.nav-link--muted:hover { opacity: 1; }

/* ── Flash Messages ──────────────────────────────────────────────────────── */
.flashes {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  padding: 0 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.alert-success  { background: #F0FDF4; color: #166534; border: 1.5px solid #BBF7D0; }
.alert-danger   { background: #FFF1F2; color: #9F1239; border: 1.5px solid #FECDD3; }
.alert-warning  { background: #FFFBEB; color: #92400E; border: 1.5px solid #FDE68A; }
.alert-info     { background: var(--lavender-bg); color: var(--lavender); border: 1.5px solid #D4C8F8; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px 20px 80px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 2px solid var(--border);
  margin-top: auto;
}

/* ── Mobile bottom nav ──────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  z-index: 200;
  background: var(--card-bg);
  border-top: 2px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(255,107,157,.15);
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.mobile-nav-item .nav-icon { font-size: 1.4rem; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--primary); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,95,173,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,95,173,.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-block.btn-lg { padding: 13px 24px; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.btn-danger:hover { background: #FCA5A5; color: #fff; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,95,173,.12);
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

.password-field-wrap { position: relative; }
.password-field-wrap .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  color: var(--text-muted);
}
.password-toggle:hover { color: var(--primary); }

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.form-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }

textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Tabs (login/register) ──────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  text-decoration: none;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-tab:hover { color: var(--primary); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 0 20px 48px;
  background: linear-gradient(180deg, #FFD6ED 0%, #FFF0F7 100%);
}
.hero-emoji { font-size: 3.5rem; margin-bottom: 12px; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  max-width: 440px;
  margin: 0 auto 24px;
}
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--lavender-bg);
  color: var(--lavender);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid #D4C8F8;
}

/* ── Service Grid ────────────────────────────────────────────────────────── */
.services-section { padding: 0 0 80px; }
.services-section h2 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card-top {
  background: linear-gradient(135deg, #FFD6ED 0%, #EDE9FF 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.service-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}
.service-combo-list {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.service-combo-list li { padding-left: 18px; position: relative; }
.service-combo-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 800;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.service-duration {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-bg);
  padding: 4px 12px;
  border-radius: 50px;
}
.service-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Booking Page ────────────────────────────────────────────────────────── */
.booking-page { padding: 28px 0 80px; }

.booking-service-header {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.booking-service-icon { font-size: 2.2rem; }
.booking-service-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.booking-service-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.step-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-badge {
  width: 30px; height: 30px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.cal-wrap { max-width: 380px; }

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-transform: capitalize;
}
.cal-nav {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cal-nav:hover { background: var(--border); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: default;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.cal-day.available {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.cal-day.available:hover { background: var(--bg); color: var(--primary); }
.cal-day.selected {
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 800;
}
.cal-day.today.available {
  color: var(--primary);
  font-weight: 800;
}
.cal-day.today.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
}
.cal-day.disabled { color: #CCC; }
.cal-day.empty { visibility: hidden; }

/* ── Slots ───────────────────────────────────────────────────────────────── */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.slot-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.slot-btn:hover {
  border-color: var(--primary);
  background: var(--bg);
  color: var(--primary);
}
.slot-btn.selected {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,95,173,.3);
}
.no-slots {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 0;
}
.slots-loading {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Booking Summary ─────────────────────────────────────────────────────── */
.summary-box {
  background: linear-gradient(135deg, var(--bg), var(--lavender-bg));
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.summary-row span:first-child { width: 20px; text-align: center; }

/* ── Success Page ────────────────────────────────────────────────────────── */
.success-page {
  padding: 60px 20px 80px;
  text-align: center;
}
.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  text-align: left;
}
.success-detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-label { color: var(--text-muted); width: 120px; flex-shrink: 0; font-weight: 700; }
.success-detail-value { font-weight: 700; color: var(--text); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-success   { background: #D1FAE5; color: #065F46; }
.badge-danger    { background: #FEE2E2; color: #991B1B; }
.badge-secondary { background: #F3F4F6; color: #6B7280; }
.badge-info      { background: var(--lavender-bg); color: var(--lavender); }
.badge-primary   { background: var(--bg); color: var(--primary); }

/* ── Notice Banner ───────────────────────────────────────────────────────── */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.notice-warning { background: #FFFBEB; border: 2px solid #FDE68A; color: #92400E; }
.notice-info    { background: var(--lavender-bg); border: 2px solid #D4C8F8; color: var(--lavender); }

/* ── Admin Layout ────────────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #FFF5FA;
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  /* Always an off-canvas drawer -- K-NAIL is mobile-only, no persistent
     desktop sidebar layout, ever. */
  position: fixed;
  left: -260px;
  z-index: 200;
  transition: left 0.25s ease;
  box-shadow: var(--shadow-hover);
}
.admin-sidebar.open { left: 0; }
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,20,48,0.35);
  z-index: 199;
}
.admin-overlay.open { display: block; }
.admin-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 2px solid var(--border);
}
.admin-sidebar-logo .logo { font-size: 1.2rem; }
.admin-sidebar-user {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: var(--bg);
  color: var(--primary);
}
.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(255,95,173,.12) 0%, transparent 100%);
  color: var(--primary);
  border-left-color: var(--primary);
}
.admin-nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }

.admin-nav-section {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 20px 4px;
  margin-top: 8px;
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--border);
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}

.admin-topbar {
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.admin-content { padding: 16px; }

/* Sidebar toggle -- always visible, sidebar is always an off-canvas drawer */
.sidebar-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ── Admin Stats Cards ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}
.stat-icon { font-size: 1.8rem; float: right; }

/* ── Admin Table ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  font-weight: 600;
}
tr:hover td { background: var(--bg); }

/* ── Schedule Table ──────────────────────────────────────────────────────── */
.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.schedule-day-label {
  background: var(--bg);
  padding: 14px 16px;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  border-right: 2px solid var(--border);
}
.schedule-day-body {
  background: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Admin Filter Bar ────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar .form-control { width: auto; }

/* ── Service Admin Card ──────────────────────────────────────────────────── */
.service-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-admin-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-admin-card.inactive { opacity: 0.6; }
.service-admin-top {
  background: linear-gradient(135deg, #FFD6ED 0%, #EDE9FF 100%);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.service-admin-body { padding: 16px; }
.service-admin-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.service-admin-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.service-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Page Header ─────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* ── Section Block ───────────────────────────────────────────────────────── */
.section-block {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-block-header {
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.section-block-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.section-block-body { padding: 18px; }

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-weight: 800; margin-bottom: 8px; color: var(--text); }

/* ── Upcoming List ───────────────────────────────────────────────────────── */
.upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.upcoming-time {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  min-width: 42px;
}
.upcoming-info { flex: 1; min-width: 0; }
.upcoming-name { font-weight: 800; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-service { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.upcoming-date { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ── Google Cal Banner ───────────────────────────────────────────────────── */
.gcal-setup {
  background: linear-gradient(135deg, #EEF2FF, var(--mint-bg));
  border: 2px solid #C7D2FE;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.gcal-setup h4 { color: #3730A3; margin-bottom: 8px; font-weight: 800; }
.gcal-setup p  { color: #4338CA; font-size: 0.875rem; font-weight: 600; }
.gcal-setup code {
  background: rgba(0,0,0,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ── Mobile-only layout tuning ────────────────────────────────────────────
   K-NAIL has exactly one layout, sized for a phone. These used to be
   @media rules gated on viewport width, but body is now hard-capped to
   402px regardless of window size -- a real @media query keys off the
   VIEWPORT, not body's width, so on a wide desktop window it would never
   fire even though the visible column is phone-width. Unconditional now. */
.mobile-nav { display: block; }
.site-footer { padding-bottom: 90px; }
.stats-grid { grid-template-columns: 1fr; }
.services-grid { grid-template-columns: 1fr; gap: 16px; }
.booking-service-header { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
.booking-service-name { font-size: 1.1rem; }
.step-card { padding: 18px 14px; }
.step-title { font-size: 1.05rem; }
.cal-wrap { max-width: 100%; }
.hero { padding: 0 16px 28px; }
.success-page { padding: 40px 16px 80px; }
.services-section { padding: 0 0 56px; }
.services-section h2 { font-size: 1.4rem; margin-bottom: 20px; }
.service-card-top { height: 150px; }
.service-body { padding: 16px; }
.service-name { font-size: 1rem; }
.success-card { padding: 16px; }
.admin-content { padding: 14px; }
.section-block-body { padding: 14px; }
.section-block-header { padding: 12px 14px; }
.stat-card { padding: 16px 18px; }
.stat-value { font-size: 1.6rem; }

/* ── App-style Home Page ─────────────────────────────────────────────────── */
.app-page {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}
.app-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,214,237,.88) 0%, rgba(255,240,247,.94) 40%, var(--bg) 100%);
  pointer-events: none;
}
.app-page-inner {
  position: relative;
  z-index: 1;
  padding: 20px 16px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.profile-card {
  text-align: center;
  padding: 24px 16px;
}
.profile-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.profile-specialty { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.profile-badge {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}
.profile-contact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 380px;
  margin: 4px auto 0;
  line-height: 1.5;
}

.portfolio-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scrollbar-width: none;
}
.portfolio-strip::-webkit-scrollbar { display: none; }
.portfolio-thumb {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.category-block {
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}
.category-name { font-weight: 800; font-size: 1.05rem; color: var(--text); flex: 1; }
.category-count {
  background: var(--lavender-bg);
  color: var(--lavender);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 50px;
}
.category-chevron { color: var(--text-muted); font-size: 1rem; transition: transform 0.2s; }
.category-block.collapsed .category-chevron { transform: rotate(-90deg); }
.category-block.collapsed .category-body { display: none; }

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.service-row-main { flex: 1; min-width: 160px; }
.service-row-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.service-row-sub { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.service-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.service-row-price { font-weight: 800; color: var(--primary); font-size: 0.88rem; white-space: nowrap; }
.service-row-duration { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.service-row-btn {
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.service-row-btn:hover { color: #fff; opacity: 0.9; }

.service-row { padding: 12px 14px; }
.service-row-meta { width: 100%; justify-content: space-between; }
