:root {
  --black: #0a0a0a;
  --black-2: #151515;
  --gold: #caa24d;
  --gold-light: #ead08a;
  --white: #ffffff;
  --bg: #0b0b0b;
  --text: #f6f2e8;
  --muted: #9f9f9f;
  --green: #2e9d58;
  --red: #cf3d3d;
  --border: #2b2b2b;
  --shadow: 0 22px 60px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top, #202020 0, var(--bg) 35%); color: var(--text); min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 64px; }
.brand { text-align: center; margin-bottom: 26px; }
.brand .eyebrow { color: var(--gold-light); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; }
.brand h1 { margin: 7px 0 6px; font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.04em; }
.brand p { margin: 0; color: var(--muted); }
.card { background: rgba(18,18,18,.96); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.calendar-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; align-items: start; }
.calendar-card { padding: 22px; }
.calendar { background: var(--white); color: #111; border-radius: 17px; padding: 16px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.calendar-title { font-size: 1.05rem; font-weight: 800; text-transform: capitalize; }
.icon-btn { width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa; color: #111; font-size: 1.2rem; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.weekdays { margin-bottom: 8px; }
.weekdays div { text-align: center; color: #707070; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.day { aspect-ratio: 1 / 1; min-height: 52px; border-radius: 14px; background: #fff; border: 2px solid #e9e9e9; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: .18s ease; position: relative; }
.day:not(.empty):not(.past):hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.day.working { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(46,157,88,.12); }
.day.off { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(207,61,61,.1); }
.day.selected { outline: 3px solid var(--gold); outline-offset: 2px; }
.day.past { opacity: .35; cursor: default; }
.day.empty { border-color: transparent; background: transparent; cursor: default; }
.day-number { font-weight: 850; }
.day-state { font-size: .58rem; color: #727272; }
.side-card { padding: 24px; min-height: 380px; }
.side-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.side-card .hint { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.selected-date { color: var(--gold-light); font-weight: 800; margin-bottom: 14px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.slot { border: 1px solid #393939; background: #171717; color: var(--text); border-radius: 11px; padding: 10px 8px; font-weight: 750; }
.slot:hover, .slot.active { border-color: var(--gold); color: var(--gold-light); }
.slot:disabled { opacity: .28; cursor: not-allowed; text-decoration: line-through; }
.form-grid { display: grid; gap: 11px; }
label { font-size: .78rem; color: #c5c5c5; font-weight: 700; }
.field { display: grid; gap: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="time"], input[type="date"] { width: 100%; border: 1px solid #373737; background: #101010; color: #fff; border-radius: 12px; padding: 12px 13px; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202,162,77,.12); }
.primary { width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; background: linear-gradient(135deg, var(--gold), #f0d58e); color: #0b0b0b; font-weight: 900; }
.secondary { border: 1px solid #424242; border-radius: 11px; padding: 10px 13px; background: #171717; color: #fff; font-weight: 800; }
.danger { border: 1px solid rgba(207,61,61,.7); background: rgba(207,61,61,.12); color: #ff8d8d; border-radius: 11px; padding: 10px 13px; font-weight: 850; }
.notice { border-radius: 12px; padding: 12px 13px; margin-top: 12px; font-size: .9rem; line-height: 1.45; }
.notice.success { background: rgba(46,157,88,.12); border: 1px solid rgba(46,157,88,.5); color: #84e2a4; }
.notice.error { background: rgba(207,61,61,.12); border: 1px solid rgba(207,61,61,.5); color: #ff9a9a; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 13px; color: #aaa; font-size: .78rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.green { background: var(--green); } .dot.red { background: var(--red); }
.hidden { display: none !important; }
.admin-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 20px; }
.admin-top h1 { margin: 0; font-size: 1.55rem; }
.admin-top a { color: var(--gold-light); text-decoration: none; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 17px; }
.stat span { color: var(--muted); font-size: .78rem; }
.stat strong { display: block; font-size: 2rem; margin-top: 2px; color: var(--gold-light); }
.custom-range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.toggle-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #2b2b2b; padding-bottom: 16px; margin-bottom: 16px; }
.switch { position: relative; width: 54px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #4a2222; transition: .2s; }
.slider:before { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider:before { transform: translateX(24px); }
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.appointments { display: grid; gap: 9px; margin-top: 16px; }
.appt { border: 1px solid #303030; background: #121212; border-radius: 13px; padding: 12px; }
.appt.cancelled { opacity: .45; }
.appt-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.appt-time { color: var(--gold-light); font-weight: 900; }
.appt-name { font-weight: 850; }
.appt-meta { color: #aaa; font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.appt-phone { color: var(--gold-light); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(240, 205, 116, .45); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.appt-phone:active { opacity: .72; }
.appt-phone.disabled { color: #888; border-bottom: 0; pointer-events: none; }
.appt-email { overflow-wrap: anywhere; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 28px; }
.login-card h1 { margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 820px) {
  .calendar-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 18px, 1160px); padding-top: 20px; }
  .calendar-card, .side-card { padding: 14px; border-radius: 17px; }
  .calendar { padding: 10px; }
  .weekdays, .calendar-grid { gap: 4px; }
  .day { min-height: 43px; border-radius: 10px; }
  .day-state { display: none; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .custom-range { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr 1fr; }
  .admin-top { align-items: flex-start; }
}

/* =========================================================
   PUBLIC BOOKING PAGE - MINIMAL RESPONSIVE DESIGN
   ========================================================= */
.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(202, 162, 77, .08), transparent 28rem),
    linear-gradient(145deg, #080808 0%, #111 50%, #070707 100%);
  color: #f8f5ed;
  overflow-x: hidden;
}

.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 70%);
}

.booking-shell {
  width: min(1320px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.booking-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 22px;
  align-items: stretch;
}

.calendar-panel,
.booking-panel {
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.calendar-panel {
  background: #fff;
  color: #111;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.72);
}

.public-calendar {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.public-calendar-head {
  margin-bottom: 24px;
  min-height: 48px;
}

.public-calendar-head .calendar-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: #111;
}

.public-calendar-head .icon-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,.04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.public-calendar-head .icon-btn:hover {
  transform: translateY(-1px);
  border-color: #b99645;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.public-weekdays,
.public-grid {
  gap: 8px;
}

.public-weekdays {
  margin-bottom: 10px;
}

.public-weekdays div {
  font-size: .76rem;
  color: #777;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: none;
}

.public-page .public-grid .day {
  aspect-ratio: 1.18 / 1;
  min-height: 64px;
  border-width: 1.5px;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  color: #151515;
  isolation: isolate;
}

.public-page .public-grid .day:not(.empty):not(.past):not(.future-locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0,0,0,.09);
}

.public-page .public-grid .day.working {
  border-color: #49a968;
  box-shadow: inset 0 0 0 1px rgba(46,157,88,.05);
}

.public-page .public-grid .day.future-locked {
  border-color: rgba(73,169,104,.48);
  background: linear-gradient(145deg, #f3f4f3, #eceeed);
  color: #8b8f8c;
  box-shadow: inset 0 0 0 1px rgba(73,169,104,.06);
  cursor: help;
}

.public-page .public-grid .day.future-locked .day-number {
  color: #8a8e8b;
}

.public-page .public-grid .day-lock-icon {
  position: absolute;
  top: 6px;
  right: 7px;
  font-family: Arial, sans-serif;
  font-size: .68rem;
  line-height: 1;
  color: #6f8f78;
  opacity: .9;
}

.public-page .public-grid .day.future-locked:active {
  background: #e7ebe8;
}

.public-page .public-grid .day.off {
  border-color: #ef6666;
  box-shadow: inset 0 0 0 1px rgba(207,61,61,.04);
}

.public-page .public-grid .day.selected {
  color: #e6bd58;
  background: linear-gradient(145deg, #090909, #171717);
  border-color: #caa24d;
  outline: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 0 0 1px rgba(234,208,138,.15);
}

.public-page .public-grid .day.past {
  opacity: .34;
  filter: grayscale(.25);
}

.public-page .public-grid .day.empty {
  min-height: 64px;
}

.public-page .public-grid .day-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
}

.public-page .public-grid .day-state {
  display: none;
}

.public-legend {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ededed;
  color: #646464;
  font-size: .82rem;
  justify-content: flex-start;
  gap: 22px;
}

.public-legend .dot {
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 3px #fff;
}

.public-legend .dot.future {
  background: #eef0ef;
  border: 1.5px solid rgba(73,169,104,.65);
  box-shadow: none;
  position: relative;
}

.public-legend .dot.future::after {
  content: '◷';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  color: #64806c;
  font-size: 8px;
  line-height: 1;
}

.booking-panel {
  background: linear-gradient(165deg, #121212 0%, #090909 100%);
  border: 1px solid rgba(202,162,77,.28);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.booking-panel > #bookingPanel:not(.hidden) {
  display: grid;
  gap: 24px;
}

.booking-panel .selected-date {
  color: #e3bd62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(202,162,77,.28);
}

.booking-section {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f7f4ec;
  font-weight: 800;
  font-size: .94rem;
}

.section-heading small {
  color: #9c9c9c;
  font-size: .74rem;
  font-weight: 700;
}

.public-page .slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.public-page .slot {
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid rgba(202,162,77,.55);
  border-radius: 11px;
  background: #101010;
  color: #e7c76f;
  font-size: .82rem;
  font-weight: 800;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.public-page .slot:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #e1b953;
  background: #181511;
}

.public-page .slot.active {
  color: #0b0b0b;
  background: linear-gradient(135deg, #f0d58e, #cda244);
  border-color: #e8c76d;
  box-shadow: 0 8px 20px rgba(202,162,77,.16);
}

.public-page .slot:disabled {
  opacity: .28;
  text-decoration: none;
  border-color: #3d3931;
}

.public-form {
  gap: 13px;
}

.public-form .field {
  gap: 7px;
}

.public-form label {
  color: #aaa;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.public-page .public-form input {
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #36322b;
  border-radius: 12px;
  background: #101010;
  color: #fff;
}

.public-page .public-form input::placeholder {
  color: #666;
}

.public-page .public-form input:focus {
  border-color: #caa24d;
  box-shadow: 0 0 0 3px rgba(202,162,77,.11);
}

.public-submit {
  min-height: 52px;
  margin-top: 3px;
  border-radius: 12px;
  font-size: .98rem;
  letter-spacing: .01em;
  box-shadow: 0 12px 30px rgba(202,162,77,.16);
}

.public-submit:hover {
  filter: brightness(1.04);
}

.booking-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #777;
  font-size: .9rem;
}

.public-page .notice {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .booking-shell {
    width: min(860px, calc(100% - 28px));
    padding: 24px 0;
  }

  .booking-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calendar-panel,
  .booking-panel {
    border-radius: 22px;
  }

  .booking-panel {
    padding: 24px;
  }

  .booking-panel > #bookingPanel:not(.hidden) {
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .booking-shell {
    width: calc(100% - 16px);
    min-height: auto;
    display: block;
    padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  }

  .booking-layout {
    gap: 10px;
  }

  .calendar-panel,
  .booking-panel {
    border-radius: 18px;
  }

  .calendar-panel {
    padding: 13px 10px 14px;
  }

  .public-calendar-head {
    min-height: 40px;
    margin-bottom: 14px;
    padding: 0 2px;
  }

  .public-calendar-head .calendar-title {
    font-size: 1.27rem;
  }

  .public-calendar-head .icon-btn {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 11px;
    font-size: 1.45rem;
  }

  .public-weekdays,
  .public-grid {
    gap: 4px;
  }

  .public-weekdays {
    margin-bottom: 6px;
  }

  .public-weekdays div {
    font-size: .64rem;
  }

  .public-page .public-grid .day,
  .public-page .public-grid .day.empty {
    min-height: 0;
    aspect-ratio: 1 / .94;
    border-radius: 9px;
    border-width: 1px;
  }

  .public-page .public-grid .day-number {
    font-size: .88rem;
  }

  .public-legend {
    margin-top: 12px;
    padding-top: 12px;
    gap: 14px;
    font-size: .69rem;
  }

  .booking-panel {
    padding: 18px 14px 16px;
  }

  .booking-panel .selected-date {
    font-size: 1.25rem;
    padding-bottom: 15px;
  }

  .section-heading {
    font-size: .88rem;
  }

  .public-page .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .public-page .slot {
    min-height: 42px;
    padding: 8px 4px;
    font-size: .75rem;
    border-radius: 9px;
  }

  .public-form {
    gap: 11px;
  }

  .public-page .public-form input {
    min-height: 47px;
    padding: 11px 12px;
  }

  .public-submit {
    min-height: 50px;
  }
}

@media (max-width: 390px) {
  .public-page .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-legend {
    justify-content: space-between;
    gap: 8px;
  }
}

.public-submit:disabled {
  opacity: .68;
  cursor: wait;
  transform: none;
}

/* =========================================================
   ADMIN TOP NAVIGATION: CALENDAR / STATISTICA
   ========================================================= */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  margin: 0 auto 24px;
  padding: 6px;
  border: 1px solid #2d2a24;
  border-radius: 16px;
  background: #101010;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.admin-tab {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #aaa;
  font-weight: 850;
  font-size: .94rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.admin-tab:hover {
  color: #ead08a;
  border-color: rgba(202,162,77,.25);
}
.admin-tab.active {
  color: #0b0b0b;
  background: linear-gradient(135deg, #f0d58e, #cda244);
  border-color: #dfbb60;
  box-shadow: 0 7px 18px rgba(202,162,77,.18);
}
.admin-tab:active { transform: translateY(1px); }
.admin-section { animation: adminSectionIn .18s ease; }
.stats-range-card { padding: 20px; margin-bottom: 22px; }
.custom-result { margin-top: 12px; color: #ead08a; font-weight: 800; }
@keyframes adminSectionIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .admin-tabs { width: 100%; margin-bottom: 18px; }
  .admin-tab { min-height: 46px; font-size: .9rem; }
  .stats-range-card { padding: 16px; }
}


/* Pauze configurabile pe zi - Admin */
.breaks-section {
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 14px;
  background: #0f0f0f;
}
.breaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.breaks-head strong { color: var(--gold-light); }
.breaks-hint { margin-top: 3px; color: #888; font-size: .75rem; line-height: 1.4; }
.add-break { white-space: nowrap; }
.breaks-list { display: grid; gap: 9px; }
.break-empty {
  padding: 10px 11px;
  border: 1px dashed #343434;
  border-radius: 10px;
  color: #7f7f7f;
  font-size: .8rem;
}
.break-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #292929;
  border-radius: 12px;
  background: #151515;
}
.break-row input[type="time"] { padding: 10px 11px; }
.break-remove {
  width: 38px;
  height: 42px;
  border: 1px solid rgba(207,61,61,.55);
  border-radius: 10px;
  background: rgba(207,61,61,.1);
  color: #ff9292;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}
.break-remove:hover { background: rgba(207,61,61,.18); }
@media (max-width: 560px) {
  .breaks-head { align-items: stretch; flex-direction: column; }
  .add-break { width: 100%; }
  .break-row { grid-template-columns: 1fr 1fr 36px; gap: 6px; padding: 8px; }
  .break-row label { font-size: .7rem; }
  .break-row input[type="time"] { padding: 9px 7px; font-size: .83rem; }
  .break-remove { width: 36px; height: 40px; }
}

/* =========================================================
   FULL MOBILE RESPONSIVE PASS (PUBLIC + ADMIN)
   ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

button, input, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

.admin-section,
.calendar-wrap,
.calendar-card,
.side-card,
.calendar,
.stats-range-card,
.breaks-section,
.appointments,
.appt {
  min-width: 0;
}

@media (max-width: 760px) {
  /* Admin shell */
  body:not(.public-page) .shell {
    width: calc(100% - 16px);
    padding: 14px 0 max(24px, env(safe-area-inset-bottom));
  }

  .admin-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
  }

  .admin-top h1 {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    line-height: 1.15;
  }

  .admin-top .secondary {
    min-height: 44px;
    padding-inline: 12px;
  }

  .admin-tabs {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 20;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,.34);
  }

  .admin-tab {
    min-height: 46px;
  }

  /* Admin calendar: always stays inside the viewport */
  .calendar-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .calendar-card,
  .side-card {
    padding: 11px;
    border-radius: 17px;
  }

  .calendar {
    width: 100%;
    padding: 9px;
    border-radius: 13px;
    overflow: hidden;
  }

  .calendar-head {
    min-height: 40px;
    gap: 8px;
    margin-bottom: 11px;
  }

  .calendar-title {
    min-width: 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.15;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
  }

  .weekdays,
  .calendar-grid {
    width: 100%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  .weekdays div {
    min-width: 0;
    font-size: .61rem;
    letter-spacing: 0;
  }

  .day,
  .day.empty {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / .94;
    padding: 0;
    border-width: 1px;
    border-radius: 8px;
  }

  .day-number {
    font-size: .87rem;
  }

  .day-state {
    display: none;
  }

  .legend {
    margin-top: 10px;
    gap: 12px;
    font-size: .7rem;
  }

  /* Day editor */
  .side-card {
    min-height: 0;
  }

  .side-card h2 {
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .toggle-row {
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 13px;
  }

  .switch {
    flex: 0 0 54px;
  }

  .hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hours .field,
  .break-row .field {
    min-width: 0;
  }

  /* Prevent iOS from zooming form controls */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="time"],
  input[type="date"] {
    min-height: 46px;
    font-size: 16px;
  }

  .primary,
  .secondary,
  .danger {
    min-height: 46px;
  }

  /* Statistics */
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  .stat {
    min-width: 0;
    padding: 11px 8px;
    border-radius: 14px;
    text-align: center;
  }

  .stat span {
    display: block;
    min-height: 2.4em;
    font-size: .66rem;
    line-height: 1.2;
  }

  .stat strong {
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: 5px;
  }

  .stats-range-card {
    padding: 14px;
    border-radius: 16px;
  }

  .custom-range {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .custom-range .secondary {
    width: 100%;
  }

  /* Appointment cards */
  .appointments {
    gap: 8px;
  }

  .appt {
    padding: 11px;
  }

  .appt-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .appt-meta {
    font-size: .78rem;
    line-height: 1.55;
  }

  /* Login */
  .login-shell {
    min-height: 100svh;
    padding: max(14px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  }

  .login-card {
    width: 100%;
    max-width: 430px;
    padding: 20px 16px;
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  /* Admin header becomes a compact vertical block on very narrow phones */
  .admin-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-top .secondary {
    width: 100%;
  }

  .admin-tabs {
    gap: 5px;
    padding: 5px;
  }

  .admin-tab {
    min-height: 44px;
    font-size: .86rem;
  }

  .hours {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .breaks-section {
    padding: 10px;
  }

  .breaks-head {
    gap: 9px;
  }

  /* Each break uses two stacked time fields + a large delete target */
  .break-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    gap: 7px 9px;
    padding: 9px;
  }

  .break-row .field:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .break-row .field:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .break-row .break-remove {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 44px;
    height: auto;
    min-height: 44px;
  }

  .break-row input[type="time"] {
    width: 100%;
    min-width: 0;
    padding: 10px;
    font-size: 16px;
  }

  .stats {
    gap: 6px;
  }

  .stat {
    padding: 10px 5px;
  }

  .stat span {
    font-size: .62rem;
  }

  .stat strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 360px) {
  body:not(.public-page) .shell {
    width: calc(100% - 10px);
  }

  .calendar-card,
  .side-card {
    padding: 8px;
  }

  .calendar {
    padding: 7px;
  }

  .weekdays,
  .calendar-grid {
    gap: 3px;
  }

  .weekdays div {
    font-size: .57rem;
  }

  .day-number {
    font-size: .8rem;
  }

  .legend {
    justify-content: space-between;
    gap: 6px;
    font-size: .65rem;
  }

  .hours {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ADMIN: PROGRAM PERMANENT
   ========================================================= */
.admin-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(680px, 100%); }
.program-card { padding: 22px; max-width: 980px; margin: 0 auto 24px; }
.program-head h2 { margin: 5px 0 7px; }
.program-effective-row { display: grid; grid-template-columns: minmax(220px, 320px) auto; gap: 12px; align-items: end; margin: 18px 0 8px; }
.program-version-info { min-height: 20px; color: #9f9f9f; font-size: .8rem; margin-bottom: 16px; }
.program-days { display: grid; gap: 9px; margin: 16px 0; }
.program-day-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(120px, .7fr) minmax(125px, .7fr) minmax(125px, .7fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #2d2d2d;
  border-radius: 13px;
  background: #111;
}
.program-day-name { align-self: center; display: grid; gap: 3px; }
.program-day-name strong { color: #ead08a; }
.program-auto-label { color: #777; font-size: .7rem; min-height: 1em; }
.program-day-auto { border-color: rgba(202,162,77,.32); }
.program-check { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #ddd; font-size: .84rem; }
.program-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: #d0aa55; }
.program-alternation { margin: 18px 0 14px; padding: 14px; border: 1px solid #303030; border-radius: 14px; background: #0f0f0f; }
.program-alt-options { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); gap: 12px; margin-top: 12px; }
.program-help { margin: 12px 0 16px; padding: 11px 12px; border-radius: 11px; background: #151515; color: #999; font-size: .78rem; line-height: 1.5; }
#saveProgramBtn { width: 100%; }
@media (max-width: 760px) {
  .program-card { padding: 15px; }
  .program-effective-row { grid-template-columns: 1fr; }
  .program-effective-row .secondary { width: 100%; }
  .program-day-row { grid-template-columns: 1fr 1fr; }
  .program-day-name { grid-column: 1 / -1; }
  .program-alt-options { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-tabs { gap: 5px; padding: 5px; }
  .admin-tab { font-size: .82rem; }
  .program-day-row { grid-template-columns: 1fr; }
  .program-day-name { grid-column: auto; }
}

/* =========================================================
   2026-09-05: iPhone / Safari UI fixes
   - selected booking slot remains clearly visible
   - date/time inputs cannot overflow their cards
   - narrow mobile day-editor uses one-column hours
   ========================================================= */
.public-page .slot {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

.public-page .slot.active,
.public-page .slot.active:hover,
.public-page .slot.active:focus,
.public-page .slot.active:active {
  background-color: #ddb95f !important;
  background-image: none !important;
  border-color: #f0d58e !important;
  color: #090909 !important;
  -webkit-text-fill-color: #090909 !important;
  opacity: 1 !important;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(202,162,77,.22), inset 0 0 0 1px rgba(255,255,255,.16);
}

.field,
.hours > *,
.custom-range > *,
.program-effective-row > *,
.program-day-row > *,
.program-alt-options > * {
  min-width: 0;
  max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="time"],
input[type="date"] {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

input[type="time"]::-webkit-date-and-time-value,
input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
}

@media (max-width: 480px) {
  .hours {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .calendar-card,
  .side-card,
  .program-card,
  .stats-range-card,
  .breaks-section,
  .program-day-row {
    width: 100%;
    max-width: 100%;
  }

  .custom-range,
  .program-effective-row,
  .program-alt-options,
  .program-days {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* =========================================================
   2026-09-05 v3: hard iPhone date/time overflow fix
   Safari can treat native date/time controls as content-box/replaced
   elements with an intrinsic width. Force border-box sizing on the
   control itself and constrain every relevant grid wrapper.
   ========================================================= */
@media (max-width: 760px) {
  .side-card,
  .side-card #dayDetail,
  .hours,
  .hours .field,
  .program-card,
  .program-effective-row,
  .program-effective-row .field,
  .program-day-row,
  .program-day-row .field,
  .program-alt-options,
  .program-alt-options .field,
  .custom-range,
  .custom-range .field,
  .break-row,
  .break-row .field {
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    inline-size: 100% !important;
    box-sizing: border-box !important;
  }

  input[type="date"],
  input[type="time"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    overflow: hidden !important;
  }

  input[type="date"]::-webkit-date-and-time-value,
  input[type="time"]::-webkit-date-and-time-value,
  input[type="date"]::-webkit-datetime-edit,
  input[type="time"]::-webkit-datetime-edit {
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* On phones, the day editor must never create two intrinsic-width
     native time controls side by side. */
  .hours {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    overflow: hidden;
  }

  .side-card {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  /* Keep a small safety inset from the card edge on iOS Safari. */
  .side-card #dayDetail,
  .program-card > *,
  .stats-range-card > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* Ștergere individuală programare - Admin */
.appt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}
.appt-status {
  color: #ddd;
  white-space: nowrap;
}
.appt-delete {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(220, 70, 70, .58);
  border-radius: 9px;
  background: rgba(190, 45, 45, .12);
  color: #ff9b9b;
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.appt-delete:hover { background: rgba(190, 45, 45, .2); }
.appt-delete:active { transform: translateY(1px); }
.appt-delete:disabled { opacity: .55; cursor: wait; transform: none; }

@media (max-width: 560px) {
  .appt-actions { gap: 7px; }
  .appt-delete { min-height: 32px; padding: 6px 9px; font-size: .72rem; }
}

@media (max-width: 360px) {
  .appt-head { display: grid; grid-template-columns: 1fr; }
  .appt-actions { justify-content: space-between; width: 100%; }
}


/* Reguli publice de rezervare */
.booking-rules-note {
  margin-top: 12px;
  color: #9b9b9b;
  font-size: .82rem;
  line-height: 1.45;
}
.public-calendar-head .icon-btn:disabled {
  opacity: .28;
  cursor: default;
}

/* Booking window calendar state: working day not open for booking yet */
@media (max-width: 620px) {
  .public-page .public-grid .day-lock-icon {
    top: 4px;
    right: 5px;
    font-size: .58rem;
  }
  .public-legend {
    align-items: center;
  }
}

/* Pagina publică de anulare */
.cancel-page { min-height: 100svh; }
.cancel-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}
.cancel-card {
  width: min(100%, 620px);
  border: 1px solid rgba(211, 169, 73, .34);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(19,19,19,.98), rgba(8,8,8,.98));
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}
.cancel-brand { color: #d8b65c; font-weight: 850; letter-spacing: .02em; margin-bottom: 8px; }
.cancel-card h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.08; }
.cancel-loading, .cancel-intro, .cancel-warning { color: #a5a5a5; line-height: 1.55; }
.cancel-intro { margin: 0 0 18px; }
.cancel-details {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 16px;
  background: #303030;
  margin: 18px 0;
}
.cancel-details > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #111;
}
.cancel-details span { color: #919191; font-size: .88rem; }
.cancel-details strong { overflow-wrap: anywhere; }
.cancel-danger {
  width: 100%;
  border: 1px solid rgba(222,75,75,.62);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(188,45,45,.17);
  color: #ffabab;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.cancel-danger:hover { background: rgba(188,45,45,.25); }
.cancel-danger:disabled { opacity: .58; cursor: wait; }
.cancel-warning { margin: 12px 0 0; font-size: .82rem; }
.cancel-home {
  display: inline-block;
  margin-top: 18px;
  color: #d9bd73;
  font-weight: 750;
  text-decoration: none;
}
@media (max-width: 420px) {
  .cancel-details > div { grid-template-columns: 1fr; gap: 5px; }
}

/* Admin: numărul programărilor active pentru ziua selectată */
.daily-appointments-count {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, .38);
  border-radius: 12px;
  background: rgba(212, 175, 55, .08);
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-align: center;
}

@media (max-width: 560px) {
  .daily-appointments-count {
    padding: 11px 10px;
    font-size: .76rem;
    letter-spacing: .035em;
  }
}

/* Admin: intervale libere pentru ziua selectată */
.free-slots-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  border-color: rgba(212, 175, 55, .45);
  color: var(--gold-light);
}
.free-slots-btn:disabled { opacity: .5; cursor: wait; }
.free-slots-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 13px;
  background: #101010;
}
.free-slots-head {
  color: #d8d8d8;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.free-slots-list { display: grid; gap: 8px; }
.free-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(40, 167, 69, .08);
  border: 1px solid rgba(40, 167, 69, .34);
}
.free-slot-row strong { color: #fff; font-size: .9rem; white-space: nowrap; }
.free-slot-row span { color: #9fd3ab; font-size: .76rem; font-weight: 700; text-align: right; }
.free-slots-empty { color: #aaa; font-size: .82rem; line-height: 1.45; padding: 4px 0; }
.free-slots-full {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 11px;
  background: rgba(190, 45, 45, .11);
  border: 1px solid rgba(190, 45, 45, .38);
}
.free-slots-full strong { color: #ffabab; font-size: .86rem; letter-spacing: .035em; }
.free-slots-full span { color: #aaa; font-size: .76rem; line-height: 1.4; }
@media (max-width: 480px) {
  .free-slots-panel { padding: 11px; }
  .free-slot-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .free-slot-row span { text-align: left; }
}


/* Admin V2: ore libere afișate ca starturi concrete de 40 min */
.free-slot-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}
.free-slot-time {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(40, 167, 69, .09);
  border: 1px solid rgba(40, 167, 69, .38);
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .02em;
}
@media (max-width: 480px) {
  .free-slot-times { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .free-slot-time { min-height: 42px; padding: 8px 5px; font-size: .88rem; }
}


/* =========================================================
   ADMIN SOFT THEME — 2026-09-11
   Scoped only to .admin-page. Public booking page is unchanged.
   ========================================================= */
body.admin-page {
  --admin-bg: #182128;
  --admin-bg-deep: #141c22;
  --admin-surface: #222d35;
  --admin-surface-2: #27343d;
  --admin-surface-3: #2d3b45;
  --admin-border: #394954;
  --admin-border-soft: #31404a;
  --admin-text: #eef3f1;
  --admin-muted: #aab8bd;
  --admin-muted-2: #83939b;
  --admin-accent: #83b89b;
  --admin-accent-strong: #9ac8ae;
  --admin-accent-dark: #315d48;
  --admin-blue: #83a9c7;
  --admin-blue-soft: #a8c3d8;
  --admin-red: #dc8585;
  --admin-calendar: #f3f5f1;
  --admin-calendar-border: #d9dfda;
  min-height: 100vh;
  color: var(--admin-text);
  background:
    radial-gradient(circle at 15% 0%, rgba(126, 164, 196, .12), transparent 30rem),
    radial-gradient(circle at 95% 8%, rgba(131, 184, 155, .10), transparent 28rem),
    linear-gradient(155deg, var(--admin-bg) 0%, var(--admin-bg-deep) 100%);
}

body.admin-page .eyebrow {
  color: var(--admin-accent-strong);
}

body.admin-page .card {
  background: rgba(34, 45, 53, .96);
  border-color: var(--admin-border);
  box-shadow: 0 18px 46px rgba(5, 12, 16, .24);
}

body.admin-page .admin-top h1,
body.admin-page .side-card h2,
body.admin-page .program-head h2,
body.admin-page .login-card h1,
body.admin-page #emptyAdmin h2 {
  color: var(--admin-text);
}

body.admin-page .hint,
body.admin-page .side-card .hint,
body.admin-page .login-card p,
body.admin-page .program-version-info,
body.admin-page .breaks-hint,
body.admin-page .free-slots-empty,
body.admin-page .free-slots-full span {
  color: var(--admin-muted);
}

body.admin-page label {
  color: #c4cfd2;
}

body.admin-page input[type="text"],
body.admin-page input[type="email"],
body.admin-page input[type="tel"],
body.admin-page input[type="password"],
body.admin-page input[type="time"],
body.admin-page input[type="date"] {
  background: #1b252c;
  color: var(--admin-text);
  border-color: #43535e;
}

body.admin-page input:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(131,169,199,.16);
}

body.admin-page .primary {
  background: linear-gradient(135deg, #8fc2a5, #a9d0b9);
  color: #14221b;
  box-shadow: 0 8px 20px rgba(72, 125, 94, .16);
}

body.admin-page .primary:hover {
  filter: brightness(1.035);
}

body.admin-page .secondary {
  background: #293740;
  color: #e7eeec;
  border-color: #4a5b66;
}

body.admin-page .secondary:hover {
  background: #30404a;
  border-color: #60737f;
}

body.admin-page .danger,
body.admin-page .appt-delete {
  background: rgba(196, 84, 84, .12);
  color: #f0a4a4;
  border-color: rgba(220, 133, 133, .52);
}

body.admin-page .notice.success {
  background: rgba(76, 145, 105, .16);
  border-color: rgba(118, 187, 146, .45);
  color: #b0dec2;
}

body.admin-page .notice.error {
  background: rgba(177, 74, 74, .15);
  border-color: rgba(220, 116, 116, .42);
  color: #f2aaaa;
}

body.admin-page .admin-tabs {
  background: rgba(28, 38, 45, .96);
  border-color: #3b4a54;
  box-shadow: 0 10px 28px rgba(5, 12, 16, .19);
}

body.admin-page .admin-tab {
  color: #aebbc0;
}

body.admin-page .admin-tab:hover {
  color: #d7e6df;
  border-color: rgba(131, 184, 155, .30);
  background: rgba(131, 184, 155, .06);
}

body.admin-page .admin-tab.active {
  color: #15231c;
  background: linear-gradient(135deg, #94c4aa, #afd1be);
  border-color: #a3cab4;
  box-shadow: 0 7px 18px rgba(96, 149, 119, .17);
}

body.admin-page .calendar-card {
  background: #222d35;
}

body.admin-page .calendar {
  background: var(--admin-calendar);
  color: #20292d;
  box-shadow: inset 0 0 0 1px rgba(45, 66, 72, .04);
}

body.admin-page .calendar .icon-btn {
  background: #fbfcfa;
  color: #28343a;
  border-color: #d7dfda;
}

body.admin-page .calendar .icon-btn:hover {
  border-color: #8ab59e;
  background: #f6faf7;
}

body.admin-page .calendar-title {
  color: #263238;
}

body.admin-page .weekdays div {
  color: #6d787a;
}

body.admin-page .day {
  background: #fbfcfa;
  border-color: #dfe5df;
  color: #20282c;
}

body.admin-page .day.working {
  border-color: #5ba477;
  box-shadow: inset 0 0 0 1px rgba(73, 143, 101, .08);
}

body.admin-page .day.off {
  border-color: #d57272;
  box-shadow: inset 0 0 0 1px rgba(192, 85, 85, .06);
}

body.admin-page .day.selected {
  outline-color: #7fa7c5;
  box-shadow: 0 5px 16px rgba(70, 104, 128, .14);
}

body.admin-page .day-state {
  color: #738084;
}

body.admin-page .legend {
  color: var(--admin-muted);
}

body.admin-page .dot.green { background: #5fa67a; }
body.admin-page .dot.red { background: #d56f6f; }

body.admin-page .toggle-row {
  border-bottom-color: var(--admin-border-soft);
}

body.admin-page .slider {
  background: #664246;
}

body.admin-page .switch input:checked + .slider {
  background: #5d9e79;
}

body.admin-page .stats .stat {
  background: linear-gradient(155deg, #26343d, #212c34);
}

body.admin-page .stat span {
  color: var(--admin-muted);
}

body.admin-page .stat strong,
body.admin-page .custom-result {
  color: var(--admin-accent-strong);
}

body.admin-page .appt {
  background: #1e2930;
  border-color: #3a4953;
}

body.admin-page .appt-time,
body.admin-page .appt-phone {
  color: #9bc7b0;
}

body.admin-page .appt-phone {
  border-bottom-color: rgba(155, 199, 176, .38);
}

body.admin-page .appt-meta,
body.admin-page .appt-status {
  color: #b1bdc1;
}

body.admin-page .breaks-section,
body.admin-page .program-alternation {
  background: #1d272e;
  border-color: #3b4b55;
}

body.admin-page .breaks-head strong,
body.admin-page .program-day-name strong {
  color: #a7cbb8;
}

body.admin-page .break-empty {
  border-color: #45555f;
  color: #8d9da4;
}

body.admin-page .break-row,
body.admin-page .program-day-row {
  background: #243039;
  border-color: #3a4a54;
}

body.admin-page .program-day-auto {
  border-color: rgba(131, 169, 199, .40);
}

body.admin-page .program-auto-label {
  color: #8ea0a7;
}

body.admin-page .program-check {
  color: #d5dfdd;
}

body.admin-page .program-check input[type="checkbox"] {
  accent-color: #74aa8d;
}

body.admin-page .program-help {
  background: #25313a;
  color: #acb8bd;
  border: 1px solid #354650;
}

body.admin-page .daily-appointments-count {
  background: rgba(126, 169, 199, .11);
  border-color: rgba(126, 169, 199, .38);
  color: #b7d0e2;
}

body.admin-page .free-slots-btn {
  border-color: rgba(131, 184, 155, .48);
  color: #b0d5c0;
}

body.admin-page .free-slots-panel {
  background: #1c262d;
  border-color: rgba(131, 184, 155, .28);
}

body.admin-page .free-slots-head {
  color: #cbd6d6;
}

body.admin-page .free-slot-time,
body.admin-page .free-slot-row {
  background: rgba(88, 155, 112, .12);
  border-color: rgba(99, 173, 128, .38);
  color: #eaf2ee;
}

body.admin-page .free-slot-row span {
  color: #a8d5b8;
}

body.admin-page .free-slots-full {
  background: rgba(176, 75, 75, .12);
  border-color: rgba(209, 111, 111, .36);
}

body.admin-page .free-slots-full strong {
  color: #efaaaa;
}

body.admin-page .login-card {
  background: rgba(35, 46, 54, .97);
}

body.admin-page .login-card a {
  color: #9fb2bb !important;
}

@media (max-width: 760px) {
  body.admin-page .admin-tabs {
    background: rgba(29, 39, 46, .98);
    box-shadow: 0 8px 22px rgba(5, 12, 16, .22);
  }
}
