.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(1200px 600px at 20% 10%,#14532d 0%,#0b2417 60%,#071a10 100%)}.auth-card{width:min(920px,100%);background:#fff;border-radius:30px;box-shadow:0 30px 80px rgba(0,0,0,.35);display:grid;grid-template-columns:1fr 1fr;overflow:hidden;min-height:560px}.auth-form-side{padding:52px 48px;display:flex;flex-direction:column;justify-content:center;min-width:0}.auth-form-side .auth-logo-row img{height:56px;width:auto;max-width:220px;object-fit:contain;display:block;margin-bottom:14px}.auth-form-side h1{font-size:34px;margin:0 0 6px;color:#101418;letter-spacing:-.5px}.auth-form-side .auth-sub{color:#8a94a0;font-size:13px;margin:0 0 26px}.auth-form-side form{display:grid;gap:14px;margin:0 0 18px}.auth-form-side .auth-field input{width:100%;padding:14px 22px;border:1.5px solid #e3e8e3;border-radius:999px;outline:none;background:#fff;color:#172337;font-size:14px;font-family:inherit}.auth-form-side .auth-field input:focus{border-color:#166534;box-shadow:0 0 0 3px rgba(22,101,52,.1)}.auth-form-side .auth-pass{position:relative}.auth-form-side .auth-pass input{padding-right:54px}.auth-form-side .auth-pass button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#9aa5b1;font-size:16px;cursor:pointer;padding:10px 12px;border-radius:50%;line-height:1}.auth-form-side .auth-pass button:hover,.auth-form-side .auth-pass button:active,.auth-form-side .auth-pass button:focus{transform:translateY(-50%);background:transparent;color:#166534;box-shadow:none;outline:none}.auth-form-side .auth-login-btn{border:0;border-radius:999px;padding:14px;width:100%;font-weight:800;font-size:15px;cursor:pointer;font-family:inherit;color:#fff;background:linear-gradient(135deg,#2fa35f,#166534);box-shadow:0 12px 26px rgba(22,101,52,.32);transition:.2s}.auth-form-side .auth-login-btn:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(22,101,52,.4)}.auth-form-side .auth-login-btn:disabled{opacity:.65;cursor:wait;transform:none}.auth-form-side .auth-note{display:block;color:#9aa5b1;font-size:12px;text-align:center}.auth-art-side{position:relative;background:#0e3b24;min-height:100%}.auth-art-side svg{position:absolute;inset:0;width:100%;height:100%}.auth-art-caption{position:absolute;left:26px;right:26px;bottom:24px;color:#fff}.auth-art-caption b{display:block;font-size:19px;letter-spacing:.3px}.auth-art-caption span{font-size:12px;opacity:.82}@media(max-width:760px){.auth-card{grid-template-columns:1fr;min-height:0}.auth-art-side{display:none}.auth-form-side{padding:38px 26px}}/* ============ GB Adventure Admin — light console theme ============ */
:root{
  --bg:#f2f5f3; --card:#ffffff; --line:#e7ece9; --ink:#12261a; --ink2:#43584b;
  --muted:#7d8f84; --green:#166534; --green-d:#0e3b24; --leaf:#4D7C0F;
  --amber:#b45309; --red:#c2410c; --rose:#be123c; --blue:#1d4ed8;
  --r:18px; --sh:0 10px 30px rgba(18,60,38,.07);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink);font-size:14.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
.muted{color:var(--muted)}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--leaf)}
h1,h2,h3{margin:0;line-height:1.25}
a{color:var(--green)}

/* ---------- buttons ---------- */
.primary,.secondary,.danger,.success-btn,.small-btn,.ghost-btn,.link-btn{
  display:inline-flex;align-items:center;gap:.5rem;border-radius:999px;font-weight:600;
  font-family:inherit;cursor:pointer;border:1px solid transparent;transition:all .2s ease;text-decoration:none}
.primary{background:linear-gradient(135deg,#166534,#4D7C0F);color:#fff;border:0;padding:.62rem 1.25rem;font-size:.9rem;box-shadow:0 8px 20px rgba(22,101,52,.28)}
.primary:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(22,101,52,.34)}
.secondary{background:#fff;color:var(--ink);border-color:var(--line);padding:.58rem 1.15rem;font-size:.88rem}
.secondary:hover{border-color:var(--green);color:var(--green)}
.danger{background:#fef2f2;color:var(--rose);border-color:#fecaca;padding:.58rem 1.15rem;font-size:.88rem}
.danger:hover{background:var(--rose);color:#fff;border-color:var(--rose)}
.success-btn{background:#ecfdf5;color:#047857;border-color:#a7f3d0;padding:.58rem 1.15rem;font-size:.88rem}
.ghost-btn{background:#fff;color:var(--ink);border:1px solid var(--line);padding:.58rem 1.1rem;font-size:.88rem}
.ghost-btn:hover{border-color:var(--green);color:var(--green)}
.small-btn{padding:.4rem .8rem;font-size:.8rem}
.link-btn{background:none;border:0;color:var(--green);font-size:.85rem;font-weight:600;padding:.25rem .4rem}
.link-btn:hover{text-decoration:underline}
.actions{display:flex;flex-wrap:wrap;gap:.6rem}
.page-actions{display:flex;gap:.6rem;flex-wrap:wrap}

/* ---------- app layout ---------- */
.app{display:flex;min-height:100vh}
.side-toggle{display:none;position:fixed;top:14px;right:14px;z-index:60;width:44px;height:44px;border-radius:14px;
  background:var(--green-d);color:#fff;border:0;box-shadow:var(--sh);cursor:pointer;font-size:1rem}
.sidebar{width:268px;flex:none;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;z-index:55}
.side-brand{display:flex;align-items:center;gap:.7rem;padding:1.15rem 1.2rem;border-bottom:1px solid var(--line)}
.side-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px;background:#f0f5f1;padding:4px}
.side-brand b{display:block;font-size:.95rem;letter-spacing:.1px}
.side-brand small{color:var(--muted);font-size:.74rem;font-weight:600;letter-spacing:.8px;text-transform:uppercase}
.sidebar nav{flex:1;overflow-y:auto;padding:.9rem .85rem 1rem}
.nav-group{margin-bottom:.9rem}
.nav-group>span{display:block;font-size:.68rem;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);padding:.35rem .7rem}
.sidebar nav button{display:flex;align-items:center;gap:.7rem;width:100%;text-align:left;border:0;background:none;
  padding:.62rem .8rem;border-radius:12px;font-size:.9rem;font-weight:500;color:var(--ink2);cursor:pointer;
  font-family:inherit;margin-bottom:2px;transition:all .18s ease}
.sidebar nav button i{width:20px;text-align:center;font-size:.92rem;color:var(--muted);transition:color .18s}
.sidebar nav button:hover{background:#f0f5f1;color:var(--ink)}
.sidebar nav button.active{background:var(--green-d);color:#fff;font-weight:600;box-shadow:0 8px 18px rgba(14,59,36,.3)}
.sidebar nav button.active i{color:#a7f3c7}
.side-user{display:flex;align-items:center;gap:.65rem;padding:.95rem 1.1rem;border-top:1px solid var(--line);background:#fafcfb}
.side-avatar{width:42px;height:42px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#166534,#4D7C0F);font-size:1rem;overflow:hidden}
.side-avatar img{width:100%;height:100%;object-fit:cover}
.side-user-meta{flex:1;min-width:0}
.side-user-meta b{display:block;font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-user-meta small{display:block;color:var(--muted);font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logout{border:1px solid var(--line);background:#fff;color:var(--muted);width:38px;height:38px;border-radius:12px;cursor:pointer;transition:all .2s}
.logout:hover{color:var(--rose);border-color:#fecaca;background:#fef2f2}
.side-scrim{display:none}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.top{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);padding:.9rem 1.6rem;display:flex;align-items:center;gap:1.2rem}
.top-title h1{font-size:1.35rem;font-weight:700}
.top-search{flex:1;max-width:420px;margin-left:auto;display:flex;align-items:center;gap:.6rem;background:#f0f4f1;
  border:1px solid transparent;border-radius:999px;padding:.55rem 1.1rem;transition:all .2s}
.top-search:focus-within{background:#fff;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,101,52,.1)}
.top-search i{color:var(--muted);font-size:.85rem}
.top-search input{border:0;background:none;outline:0;width:100%;font-family:inherit;font-size:.9rem;color:var(--ink)}
.top-actions{display:flex;align-items:center;gap:.6rem}
.panel{display:none;padding:1.6rem;max-width:1280px;width:100%;margin:0 auto}
.panel.active{display:block;animation:panelIn .3s ease}
@keyframes panelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- cards ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:1.25rem 1.35rem}
.card h3{font-size:1.02rem;font-weight:700;margin-bottom:.8rem}
.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.9rem}
.card-head h3{margin:0}
.grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.grid-2{display:grid;gap:1.1rem;grid-template-columns:1fr 1fr;margin-top:1.1rem}
.dashboard-grid{display:grid;gap:1.1rem;grid-template-columns:1fr 1fr;margin-top:1.1rem}
.dashboard-grid .wide{grid-column:1/-1}
.dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem;flex-wrap:wrap}
.dashboard-head h2{font-size:1.4rem;font-weight:700;margin:.15rem 0 .3rem}
.dashboard-head p{margin:0;font-size:.88rem;max-width:640px}

/* ---------- metric cards ---------- */
.metrics-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.metric-card{display:flex;gap:.9rem;align-items:flex-start;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--sh);padding:1.15rem 1.2rem;position:relative;overflow:hidden}
.metric-card::after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--green)}
.tone-green::after{background:#16a34a}.tone-pink::after{background:#ec4899}
.tone-orange::after{background:#f59e0b}.tone-blue::after{background:#3b82f6}
.metric-icon{width:44px;height:44px;flex:none;border-radius:14px;display:grid;place-items:center;font-size:1.05rem}
.tone-green .metric-icon{background:#dcfce7;color:#16a34a}
.tone-pink .metric-icon{background:#fce7f3;color:#ec4899}
.tone-orange .metric-icon{background:#fef3c7;color:#d97706}
.tone-blue .metric-icon{background:#dbeafe;color:#2563eb}
.metric-value{font-size:1.5rem;font-weight:800;letter-spacing:-.5px}
.metric-sub{font-size:.78rem;color:var(--muted)}

/* ---------- pastel summary cards ---------- */
.sum-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:1.1rem}
.sum-card{border-radius:var(--r);padding:1.15rem 1.25rem;border:1px solid transparent;position:relative;overflow:hidden}
.sum-card small{display:block;font-size:.76rem;font-weight:600;letter-spacing:.4px;text-transform:uppercase;opacity:.75;margin-bottom:.35rem}
.sum-card b{font-size:1.7rem;font-weight:800;letter-spacing:-.5px}
.sum-card span{display:block;font-size:.76rem;opacity:.7;margin-top:.2rem}
.sum-card .sum-ic{position:absolute;right:1rem;top:1rem;font-size:1.4rem;opacity:.25}
.sum-green{background:#e2f4e6;color:#14532d}.sum-teal{background:#dcf3ef;color:#0f5b52}
.sum-pink{background:#fbe5ec;color:#9d174d}.sum-amber{background:#fdf0dc;color:#92400e}

/* ---------- profile card ---------- */
.profile-card{display:flex;gap:1.1rem;align-items:center;background:linear-gradient(135deg,#0e3b24,#166534);
  color:#fff;border-radius:var(--r);padding:1.4rem 1.5rem;box-shadow:var(--sh);position:relative;overflow:hidden}
.profile-card::before{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;
  background:rgba(255,255,255,.08)}
.profile-card .side-avatar{width:64px;height:64px;font-size:1.5rem;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.35)}
.profile-card h2{font-size:1.25rem}
.profile-card .prow{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin-top:.45rem;font-size:.83rem;color:#d7e8dc}
.profile-card .prow i{margin-right:.35rem;color:#a7f3c7}
.live-dot{display:inline-flex;align-items:center;gap:.35rem;background:#dcfce7;color:#15803d;font-size:.7rem;
  font-weight:700;letter-spacing:.8px;padding:.28rem .7rem;border-radius:999px}
.live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#16a34a;animation:blink 1.4s infinite}
@keyframes blink{50%{opacity:.35}}

/* ---------- bars / lists / charts ---------- */
.bars{display:flex;flex-direction:column;gap:.7rem}
.bar-row .bar-label{display:flex;justify-content:space-between;font-size:.86rem;margin-bottom:.3rem}
.bar-label b{font-weight:700}
.bar-track{height:8px;border-radius:99px;background:#eef2ef;overflow:hidden}
.bar-track span{display:block;height:100%;border-radius:99px;transition:width .6s ease}
.legend-note{font-size:.78rem;color:var(--muted);margin-top:.8rem}
.top-list{display:flex;flex-direction:column}
.top-row{display:flex;align-items:center;gap:.8rem;padding:.55rem 0;border-bottom:1px dashed var(--line);font-size:.9rem}
.top-row:last-child{border-bottom:0}
.rank{width:26px;height:26px;flex:none;border-radius:9px;background:#f0f5f1;color:var(--green);font-weight:700;font-size:.8rem;display:grid;place-items:center}
.grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-chart{display:flex;align-items:flex-end;gap:.7rem;height:150px;padding-top:.5rem}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:.4rem;min-width:0}
.chart-bars{display:flex;align-items:flex-end;gap:4px;height:110px}
.chart-bars span{width:10px;border-radius:5px;background:linear-gradient(180deg,#4D7C0F,#166534);min-height:6px}
.chart-bars .visit-bar{background:#d7e3da}
.chart-col small{font-size:.68rem;color:var(--muted)}
.quick-stats{display:flex;flex-wrap:wrap;gap:.5rem}
.quick-stats span{background:#f0f5f1;border:1px solid var(--line);border-radius:12px;padding:.5rem .8rem;font-size:.82rem;color:var(--ink2)}
.quick-stats b{color:var(--green);margin-left:.3rem}

/* ---------- feed (recent bookings timeline) ---------- */
.feed{display:flex;flex-direction:column}
.feed-row{display:flex;gap:.85rem;padding:.7rem 0;border-bottom:1px dashed var(--line);align-items:flex-start}
.feed-row:last-child{border-bottom:0}
.feed-ic{width:38px;height:38px;flex:none;border-radius:13px;display:grid;place-items:center;font-size:.9rem}
.feed-row .grow b{display:block;font-size:.88rem}
.feed-row .grow small{color:var(--muted);font-size:.76rem}
.feed-tag{font-size:.68rem;font-weight:700;letter-spacing:.4px;padding:.25rem .65rem;border-radius:999px;white-space:nowrap}

/* ---------- toolbar / tables ---------- */
.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.1rem;flex-wrap:wrap}
.toolbar h2{font-size:1.35rem;font-weight:700;margin:.15rem 0 0}
.toolbar-search{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.6rem 1.1rem;font-family:inherit;
  font-size:.88rem;min-width:230px;outline:0;transition:all .2s}
.toolbar-search:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(22,101,52,.1)}
.table-wrap{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);overflow:auto}
.table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:640px}
.table th{text-align:left;font-size:.7rem;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:700;
  padding:.85rem 1rem;border-bottom:1px solid var(--line);background:#fafcfb;white-space:nowrap}
.table td{padding:.8rem 1rem;border-bottom:1px solid #f0f4f1;vertical-align:top}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#f8fbf9}
.status{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.4px;padding:.3rem .75rem;border-radius:999px;text-transform:capitalize}
.status-new{background:#fef3c7;color:#92400e}.status-contacted{background:#dbeafe;color:#1e40af}
.status-confirmed{background:#dcfce7;color:#15803d}.status-cancelled{background:#fee2e2;color:#b91c1c}
/* booking inbox upgrades: status filter pills + clean detail view */
.booking-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0 .25rem}
.pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.45rem 1rem;font:inherit;font-size:.82rem;font-weight:600;color:var(--ink2);cursor:pointer}
.pill:hover{border-color:var(--green)}
.pill.active{background:var(--green);border-color:var(--green);color:#fff}
.pill-count{opacity:.65;font-weight:400;margin-left:.3rem}
.booking-detail{display:grid;gap:.55rem;margin:.5rem 0 1.1rem}
.bd-row{display:grid;grid-template-columns:130px 1fr;gap:.75rem;align-items:start}
.bd-label{font-size:.75rem;font-weight:700;color:var(--ink2);text-transform:uppercase;letter-spacing:.4px;padding-top:.15rem}
.bd-val{font-size:.92rem;white-space:pre-wrap;word-break:break-word}
@media(max-width:600px){.bd-row{grid-template-columns:1fr;gap:.1rem}}
.tag{display:inline-block;background:#f0f5f1;border:1px solid var(--line);color:var(--ink2);font-size:.75rem;font-weight:600;
  padding:.28rem .7rem;border-radius:999px;margin:.12rem .15rem .12rem 0}
.empty{padding:2.5rem 1rem;text-align:center;color:var(--muted)}

/* ---------- forms ---------- */
.field{margin-bottom:1rem}
.field label{display:block;font-size:.8rem;font-weight:600;color:var(--ink2);margin-bottom:.35rem}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:12px;padding:.65rem .9rem;
  font-family:inherit;font-size:.9rem;background:#fff;color:var(--ink);outline:0;transition:all .2s}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(22,101,52,.1)}
.field-hint{font-size:.76rem;color:var(--muted);margin-top:.3rem}
.img-row{display:flex;gap:.6rem}
.img-row input{flex:1}
.preview{max-width:120px;max-height:80px;border-radius:10px;border:1px solid var(--line);margin-top:.5rem;object-fit:cover}
.check-row{display:flex;align-items:center;gap:.6rem;font-size:.9rem;margin-bottom:.6rem}
.check-row input{width:17px;height:17px;accent-color:var(--green)}
.list-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:1rem 1.15rem;margin-bottom:.9rem}
.item-row{display:flex;align-items:center;gap:.9rem;padding:.7rem 0;border-bottom:1px dashed var(--line)}
.item-row:last-child{border-bottom:0}
.item-row img{width:64px;height:48px;object-fit:cover;border-radius:10px;flex:none}
.item-row .title{flex:1;min-width:0;font-weight:600;font-size:.9rem}
.item-row .title small{display:block;color:var(--muted);font-weight:400;font-size:.76rem}
.avatar-sm{width:44px;height:44px;border-radius:50%;object-fit:cover}
.avatar-xs{width:32px;height:32px;border-radius:50%;object-fit:cover}
.hotel-thumb{width:74px;height:56px;object-fit:cover;border-radius:10px;flex:none}
.hotel-meta{flex:1;min-width:0}
.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:12px;padding:.8rem 1rem;font-size:.86rem;margin-bottom:1rem}
.danger-zone{border:1px solid #fecaca;background:#fef2f2;border-radius:var(--r);padding:1.1rem 1.2rem;margin-top:1.2rem}
.break{height:1px;background:var(--line);margin:1.2rem 0}

/* ---------- modal / toast ---------- */
.modal{position:fixed;inset:0;z-index:100;background:rgba(10,25,17,.5);display:grid;place-items:center;padding:1rem;opacity:0;pointer-events:none;transition:opacity .25s}
.modal.open{opacity:1;pointer-events:auto}
.modal-card{background:#fff;border-radius:20px;max-width:640px;width:100%;max-height:88vh;overflow-y:auto;box-shadow:0 30px 80px rgba(0,0,0,.3);animation:panelIn .25s ease}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.3rem;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}
.modal-head h2{font-size:1.05rem}
.modal-card .modal-body{padding:1.3rem}
.close{border:0;background:#f0f4f1;width:34px;height:34px;border-radius:50%;cursor:pointer;color:var(--ink2);font-size:1rem}
.close:hover{background:#fee2e2;color:var(--rose)}
.admin-toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:var(--green-d);color:#fff;
  padding:.8rem 1.4rem;border-radius:999px;font-size:.88rem;font-weight:600;box-shadow:0 16px 40px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transition:all .3s;z-index:200}
.admin-toast.show{opacity:1;transform:translate(-50%,0)}
.upv{font-size:.72rem;color:var(--muted)}

/* ---------- responsive ---------- */
@media(max-width:1100px){
  .dashboard-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}
@media(max-width:920px){
  .sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .3s ease;box-shadow:0 0 60px rgba(0,0,0,.2)}
  body.nav-open .sidebar{transform:none}
  body.nav-open .side-scrim{display:block;position:fixed;inset:0;background:rgba(10,25,17,.45);z-index:50}
  .side-toggle{display:grid;place-items:center}
  .main{padding-left:0}
  .top{padding:.8rem 1rem;gap:.7rem;flex-wrap:wrap}
  .top-search{order:3;flex-basis:100%;max-width:none;margin-left:0}
  .panel{padding:1rem}
  .profile-card{flex-direction:column;text-align:center}
}
.stat{font-size:2rem;font-weight:800;color:var(--green-d);letter-spacing:-.5px;margin:.2rem 0 .8rem}

body.modal-open{overflow:hidden}

/* ---------- responsiveness guards: content must never widen the page ----------
   Grid items default to min-width:auto, so a wide child (e.g. the 640px
   recent-bookings table inside .table-wrap) forces its track wider than the
   phone viewport. That widens the layout viewport, which pushes fixed UI
   (hamburger toggle, modal) off-screen and shifts content sideways. */
.dashboard-grid>*,.metrics-grid>*,.sum-grid>*{min-width:0}
html,body{overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}

/* ---- private booking chatrooms (Messages) ---- */
.sidebar nav button{position:relative}
.nav-badge{margin-left:auto;background:#dc2626;color:#fff;font-size:.65rem;font-weight:700;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.chat-wrap{display:grid;grid-template-columns:330px 1fr;gap:1rem;height:calc(100vh - 240px);min-height:430px}
.chat-list{overflow-y:auto;border:1px solid #e5e7eb;border-radius:.75rem;background:#fff}
.chat-item{padding:.75rem .85rem;border-bottom:1px solid #f3f4f6;cursor:pointer;display:flex;gap:.65rem;align-items:center}
.chat-item:hover{background:#f9fafb}
.chat-item.active{background:#ecfdf5}
.chat-item .av{width:40px;height:40px;border-radius:50%;background:#166534;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.chat-item .meta{flex:1;min-width:0}
.chat-item .meta b{font-size:.9rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-item .meta small{color:#6b7280;font-size:.74rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-item .cht{color:#9ca3af;font-size:.68rem;flex:none}
.unread-badge{background:#dc2626;color:#fff;font-size:.68rem;font-weight:700;border-radius:999px;padding:.12rem .5rem;flex:none}
.guest-badge{display:inline-block;background:#fef3c7;color:#92400e;font-size:.62rem;font-weight:700;border-radius:999px;padding:.08rem .45rem;margin-left:.4rem;vertical-align:middle}
.chat-thread{border:1px solid #e5e7eb;border-radius:.75rem;background:#fff;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.chat-thread-head{padding:.65rem .9rem;border-bottom:1px solid #e5e7eb;background:#f9fafb;display:flex;align-items:center;gap:.65rem}
.chat-thread-head .av{width:38px;height:38px;border-radius:50%;background:#166534;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.chat-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.5rem;background:#f3f4f6}
.chat-bub{max-width:80%;padding:.5rem .75rem;border-radius:1rem;font-size:.9rem;line-height:1.4;box-shadow:0 1px 1px rgba(0,0,0,.06);word-wrap:break-word}
.chat-bub.me{align-self:flex-end;background:#166534;color:#fff;border-bottom-right-radius:.25rem}
.chat-bub.them{align-self:flex-start;background:#fff;border-bottom-left-radius:.25rem}
.chat-bub img{max-width:220px;border-radius:.5rem;display:block;cursor:pointer}
.chat-bub audio{max-width:220px;display:block}
.chat-bub .tm{display:block;font-size:.62rem;opacity:.65;text-align:right;margin-top:.25rem}
.chat-compose{display:flex;gap:.45rem;padding:.6rem;border-top:1px solid #e5e7eb;align-items:center}
.chat-compose input[type=text]{flex:1;border:1px solid #d1d5db;border-radius:999px;padding:.55rem .9rem;font-size:.9rem;min-width:0}
.chat-compose input[type=text]:focus{outline:none;border-color:#166534}
.chat-empty{flex:1;display:flex;align-items:center;justify-content:center;color:#9ca3af;text-align:center;padding:2rem;line-height:1.7}
.chat-thread-head .backbtn{display:inline-flex;flex:none}
@media(max-width:920px){
  .chat-wrap{grid-template-columns:1fr;height:calc(100vh - 210px)}
  .chat-wrap.thread-open .chat-list{display:none}
  .chat-wrap:not(.thread-open) .chat-thread{display:none}
  .chat-wrap.thread-open .backbtn{display:inline-flex}
  .chat-bub{max-width:88%}
}
