/* =========================================================
   Inusheva — kvartir.
========================================================= */

:root{
  --white:#ffffff;
  --bg:#F7F7F6;
  --bg-alt:#F0F0EF;
  --surface:#ffffff;
  --line:#E6E5E2;
  --line-soft:#EFEEEC;

  --graphite:#2B2C2E;
  --dark:#141416;
  --text:#1B1C1E;
  --text-secondary:#6E6F72;
  --text-tertiary:#A4A4A6;

  --green:#6F9C82;
  --green-bg:#EAF2ED;
  --red:#C0847C;
  --red-bg:#F6EBE8;
  --amber:#B8935A;
  --amber-bg:#F5EEE2;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --radius-xl:34px;

  --shadow-xs:0 1px 3px rgba(20,20,22,.05);
  --shadow-sm:0 4px 16px rgba(20,20,22,.06);
  --shadow-md:0 14px 40px rgba(20,20,22,.10);
  --shadow-lg:0 30px 80px rgba(20,20,22,.16);

  --ease:cubic-bezier(.22,1,.36,1);
  --ease-soft:cubic-bezier(.4,0,.2,1);

  --font-display:'Manrope',system-ui,sans-serif;
  --font-body:'Inter',system-ui,sans-serif;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--font-display); margin:0; letter-spacing:-0.02em;}
p{margin:0;}
button{font-family:inherit; cursor:pointer;}
input,textarea,select{font-family:inherit;}
a{color:inherit; text-decoration:none;}
::selection{background:var(--graphite); color:var(--white);}

.hidden{display:none !important;}

/* ============ scroll reveal ============ */
.reveal{opacity:0; transform:translateY(18px); filter:blur(6px);
  animation:reveal-in .9s var(--ease) forwards;}
@keyframes reveal-in{to{opacity:1; transform:translateY(0); filter:blur(0);}}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(247,247,246,.72);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid var(--line-soft);
}
.header-inner{
  max-width:1440px; margin:0 auto;
  display:flex; align-items:center; gap:32px;
  padding:18px 40px;
}
.logo{display:flex; align-items:center; gap:10px;}
.logo-mark{
  width:22px; height:22px; border-radius:7px;
  background:linear-gradient(135deg,var(--graphite),var(--dark));
  box-shadow:0 3px 10px rgba(20,20,22,.25);
  transition:transform .5s var(--ease);
}
.logo:hover .logo-mark{transform:rotate(-14deg) scale(1.08);}
.logo-text{font-family:var(--font-display); font-weight:800; font-size:19px; letter-spacing:.06em;}

.main-nav{display:flex; gap:4px; margin-left:8px;}
.nav-tab{
  border:none; background:transparent; color:var(--text-secondary);
  font-size:14.5px; font-weight:600; padding:9px 16px; border-radius:999px;
  transition:color .35s var(--ease), background .35s var(--ease);
}
.nav-tab:hover{color:var(--text);}
.nav-tab.is-active{background:var(--graphite); color:var(--white);}

.admin-entry-link{
  border:none; background:transparent; color:var(--text-tertiary);
  font-size:9.5px; letter-spacing:.03em; opacity:.38; padding:4px 6px;
  transition:opacity .3s var(--ease), color .3s var(--ease);
  order:-1; white-space:nowrap;
}
.admin-entry-link:hover{opacity:.9; color:var(--text-secondary);}
.admin-entry-link.hidden{display:none !important;}

.header-right{margin-left:auto; display:flex; align-items:center;}
.admin-toggle{
  display:flex; align-items:center; gap:9px;
  border:1px solid var(--line); background:var(--white);
  padding:7px 14px 7px 10px; border-radius:999px;
  font-size:13px; font-weight:600; color:var(--text-secondary);
  transition:all .35s var(--ease);
}
.admin-toggle:hover{border-color:var(--graphite); color:var(--text);}
.admin-toggle-dot{
  width:9px; height:9px; border-radius:50%; background:var(--text-tertiary);
  transition:background .35s var(--ease), box-shadow .35s var(--ease);
}
.admin-toggle[aria-pressed="true"]{border-color:var(--graphite); background:var(--graphite); color:var(--white);}
.admin-toggle[aria-pressed="true"] .admin-toggle-dot{background:var(--green); box-shadow:0 0 0 4px rgba(111,156,130,.25);}

/* =========================================================
   VIEWS / page transitions
========================================================= */
.view{
  animation:view-in .6s var(--ease-soft) both;
}
@keyframes view-in{
  from{opacity:0; transform:translateY(14px) scale(.995); filter:blur(4px);}
  to{opacity:1; transform:translateY(0) scale(1); filter:blur(0);}
}

/* =========================================================
   HOME
========================================================= */
.hero{max-width:900px; margin:0 auto; padding:64px 40px 40px; text-align:center;}
.eyebrow{
  display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-tertiary); margin-bottom:16px;
}
.hero-title{font-size:clamp(32px,5vw,54px); line-height:1.08; font-weight:800; color:var(--dark);}
.hero-sub{display:block; margin-top:18px; font-size:16.5px; color:var(--text-secondary); line-height:1.6;}

.grid-wrap{max-width:1440px; margin:0 auto; padding:20px 40px 120px;}
.grid-wrap-head{display:flex; align-items:center; justify-content:flex-end; margin-bottom:18px;}
.grid-phone{
  font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:.01em;
  color:var(--text); padding:9px 18px; border:1px solid var(--line); border-radius:999px;
  background:var(--white); box-shadow:var(--shadow-xs); transition:all .35s var(--ease);
}
.grid-phone:hover{border-color:var(--graphite); box-shadow:var(--shadow-sm); transform:translateY(-2px);}
.apt-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  perspective:1400px;
}
.apt-card{
  position:relative; border-radius:var(--radius-lg); overflow:hidden;
  aspect-ratio:4/5; cursor:pointer; background:var(--graphite);
  box-shadow:var(--shadow-sm);
  opacity:0; transform:translateY(28px) scale(.97);
  transition:box-shadow .5s var(--ease), transform .05s linear;
  will-change:transform;
}
.apt-card.is-visible{
  animation:card-in .85s var(--ease) forwards;
}
@keyframes card-in{to{opacity:1; transform:translateY(0) scale(1);}}
.apt-card:hover{box-shadow:var(--shadow-lg);}

.apt-card-art{position:absolute; inset:0; width:100%; height:100%; display:block;
  transition:transform .8s var(--ease), filter .8s var(--ease);}
.apt-card:hover .apt-card-art{transform:scale(1.07);}

.apt-card-photo-stack{position:absolute; inset:0;}
.apt-card-photo{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 1.1s var(--ease);
}
.apt-card-photo.is-active{opacity:1;}

.gallery-slide-photo{width:100%; height:100%; object-fit:cover; display:block;}
.gallery-empty-state{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--text-tertiary); font-size:13.5px; background:var(--bg-alt);
}

.apt-card-shade{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(15,15,16,.78) 0%, rgba(15,15,16,.28) 32%, rgba(15,15,16,0) 62%);
  transition:opacity .5s var(--ease);
}

.apt-card-body{
  position:absolute; left:0; right:0; bottom:0; padding:24px;
  color:var(--white); transform:translateY(6px);
  transition:transform .5s var(--ease);
}
.apt-card:hover .apt-card-body{transform:translateY(0);}
.apt-card-index{font-size:12px; font-weight:700; letter-spacing:.12em; opacity:.72; margin-bottom:6px; display:block;}
.apt-card-address{font-family:var(--font-display); font-size:19px; font-weight:700; line-height:1.28;}
.apt-card-price{margin-top:6px; font-size:13.5px; opacity:.86; font-weight:500;}

.apt-card-glass{
  position:absolute; top:16px; right:16px;
  padding:7px 12px; border-radius:999px;
  background:rgba(255,255,255,.16);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.22);
  color:var(--white); font-size:11.5px; font-weight:600;
  opacity:0; transform:translateY(-6px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.apt-card:hover .apt-card-glass{opacity:1; transform:translateY(0);}

.apt-card-edit{
  position:absolute; top:16px; left:16px; z-index:2;
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.92); border:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--graphite); box-shadow:var(--shadow-sm);
  opacity:0; transform:scale(.8);
  transition:all .35s var(--ease);
}
.apt-card:hover .apt-card-edit{opacity:1; transform:scale(1);}
.apt-card-edit svg{width:16px; height:16px;}

@media (max-width:1100px){ .apt-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:680px){ .apt-grid{grid-template-columns:1fr; gap:18px;} .hero{padding:44px 20px 28px;} .grid-wrap{padding:12px 20px 80px;} }

/* =========================================================
   APARTMENT PAGE
========================================================= */
.apt-page-inner{max-width:1180px; margin:0 auto; padding:28px 40px 120px; position:relative;}

.back-btn{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line); background:var(--white);
  padding:10px 18px 10px 14px; border-radius:999px;
  font-size:14px; font-weight:600; color:var(--text);
  box-shadow:var(--shadow-xs);
  transition:all .35s var(--ease); margin-bottom:22px;
}
.back-btn:hover{transform:translateX(-4px); box-shadow:var(--shadow-sm); border-color:var(--graphite);}
.back-arrow{width:16px; height:16px; transition:transform .35s var(--ease);}
.back-btn:hover .back-arrow{transform:translateX(-3px);}

.edit-toggle-btn{
  position:absolute; top:28px; right:40px; z-index:5;
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--graphite); background:var(--graphite); color:var(--white);
  padding:10px 18px 10px 14px; border-radius:999px;
  font-size:13.5px; font-weight:600;
  transition:all .35s var(--ease);
}
.edit-toggle-btn:hover{transform:translateY(-2px); box-shadow:var(--shadow-md);}
.edit-toggle-btn svg{width:15px; height:15px;}

/* ---------- Gallery (depth stack) ---------- */
.gallery{position:relative; padding:0 0 8px;}
.gallery-stage{
  position:relative; width:100%; height:min(62vh,560px);
  border-radius:var(--radius-xl); overflow:visible;
  perspective:1400px;
}
.gallery-slide{
  position:absolute; inset:0; border-radius:var(--radius-xl); overflow:hidden;
  box-shadow:var(--shadow-lg);
  transition:transform .85s var(--ease), opacity .85s var(--ease), filter .85s var(--ease);
  will-change:transform, opacity, filter;
}
.gallery-slide-art{width:100%; height:100%; display:block;}
.gallery-slide-num{
  position:absolute; bottom:22px; left:26px; color:rgba(255,255,255,.92);
  font-family:var(--font-display); font-weight:800; font-size:14px; letter-spacing:.08em;
}
.gallery-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:48px; height:48px; border-radius:50%; border:none;
  background:rgba(255,255,255,.85); backdrop-filter:blur(10px);
  box-shadow:var(--shadow-sm); color:var(--graphite);
  display:flex; align-items:center; justify-content:center;
  transition:all .3s var(--ease);
}
.gallery-nav svg{width:18px; height:18px;}
.gallery-nav:hover{background:var(--white); transform:translateY(-50%) scale(1.08); box-shadow:var(--shadow-md);}
.gallery-nav--prev{left:-4px;}
.gallery-nav--next{right:-4px;}
@media (max-width:900px){.gallery-nav--prev{left:8px;} .gallery-nav--next{right:8px;}}

.gallery-dots{position:absolute; bottom:-30px; left:0; right:0; display:flex; justify-content:center; gap:8px;}
.gallery-dot{width:7px; height:7px; border-radius:50%; background:var(--line); border:none; padding:0; transition:all .4s var(--ease);}
.gallery-dot.is-active{background:var(--graphite); width:22px; border-radius:4px;}

/* ---------- Info blocks ---------- */
.apt-content{display:grid; grid-template-columns:1fr; gap:0; margin-top:56px;}
.apt-content.has-edit{grid-template-columns:1fr 360px; gap:36px; align-items:start;}
.apt-main{display:grid; grid-template-columns:1fr 1fr; gap:18px;}

.info-block{
  display:flex; gap:16px; background:var(--white); border:1px solid var(--line-soft);
  border-radius:var(--radius-md); padding:22px; box-shadow:var(--shadow-xs);
  transition:box-shadow .4s var(--ease), transform .4s var(--ease);
}
.info-block:hover{box-shadow:var(--shadow-sm); transform:translateY(-2px);}
.info-block--wide{grid-column:1/-1;}
.info-icon{
  flex:none; width:40px; height:40px; border-radius:11px; background:var(--bg-alt);
  display:flex; align-items:center; justify-content:center; color:var(--graphite);
}
.info-icon svg{width:19px; height:19px;}
.info-label{font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-tertiary); margin-bottom:6px;}
.info-value{font-size:17px; font-weight:600; color:var(--text); line-height:1.4;}
.info-value--desc{font-size:15px; font-weight:400; color:var(--text-secondary); line-height:1.7;}

.book-cta{
  grid-column:1/-1; margin-top:6px;
  border:none; background:var(--dark); color:var(--white);
  padding:19px; border-radius:var(--radius-md); font-size:16px; font-weight:700;
  letter-spacing:.01em; box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.book-cta:hover{transform:translateY(-3px); box-shadow:var(--shadow-md); background:var(--graphite);}
.book-cta:active{transform:translateY(0) scale(.99);}

.map-block{grid-column:1/-1; margin-top:8px;}
.map-label{font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-tertiary); margin-bottom:12px;}
.map-frame{
  width:100%; height:360px; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--line-soft); box-shadow:var(--shadow-sm); background:var(--bg-alt);
}
.map-frame iframe{border:0; display:block;}

@media (max-width:760px){
  .apt-main{grid-template-columns:1fr;}
  .apt-content.has-edit{grid-template-columns:1fr;}
  .apt-page-inner{padding:20px 18px 90px;}
  .edit-toggle-btn{position:static; margin-bottom:16px;}
}

/* ---------- Edit panel ---------- */
.edit-panel{
  background:var(--white); border:1px solid var(--line-soft); border-radius:var(--radius-lg);
  padding:24px; box-shadow:var(--shadow-md); position:sticky; top:96px;
  animation:reveal-in .5s var(--ease) both;
}
.edit-panel-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;}
.edit-panel-head h3{font-size:17px; font-weight:700;}
.edit-close{border:none; background:var(--bg-alt); width:30px; height:30px; border-radius:50%; font-size:18px; line-height:1; color:var(--text-secondary); transition:all .3s var(--ease);}
.edit-close:hover{background:var(--graphite); color:var(--white); transform:rotate(90deg);}

.edit-form{display:flex; flex-direction:column; gap:14px;}
.edit-field{display:flex; flex-direction:column; gap:6px; font-size:12.5px; font-weight:600; color:var(--text-secondary);}
.edit-field input, .edit-field textarea{
  border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:14px; color:var(--text);
  background:var(--bg); transition:border-color .3s var(--ease), background .3s var(--ease);
  font-family:inherit; resize:vertical;
}
.edit-field input:focus, .edit-field textarea:focus{outline:none; border-color:var(--graphite); background:var(--white);}
.edit-row{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.edit-secondary-btn{
  border:1px dashed var(--line); background:var(--bg); padding:10px; border-radius:10px;
  font-size:13px; font-weight:600; color:var(--text-secondary); transition:all .3s var(--ease);
}
.edit-secondary-btn:hover{border-color:var(--graphite); color:var(--text); background:var(--white);}
.edit-photos-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:4px;}
.edit-photo-thumb{position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; background:var(--bg-alt); box-shadow:var(--shadow-xs);}
.edit-photo-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.edit-photo-remove{
  position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%;
  border:none; background:rgba(20,20,22,.68); color:var(--white); font-size:13px; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:all .25s var(--ease);
}
.edit-photo-remove:hover{background:var(--red);}
.edit-photos-empty{grid-column:1/-1; font-size:12.5px; color:var(--text-tertiary); padding:10px 0;}
.edit-photos-count{font-size:11.5px; color:var(--text-tertiary); margin:-2px 0 2px;}

.edit-dates{display:grid; grid-template-columns:repeat(7,1fr); gap:5px; max-height:180px; overflow-y:auto; padding:4px;}
.edit-date-cell{
  aspect-ratio:1; border-radius:7px; border:none; font-size:11.5px; font-weight:600;
  background:var(--green-bg); color:var(--green); transition:all .25s var(--ease);
}
.edit-date-cell.is-booked{background:var(--red-bg); color:var(--red);}
.edit-date-cell:hover{transform:scale(1.1);}
.edit-save-btn{
  margin-top:6px; border:none; background:var(--dark); color:var(--white); padding:13px;
  border-radius:10px; font-size:14px; font-weight:700; transition:all .3s var(--ease);
}
.edit-save-btn:hover{background:var(--graphite); transform:translateY(-2px);}

/* =========================================================
   MODAL (booking)
========================================================= */
.modal-overlay{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:rgba(20,20,22,.42); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  padding:20px; opacity:0; animation:overlay-in .4s var(--ease) forwards;
}
@keyframes overlay-in{to{opacity:1;}}
.modal{
  width:100%; max-width:460px; background:var(--white); border-radius:var(--radius-xl);
  padding:32px; position:relative; box-shadow:var(--shadow-lg); max-height:86vh; overflow-y:auto;
  transform:translateY(24px) scale(.96); opacity:0;
  animation:modal-in .5s var(--ease) .05s forwards;
}
@keyframes modal-in{to{transform:translateY(0) scale(1); opacity:1;}}
.modal-close{
  position:absolute; top:18px; right:18px; width:32px; height:32px; border-radius:50%;
  border:none; background:var(--bg-alt); font-size:19px; color:var(--text-secondary); transition:all .3s var(--ease);
}
.modal-close:hover{background:var(--graphite); color:var(--white); transform:rotate(90deg);}
.modal-eyebrow{font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-tertiary); margin-bottom:8px;}
.modal-title{font-size:22px; font-weight:800; margin-bottom:20px;}

.booking-cal-nav{font-size:13.5px; font-weight:600; color:var(--text-secondary); margin-bottom:14px;}
.booking-days{display:grid; grid-template-columns:repeat(5,1fr); gap:8px;}
.day-cell{
  border:none; border-radius:12px; padding:12px 6px; text-align:center;
  background:var(--green-bg); color:var(--green); cursor:pointer;
  display:flex; flex-direction:column; gap:4px; align-items:center;
  opacity:0; transform:translateY(10px) scale(.9);
  animation:day-in .5s var(--ease) forwards;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
@keyframes day-in{to{opacity:1; transform:translateY(0) scale(1);}}
.day-cell:hover{transform:translateY(-3px) scale(1.05); box-shadow:var(--shadow-sm);}
.day-cell .day-num{font-size:15px; font-weight:800; font-family:var(--font-display);}
.day-cell .day-status{font-size:9.5px; font-weight:700; letter-spacing:.02em;}
.day-cell.is-booked{background:var(--red-bg); color:var(--red); cursor:default;}
.day-cell.is-booked:hover{transform:none; box-shadow:none;}
.day-cell.is-past{background:var(--bg-alt); color:var(--text-tertiary); cursor:default; opacity:.5 !important;}
.day-cell.is-pending{background:var(--amber-bg); color:var(--amber); cursor:default;}
.day-cell.is-pending:hover{transform:none; box-shadow:none;}

.login-error{font-size:12.5px; color:var(--red); margin-top:-6px;}
.day-cell.is-past:hover{transform:none; box-shadow:none;}

.confirm-card{background:var(--bg); border-radius:var(--radius-md); padding:18px; display:flex; flex-direction:column; gap:10px; margin-bottom:22px;}
.confirm-row{display:flex; justify-content:space-between; font-size:14px;}
.confirm-row span{color:var(--text-secondary);}
.confirm-row b{font-weight:700;}
.confirm-actions{display:flex; gap:10px;}
.btn-ghost, .btn-solid{flex:1; border:none; padding:14px; border-radius:12px; font-size:14.5px; font-weight:700; transition:all .3s var(--ease);}
.btn-ghost{background:var(--bg-alt); color:var(--text);}
.btn-ghost:hover{background:var(--line);}
.btn-solid{background:var(--dark); color:var(--white);}
.btn-solid:hover{background:var(--graphite); transform:translateY(-2px); box-shadow:var(--shadow-sm);}

.done-check{
  width:64px; height:64px; border-radius:50%; background:var(--green-bg); color:var(--green);
  display:flex; align-items:center; justify-content:center; margin:4px auto 18px;
  animation:pop-in .5s var(--ease) both;
}
@keyframes pop-in{0%{transform:scale(.4); opacity:0;}70%{transform:scale(1.08);}100%{transform:scale(1); opacity:1;}}
.done-check svg{width:28px; height:28px;}
.booking-step h3.modal-title, .booking-step .done-check{text-align:center;}
#bookingStepDone{text-align:center;}
.done-text{color:var(--text-secondary); font-size:14.5px; line-height:1.6; margin-bottom:22px;}
#bookingStepDone .btn-solid{width:100%;}

/* =========================================================
   CHAT WIDGET
========================================================= */
.chat-fab{
  position:fixed; bottom:28px; right:28px; z-index:150;
  width:60px; height:60px; border-radius:50%; border:none;
  background:var(--dark); color:var(--white); box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.chat-fab:hover{transform:translateY(-4px) scale(1.05); box-shadow:var(--shadow-lg);}
.chat-fab-icon{width:24px; height:24px;}
.chat-fab-badge{
  position:absolute; top:-2px; right:-2px; background:var(--red); color:var(--white);
  font-size:11px; font-weight:700; width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; border:2px solid var(--bg);
}

.chat-panel{
  position:fixed; bottom:28px; right:28px; z-index:151;
  width:380px; max-width:calc(100vw - 40px); height:min(560px,calc(100vh - 100px));
  background:var(--white); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg);
  border:1px solid var(--line-soft); overflow:hidden;
  display:flex; flex-direction:column;
  transform-origin:bottom right;
  animation:chat-in .45s var(--ease) forwards;
}
@keyframes chat-in{from{opacity:0; transform:scale(.9) translateY(16px);} to{opacity:1; transform:scale(1) translateY(0);}}
.chat-panel.is-closing{animation:chat-out .3s var(--ease-soft) forwards;}
@keyframes chat-out{to{opacity:0; transform:scale(.92) translateY(12px);}}

.chat-head{display:flex; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid var(--line-soft);}
.chat-head-avatar{
  width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,var(--graphite),var(--dark));
  color:var(--white); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display);
}
.chat-head-info{flex:1;}
.chat-head-name{font-size:14.5px; font-weight:700;}
.chat-head-status{font-size:12px; color:var(--green); font-weight:500;}
.chat-close{border:none; background:var(--bg-alt); width:28px; height:28px; border-radius:50%; font-size:17px; color:var(--text-secondary); transition:all .3s var(--ease);}
.chat-close:hover{background:var(--graphite); color:var(--white); transform:rotate(90deg);}

.chat-precheck{padding:22px 20px; display:flex; flex-direction:column; gap:4px; flex:1;}
.chat-precheck-title{font-size:16px; font-weight:700; margin-bottom:4px;}
.chat-precheck-sub{font-size:13px; color:var(--text-secondary); margin-bottom:16px; line-height:1.5;}
.chat-precheck-form{display:flex; flex-direction:column; gap:14px;}

.chat-body{flex:1; display:flex; flex-direction:column; overflow:hidden;}
.chat-messages{flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:10px;}
.msg{max-width:80%; padding:11px 14px; border-radius:16px; font-size:13.8px; line-height:1.5;
  opacity:0; transform:translateY(10px) scale(.96); animation:msg-in .4s var(--ease) forwards;}
@keyframes msg-in{to{opacity:1; transform:translateY(0) scale(1);}}
.msg--anna{align-self:flex-start; background:var(--bg-alt); color:var(--text); border-bottom-left-radius:5px;}
.msg--user{align-self:flex-end; background:var(--dark); color:var(--white); border-bottom-right-radius:5px;}
.msg--system{align-self:center; background:var(--green-bg); color:var(--green); font-weight:600; font-size:12.5px; text-align:center; border-radius:12px;}
.msg-typing{align-self:flex-start; display:flex; gap:4px; padding:12px 16px; background:var(--bg-alt); border-radius:16px; border-bottom-left-radius:5px;}
.msg-typing span{width:6px; height:6px; border-radius:50%; background:var(--text-tertiary); animation:typing-bounce 1.2s infinite ease-in-out;}
.msg-typing span:nth-child(2){animation-delay:.15s;}
.msg-typing span:nth-child(3){animation-delay:.3s;}
@keyframes typing-bounce{0%,60%,100%{transform:translateY(0); opacity:.5;} 30%{transform:translateY(-4px); opacity:1;}}

.chat-book-btn{
  margin:0 18px 12px; border:none; background:var(--graphite); color:var(--white);
  padding:12px; border-radius:12px; font-size:13.5px; font-weight:700; transition:all .3s var(--ease);
}
.chat-book-btn:hover{background:var(--dark); transform:translateY(-2px);}
.chat-input-row{display:flex; gap:8px; padding:14px 16px; border-top:1px solid var(--line-soft);}
.chat-input-row input{flex:1; border:1px solid var(--line); border-radius:999px; padding:11px 16px; font-size:13.8px; background:var(--bg); transition:border-color .3s var(--ease);}
.chat-input-row input:focus{outline:none; border-color:var(--graphite); background:var(--white);}
.chat-send{width:40px; height:40px; border-radius:50%; border:none; background:var(--dark); color:var(--white); display:flex; align-items:center; justify-content:center; transition:all .3s var(--ease); flex:none;}
.chat-send svg{width:17px; height:17px;}
.chat-send:hover{background:var(--graphite); transform:scale(1.06);}

@media (max-width:480px){
  .chat-panel{right:12px; bottom:12px; width:calc(100vw - 24px);}
  .chat-fab{right:16px; bottom:16px;}
}

/* =========================================================
   ADMIN — BOOKINGS
========================================================= */
.admin-inner{max-width:960px; margin:0 auto; padding:44px 40px 120px;}
.admin-title{font-size:clamp(26px,4vw,36px); font-weight:800; margin-bottom:28px;}
.admin-controls{display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; flex-wrap:wrap;}
.admin-select-wrap{display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:.05em;}
.admin-select-wrap select{
  border:1px solid var(--line); border-radius:12px; padding:11px 14px; font-size:14px; font-weight:600;
  color:var(--text); background:var(--white); min-width:280px;
}
.admin-month-nav{display:flex; align-items:center; gap:14px; background:var(--white); border:1px solid var(--line); border-radius:999px; padding:8px 8px;}
.admin-month-nav button{width:32px; height:32px; border-radius:50%; border:none; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; transition:all .3s var(--ease);}
.admin-month-nav button:hover{background:var(--graphite); color:var(--white);}
.admin-month-nav button svg{width:15px; height:15px;}
.admin-month-nav span{font-size:14px; font-weight:700; min-width:120px; text-align:center;}

.admin-calendar{display:grid; grid-template-columns:repeat(7,1fr); gap:10px;}
.admin-day{
  aspect-ratio:1; border-radius:14px; border:none; background:var(--green-bg); color:var(--green);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  font-weight:700; transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  opacity:0; transform:translateY(10px); animation:day-in .5s var(--ease) forwards;
}
.admin-day .admin-day-num{font-size:16px; font-family:var(--font-display);}
.admin-day .admin-day-dot{width:6px; height:6px; border-radius:50%; background:currentColor;}
.admin-day.is-booked{background:var(--red-bg); color:var(--red);}
.admin-day.is-pending{background:var(--amber-bg); color:var(--amber);}
.admin-day.is-past{opacity:.4 !important; cursor:default;}
.admin-day:not(.is-past):hover{transform:translateY(-3px) scale(1.05); box-shadow:var(--shadow-sm);}

.admin-detail-actions{display:flex; gap:10px; margin-top:18px;}
.admin-detail-actions .btn-solid, .admin-detail-actions .btn-ghost{flex:1;}
.admin-status-pill.pending{background:var(--amber-bg); color:var(--amber);}

/* ---------- admin chat ---------- */
.admin-chat-layout{display:grid; grid-template-columns:300px 1fr; gap:22px; align-items:start; height:min(640px,72vh);}
.admin-chat-list{background:var(--white); border:1px solid var(--line-soft); border-radius:var(--radius-lg); overflow-y:auto; height:100%; box-shadow:var(--shadow-xs);}
.admin-chat-list-empty{padding:22px 18px; font-size:13px; color:var(--text-tertiary);}
.admin-chat-item{
  display:flex; flex-direction:column; gap:3px; padding:14px 18px; width:100%; text-align:left;
  border:none; background:transparent; border-bottom:1px solid var(--line-soft);
  transition:background .3s var(--ease);
}
.admin-chat-item:hover{background:var(--bg-alt);}
.admin-chat-item.is-active{background:var(--graphite); color:var(--white);}
.admin-chat-item-name{font-size:14px; font-weight:700;}
.admin-chat-item-phone{font-size:12px; opacity:.7;}
.admin-chat-item-badge{
  display:inline-block; margin-top:4px; font-size:10.5px; font-weight:700; letter-spacing:.03em;
  padding:2px 8px; border-radius:999px; background:var(--amber-bg); color:var(--amber); width:fit-content;
}
.admin-chat-item.is-active .admin-chat-item-badge{background:rgba(255,255,255,.18); color:var(--white);}

.admin-chat-thread{
  background:var(--white); border:1px solid var(--line-soft); border-radius:var(--radius-lg);
  height:100%; display:flex; flex-direction:column; box-shadow:var(--shadow-xs); overflow:hidden;
}
.admin-chat-empty{margin:auto; color:var(--text-tertiary); font-size:13.5px; padding:20px; text-align:center;}
.admin-chat-thread-body{display:flex; flex-direction:column; height:100%;}
.admin-chat-thread-head{padding:16px 18px; border-bottom:1px solid var(--line-soft);}
.admin-chat-thread-name{font-size:15px; font-weight:700;}
.admin-chat-thread-phone{font-size:12.5px; color:var(--text-secondary); margin-top:2px;}
.admin-chat-messages{flex:1;}
.msg-booking-actions{display:flex; gap:8px; margin-top:8px;}
.msg-booking-actions button{
  border:none; padding:7px 13px; border-radius:9px; font-size:12px; font-weight:700;
  transition:all .25s var(--ease);
}
.msg-booking-actions .msg-confirm-btn{background:var(--green-bg); color:var(--green);}
.msg-booking-actions .msg-confirm-btn:hover{background:var(--green); color:var(--white);}
.msg-booking-actions .msg-cancel-btn{background:var(--red-bg); color:var(--red);}
.msg-booking-actions .msg-cancel-btn:hover{background:var(--red); color:var(--white);}
.msg-booking-status{display:inline-block; margin-top:6px; font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px;}
.msg-booking-status.confirmed{background:var(--green-bg); color:var(--green);}
.msg-booking-status.cancelled{background:var(--red-bg); color:var(--red);}

@media (max-width:820px){
  .admin-chat-layout{grid-template-columns:1fr; height:auto;}
  .admin-chat-list{height:220px;}
  .admin-chat-thread{height:520px;}
}

.admin-detail-panel{
  margin-top:26px; background:var(--white); border:1px solid var(--line-soft); border-radius:var(--radius-lg);
  padding:24px; box-shadow:var(--shadow-sm); position:relative;
  animation:reveal-in .4s var(--ease) both;
}
.admin-detail-panel .edit-close{position:absolute; top:16px; right:16px;}
.admin-detail-row{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line-soft); font-size:14px;}
.admin-detail-row:last-child{border-bottom:none;}
.admin-detail-row span{color:var(--text-secondary);}
.admin-detail-row b{font-weight:700;}
.admin-status-pill{display:inline-block; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:700;}
.admin-status-pill.booked{background:var(--red-bg); color:var(--red);}
.admin-status-pill.free{background:var(--green-bg); color:var(--green);}

@media (max-width:640px){
  .admin-inner{padding:28px 18px 90px;}
  .admin-calendar{grid-template-columns:repeat(5,1fr);}
}

/* =========================================================
   TOAST
========================================================= */
.toast{
  position:fixed; top:24px; left:50%; transform:translateX(-50%) translateY(-140%);
  background:var(--dark); color:var(--white); padding:13px 24px; border-radius:999px;
  font-size:13.5px; font-weight:600; z-index:300; box-shadow:var(--shadow-md);
  transition:transform .5s var(--ease); pointer-events:none;
}
.toast.is-visible{transform:translateX(-50%) translateY(0);}
