/* ============================================================================
   GrowStays Design System — matches the real brand mark (navy + blue
   four-dot grid, "GROW"/"STAYS" wordmark, "Smarter Pricing | Better Profits")
   and the color/type system already established across the product.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --navy:        #0D1B2E;
  --navy-800:    #132743;
  --navy-700:    #1B3454;
  --navy-soft:   #56698A;

  --blue:        #1E7FDF;
  --blue-600:    #185FA5;
  --blue-700:    #114A82;
  --blue-50:     #EAF4FB;
  --blue-100:    #D5E9F7;

  --green:       #1B9F6E;
  --green-50:    #E1F5EE;
  --red:         #E24B4A;
  --red-50:      #FFF0F0;
  --amber:       #F59E0B;
  --amber-50:    #FFFBF0;
  --purple:      #7C4DFF;
  --purple-50:   #F0EBFF;

  --bg:          #F0F4FA;
  --bg-alt:      #E7EEF6;
  --white:       #FFFFFF;
  --border:      #D4E0EC;
  --border-soft: #E6ECF4;

  --text:        #0F1F35;
  --text-soft:   #5A6A7E;
  --text-faint:  #8FA3B8;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   26px;

  --shadow-sm:   0 1px 2px rgba(13,27,46,.06), 0 1px 1px rgba(13,27,46,.04);
  --shadow:      0 4px 16px rgba(13,27,46,.08), 0 1px 3px rgba(13,27,46,.06);
  --shadow-lg:   0 16px 40px rgba(13,27,46,.14), 0 4px 12px rgba(13,27,46,.08);
  --shadow-glow: 0 8px 30px rgba(30,127,223,.28);

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --header-h: 84px;
  --header-h-scrolled: 68px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-width: 320px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--blue-100); color: var(--blue-700); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C6D3E3; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #A9BAD1; }

/* ---- Typography ------------------------------------------------------------ */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h1, .h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.12; font-weight: 800; }
h2, .h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.2; font-weight: 700; }
h3, .h3 { font-size: 1.3rem; line-height: 1.32; }
h4, .h4 { font-size: 1.05rem; }
p { color: var(--text-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--blue); border-radius: 2px; }
.text-soft { color: var(--text-soft); }
.text-faint { color: var(--text-faint); }
.text-blue { color: var(--blue); }

/* ---- Layout ----------------------------------------------------------------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
.grid { display: grid; gap: 20px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

/* ---- Buttons ----------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .92rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(30,127,223,.3); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-700); background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--navy-soft); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

/* ---- Cards ------------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border); }
.card-pad { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }

/* ---- Badges ------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--green-50); color: var(--green); }
.badge-warning { background: var(--amber-50); color: var(--amber); }
.badge-danger  { background: var(--red-50);   color: var(--red); }
.badge-info    { background: var(--purple-50);color: var(--purple); }
.badge-blue    { background: var(--blue-50);  color: var(--blue-700); }
.badge-muted   { background: var(--bg-alt);   color: var(--text-faint); }

/* ---- Avatar ------------------------------------------------------------------ */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0;
}

/* ---- Forms -------------------------------------------------------------------- */
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy-700); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-size: .93rem; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:hover { border-color: #B9C8DC; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
textarea.input { resize: vertical; min-height: 90px; }
/* Hide native number-input spin arrows everywhere — they eat into the input's
   width with no reserved padding, which cuts off digits and placeholders in
   any compact field (grid cells, stepper inputs, etc.) across the whole app. */
input.input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input.input[type=number]::-webkit-inner-spin-button,
input.input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Compact table-cell inputs (rate grids, etc.) need guaranteed room for 4-5 digit
   prices and short placeholders like "None" without truncating. */
table.data input.input, table.data select.input {
  min-width: 0; padding-left: 6px; padding-right: 6px; text-overflow: ellipsis;
}
.field-hint { font-size: .78rem; color: var(--text-faint); margin-top: 6px; }
.field-error { font-size: .78rem; color: var(--red); margin-top: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }

/* ---- Site header / nav --------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.on-dark { background: transparent; }
.site-header.on-dark .site-nav a:not(.btn) { color: rgba(255,255,255,.85); }
.site-header.on-dark .site-nav a:not(.btn):hover { color: #fff; }
.site-header.on-dark:not(.scrolled) .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.site-header.on-dark:not(.scrolled) .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.site-header.scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-soft), 0 6px 24px rgba(13,27,46,.06);
}
.site-header.scrolled.on-dark .site-nav a:not(.btn) { color: var(--navy-soft); }
.site-header.scrolled.on-dark .site-nav a:not(.btn):hover { color: var(--blue); }

.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 40px; width: auto; display: block; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo img { height: 32px; }
.brand-logo.on-dark-logo img { filter: brightness(0) invert(1); transition: filter .3s var(--ease); }
.site-header.scrolled .brand-logo.on-dark-logo img { filter: none; }
.brand-mark-only { display: none; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) {
  padding: 10px 16px; border-radius: 999px; font-size: .89rem; font-weight: 600;
  color: var(--navy-soft); transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links > a:not(.btn):hover { background: var(--bg-alt); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { margin: 5px 0; }
.site-header:not(.on-dark) .nav-toggle,
.site-header.on-dark.scrolled .nav-toggle { color: var(--navy); }
.site-header.on-dark:not(.scrolled) .nav-toggle { color: #fff; }

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 600; background: var(--white);
  display: flex; flex-direction: column; padding: 22px 24px 34px;
  transform: translateX(100%); transition: transform .35s var(--ease-out);
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav-links a { padding: 15px 6px; font-size: 1.1rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border-soft); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 981px) {
  .mobile-nav-overlay { display: none; }
}

/* ---- Site footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand-logo img { height: 34px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .87rem; max-width: 270px; margin-top: 16px; line-height: 1.65; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--blue); transform: translateY(-2px); }
.site-footer h5 { color: #fff; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer .footer-links a { color: rgba(255,255,255,.55); font-size: .87rem; display: block; margin-bottom: 13px; transition: color .2s var(--ease), transform .2s var(--ease); }
.site-footer .footer-links a:hover { color: #fff; transform: translateX(2px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.6); font-size: .86rem; margin-bottom: 14px; line-height: 1.5; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; color: rgba(255,255,255,.4); font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom-links a:hover { color: #fff; }
.payment-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-badges span {
  font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15);
  padding: 4px 9px; border-radius: 6px; letter-spacing: .02em;
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Input icon wrap / toggle switch ------------------------------------------------ */
.input-icon-wrap { position: relative; }
.input-icon-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); }
.input-icon-wrap .input { padding-left: 44px; }

.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #D7DEE8; border-radius: 999px; cursor: pointer; transition: background .25s var(--ease); }
.switch .slider::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease-out); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(19px); }

/* ---- Dashboard app shell -------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 260px; flex-shrink: 0; background: var(--navy);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 100;
  transition: left .25s var(--ease);
}
.sidebar-brand { padding: 22px 20px 18px; }
.sidebar-brand img { height: 26px; filter: brightness(0) invert(1); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px; }
.sidebar-section { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #5A7089; font-weight: 700; padding: 16px 10px 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: #B8C6DA; font-size: .87rem; font-weight: 500; margin-bottom: 2px; position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-link.active { background: rgba(30,127,223,.18); color: #fff; }
.sidebar-link.active::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--blue); border-radius: 0 4px 4px 0; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--white); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 50; }
.page-body { padding: 26px; max-width: 1400px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { font-size: 1.5rem; }

@media (max-width: 1024px) {
  .sidebar { position: fixed; left: -260px; box-shadow: var(--shadow-lg); }
  .sidebar.open { left: 0; }
}

/* ---- Stat tiles ----------------------------------------------------------------- */
.stat-tile { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.stat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-tile .stat-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-700); }
.stat-tile .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.stat-tile .stat-label { font-size: .8rem; color: var(--text-soft); font-weight: 500; }

/* ---- Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data thead th { text-align: left; padding: 12px 16px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); background: var(--bg-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
table.data tbody tr { transition: background .15s var(--ease); }
table.data tbody tr:hover { background: var(--bg-alt); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---- Modals ------------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,27,46,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 520px; max-width: 92vw; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease-out); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- Slide-in drawer (right panel, Stayvieo-style) ----------------------------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(9,18,32,.5); backdrop-filter: blur(2px); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: 560px; max-width: calc(94vw - 20px);
  background: var(--white); box-shadow: -4px 0 50px rgba(13,27,46,.22), var(--shadow-lg);
  border-radius: 20px; z-index: 1001; border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform .38s var(--ease-out);
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-header {
  padding: 24px 28px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}
.drawer-header h2 { font-size: 1.28rem; letter-spacing: -.01em; }
.drawer-header .drawer-step { font-size: .78rem; color: var(--text-faint); font-weight: 600; margin-top: 4px; letter-spacing: .01em; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-faint); flex-shrink: 0; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.drawer-close:hover { background: var(--bg-alt); color: var(--navy); transform: rotate(90deg); }

.drawer-tabs { display: flex; gap: 8px; padding: 16px 28px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; overflow-x: auto; background: var(--white); }
.drawer-tabs .tab-btn {
  padding: 9px 18px; font-size: .85rem; font-weight: 600; color: var(--text-soft);
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--white);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.drawer-tabs .tab-btn:hover { border-color: #B9C8DC; color: var(--navy); }
.drawer-tabs .tab-btn.active { color: var(--blue-700); border-color: var(--blue); background: var(--blue-50); }

.drawer-body { flex: 1; overflow-y: auto; padding: 26px 28px; }
.drawer-body .field label { color: var(--navy); }
.drawer-group {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 20px 4px; margin-bottom: 20px;
}
.drawer-group-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }

.drawer-footer {
  padding: 18px 28px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0;
  background: var(--white); box-shadow: 0 -6px 16px rgba(13,27,46,.04);
}
.drawer-footer .unsaved-flag { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-soft); font-weight: 500; }
.drawer-footer .unsaved-flag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; box-shadow: 0 0 0 4px var(--blue-50); }

@media (max-width: 640px) {
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; max-width: 100vw; border-radius: 0; border: none; }
}

/* ---- Multi-select dropdown (searchable checklist) ------------------------------ */
.msel { position: relative; }
.msel-trigger {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-size: .93rem; color: var(--text); text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.msel-trigger:hover { border-color: #B9C8DC; }
.msel-trigger svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.msel-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; display: none;
}
.msel-panel.open { display: block; }
.msel-search { width: 100%; padding: 12px 15px; border: none; border-bottom: 1px solid var(--border-soft); font-size: .9rem; position: sticky; top: 0; background: var(--white); }
.msel-search:focus { outline: none; }
.msel-option { display: flex; align-items: center; gap: 10px; padding: 10px 15px; font-size: .89rem; cursor: pointer; }
.msel-option:hover { background: var(--bg-alt); }
.msel-option input { accent-color: var(--blue); }

/* ---- Field info bubble (click/hover "i" — kid-simple help text) ---------------- */
/* Position is computed in JS (fixed + clamped to viewport) so it never runs off-screen
   near the sidebar or window edges — see the .info-dot handlers in app.js. */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 16px; height: 16px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700);
  font-size: .68rem; font-weight: 800; cursor: help; vertical-align: middle; margin-left: 2px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.info-dot:hover, .info-dot:focus, .info-dot.open { background: var(--blue); color: #fff; outline: none; }
.info-dot-mark { pointer-events: none; line-height: 1; }
.info-bubble {
  position: fixed; top: 0; left: 0;
  width: max-content; max-width: min(260px, calc(100vw - 24px)); background: var(--navy); color: #fff;
  font-size: .78rem; font-weight: 500; line-height: 1.45; padding: 10px 13px; border-radius: 10px;
  box-shadow: var(--shadow-lg); z-index: 2200;
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.info-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---- Tabs --------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab-btn { padding: 11px 16px; font-size: .87rem; font-weight: 600; color: var(--text-faint); background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--blue-700); border-color: var(--blue); }

/* Pill-style variant used for the sub-nav bars that link between sibling pages
   (e.g. the Rate Plans / Pricing Calendar / Promos / Cancellation / Deposit bar). */
.tabs.subnav-pills { border-bottom: none; gap: 8px; margin-bottom: 22px; }
.tabs.subnav-pills .tab-btn { border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 18px; display: inline-flex; align-items: center; gap: 7px; }
.tabs.subnav-pills .tab-btn:hover { border-color: #B9C8DC; }
.tabs.subnav-pills .tab-btn.active { background: var(--blue-50); border-color: var(--blue); color: var(--blue-700); }

/* ---- Empty state / toasts ------------------------------------------------------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-faint); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; opacity: .5; }
#toast-stack { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }

/* ---- Animations ----------------------------------------------------------------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; animation: fadeInUp .7s var(--ease-out) forwards; }
.reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .15s; } .reveal-3 { animation-delay: .25s; }
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---- Responsive helpers ------------------------------------------------------------ */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
}

/* ---- Whole-platform grid safety net -------------------------------------------------
   Every fixed multi-column .grid across the hotel dashboard is written as an inline
   grid-template-columns value (1fr 1fr, 1fr 1fr 1fr, 280px 1fr, etc). Targeting the
   exact inline value (anchored with the trailing ";" so e.g. "1fr 1fr;" never matches
   inside "1fr 1fr 1fr;") lets us collapse each pattern at a sensible breakpoint without
   touching the grids that are already fluid (repeat(auto-fit/auto-fill,...), the 7-day
   rate calendar). Later rules win over earlier ones for elements matched by more than
   one selector (e.g. a 4-column row also matches the 3-column substring), so the more
   specific fixes are listed last. */
@media (max-width: 1024px) {
  [style*="grid-template-columns:280px 1fr;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr);"] { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 860px) {
  [style*="grid-template-columns:1fr 1fr 1fr;"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:1fr 1fr 1fr 1fr;"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  [style*="grid-template-columns:1fr 1fr;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr 1fr;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr 1fr 1fr;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.4fr 1fr 1fr;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr);"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 2fr auto;"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr auto;"] { grid-template-columns: 1fr !important; }
}

/* Dashboard shell: keep the topbar usable and prevent the page body from ever
   forcing horizontal scroll on narrow phones. */
@media (max-width: 480px) {
  .topbar { padding: 0 14px; }
  .topbar .text-soft { display: none; } /* the account name label — avatar alone is enough at this width */
  .page-body { padding: 16px; }
  .page-head { flex-direction: column; align-items: flex-start !important; }
  .stat-tile .stat-value { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .page-body { padding: 20px; }
}

/* Cards/forms that set an explicit desktop max-width inline must not clip content
   once the viewport is narrower than that value. */
@media (max-width: 700px) {
  .card[style*="max-width"] { max-width: 100% !important; }
}

/* Drawer footers and page save-bars: stack the buttons instead of squeezing them
   when the drawer is full-width on a phone. */
@media (max-width: 480px) {
  .drawer-footer { flex-wrap: wrap; }
  .drawer-footer .btn { flex: 1 1 auto; }
}

/* Long option labels (meal plans, board basis, etc.) and long button text must wrap
   or shrink rather than overflow their box on a narrow screen. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  table.data { font-size: .82rem; }
}

/* Sticky bottom Save bars (Hotel Details, Room Type editor) cancel out .page-body's
   own padding with a negative margin so they span edge-to-edge. That negative margin
   must stay in sync with .page-body's padding at every breakpoint or the bar either
   leaves a gap or overflows sideways. */
.sticky-savebar {
  position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 16px rgba(13,27,46,.06); padding: 16px 24px; display: flex; flex-wrap: wrap;
  justify-content: flex-end; gap: 10px; margin: 24px -26px -26px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (max-width: 640px) { .sticky-savebar { margin: 20px -20px -20px; } }
@media (max-width: 480px) { .sticky-savebar { margin: 16px -16px -16px; padding: 14px 16px; } .sticky-savebar .btn { flex: 1 1 auto; } }
