/* „Următorul loc liber" (homepage + paginile SEO). Cardul e inserat de login/page-lib.php și actualizat de next-slot.js. */
.ns-slot:empty { display: none; }
.ns-card { margin: 22px 0; max-width: 520px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,122,26,.38);
  background: linear-gradient(135deg, rgba(255,122,26,.13), rgba(255,122,26,.03) 60%), rgba(255,255,255,.02); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-align: left; animation: nsIn .35s ease; }
@keyframes nsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ns-head { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb066; }
.ns-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fdc8a; flex-shrink: 0; animation: nsPulse 2s infinite; }
@keyframes nsPulse { 0% { box-shadow: 0 0 0 0 rgba(63,220,138,.5); } 70% { box-shadow: 0 0 0 9px rgba(63,220,138,0); } 100% { box-shadow: 0 0 0 0 rgba(63,220,138,0); } }
/* serviciul: o listă compactă („Vezi orele pentru: Tuns ▾”) */
.ns-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: .8rem; color: var(--muted, #d0c3b4); }
.ns-select { position: relative; display: inline-flex; }
.ns-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid #ffb066; border-width: 0 2px 2px 0;
  transform: rotate(45deg); pointer-events: none; }
.ns-pick select { appearance: none; -webkit-appearance: none; margin: 0; padding: 5px 32px 5px 12px; border-radius: 999px; border: 1px solid rgba(255,122,26,.55);
  background: rgba(255,122,26,.12); color: #ffe2c4; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; max-width: 100%; }
.ns-pick select:hover { border-color: #ff8a2a; }
.ns-pick select:focus-visible { outline: 2px solid #ffb066; outline-offset: 2px; }
.ns-pick option { background: #1a120c; color: #f7efe4; font-weight: 600; }
/* banda cu zile: clientul apasă ziua și vede orele ei; zilele cu 1–2 locuri au etichetă roșie */
.ns-hotline { margin-left: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,90,60,.45); background: rgba(255,90,60,.14); color: #ff9a85;
  font-size: .7rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.ns-days { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 0; padding: 2px 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ns-days::-webkit-scrollbar { display: none; }
/* linia de sub zile (în locul barei de derulare a browserului, pe care telefoanele n-o lasă stilizată):
   fină, pe toată lățimea; bucata portocalie arată cât ai derulat (next-slot.js) */
.ns-track { position: relative; height: 1px; background: rgba(255,255,255,.16); border-radius: 1px; }
.ns-track i { position: absolute; top: -0.5px; left: 0; width: 0; height: 2px; border-radius: 2px; background: rgba(255,122,26,.7); transition: width .15s; }
.ns-dayb { position: relative; flex-shrink: 0; display: grid; justify-items: center; gap: 0; min-width: 54px; padding: 5px 8px; border-radius: 12px;
  border: 1px solid var(--line, rgba(255,255,255,.13)); background: rgba(255,255,255,.02); color: var(--text, #f7efe4); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.ns-dayb small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #d0c3b4); opacity: .8; }
.ns-dayb strong { font-size: 1rem; font-weight: 900; line-height: 1.1; }
.ns-dayb em { font-style: normal; font-size: .62rem; font-weight: 700; color: var(--muted, #d0c3b4); white-space: nowrap; }
.ns-dayb:hover:not([disabled]) { border-color: rgba(255,122,26,.6); }
.ns-dayb[aria-pressed="true"] { border-color: #ff8a2a; background: rgba(255,122,26,.16); }
.ns-dayb[aria-pressed="true"] em { color: #ffd2a6; }
.ns-dayb[disabled] { opacity: .35; cursor: default; }
.ns-dayb:focus-visible { outline: 2px solid #ffb066; outline-offset: 2px; }
.ns-hot { order: 3; margin-top: 2px; padding: 1px 6px; border-radius: 999px; background: #ff5a3c; color: #fff;
  font-size: .56rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
/* ziua cu 1–3 locuri: eticheta roșie stă sub dată, în locul numărului de locuri */
.ns-dayb:has(.ns-hot) em { display: none; }
.ns-panel[hidden] { display: none; }
.ns-slots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ns-slots a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.13)); color: var(--text, #f7efe4); text-decoration: none;
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ns-slots a:hover { border-color: rgba(255,122,26,.6); }
.ns-slots a:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }
.ns-head { flex-wrap: wrap; }
/* orele ca butoane + foaia „Ai ales…”: Rezervă (MERO / site) sau Scrie-ne pe WhatsApp, cu mesajul gata scris */
.ns-time { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.13)); background: none; color: var(--text, #f7efe4);
  font: inherit; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s; }
.ns-time:hover { border-color: rgba(255,122,26,.6); }
.ns-time[aria-pressed="true"] { border-color: #ff8a2a; background: rgba(255,122,26,.18); color: #ffd2a6; }
.ns-time:focus-visible { outline: 2px solid #ffb066; outline-offset: 2px; }
.ns-sheet { margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,122,26,.35); background: rgba(0,0,0,.25); }
.ns-sheet-h { margin: 0 0 8px; font-size: .86rem; font-weight: 900; color: var(--text, #f7efe4); }
.ns-sheet-h b { color: #ff8a2a; }
.ns-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-acts .ns-btn { min-height: 40px; padding: 0 16px; font-size: .86rem; }
.ns-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #06210f;
  font-weight: 900; font-size: .86rem; text-decoration: none; }
.ns-wa svg { width: 16px; height: 16px; fill: currentColor; }
.ns-wa:hover { background: #2fe372; }
.ns-wa:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }
/* Telefon: mai puțin încărcat. Ziua și ora apar deja mare sus, deci fără „Ai ales…” și fără chenar; butoanele una lângă alta;
   fără numărul de locuri sub zile (eticheta roșie rămâne) și fără textul de jos (rămâne butonul spre calendar). */
@media (max-width: 560px) {
  .ns-pick { margin-top: 8px; }
  .ns-hotline { margin-left: 0; flex-basis: auto; }
  .ns-days { margin-top: 6px; }
  .ns-days { padding-top: 2px; }
  .ns-hot { padding: 1px 5px; font-size: .52rem; letter-spacing: .02em; }
  .ns-dayb { min-width: 46px; padding: 4px 6px; }
  .ns-dayb em { display: none; }
  .ns-when { font-size: 1.2rem; }
  .ns-meta { font-size: .76rem; }
  .ns-slots { gap: 4px; margin-top: 7px; }
  .ns-time { padding: 3px 8px; font-size: .76rem; }
  .ns-sheet { margin-top: 10px; padding: 0; border: 0; background: none; }
  .ns-sheet-h { display: none; }
  .ns-acts { flex-wrap: nowrap; gap: 6px; }
  .ns-acts > a { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 8px; gap: 6px; font-size: .8rem; white-space: nowrap; }
  .ns-acts > .ns-btn { flex-grow: 1.35; }
  .ns-wa-long { display: none; }
  .ns-other { margin-top: 8px; padding-top: 8px; }
  .ns-other p { font-size: .74rem; text-align: center; }
  .ns-cal { min-height: 36px; font-size: .8rem; }
}
/* mesajul de WhatsApp (doar pe telefon, sub butoane): același text pe care îl trimite butonul WhatsApp */
.ns-bubble { display: none; }
@media (max-width: 560px) {
  .ns-bubble { display: block; margin-top: 8px; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: #1f3a2b; color: #e6f5ea;
    font-size: .78rem; line-height: 1.4; text-decoration: none; }
  .ns-bubble small { display: block; margin-bottom: 2px; color: #9fc5ad; font-size: .64rem; font-weight: 700; }
  .ns-bubble:focus-visible { outline: 2px solid #25d366; outline-offset: 2px; }
}
.ns-loading .ns-main, .ns-loading .ns-more, .ns-loading .ns-days, .ns-loading .ns-slots, .ns-loading .ns-sheet { opacity: .45; transition: opacity .15s; }
.ns-when.ns-none { font-size: clamp(1.1rem, 3vw, 1.35rem); }
.ns-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.ns-when { display: block; font-size: clamp(1.25rem, 3.4vw, 1.6rem); font-weight: 800; line-height: 1.05; color: var(--text, #f7efe4); }
.ns-when b { color: #ff8a2a; }
.ns-meta { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted, #d0c3b4); }
.ns-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 900; font-size: .95rem; color: #160a02; text-decoration: none; background: linear-gradient(120deg, #ffc46b, #ff7a1a 55%);
  box-shadow: 0 10px 26px rgba(255,122,26,.35); transition: transform .1s, box-shadow .15s; }
.ns-btn:hover { box-shadow: 0 12px 30px rgba(255,122,26,.5); }
.ns-btn:active { transform: scale(.98); }
.ns-btn:focus-visible, .ns-more a:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }
.ns-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line, rgba(255,255,255,.13));
  font-size: .8rem; color: var(--muted, #d0c3b4); }
.ns-more-label + a { margin-left: 0; }
/* fiecare zi pe rândul ei, cu toate orele libere */
.ns-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.ns-more-label { min-width: 74px; }
.ns-more a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.13)); color: var(--text, #f7efe4); text-decoration: none;
  font-weight: 700; font-variant-numeric: tabular-nums; }
.ns-more a:hover { border-color: rgba(255,122,26,.6); }
/* jos: pentru altă zi, butonul spre calendar (MERO sau pagina de programare) */
.ns-other { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line, rgba(255,255,255,.13)); }
.ns-other p { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted, #d0c3b4); }
.ns-cal { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #ff8a2a; color: #ffd2a6; font-weight: 800; font-size: .84rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.ns-cal svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ns-cal:hover { background: rgba(255,122,26,.16); color: #fff; }
.ns-cal:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }
@media (max-width: 560px) { .ns-other { flex-direction: column; align-items: stretch; } }
@media (max-width: 560px) {
  .ns-main { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ns-card, .ns-dot { animation: none; } }
/* Paginile SEO: când cardul are o oră, el e butonul de programare; butoanele din hero revin doar dacă nu e card (Barberly indisponibil / nimic liber). */
.ns-slot:not(:empty) ~ .hero-actions { display: none; }
.hero-content .ns-card { margin-bottom: 0; }
/* Homepage: sus titlul + textul + butoanele, centrate; dedesubt cardul în stânga și poza salonului în dreapta (pe telefon: poza, cardul, textul).
   Fără card (nimic liber / programările oprite), hero-ul rămâne ca înainte. */
.hero-inner:has(> .ns-slot:not(:empty)) { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "text text" "slot photo"; row-gap: 44px; }
.hero-inner > .ns-slot { grid-area: slot; min-width: 0; }
.hero-inner > .ns-slot .ns-card { max-width: none; margin: 0; }
.hero-inner:has(> .ns-slot:not(:empty)) > .hero-photo { grid-area: photo; }
.hero-inner:has(> .ns-slot:not(:empty)) > .hero-content { grid-area: text; justify-self: center; max-width: 780px; text-align: center; }
.hero-inner:has(> .ns-slot:not(:empty)) > .hero-content .hero-lead { margin-left: auto; margin-right: auto; }
.hero-inner:has(> .ns-slot:not(:empty)) > .hero-content .hero-actions { justify-content: center; }
@media (max-width: 900px) {
  .hero-inner:has(> .ns-slot:not(:empty)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "slot" "text"; row-gap: 24px; }
}

/* ===== Telefon: varianta „primul loc liber” cu numărătoare inversă (ns-j); pe calculator rămâne cardul cu zile (ns-a) ===== */
.ns-j { display: none; }
@media (max-width: 560px) {
  .ns-j { display: grid; gap: 10px; margin-top: 10px; }
  .ns-j + .ns-a { display: none; }
  .nj-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
  /* fila de calendar: sus ziua (Azi / Mâine / Mie), data mare, luna */
  .nj-cal { width: 84px; border-radius: 16px; overflow: hidden; display: grid; justify-items: center; text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,122,26,.45); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  .nj-cal small { width: 100%; padding: 5px 0 4px; background: linear-gradient(120deg, #ffc46b, #ff7a1a 60%); color: #2a1405;
    font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
  .nj-cal b { padding-top: 4px; font-size: 2.3rem; font-weight: 900; line-height: 1; color: var(--text, #f7efe4); font-variant-numeric: tabular-nums; }
  .nj-cal span { padding: 1px 0 8px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #d0c3b4); }
  .nj-r { display: grid; gap: 6px; min-width: 0; }
  .nj-when { font-size: 1.45rem; font-weight: 900; line-height: 1.05; color: var(--text, #f7efe4); }
  .nj-when b { color: #ff8a2a; }
  .nj-r .ns-meta { margin: 0; }
  .nj-r .ns-btn { min-height: 42px; padding: 0 14px; font-size: .88rem; }
  .nj-left { position: relative; display: grid; gap: 5px; font-size: .8rem; font-weight: 800; color: var(--text, #f7efe4); }
  .nj-left::after { content: ""; height: 7px; border-radius: 6px; background: rgba(255,255,255,.08); }
  .nj-left i { position: absolute; left: 0; bottom: 0; height: 7px; border-radius: 6px; background: linear-gradient(90deg, #ff5a3c, #ff8a2a); z-index: 1; }
  .ns-j .ns-slots { margin-top: 0; }
  .nj-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line, rgba(255,255,255,.13)); }
  .nj-links a { font-size: .8rem; font-weight: 800; color: #ffb066; text-decoration: none; }
  /* WhatsApp: buton fin, cu contur verde subțire */
  .nj-links .nj-wa { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid rgba(63,220,138,.45);
    background: rgba(37,211,102,.08); color: #7ef0ad; font-size: .76rem; font-weight: 800; white-space: nowrap; }
  .nj-links .nj-wa svg { width: 14px; height: 14px; fill: currentColor; }
  .nj-links .nj-wa:active { background: rgba(37,211,102,.18); }
  .nj-links a:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }
}

/* Plăcile cu servicii („Alege serviciul”): emoji, nume, durată și preț; cea apăsată e conturată portocaliu */
.ns-svc { margin-top: 10px; display: grid; gap: 7px; }
.ns-svc-h { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #d0c3b4); }
.ns-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ns-tile { display: grid; align-content: start; gap: 1px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
  color: var(--text, #f7efe4); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ns-tile:hover { border-color: rgba(255,122,26,.6); }
.ns-tile-e { font-size: 1rem; line-height: 1.2; }
.ns-tile b { font-size: .76rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.ns-tile small { font-size: .7rem; color: var(--muted, #d0c3b4); font-variant-numeric: tabular-nums; }
.ns-tile[aria-pressed="true"] { border-color: #ff8a2a; background: linear-gradient(135deg, rgba(255,122,26,.24), rgba(255,122,26,.06)); }
.ns-tile[aria-pressed="true"] small { color: #ffd2a6; }
.ns-tile:focus-visible { outline: 2px solid #ffb066; outline-offset: 2px; }
.ns-loading .ns-tiles { opacity: .7; }
@media (max-width: 560px) {
  .ns-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ns-tile { padding: 7px 9px; }
}
