/* ============================================================================
 * Razur — Customer & Admin Styles  (dark-luxe theme)
 * ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --border: #262626;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --accent: #d4a574;
  --accent-hover: #e6b888;
  --accent-dim: rgba(212, 165, 116, 0.12);
  --error: #ef4444;
  --success: #84cc16;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1080px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(28px, 5vw, 40px); margin-bottom: var(--space-xl); position: relative; }
.section-title::before {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--accent); margin-bottom: var(--space-md);
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-xl); flex-wrap: wrap; gap: var(--space-md);
}
.section-header .section-title { margin-bottom: 0; }
section { padding: var(--space-3xl) 0; border-top: 1px solid var(--border); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: all 0.15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-text { background: transparent; color: var(--accent); padding: 8px 0; border: none; }
.btn-text:hover { color: var(--accent-hover); }
.btn-link { background: transparent; color: var(--accent); border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.btn-link:hover { color: var(--accent-hover); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Site header (customer page) ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-3xl) 0; border-top: none;
  background: radial-gradient(ellipse at top, rgba(212, 165, 116, 0.08) 0%, transparent 60%), var(--bg);
}
.hero-content { max-width: 720px; }
.hero-tagline { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-lg); font-weight: 500; }
.hero-title { font-size: clamp(48px, 9vw, 96px); margin-bottom: var(--space-md); line-height: 1; }
.hero-subtitle { font-size: clamp(18px, 2.5vw, 22px); color: var(--text-muted); margin-bottom: var(--space-xl); }
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ── About ──────────────────────────────────────────────────────────────── */
.about-text { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--text-muted); max-width: 680px; }

/* ── Services ───────────────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-xl); cursor: pointer; transition: all 0.2s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212, 165, 116, 0.08); }
.service-card.selected { border-color: var(--accent); background: var(--surface-2); }
.service-name { font-family: var(--font-display); font-size: 24px; margin-bottom: var(--space-md); }
.service-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-md); gap: var(--space-sm); }
.service-price { color: var(--accent); font-weight: 700; font-size: 22px; font-family: var(--font-body); }
.service-duration { color: var(--text-muted); font-size: 14px; }
.service-description { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* ── Hours ──────────────────────────────────────────────────────────────── */
.hours-list { max-width: 480px; display: grid; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.hours-row { display: grid; grid-template-columns: 1fr 1fr; padding: var(--space-md) var(--space-lg); background: var(--surface); }
.hours-day { font-weight: 500; }
.hours-time { color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours-row.closed .hours-time { color: var(--text-muted); opacity: 0.6; }
.hours-row.today { background: var(--surface-2); border-left: 2px solid var(--accent); padding-left: calc(var(--space-lg) - 2px); }
.hours-row.today .hours-day::after { content: ' · today'; color: var(--accent); font-size: 12px; font-weight: 500; }

/* ── Gallery (customer) ─────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--surface); border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Reviews (customer) ─────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.review-rating { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: var(--space-md); }
.review-comment { font-size: 16px; line-height: 1.6; margin-bottom: var(--space-md); }
.review-author { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ── Booking widget ─────────────────────────────────────────────────────── */
.booking-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2xl); max-width: 720px; margin: 0 auto; }
.step-progress { display: flex; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.step-dot { flex: 1; height: 3px; background: var(--border); border-radius: 2px; transition: background 0.2s ease; }
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--accent); opacity: 0.5; }
.step-title { font-family: var(--font-display); font-size: 24px; margin-bottom: var(--space-lg); }
.summary-bar { display: flex; gap: var(--space-xl); padding: var(--space-md) var(--space-lg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.summary-item { display: flex; flex-direction: column; gap: 2px; }
.summary-label { color: var(--text-muted); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.summary-value { color: var(--text); font-weight: 500; font-size: 14px; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-xs); }
.date-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: all 0.15s ease; font-family: var(--font-body); font-size: 14px; color: var(--text); }
.date-cell:hover:not(:disabled) { border-color: var(--accent); }
.date-cell.selected { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.date-cell:disabled { opacity: 0.25; cursor: not-allowed; }
.date-cell .date-dow { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.date-cell.selected .date-dow { color: var(--bg); opacity: 0.7; }
.date-cell .date-num { font-size: 18px; font-weight: 600; margin-top: 2px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: var(--space-sm); }
.slot-chip { padding: 12px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; cursor: pointer; transition: all 0.15s ease; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.slot-chip:hover { border-color: var(--accent); }
.slot-chip.selected { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.field { display: block; margin-bottom: var(--space-md); }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: var(--space-xs); }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[readonly] { opacity: 0.6; cursor: not-allowed; }
.step-actions { display: flex; justify-content: space-between; margin-top: var(--space-xl); gap: var(--space-md); }
.step-actions > span { flex: 1; }
.success-state { text-align: center; padding: var(--space-xl) 0; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto var(--space-lg); }
.success-message { color: var(--text-muted); margin-bottom: var(--space-lg); font-size: 16px; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-info { display: grid; gap: var(--space-md); align-content: start; }
.contact-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: all 0.15s ease; }
.contact-item:hover { border-color: var(--accent); }
.contact-icon { font-size: 18px; flex-shrink: 0; }
.contact-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.contact-text { font-weight: 500; word-break: break-all; }
.contact-map { background: var(--surface); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: var(--space-xl) 0; border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--text-muted); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }

/* ── Loading ────────────────────────────────────────────────────────────── */
.loading-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 1000; }
.spinner { width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); }
.modal-content { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2xl); max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: var(--space-md); right: var(--space-md); background: transparent; border: 0; color: var(--text-muted); font-size: 28px; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-title { font-family: var(--font-display); font-size: 24px; margin-bottom: var(--space-lg); }
.modal-help { color: var(--text-muted); font-size: 13px; margin-top: var(--space-md); text-align: center; }
.rating-input { display: flex; gap: var(--space-xs); }
.rating-star { background: transparent; border: 0; cursor: pointer; font-size: 32px; color: var(--border); transition: color 0.15s ease, transform 0.15s ease; padding: 0; line-height: 1; }
.rating-star:hover { transform: scale(1.1); }
.rating-star.active { color: var(--accent); }
.empty-state { color: var(--text-muted); text-align: center; padding: var(--space-xl) 0; font-size: 15px; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: var(--space-xl); left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md) var(--space-lg); z-index: 300; font-size: 14px; max-width: 90vw; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); animation: toast-in 0.2s ease; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Customer-page responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  section { padding: var(--space-2xl) 0; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .contact-grid { grid-template-columns: 1fr; }
  .booking-widget { padding: var(--space-lg); }
  .summary-bar { gap: var(--space-md); }
  .date-grid { gap: 2px; }
  .date-cell { font-size: 13px; }
}


/* ╔═══════════════════════════════════════════════════════════════════════╗
   ║  ADMIN PAGE STYLES                                                     ║
   ╚═══════════════════════════════════════════════════════════════════════╝ */

.admin-body { background: var(--bg); }

/* ── Login ──────────────────────────────────────────────────────────────── */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2xl); max-width: 440px; width: 100%; }
.logo-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-sm); font-weight: 500; }
.login-title { font-size: 30px; margin-bottom: var(--space-sm); font-family: var(--font-display); line-height: 1.15; }
.login-sub { color: var(--text-muted); margin-bottom: var(--space-xl); font-size: 15px; line-height: 1.5; }
.login-success { text-align: center; }
.login-success .success-icon { margin-top: 0; }
.login-success .login-title { margin-top: var(--space-md); }
.login-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; padding: var(--space-md); border-radius: var(--radius); margin-bottom: var(--space-md); font-size: 14px; line-height: 1.4; }

/* ── Admin header & tabs ────────────────────────────────────────────────── */
.admin-header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(23, 23, 23, 0.92);
}
.admin-header-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.admin-header-inner .logo-label { margin-bottom: 2px; }
.admin-shop-name { font-size: 22px; margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }

.admin-tabs {
  background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 73px; z-index: 99;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.admin-tabs-inner { display: flex; gap: var(--space-xs); }
.admin-tab {
  background: transparent; border: 0; color: var(--text-muted);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: var(--space-md) var(--space-lg); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s ease;
  white-space: nowrap;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-main { padding: var(--space-xl) 0 var(--space-3xl); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); flex-wrap: wrap; gap: var(--space-md); }
.panel-title { font-size: 32px; font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.panel-title-bold { font-weight: 700; }
.panel-title em { color: var(--accent); font-style: italic; font-weight: 600; }
.panel-sub { color: var(--text-muted); font-size: 14px; max-width: 640px; }
.subsection-title { font-family: var(--font-display); font-size: 22px; margin-bottom: var(--space-md); letter-spacing: -0.02em; }

/* ── Filter chips ───────────────────────────────────────────────────────── */
.filter-chips { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 18px; border-radius: 999px; font-family: var(--font-body); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ── Bookings cards ─────────────────────────────────────────────────────── */
.booking-group { margin-bottom: var(--space-xl); }
.booking-group-header { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-md); font-weight: 500; }
.booking-card-admin {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-lg); margin-bottom: var(--space-sm);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg); align-items: center;
  transition: border-color 0.15s ease; cursor: pointer;
}
.booking-card-admin:hover { border-color: rgba(212, 165, 116, 0.3); }
.booking-time { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 70px; text-align: center; }
.booking-details { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.booking-customer { font-weight: 600; font-size: 16px; color: var(--text); }
.booking-service { color: var(--text-muted); font-size: 14px; }
.booking-phone { color: var(--accent); font-size: 14px; text-decoration: none; margin-top: 2px; font-variant-numeric: tabular-nums; }
.booking-phone:hover { text-decoration: underline; }
.booking-notes { color: var(--text-muted); font-size: 13px; font-style: italic; margin-top: var(--space-xs); line-height: 1.4; }
.booking-actions { display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.status-badge.pending    { background: rgba(212, 165, 116, 0.15); color: var(--accent); }
.status-badge.confirmed  { background: rgba(132, 204, 22, 0.15); color: var(--success); }
.status-badge.cancelled  { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.status-badge.completed  { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.status-badge.no_show    { background: rgba(239, 68, 68, 0.1); color: var(--text-muted); }
.status-badge.approved   { background: rgba(132, 204, 22, 0.15); color: var(--success); }
.status-badge.hidden     { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.btn-action { padding: 6px 14px; font-size: 13px; font-weight: 500; }

/* ── Booking detail modal ───────────────────────────────────────────────── */
.detail-time { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.detail-date { color: var(--text-muted); font-size: 14px; margin-top: 4px; margin-bottom: var(--space-md); }
.detail-status-row { margin-bottom: var(--space-lg); }
.detail-row { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--border); font-size: 14px; }
.detail-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; min-width: 88px; flex-shrink: 0; padding-top: 2px; }
.detail-value { color: var(--text); flex: 1; word-break: break-word; }
.detail-actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); }

/* ── Calendar ───────────────────────────────────────────────────────────── */
.calendar-controls {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--space-md);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-md); margin-bottom: var(--space-lg);
}
.calendar-nav { display: flex; gap: var(--space-xs); }
.calendar-nav .btn { min-width: 44px; padding: 6px 14px; }
.calendar-date-display { text-align: center; }
.calendar-date-short { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.calendar-date-long { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.calendar-date-picker {
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; font-family: var(--font-body); font-size: 14px;
  color-scheme: dark;
}
.calendar-date-picker:focus { outline: none; border-color: var(--accent); }

.cal-closed-banner { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; padding: var(--space-md); border-radius: var(--radius); margin-bottom: var(--space-md); text-align: center; font-size: 14px; }

.cal-day-grid {
  display: grid; grid-template-columns: 70px 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cal-hours-col { background: var(--surface-2); border-right: 1px solid var(--border); }
.cal-hour-cell {
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px; font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums; line-height: 1.2; text-align: center;
}
.cal-slots-col { position: relative; }
.cal-hour-row { border-bottom: 1px solid var(--border); }
.cal-block {
  position: absolute; left: 8px; right: 8px;
  background: var(--accent-dim); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 6px 10px;
  cursor: pointer; text-align: left; color: var(--text);
  font-family: var(--font-body); font-size: 12px; line-height: 1.3;
  transition: all 0.15s ease; overflow: hidden;
  border-top: 0; border-right: 0; border-bottom: 0;
}
.cal-block:hover { background: rgba(212, 165, 116, 0.22); transform: translateX(2px); }
.cal-block.pending { background: rgba(212, 165, 116, 0.15); border-left-color: var(--accent); }
.cal-block.confirmed { background: rgba(132, 204, 22, 0.15); border-left-color: var(--success); }
.cal-block-time { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; font-size: 12px; }
.cal-block-customer { font-weight: 600; color: var(--text); margin-top: 1px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block-service { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Reviews admin ──────────────────────────────────────────────────────── */
.review-admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md); }
.review-admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-md); }
.review-admin-header .review-rating { margin-bottom: 4px; }
.review-admin-header .review-author { font-size: 13px; }
.review-admin-card .review-comment { font-size: 15px; }
.review-admin-actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-md); }

/* ── Blackouts ──────────────────────────────────────────────────────────── */
.blackout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-lg); margin-bottom: var(--space-sm); display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.blackout-card.past { opacity: 0.55; }
.blackout-dates { font-weight: 600; font-size: 15px; }
.blackout-past-tag { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 10px; padding: 2px 8px; border-radius: 999px; margin-left: var(--space-sm); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.blackout-reason { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

.checkbox-field { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); cursor: pointer; }
.checkbox-field input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.checkbox-field span { font-size: 14px; }

/* ── Settings form ──────────────────────────────────────────────────────── */
.settings-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-grid .field { margin-bottom: 0; }
.form-grid .field.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.span-2 { grid-column: span 1; }
}

/* ── Services editor ────────────────────────────────────────────────────── */
.service-editor-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md); }

/* ── Hours editor ───────────────────────────────────────────────────────── */
.hours-editor-row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-xs); flex-wrap: wrap; }
.hours-editor-day { font-weight: 600; min-width: 100px; }
.hours-input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-body); font-size: 14px; color-scheme: dark; font-variant-numeric: tabular-nums; }
.hours-input:disabled { opacity: 0.3; }
.hours-input:focus { outline: none; border-color: var(--accent); }
.hours-dash { color: var(--text-muted); }

/* ── Gallery admin ──────────────────────────────────────────────────────── */
.gallery-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-md); }
.gallery-admin-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-admin-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-admin-controls { display: flex; gap: var(--space-xs); padding: var(--space-sm); }
.gallery-admin-controls .btn { flex: 1; padding: 6px 8px; font-size: 12px; }

/* ── Push ───────────────────────────────────────────────────────────────── */
.push-status-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.push-status-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.push-status-title { font-size: 18px; margin-bottom: var(--space-xs); }
.push-status-sub { color: var(--text-muted); font-size: 14px; max-width: 480px; line-height: 1.5; }
.push-device-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-xs); }
.push-device-name { font-weight: 500; font-size: 14px; }
.push-device-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── Admin responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .admin-shop-name { font-size: 18px; }
  .panel-title { font-size: 26px; }

  .booking-card-admin { grid-template-columns: 1fr; gap: var(--space-md); }
  .booking-time { font-size: 22px; text-align: left; min-width: 0; }
  .booking-actions { justify-content: flex-start; }

  .calendar-controls { grid-template-columns: 1fr; gap: var(--space-sm); }
  .calendar-date-display { order: -1; }

  .cal-day-grid { grid-template-columns: 56px 1fr; }
  .cal-hour-cell { font-size: 11px; }
  .cal-block { font-size: 11px; padding: 4px 8px; }
  .cal-block-customer { font-size: 12px; }
  .cal-block-service { font-size: 10px; }

  .detail-time { font-size: 38px; }
  .detail-row { flex-direction: column; gap: 4px; padding: var(--space-sm) 0; }
  .detail-label { padding-top: 0; }

  .admin-tabs { top: 67px; }
}
