:root { --ink:#292222; --muted:#756969; --cream:#fbf6ef; --white:#fffdfa; --rose:#a4515f; --rose-dark:#753642; --blush:#f1dfda; --line:rgba(72,47,49,.14); --green:#587052; --amber:#a66c22; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--cream); font-family:"DM Sans",sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.hidden { display:none !important; }
.eyebrow { margin:0 0 12px; color:var(--rose); font-size:11px; font-weight:700; letter-spacing:.17em; text-transform:uppercase; }
h1,h2 { margin:0; font-family:"Playfair Display",serif; line-height:1; }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:30px; background:radial-gradient(circle at 80% 15%,#e5bbb3,transparent 28rem),linear-gradient(145deg,#fbf6ef,#f1dfda); }
.auth-card { width:min(460px,100%); padding:46px; border-radius:28px; background:rgba(255,253,250,.94); box-shadow:0 30px 90px rgba(75,45,49,.16); }
.auth-brand,.admin-brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.auth-brand { margin-bottom:45px; }
.auth-brand span,.admin-brand span { width:44px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; color:white; background:var(--rose-dark); font-family:"Playfair Display",serif; font-size:23px; }
.auth-card h1 { font-size:44px; }
.auth-copy { margin:18px 0 28px; color:var(--muted); line-height:1.6; }
.auth-card form { display:grid; gap:10px; }
.auth-card label,.appointment-dialog label { font-size:13px; font-weight:700; }
.auth-card input,.appointment-dialog select,.appointment-dialog textarea { width:100%; margin-top:7px; padding:14px 15px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); outline:none; }
.auth-card input:focus,.appointment-dialog select:focus,.appointment-dialog textarea:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(164,81,95,.12); }
.auth-card button,.save-button { border:0; border-radius:999px; padding:14px 20px; background:var(--rose-dark); color:white; font-weight:700; }
.auth-card > a { display:block; margin-top:22px; color:var(--rose-dark); font-size:13px; text-align:center; }
.form-message { min-height:20px; margin:4px 0; color:#a33142; font-size:13px; text-align:center; }
.form-message.success { color:var(--green); }
.admin-app { min-height:100vh; display:grid; grid-template-columns:240px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; padding:34px 26px; display:flex; flex-direction:column; background:#36282b; color:white; }
.admin-brand { margin-bottom:55px; }
.admin-brand span { background:#9b4b59; }
.admin-brand strong { line-height:1.25; }
.sidebar nav { display:grid; gap:8px; }
.sidebar nav a { padding:12px 14px; border-radius:10px; color:#d9caca; text-decoration:none; font-size:14px; }
.sidebar nav a:hover,.sidebar nav a.active { color:white; background:rgba(255,255,255,.09); }
.logout { margin-top:auto; border:1px solid rgba(255,255,255,.18); border-radius:10px; padding:11px; color:#eadada; background:transparent; }
.dashboard { width:min(1240px,calc(100% - 70px)); margin:0 auto; padding:52px 0 80px; }
.dashboard-header { display:flex; justify-content:space-between; align-items:end; gap:30px; }
.dashboard-header h1 { font-size:54px; }
.date-controls { display:flex; align-items:center; gap:8px; padding:8px; border:1px solid var(--line); border-radius:14px; background:white; }
.date-controls input { border:0; padding:8px; color:var(--ink); background:transparent; }
.icon-button,.today-button { border:0; border-radius:9px; padding:9px 12px; background:#f5ece8; color:var(--rose-dark); font-weight:700; }
.today-button { background:var(--rose-dark); color:white; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:38px 0; }
.metrics article { padding:24px; border:1px solid var(--line); border-radius:18px; background:white; }
.metrics span { display:block; color:var(--muted); font-size:13px; }
.metrics strong { display:block; margin-top:8px; font-family:"Playfair Display",serif; color:var(--rose-dark); font-size:38px; }
.occupied-section { margin-bottom:28px; padding:30px 34px; border:1px solid var(--line); border-radius:24px; background:#36282b; color:white; }
.occupied-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:20px; }
.occupied-heading .eyebrow { color:#e7b8b1; }.occupied-heading h2 { font-size:34px; }
.occupied-count { padding:8px 12px; border-radius:999px; color:#e8d9d6; background:rgba(255,255,255,.08); font-size:11px; font-weight:700; }
.occupied-list { display:grid; gap:9px; max-height:420px; overflow:auto; padding-right:4px; }
.occupied-row { width:100%; display:grid; grid-template-columns:110px minmax(170px,1fr) auto; gap:18px; align-items:center; padding:15px 17px; border:1px solid rgba(255,255,255,.1); border-radius:13px; color:white; background:rgba(255,255,255,.055); text-align:left; }
.occupied-row:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); }
.occupied-when { display:grid; gap:2px; }.occupied-when strong { font-size:14px; }.occupied-when span { color:#cfbebb; font-size:11px; }
.occupied-client strong { display:block; }.occupied-client span { color:#cfbebb; font-size:11px; }
.occupied-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }.occupied-tags span { padding:6px 8px; border-radius:999px; color:#e8d9d6; background:rgba(255,255,255,.08); font-size:10px; font-weight:700; }
.occupied-section .booked-empty { color:#cfbebb; border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.schedule-section { padding:34px; border:1px solid var(--line); border-radius:24px; background:white; }
.section-heading { display:flex; justify-content:space-between; gap:20px; align-items:end; }
.section-heading h2,.guide h2 { font-size:36px; }
.legend { display:flex; gap:16px; color:var(--muted); font-size:12px; }
.legend span { display:flex; align-items:center; gap:6px; }
.legend i { width:9px; height:9px; border-radius:50%; background:#ddd; }
.legend .free { background:#90a889; }.legend .busy { background:var(--rose); }.legend .lunch { background:#d7a460; }
.schedule-message { min-height:22px; margin:17px 0 4px; color:var(--muted); font-size:13px; }
.booked-overview { display:grid; gap:10px; margin:12px 0 30px; }
.booked-overview h3,.slots-heading h3 { margin:0; font-size:14px; }
.booking-row { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; padding:17px 19px; border:1px solid rgba(117,54,66,.18); border-radius:14px; color:var(--ink); background:linear-gradient(100deg,#fff,#fbf3f0); text-align:left; }
.booking-row:hover { border-color:var(--rose); transform:translateY(-1px); }
.booking-sentence { font-size:15px; }
.booking-sentence strong { color:var(--rose-dark); }
.booking-details { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.booking-details span { padding:6px 9px; border-radius:999px; color:var(--muted); background:#f2e8e4; font-size:10px; font-weight:700; }
.booked-empty { margin:0; padding:20px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); background:#fcfaf7; text-align:center; font-size:13px; }
.slots-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 13px; padding-top:25px; border-top:1px solid var(--line); }
.slots-heading span { color:var(--muted); font-size:12px; }
.schedule-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.slot-card { min-height:104px; padding:15px; border:1px solid var(--line); border-radius:14px; text-align:left; background:#fbf8f4; }
.slot-card.available { color:var(--green); border-style:dashed; background:#f6faf4; }
.slot-card.booked { color:var(--ink); background:#fff; border-color:rgba(117,54,66,.24); box-shadow:0 8px 22px rgba(73,46,48,.06); }
.slot-card.booked:hover { transform:translateY(-2px); border-color:var(--rose); }
.slot-time { display:block; margin-bottom:9px; font-size:13px; font-weight:700; }
.slot-card strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slot-service { display:block; margin-top:4px; color:var(--muted); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slot-meta { display:flex; justify-content:space-between; gap:8px; margin-top:7px; color:var(--muted); font-size:11px; }
.deposit-pill { color:var(--amber); font-weight:700; }
.deposit-pill.paid { color:var(--green); }
.lunch-row { grid-column:1/-1; padding:15px; border-radius:13px; color:#84561f; background:#fff4df; text-align:center; font-size:13px; font-weight:700; }
.guide { margin-top:28px; padding:34px; border-radius:24px; background:#36282b; color:white; }
.guide > p:not(.eyebrow) { max-width:760px; color:#dacdca; line-height:1.7; }
.guide-items { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:24px; }
.guide-items span { padding:18px; border-radius:14px; background:rgba(255,255,255,.07); color:#dacdca; font-size:13px; line-height:1.6; }
.guide-items strong { display:block; color:white; }
.settings-gear { position:fixed; z-index:20; right:28px; bottom:28px; width:58px; height:58px; display:grid; place-items:center; border:0; border-radius:50%; color:white; background:var(--rose-dark); box-shadow:0 14px 35px rgba(72,40,45,.28); font-size:25px; transition:transform .2s,background .2s; }
.settings-gear:hover { transform:translateY(-2px) rotate(15deg); background:#622a35; }
.settings-dialog { width:min(820px,calc(100% - 28px)); max-height:calc(100vh - 36px); overflow:auto; padding:38px; border:0; border-radius:24px; color:var(--ink); background:white; box-shadow:0 35px 100px rgba(38,24,25,.35); }
.settings-dialog::backdrop { background:rgba(40,29,30,.58); backdrop-filter:blur(5px); }
.close-settings { position:absolute; right:22px; top:20px; width:38px; height:38px; border:0; border-radius:50%; color:var(--ink); background:#f3ebe7; font-size:24px; }
.settings-heading { display:grid; grid-template-columns:1fr .75fr; gap:40px; align-items:end; margin-bottom:28px; }
.settings-heading h2 { font-size:40px; }
.settings-heading > p { margin:0; color:var(--muted); line-height:1.65; }
.settings-form { display:grid; gap:12px; }
.setting-card { display:grid; grid-template-columns:42px minmax(200px,1fr) minmax(280px,.85fr); gap:20px; align-items:center; padding:22px; border:1px solid var(--line); border-radius:16px; background:#fcfaf7; }
.setting-number { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:var(--rose-dark); background:var(--blush); font-size:11px; font-weight:700; }
.setting-card h3 { margin:0 0 5px; font-size:16px; }.setting-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.setting-card label { color:var(--muted); font-size:12px; font-weight:700; }
.setting-card input { width:100%; margin-top:7px; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.setting-card input:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(164,81,95,.1); }
.time-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.money-input { position:relative; }.money-input span { position:absolute; left:13px; top:20px; color:var(--muted); }.money-input input { padding-left:42px; }
.settings-message { min-height:20px; margin:4px 0 0; color:var(--rose-dark); font-size:13px; text-align:right; }.settings-message.success { color:var(--green); }
.settings-actions { display:flex; justify-content:flex-end; gap:10px; }
.reset-settings { border:1px solid var(--line); border-radius:999px; padding:13px 18px; color:var(--rose-dark); background:white; font-weight:700; }
.appointment-dialog { width:min(620px,calc(100% - 24px)); max-height:calc(100vh - 30px); overflow:auto; padding:34px; border:0; border-radius:24px; color:var(--ink); background:var(--white); box-shadow:0 35px 100px rgba(38,24,25,.35); }
.appointment-dialog::backdrop { background:rgba(40,29,30,.58); backdrop-filter:blur(5px); }
.close-dialog { position:absolute; right:24px; top:22px; width:38px; aspect-ratio:1; border:0; border-radius:50%; font-size:24px; background:#f3ebe7; }
.appointment-title { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:12px 0 8px; }
.appointment-title h2 { font-size:38px; }
.appointment-title p { color:var(--muted); }
.client-badge { padding:8px 11px; border-radius:999px; color:var(--rose-dark); background:var(--blush); font-size:11px; font-weight:700; }
.phone-link { display:inline-block; margin-bottom:24px; color:var(--rose-dark); }
#appointment-form { display:grid; gap:17px; }
.deposit-box { display:grid; gap:14px; margin:0; padding:18px; border:1px solid var(--line); border-radius:16px; background:#f9f2ef; }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.switch-row span { display:grid; gap:3px; }.switch-row small { color:var(--muted); font-weight:400; }
.switch-row input { width:20px; height:20px; accent-color:var(--rose-dark); }
.whatsapp-button { padding:12px 16px; border-radius:10px; color:white; background:#317b50; text-decoration:none; text-align:center; font-size:13px; font-weight:700; }
.appointment-dialog textarea { resize:vertical; }
.dialog-actions { display:flex; justify-content:space-between; gap:12px; }
.danger-button { border:1px solid #d7a3aa; border-radius:999px; padding:13px 18px; color:#9a3041; background:white; font-weight:700; }
@media (max-width:1000px){.admin-app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:18px 24px;flex-direction:row;align-items:center;gap:30px}.admin-brand{margin:0}.sidebar nav{display:flex;margin-left:auto}.logout{margin:0}.schedule-grid{grid-template-columns:repeat(3,1fr)}.setting-card{grid-template-columns:42px 1fr}.setting-card>label,.setting-card>.time-pair{grid-column:2}}
@media (max-width:720px){.dashboard{width:min(100% - 28px,1240px);padding-top:30px}.dashboard-header{align-items:start;flex-direction:column}.date-controls{width:100%;flex-wrap:wrap}.date-controls input{flex:1}.metrics{grid-template-columns:repeat(2,1fr)}.occupied-section{padding:25px 18px}.occupied-heading{align-items:start;flex-direction:column}.occupied-row{grid-template-columns:90px 1fr}.occupied-tags{grid-column:1/-1;justify-content:flex-start}.schedule-section{padding:24px 18px}.section-heading{align-items:start;flex-direction:column}.booking-row{grid-template-columns:1fr}.booking-details{justify-content:flex-start}.slots-heading{align-items:start;flex-direction:column;gap:5px}.schedule-grid{grid-template-columns:repeat(2,1fr)}.guide-items{grid-template-columns:1fr}.sidebar nav{display:none}.logout{margin-left:auto}.catalog-grid{grid-template-columns:repeat(2,1fr)}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}}
@media (max-width:430px){.auth-shell{padding:14px}.auth-card{padding:32px 22px}.auth-card h1{font-size:38px}.dashboard-header h1{font-size:44px}.metrics article{padding:18px}.schedule-grid{grid-template-columns:1fr}.appointment-dialog{padding:28px 20px}.appointment-title{align-items:start;flex-direction:column}.sidebar strong{display:none}.settings-dialog{padding:32px 18px}.settings-heading{grid-template-columns:1fr;gap:14px}.setting-card{grid-template-columns:1fr}.setting-card>label,.setting-card>.time-pair{grid-column:1}.settings-actions{align-items:stretch;flex-direction:column-reverse}.settings-actions button{width:100%}.settings-gear{right:18px;bottom:18px;width:52px;height:52px}}

.settings-tabs { display:flex; gap:8px; margin:0 0 22px; padding:5px; border-radius:14px; background:#f5eeea; }
.settings-tabs button { flex:1; padding:11px 15px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-weight:700; }
.settings-tabs button.active { color:white; background:var(--rose-dark); box-shadow:0 7px 18px rgba(117,54,66,.2); }
.settings-tabs span { display:inline-grid; min-width:22px; height:22px; margin-left:5px; place-items:center; border-radius:999px; color:inherit; background:rgba(255,255,255,.16); font-size:10px; }
.clients-panel { min-height:280px; }
.clients-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.clients-heading h3 { margin:0; font-family:"Playfair Display",serif; font-size:30px; }
.clients-list { display:grid; gap:9px; max-height:480px; overflow:auto; padding-right:4px; }
.client-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; padding:17px 18px; border:1px solid var(--line); border-radius:14px; background:#fcfaf7; }
.client-identity { display:grid; gap:5px; }
.client-identity strong { font-size:15px; }
.client-identity a { width:max-content; color:var(--rose-dark); font-size:12px; }
.client-last-access { display:grid; gap:4px; text-align:right; }
.client-last-access span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.client-last-access strong { font-size:12px; }
.clients-empty { margin:0; padding:36px 20px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); text-align:center; }
.services-settings { display:grid; gap:18px; }
.services-settings .clients-heading > p { max-width:360px; margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.service-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.service-settings-grid > label { padding:17px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:#fcfaf7; font-size:12px; font-weight:700; }
.service-settings-grid input { width:100%; margin-top:7px; padding:12px 13px 12px 42px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.service-detail { display:grid; gap:4px; margin:0 0 22px; padding:16px 18px; border-radius:14px; background:#f7efec; }
.service-detail span { color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.service-detail strong { color:var(--rose-dark); }
.service-detail small { color:var(--muted); }
@media (max-width:600px){.settings-tabs{display:grid}.clients-heading{align-items:start;flex-direction:column}.client-row{grid-template-columns:1fr}.client-last-access{text-align:left}}
@media (max-width:600px){.service-settings-grid{grid-template-columns:1fr}}
