/* D'Monique Salon — warm ivory/cream, charcoal-brown text, sunny gold, lively teal. No pink. */
:root {
  --ivory: #faf5ec;
  --cream: #f3ead9;
  --card: #fffdf8;
  --ink: #2e2620;
  --ink-soft: #5c5044;
  --gold: #c9962e;
  --gold-bright: #e3ac3a;
  --gold-soft: #f5e3b8;
  --teal: #0f766e;
  --teal-bright: #14a08f;
  --teal-soft: #d7efe9;
  --line: #e3d7c3;
  --danger: #b3402a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(46, 38, 32, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--teal); }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 12px 0 4px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }

/* Header */
.site-header {
  background: #14100c;
  color: #f7ecd2;
  text-align: center;
  padding: 34px 16px 26px;
  border-bottom: 4px solid var(--gold);
}
.logo-script {
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 1.1;
  color: var(--gold-bright);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.logo-sub {
  letter-spacing: 0.35em; text-transform: uppercase; font-size: 0.8rem; color: #e9dcc0; margin-top: 2px;
}
.tagline-pill {
  display: inline-block; margin-top: 14px; padding: 5px 14px;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-bright);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.header-meta { margin-top: 12px; font-size: 0.95rem; color: #d9cdb2; }
.header-meta .city { color: #fff; font-weight: 600; }
.header-phone { margin-top: 6px; }
.header-phone a { color: var(--gold-bright); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: 0.02em; }
.header-phone a:hover { text-decoration: underline; }

/* Sections & cards */
h2.section-title {
  font-size: 1.5rem; margin: 34px 0 4px; color: var(--ink);
  border-bottom: 3px solid var(--gold-soft); padding-bottom: 6px;
}
h2.section-title.nails { border-bottom-color: var(--teal-soft); }
.section-note { color: var(--ink-soft); margin: 4px 0 14px; font-size: 0.95rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 6px;
}
.service-card:hover { border-color: var(--gold); }
.service-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.service-card .svc-name { font-weight: 700; font-size: 1.05rem; }
.service-card .svc-desc { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.service-card .svc-meta { display: flex; justify-content: space-between; align-items: baseline; }
.price { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.price.teal { color: var(--teal); }
.duration { color: var(--ink-soft); font-size: 0.85rem; }

/* Booking flow */
.flow-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-top: 28px;
}
.flow-box h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--gold); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600;
}
.chip:hover { border-color: var(--gold); }
.chip.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.chip.teal.selected { background: var(--teal); border-color: var(--teal); }
.chip:disabled { opacity: 0.45; cursor: default; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; }
.day-btn {
  min-width: 74px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px; text-align: center;
}
.day-btn .dow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.day-btn .dnum { font-weight: 800; font-size: 1.05rem; }
.day-btn.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.day-btn:disabled { opacity: 0.45; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot-btn {
  border: 1px solid var(--teal); color: var(--teal); background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700;
}
.slot-btn.selected { background: var(--teal); color: #fff; }
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 12px 22px;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 1rem; margin-top: 14px;
}
.btn:hover { background: var(--gold-bright); }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: var(--teal-bright); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; margin-top: 0; }
.btn:disabled { opacity: 0.5; cursor: default; }
.msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; display: none; }
.msg.error { display: block; background: #fbe9e2; color: var(--danger); border: 1px solid #efc4b4; }
.msg.ok { display: block; background: var(--teal-soft); color: var(--teal); border: 1px solid #a9d8cf; }
.confirmation { text-align: center; padding: 12px 4px; }
.confirmation .big { font-size: 1.7rem; margin: 6px 0; color: var(--teal); }
.confirmation dl { text-align: left; max-width: 420px; margin: 16px auto; }
.confirmation dt { font-weight: 700; color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.confirmation dd { margin: 0 0 10px; font-size: 1.05rem; }
.policy-note {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-top: 18px; font-size: 0.93rem; text-align: left;
}
.policy-note strong { color: var(--ink); }

/* Card step (Stripe Payment Element) */
.appt-summary { font-size: 1.02rem; margin: 8px 0 2px; }
.card-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-top: 14px; box-shadow: var(--shadow);
}
.fee-charged { color: var(--teal); font-weight: 700; }
.fee-failed { color: var(--danger); font-weight: 700; }

/* Returning clients: welcome-back banner, lookup note, My appointments */
.welcome-back {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  background: var(--gold-soft); border: 1px solid var(--gold);
  border-radius: 12px; padding: 10px 14px; margin: 10px 0 4px;
  font-size: 0.95rem;
}
.link-btn {
  background: none; border: none; padding: 0; color: var(--teal);
  font-weight: 700; font-size: 0.9rem; text-decoration: underline; cursor: pointer;
}
.lookup-note {
  margin-top: 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal);
  border: 1px solid #a9d8cf; font-size: 0.9rem; font-weight: 600;
}
.appt-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-top: 10px;
}
.appt-item .appt-main { flex: 1; }
.appt-item .btn { flex-shrink: 0; }

/* Good to know */
.good-to-know { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; margin-top: 30px; box-shadow: var(--shadow); }
.good-to-know li { margin: 8px 0; }
footer.site-footer { text-align: center; color: var(--ink-soft); font-size: 0.9rem; padding: 22px 16px 34px; }
.salon-link { text-align: center; margin-top: 26px; font-size: 0.9rem; }

/* Salon view */
.salon-header { background: #14100c; color: #f7ecd2; padding: 18px 16px; border-bottom: 4px solid var(--teal); }
.salon-header .wrap { padding-bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.salon-header h1 { font-size: 1.25rem; margin: 0; }
.salon-header h1 .accent { color: var(--gold-bright); font-family: "Snell Roundhand", "Brush Script MT", cursive; font-size: 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tab-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.tab-btn.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.status-cancelled { color: var(--danger); font-weight: 700; }
.text-btn {
  display: inline-block; background: var(--teal); color: #fff !important; text-decoration: none;
  border-radius: 8px; padding: 5px 12px; font-weight: 700; font-size: 0.85rem;
}
/* Calendar time grid (Booksy-style): time axis + day/stylist columns, bookings as blocks */
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }
.cal-grid { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.cal-corner { background: var(--cream); border-bottom: 1px solid var(--line); }
.cal-head { background: var(--cream); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 7px 4px; text-align: center; font-weight: 700; font-size: 0.85rem; line-height: 1.25; }
.cal-head .cal-head-sub { font-weight: 600; color: var(--ink-soft); font-size: 0.72rem; }
.cal-head.today { background: var(--gold-soft); }
.cal-head.gold { box-shadow: inset 0 -3px 0 var(--gold); }
.cal-head.teal { box-shadow: inset 0 -3px 0 var(--teal); }
.cal-axis { position: relative; }
.cal-axis-label { position: absolute; right: 6px; transform: translateY(-50%); font-size: 0.66rem; color: var(--ink-soft); white-space: nowrap; }
.cal-axis-label:first-child { transform: translateY(0); top: 2px; }
.cal-day {
  position: relative; border-left: 1px solid var(--line);
  background-image:
    linear-gradient(to bottom, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227, 215, 195, 0.55) 1px, transparent 1px);
  background-size: 100% var(--hourpx), 100% calc(var(--hourpx) / 2);
}
.cal-off { position: absolute; left: 0; right: 0; background: rgba(92, 80, 68, 0.09); z-index: 0; }
.cal-closed { position: absolute; top: 10px; left: 0; right: 0; text-align: center; color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; z-index: 1; }
.cal-block {
  position: absolute; left: 2px; right: 2px; z-index: 1; cursor: pointer;
  border: 1px dashed #b3a488; border-radius: 6px; padding: 2px 4px; overflow: hidden;
  background: repeating-linear-gradient(45deg, #f0e8d5 0 6px, #faf5ec 6px 12px);
  color: var(--ink-soft); font-size: 0.66rem; line-height: 1.3;
}
.cal-block.wholeday { left: 0; right: 0; border: none; border-radius: 0; background: repeating-linear-gradient(45deg, rgba(240, 232, 213, 0.8) 0 8px, rgba(250, 245, 236, 0.8) 8px 16px); }
.cal-block.wholeday span { display: block; padding: 4px; font-weight: 700; }
.cal-appt {
  position: absolute; z-index: 2; cursor: pointer; border-radius: 8px; padding: 3px 5px;
  font-size: 0.7rem; line-height: 1.25; overflow: hidden; overflow-wrap: break-word;
  border: 1px solid rgba(46, 38, 32, 0.15); box-shadow: var(--shadow);
}
.cal-appt.gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #241a05; }
.cal-appt.teal { background: linear-gradient(180deg, var(--teal-bright), var(--teal)); color: #fff; }
.cal-appt.cancelled { opacity: 0.55; }
.cal-appt.cancelled strong { text-decoration: line-through; }
.cal-appt-time { opacity: 0.85; font-size: 0.66rem; }
.cal-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-soft); margin: 8px 0 0; }
.cal-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.cal-dot.gold { background: var(--gold-bright); }
.cal-dot.teal { background: var(--teal); }
.cal-swatch { width: 14px; height: 11px; border: 1px dashed #b3a488; border-radius: 3px; display: inline-block; background: repeating-linear-gradient(45deg, #f0e8d5 0 4px, #faf5ec 4px 8px); }
.cal-modal-backdrop { position: fixed; inset: 0; background: rgba(20, 16, 12, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.cal-modal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 430px; width: 100%; padding: 18px; max-height: 88vh; overflow-y: auto; }
.cal-dl { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; margin: 10px 0; }
.cal-dl dt { font-weight: 700; color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cal-dl dd { margin: 0; }
.cal-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.cal-modal-actions .btn { margin-top: 0; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.inline-form label { margin-top: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.kpi { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.kpi .num { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.kpi .lbl { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.login-box { max-width: 380px; margin: 48px auto; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input { flex: 1; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.hidden { display: none !important; }

/* Install-as-app hint (client page only, dismissible) */
.install-hint {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 560px; margin: 0 auto;
  background: #14100c; color: #f7ecd2; border: 1px solid var(--gold);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; line-height: 1.35;
}
.install-hint-text { flex: 1; }
.install-hint .btn { margin-top: 0; flex-shrink: 0; }
.install-hint-close {
  background: transparent; border: none; color: #e9dcc0; flex-shrink: 0;
  font-size: 1.25rem; line-height: 1; padding: 4px 8px; cursor: pointer;
}

/* Reviews */
.reviews-summary { margin: 6px 0 14px; }
.reviews-big { font-size: 1.1rem; }
.reviews-stars-big { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }
.review-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review-text { margin: 6px 0; }
.review-meta { color: var(--ink-soft); font-size: 0.88rem; }
.review-source { color: var(--teal); }
.review-reply {
  margin-top: 10px; background: var(--teal-soft); border-radius: 10px; padding: 8px 12px; font-size: 0.92rem;
}
.review-form-box { margin-top: 18px; }
.star-picker { display: flex; gap: 4px; }
.star-picker button {
  background: none; border: none; font-size: 1.9rem; line-height: 1; padding: 2px 4px;
  color: var(--gold); cursor: pointer; width: auto;
}
#reviews-more { margin: 2px 0 6px; }

/* Language toggle (client page header) */
.lang-toggle { margin-top: 12px; display: inline-flex; border: 1px solid rgba(212, 175, 55, .55); border-radius: 999px; overflow: hidden; }
.lang-btn { background: transparent; border: 0; color: #d9c48a; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: 5px 14px; cursor: pointer; }
.lang-btn.selected { background: #c9a227; color: #171208; }

/* On-page confirmation (replaces the system confirm() popup) */
.confirm-overlay{position:fixed;inset:0;background:rgba(20,16,12,.55);display:flex;align-items:center;justify-content:center;z-index:300;padding:18px;}
.confirm-card{background:#fffdf8;border-radius:16px;padding:20px;max-width:340px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35);text-align:center;}
.confirm-card p{margin:0 0 16px;font-size:1rem;line-height:1.45;}
.confirm-actions{display:flex;gap:10px;justify-content:center;}

/* Welcome bio under the header */
.bio-card{max-width:760px;margin:22px auto 4px;background:#fffdf8;border:1px solid #eadfca;border-top:4px solid #c9a227;border-radius:16px;padding:20px 22px;box-shadow:0 6px 22px rgba(60,45,15,.06);}
.bio-card p{margin:0 0 12px;line-height:1.6;color:#4a3f30;}
.bio-card p:last-child{margin-bottom:0;}
