/* Bespin Booking — Fresha-inspired, BSP gold theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #e2b96f;
  --gold-dark: #c9a05a;
  --bg: #f7f7f5;
  --white: #ffffff;
  --dark: #1a1a1a;
  --grey: #6b7280;
  --light: #e5e7eb;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--dark); line-height: 1.5; }

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav-biz { font-weight: 600; color: var(--grey); }

/* ── Buttons ── */
.btn-primary { background: var(--gold); color: #1a1a1a; border: none; border-radius: 8px; padding: 12px 24px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.15s; display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-primary.full { width: 100%; }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: border-color 0.15s; display: inline-block; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-copy { background: var(--light); color: var(--dark); border: none; border-radius: 8px; padding: 10px 20px; font-size: 0.9rem; cursor: pointer; width: 100%; margin-top: 8px; }
.btn-cancel { background: transparent; color: #ef4444; border: 1px solid #ef4444; border-radius: 6px; padding: 4px 12px; font-size: 0.8rem; cursor: pointer; margin-top: 8px; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.hero { background: var(--dark); color: var(--white); padding: 80px 24px; text-align: center; }
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-sub { color: #aaa; font-size: 1.05rem; margin-bottom: 32px; }
.search-bar { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.search-bar input { flex: 1; padding: 14px 18px; border-radius: 8px; border: none; font-size: 1rem; outline: none; }
.search-bar button { background: var(--gold); color: var(--dark); border: none; border-radius: 8px; padding: 14px 24px; font-weight: 700; cursor: pointer; font-size: 1rem; }

/* ── Results ── */
.results-section { padding: 48px 0; }
.results-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.biz-card { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; box-shadow: var(--shadow); transition: transform 0.15s; cursor: pointer; }
.biz-card:hover { transform: translateY(-2px); }
.biz-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.biz-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.biz-cat { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.biz-desc { font-size: 0.85rem; color: var(--grey); }
.biz-addr { font-size: 0.8rem; color: var(--grey); margin-top: 4px; }
.no-results { color: var(--grey); }

/* ── Features ── */
.features { padding: 64px 0; background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.feature-card { text-align: center; padding: 24px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--grey); font-size: 0.9rem; }

/* ── CTA ── */
.cta-section { background: var(--gold); padding: 64px 24px; text-align: center; }
.cta-inner h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-inner p { margin-bottom: 24px; color: #5a4a2a; }

/* ── Footer ── */
.footer { background: var(--dark); color: #888; padding: 24px; text-align: center; font-size: 0.85rem; }
.footer a { color: var(--gold); }

/* ── Salon page ── */
.salon-page { padding: 40px 0; }
.salon-header { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 40px; }
.salon-avatar { width: 80px; height: 80px; border-radius: 16px; background: var(--gold); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; flex-shrink: 0; }
.salon-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.section-title { font-size: 1.2rem; margin-bottom: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); cursor: pointer; transition: border 0.15s; border: 2px solid transparent; }
.service-card:hover { border-color: var(--gold); }
.service-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.service-info p { font-size: 0.85rem; color: var(--grey); }
.service-price { text-align: right; font-size: 1.1rem; font-weight: 700; color: var(--gold-dark); }
.service-price span { font-size: 0.8rem; color: var(--grey); font-weight: 400; }

/* ── Book page ── */
.book-page { max-width: 560px; margin: 40px auto; padding: 0 24px; }
.book-steps { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; padding: 10px; font-size: 0.85rem; color: var(--grey); border-bottom: 3px solid var(--border); }
.step.active { color: var(--dark); font-weight: 700; border-color: var(--gold); }
.step.done { color: var(--gold-dark); border-color: var(--gold); }
.step-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.booking-summary { background: var(--bg); border-radius: 8px; padding: 16px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.booking-summary strong { font-size: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 16px 0 6px; color: var(--grey); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.95rem; outline: none; background: var(--white); transition: border-color 0.15s; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.date-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.date-btn { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); font-size: 0.8rem; cursor: pointer; transition: all 0.15s; }
.date-btn:hover { border-color: var(--gold); }
.date-btn.selected { background: var(--gold); border-color: var(--gold); font-weight: 700; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.time-btn { padding: 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); font-size: 0.85rem; cursor: pointer; transition: all 0.15s; }
.time-btn:hover:not(:disabled) { border-color: var(--gold); }
.time-btn.selected { background: var(--gold); border-color: var(--gold); font-weight: 700; }
.time-btn.taken { background: var(--bg); color: var(--light); cursor: not-allowed; }
.pay-amount { font-size: 2rem; font-weight: 800; color: var(--gold-dark); margin: 16px 0 4px; }
.pay-amount span { font-size: 1rem; color: var(--grey); font-weight: 400; }
.pay-label { font-size: 0.85rem; color: var(--grey); margin-bottom: 8px; }
.pay-address { background: var(--bg); border-radius: 8px; padding: 14px; font-family: monospace; font-size: 0.85rem; word-break: break-all; color: var(--dark); border: 1px solid var(--border); }
.pay-or { text-align: center; color: var(--grey); font-size: 0.8rem; margin: 16px 0; }
.pay-note { font-size: 0.78rem; color: var(--grey); margin-top: 12px; text-align: center; }
.confirmed { text-align: center; }
.confirmed-icon { font-size: 3rem; margin-bottom: 16px; }
.confirmed h2 { margin-bottom: 8px; }
.confirmed p { color: var(--grey); margin-bottom: 8px; }
.booking-ref { font-family: monospace; background: var(--bg); padding: 8px 16px; border-radius: 6px; display: inline-block; margin: 8px 0 16px; font-size: 0.9rem; }

/* ── Register ── */
.register-page { max-width: 520px; margin: 48px auto; padding: 0 24px; }
.register-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.register-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.register-sub { color: var(--grey); font-size: 0.9rem; margin-bottom: 24px; }
.help-link { color: var(--gold-dark); font-size: 0.8rem; font-weight: 400; }
.success-msg { text-align: center; }
.booking-url { display: block; background: var(--bg); border-radius: 8px; padding: 12px; font-size: 0.85rem; color: var(--gold-dark); word-break: break-all; margin: 12px 0 16px; border: 1px solid var(--border); }

/* ── Dashboard ── */
.dashboard { padding: 32px 0; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 1.6rem; }
.dash-actions { display: flex; gap: 10px; }
.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.dash-panel { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dash-panel h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; }
.booking-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.booking-item:last-child { border-bottom: none; }
.booking-dt { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 4px; }
.booking-client { font-size: 0.95rem; font-weight: 600; }
.booking-meta { font-size: 0.8rem; color: var(--grey); margin-top: 2px; }
.booking-meta a { color: var(--gold-dark); }
.list-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.list-item:last-child { border-bottom: none; }
.list-item span { color: var(--grey); font-size: 0.8rem; }
.empty { color: var(--grey); font-size: 0.9rem; }
.no-biz { text-align: center; padding: 60px; color: var(--grey); }
.no-biz a { color: var(--gold-dark); }

/* ── Modal ── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-card { background: var(--white); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.modal-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.modal-btns { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ── Loading ── */
.loading { text-align: center; padding: 60px; color: var(--grey); }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.7rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .salon-header { flex-direction: column; }
}

/* ── Login ── */
.no-biz { display: flex; justify-content: center; padding: 60px 24px; }
.login-card { background: var(--white); border-radius: var(--radius); padding: 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 1.4rem; margin-bottom: 8px; }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.list-item:last-child { border-bottom: none; }
.list-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-edit { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold-dark); border-radius: 6px; padding: 4px 10px; font-size: 0.8rem; cursor: pointer; }
.btn-del { background: transparent; color: #ef4444; border: 1px solid #ef4444; border-radius: 6px; padding: 4px 8px; font-size: 0.8rem; cursor: pointer; }
