@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2dd4a0;
  --primary-dim: rgba(45, 212, 160, 0.15);
  --accent: #facc15;
  --bg: #0f172a;
  --bg-2: #0a0f1a;
  --sidebar: #0b1224;
  --card: rgba(30, 41, 59, 0.6);
  --card-solid: #1e293b;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --border: rgba(45, 212, 160, 0.25);
  --border-soft: rgba(255, 255, 255, 0.06);
  --success: #2dd4a0;
  --danger: #f87171;
  --warn: #fb923c;
  --info: #60a5fa;
  --radius: 14px;
  --sidebar-w: 250px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(ellipse at top, #1e293b 0%, var(--bg) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
}

button { font-family: inherit; }

/* ───── LOGIN ───── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

.login-back {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--card-solid);
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.login-back:hover { background: var(--primary-dim); transform: translateX(-3px); }

.login-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: floatUp 0.5s ease;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-icon { font-size: 3.5rem; margin-bottom: 0.5rem; }

.login-brand h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand p { color: var(--text-dim); margin: 0.2rem 0 2rem; }

.login-prompt { color: var(--text); font-weight: 500; margin-bottom: 1.5rem; }

.demo-tag {
  background: var(--accent);
  color: #0f172a;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 0.4rem;
  letter-spacing: 0.5px;
}

.role-grid { display: grid; gap: 0.8rem; margin-bottom: 1.5rem; }

.role-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s;
}

.role-card:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  transform: translateX(4px);
}

.role-emoji {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  background: var(--primary-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.1rem; }
.role-desc { color: var(--text-dim); font-size: 0.85rem; }

.login-foot { color: var(--text-faint); font-size: 0.85rem; margin: 0; }
.login-foot a { color: var(--primary); text-decoration: none; }

/* ───── APP ───── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ───── SIDEBAR ───── */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sb-top { padding: 0 1.4rem 1.2rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 0.5rem; }

.sb-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark { font-size: 1.6rem; }

.brand-text span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sb-nav { padding: 0.5rem 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }

.sb-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}

.sb-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.sb-link.active { background: var(--primary-dim); color: var(--primary); }

.sb-icon { font-size: 1.15rem; flex-shrink: 0; }

.sb-count {
  background: var(--accent);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: auto;
}

.sb-bottom { padding: 1rem 1.2rem 0; border-top: 1px solid var(--border-soft); margin-top: 1rem; }

.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 0.8rem;
  transition: all 0.2s;
}

.back-link:hover { background: var(--primary-dim); transform: translateX(-3px); }

.sb-user { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; }
.sb-avatar { width: 36px; height: 36px; background: var(--primary-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.sb-userinfo { flex: 1; min-width: 0; }
.sb-username { font-weight: 600; color: var(--text); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-userrole { font-size: 0.76rem; color: var(--text-dim); text-transform: capitalize; }

.sb-logout {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sb-logout:hover { color: var(--danger); border-color: var(--danger); }

/* ───── MAIN ───── */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.mobile-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.page-title { margin: 0; font-size: 1.3rem; flex: 1; }

/* ───── PAGE ───── */
.page { padding: 2rem; animation: fadeIn 0.3s ease; }
.page[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-title { margin: 0 0 0.2rem; font-size: 1.5rem; }
.section-sub { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ───── BUTTONS ───── */
.btn-primary, .btn-ghost {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #22b387);
  color: #0f172a;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 6px 20px rgba(45, 212, 160, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(45, 212, 160, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 0.55rem 1.1rem;
}

.btn-ghost:hover { background: var(--primary-dim); }

/* ───── HERO SEARCH ───── */
.hero-search {
  background: linear-gradient(135deg, rgba(45, 212, 160, 0.1), rgba(250, 204, 21, 0.05));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-search h2 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.hero-search p { color: var(--text-dim); margin: 0 0 1.5rem; }

.hero-search input {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text);
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.hero-search input:focus { outline: none; border-color: var(--primary); }

/* ───── CATEGORY CHIPS ───── */
.categories-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.cat-chip {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-chip:hover { border-color: var(--primary); }
.cat-chip.active { background: var(--primary); color: #0f172a; border-color: var(--primary); }

/* ───── BUSINESS GRID ───── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.biz-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.biz-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.biz-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.biz-cover-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1), transparent 60%); }

.biz-fav-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.biz-fav-btn:hover { transform: scale(1.1); }
.biz-fav-btn.active { background: var(--danger); border-color: var(--danger); }

.biz-cat-tag {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.biz-body { padding: 1.2rem; }

.biz-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }

.biz-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.biz-rating .stars { color: var(--accent); }
.biz-rating .num { color: var(--text-dim); }

.biz-location {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.biz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-soft);
}

.biz-meta .price { color: var(--primary); font-weight: 700; }

/* ───── BUSINESS DETAIL ───── */
.biz-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.biz-hero-head {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 700px) { .biz-hero-head { grid-template-columns: 1fr; text-align: center; } }

.biz-hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.biz-hero-meta h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.biz-hero-desc { color: var(--text-dim); margin: 0 0 0.5rem; }

.biz-hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.biz-hero-stat { color: var(--text-dim); }
.biz-hero-stat strong { color: var(--text); margin-right: 0.3rem; }

.biz-hero-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.biz-info-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}

.biz-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
}

.biz-info-item strong { color: var(--text); }

/* Services list (in business detail) */
.bd-services h3 { margin: 0 0 1rem; font-size: 1.2rem; }

.bd-service-list { display: flex; flex-direction: column; gap: 0.7rem; }

.bd-service {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.bd-service:hover { border-color: var(--border); }

.bd-service-emoji {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bd-service-info { flex: 1; min-width: 0; }
.bd-service-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.1rem; }
.bd-service-desc { color: var(--text-dim); font-size: 0.82rem; }
.bd-service-duration { display: inline-block; color: var(--text-faint); font-size: 0.78rem; margin-top: 0.3rem; }

.bd-service-price { color: var(--primary); font-weight: 700; font-size: 1.15rem; }

/* ───── BOOKING FLOW ───── */
.bf-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.bf-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.3s;
}

.bf-step.active { background: var(--primary); color: #0f172a; border-color: var(--primary); }
.bf-step.done { background: var(--primary-dim); color: var(--primary); border-color: var(--border); }

.bf-step-line {
  width: 40px;
  height: 2px;
  background: var(--border-soft);
  align-self: center;
}

.bf-step-line.done { background: var(--primary); }

.bf-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 1.2rem; }

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

/* Date picker (calendar grid in booking) */
.bf-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.bf-date-btn {
  background: var(--card-solid);
  border: 1.5px solid var(--border-soft);
  color: var(--text);
  padding: 0.7rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.2s;
}

.bf-date-btn:hover { border-color: var(--primary); }
.bf-date-btn.selected { background: var(--primary); color: #0f172a; border-color: var(--primary); }
.bf-date-btn.disabled { opacity: 0.35; cursor: not-allowed; }

.bf-date-day { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 1px; }
.bf-date-btn.selected .bf-date-day { color: rgba(15, 23, 42, 0.7); }
.bf-date-num { font-weight: 700; font-size: 1.1rem; }

/* Time slots */
.bf-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.bf-time {
  background: var(--card-solid);
  border: 1.5px solid var(--border-soft);
  color: var(--text);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.bf-time:hover { border-color: var(--primary); }
.bf-time.selected { background: var(--primary); color: #0f172a; border-color: var(--primary); }
.bf-time.disabled { opacity: 0.4; cursor: not-allowed; background: rgba(0, 0, 0, 0.2); }

/* Booking summary */
.bf-summary {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.bf-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.92rem;
}

.bf-summary-row .lbl { color: var(--text-dim); }
.bf-summary-row .val { font-weight: 600; }
.bf-summary-row.total {
  border-top: 1px solid var(--border-soft);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-size: 1.05rem;
}

.bf-summary-row.total .val { color: var(--primary); font-weight: 800; }

/* Payment method selector */
.bf-pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.5rem; }
.bf-pay-opt input { display: none; }
.bf-pay-card {
  display: block;
  background: var(--card-solid);
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.bf-pay-opt input:checked + .bf-pay-card { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); }

.bf-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
}

/* Booking success */
.bf-success { text-align: center; padding: 1rem; }
.bf-success-emoji { font-size: 4rem; margin-bottom: 0.5rem; animation: bounce 0.6s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.bf-success h2 { color: var(--primary); margin: 0 0 0.5rem; }
.bf-success p { color: var(--text-dim); margin: 0 0 1.5rem; }

.bf-success-card {
  background: rgba(45, 212, 160, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.bf-success-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}

.bf-success-row .lbl { color: var(--text-dim); }
.bf-success-row .val { font-weight: 600; }

/* ───── MY BOOKINGS ───── */
.tabs-row {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tab.active { background: var(--primary); color: #0f172a; }

.bookings-list { display: flex; flex-direction: column; gap: 0.8rem; }

.booking-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  backdrop-filter: blur(10px);
}

.booking-date-box {
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  text-align: center;
  min-width: 80px;
}

.bd-month { font-size: 0.72rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.bd-day { font-size: 1.6rem; color: var(--text); font-weight: 800; line-height: 1; margin: 0.1rem 0; }
.bd-time { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }

.bk-info { min-width: 0; }
.bk-biz { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.2rem; }
.bk-service { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 0.4rem; }
.bk-status-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.bk-status {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bk-status.confirmed { background: var(--primary-dim); color: var(--primary); }
.bk-status.completed { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.bk-status.cancelled { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.bk-status.no_show { background: rgba(251, 146, 60, 0.15); color: var(--warn); }

.bk-price { color: var(--primary); font-weight: 700; font-size: 0.88rem; }

.bk-actions { display: flex; flex-direction: column; gap: 0.4rem; }

.bk-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}

.bk-action:hover { background: var(--primary-dim); color: var(--primary); border-color: var(--border); }
.bk-action.danger:hover { background: rgba(248,113,113,0.1); color: var(--danger); border-color: rgba(248,113,113,0.3); }

/* ───── BUSINESS DASHBOARD ───── */
.biz-welcome {
  background: linear-gradient(135deg, rgba(45, 212, 160, 0.1), rgba(250, 204, 21, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.bw-text { flex: 1; min-width: 200px; }
.bw-text h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.bw-text p { margin: 0; color: var(--text-dim); }

.bw-stats { display: flex; gap: 1rem; }

.bw-stat {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.bw-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.bw-lbl { color: var(--text-dim); font-size: 0.75rem; margin-top: 0.3rem; }

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

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.kpi-card:hover { transform: translateY(-2px); border-color: var(--border); }

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.2rem; }
.kpi-label { color: var(--text-dim); font-size: 0.82rem; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel h3 { margin: 0; font-size: 1.05rem; }

.schedule-list { display: flex; flex-direction: column; gap: 0.6rem; }

.sched-row {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sched-time {
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  min-width: 80px;
  text-align: center;
}

.sched-info { flex: 1; min-width: 0; }
.sched-name { font-weight: 600; font-size: 0.92rem; }
.sched-detail { color: var(--text-dim); font-size: 0.78rem; }

/* Peak hours bars */
.peak-hours { display: flex; flex-direction: column; gap: 0.4rem; }

.peak-row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.85rem;
}

.peak-time { color: var(--text-dim); font-family: monospace; }
.peak-bar { height: 8px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.peak-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.peak-count { font-weight: 700; text-align: right; font-family: monospace; }

/* ───── FILTERS ROW ───── */
.filters-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.filters-row select,
.filters-row input {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
}

.filters-row select:focus, .filters-row input:focus { outline: none; border-color: var(--primary); }

/* ───── DATA TABLE ───── */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  backdrop-filter: blur(10px);
}

.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }

.data-table thead { background: rgba(0, 0, 0, 0.3); }
.data-table th { text-align: left; padding: 0.85rem 1rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 600; }
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(45, 212, 160, 0.03); }

.row-actions { display: flex; gap: 0.3rem; }

.row-btn {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.row-btn:hover { background: var(--primary-dim); color: var(--primary); }
.row-btn.danger:hover { background: rgba(248,113,113,0.1); color: var(--danger); }

/* ───── CALENDAR ───── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cal-nav h3 { margin: 0; font-size: 1.2rem; min-width: 200px; text-align: center; }

.cal-nav-btn {
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.cal-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.cal-weekdays div {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.cal-day {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.6rem;
  min-height: 100px;
  backdrop-filter: blur(10px);
}

.cal-day.other-month { opacity: 0.35; }
.cal-day.today { border-color: var(--primary); background: var(--primary-dim); }

.cal-num { font-weight: 600; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.cal-day.today .cal-num { color: var(--primary); }

.cal-booking {
  background: rgba(45, 212, 160, 0.15);
  border-left: 2px solid var(--primary);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cal-booking:hover { background: var(--primary-dim); }

.cal-more { color: var(--text-faint); font-size: 0.7rem; margin-top: 0.2rem; }

/* ───── SERVICES (business) ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.service-card:hover { border-color: var(--border); }

.service-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }

.service-emoji {
  width: 44px;
  height: 44px;
  background: var(--primary-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-name { font-weight: 700; font-size: 1rem; }
.service-duration { color: var(--text-dim); font-size: 0.78rem; }
.service-desc { color: var(--text-dim); font-size: 0.85rem; margin: 0.4rem 0; }
.service-price { color: var(--primary); font-weight: 800; font-size: 1.3rem; margin-top: 0.5rem; }

.service-actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; }

/* ───── REPORTS / ANALYTICS ───── */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1000px) { .reports-grid { grid-template-columns: 1fr; } }

.chart-wrap { position: relative; height: 280px; margin-top: 0.5rem; }

/* ───── INTEGRATIONS ───── */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.integ-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.3rem;
  backdrop-filter: blur(10px);
}

.integ-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }

.integ-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.integ-name { font-weight: 700; font-size: 1rem; }
.integ-desc { color: var(--text-dim); font-size: 0.82rem; }

.integ-btn { width: 100%; justify-content: center; }
.integ-btn.connected { background: var(--primary-dim); color: var(--primary); box-shadow: none; border: 1px solid var(--border); }

/* ───── EMPTY STATE ───── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

.empty-emoji { font-size: 3rem; margin-bottom: 0.8rem; opacity: 0.6; }

/* ───── MODAL ───── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal[hidden] { display: none; }

.modal-content {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-content.modal-lg { max-width: 640px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-content h2 { margin: 0 0 1.2rem; color: var(--primary); }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s;
  z-index: 1;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }

.form-row { margin-bottom: 1.1rem; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.form-row label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1.3rem;
}

/* ───── TOAST ───── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-solid);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: toastIn 0.3s ease;
  font-weight: 500;
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -280px;
    width: 260px;
    z-index: 200;
    transition: left 0.3s;
  }
  .sidebar.mobile-open { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.4); }
  .mobile-menu { display: block; }
}

@media (max-width: 600px) {
  .page { padding: 1.2rem; }
  .topbar { padding: 0.8rem 1.2rem; }
  .form-row.split { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr; }
  .bf-date-grid { grid-template-columns: repeat(4, 1fr); }
  .cal-day { min-height: 60px; padding: 0.3rem; }
  .toast { left: 1rem; right: 1rem; }
}
