/* =====================================================================
   StayEase — design system (one stylesheet for every page)

   Fonts   : Bricolage Grotesque (headings) + Plus Jakarta Sans (text),
             bundled in /fonts so they work offline.
   Colour  : light, airy blues. Royal → sky gradient for main actions.
             Amber / violet ONLY mark which way a room faces (sunrise / sunset).
   Shapes  : pill buttons, 16–28px rounded photos and panels, glass panels
             over photography.
   ===================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* surfaces */
  --bg: #f5f8fe;
  --bg-2: #eaf1fc;
  --paper: #ffffff;
  --line: #dbe5f3;
  --line-soft: #e8eff9;

  /* text */
  --ink: #0d1b34;
  --ink-2: #4a5d7c;
  --ink-3: #8b9bb5;

  /* brand */
  --brand: #2563eb;
  --brand-2: #38bdf8;
  --brand-dark: #1d4ed8;
  --brand-soft: #e3edfe;
  --grad: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #e6f6fe 100%);
  --navy: #0b1a33;

  /* wings */
  --sunrise: #f59e0b;
  --sunrise-soft: #fff3dc;
  --sunrise-ink: #92560a;
  --sunset: #8b5cf6;
  --sunset-soft: #f1ebff;
  --sunset-ink: #5b34b8;

  /* states */
  --ok: #059669;
  --ok-soft: #dcf6ec;
  --warn: #c2700a;
  --warn-soft: #fff1d9;
  --bad: #e11d48;
  --bad-soft: #ffe4ea;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 52, .05), 0 2px 8px rgba(13, 27, 52, .04);
  --shadow: 0 2px 4px rgba(13, 27, 52, .04), 0 12px 32px rgba(13, 27, 52, .08);
  --shadow-lg: 0 30px 70px rgba(13, 27, 52, .18);
  --glow: 0 10px 24px rgba(37, 99, 235, .30);

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);

  --wrap: 1220px;
  --nav-h: 76px;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 8px; }
::selection { background: #cfe1ff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: .9rem; }
.serif { font-family: var(--display); }
.lead-text { font-size: 1.1rem; color: var(--ink-2); max-width: 58ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 24ch; }
.section-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: .92rem; margin-bottom: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tint { background: linear-gradient(180deg, var(--paper) 0%, var(--bg-2) 100%); }
.white { background: var(--paper); }

/* scroll reveal (added by app.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(219, 229, 243, .7);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 600; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-soft); background: var(--paper); color: var(--ink-2); cursor: pointer; text-decoration: none;
  transition: color .15s, border-color .15s, transform .15s;
}
.icon-btn:hover { color: var(--brand); border-color: #c4d6f5; }
.icon-btn svg { width: 20px; height: 20px; }
.badge-dot {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; font-size: .7rem; font-weight: 800; line-height: 16px; text-align: center;
  border: 2px solid var(--paper);
}
.menu { position: relative; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: var(--glow);
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.menu-pop .who strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.menu-pop a, .menu-pop button {
  display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left;
  border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .94rem; font-weight: 500;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); color: var(--brand); }
.menu-pop svg { width: 18px; height: 18px; color: var(--ink-3); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: calc(var(--nav-h) - 6px); left: 16px; right: 16px; flex-direction: column; gap: 2px;
    background: var(--paper); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, border-color .18s, color .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #0ea5e9); opacity: 0; transition: opacity .2s; z-index: -1; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 99, 235, .36); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #b7cdf3; color: var(--brand); transform: translateY(-1px); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-soft:hover { background: #d4e4fe; color: var(--brand-dark); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 16px; }
.btn-quiet:hover { background: var(--bg-2); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.btn-white:hover { color: var(--brand-dark); transform: translateY(-2px); }
.btn-danger { background: var(--paper); border-color: #fecdd6; color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); border-color: #fda4b4; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn .arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -14px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.btn-lg .arrow { width: 36px; height: 36px; margin-right: -18px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.loading::after, .btn-danger.loading::after, .btn-soft.loading::after { border-color: var(--line); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fbfdff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5d7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #c3d4ee; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.hint { font-size: .8rem; color: var(--ink-3); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-error {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px;
  background: var(--bad-soft); color: #9f1239; font-size: .92rem; font-weight: 500; border: 1px solid #fecdd6;
}

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-2); flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 0 16px; height: 40px; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--brand-dark); box-shadow: 0 2px 8px rgba(13, 27, 52, .1); }
.seg svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- surfaces */
.panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 8px; }
.page-head p { color: var(--ink-2); max-width: 60ch; margin: 0; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.plain::before { display: none; }
.pill.blue { background: var(--brand-soft); color: var(--brand-dark); }

.wing { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 12px 5px 9px; border-radius: 999px; }
.wing svg { width: 15px; height: 15px; }
.wing-sunrise { background: var(--sunrise-soft); color: var(--sunrise-ink); }
.wing-sunset { background: var(--sunset-soft); color: var(--sunset-ink); }

.glass {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: #fff;
}

/* ---------------------------------------------------------- HOME: hero */
.hero-frame { padding: 16px 16px 0; }
.hero {
  position: relative; min-height: min(86vh, 780px); border-radius: var(--r-xl); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 22, 48, .78) 0%, rgba(8, 22, 48, .45) 45%, rgba(8, 22, 48, .05) 75%),
    linear-gradient(0deg, rgba(8, 22, 48, .55) 0%, rgba(8, 22, 48, 0) 45%);
}
.hero-inner { width: 100%; padding: 0 56px 150px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.hero-tag b { background: #fff; color: var(--brand-dark); padding: 3px 10px; border-radius: 999px; font-size: .78rem; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; max-width: 14ch; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: rgba(255, 255, 255, .86); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { justify-self: end; width: min(340px, 100%); border-radius: var(--r-lg); padding: 20px; }
.hero-card .hc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-card .hc-top img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.hero-card .hc-top strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.hero-card .hc-top span { font-size: .85rem; opacity: .85; }
.hero-card .hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-card .hc-stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px; text-align: center; }
.hero-card .hc-stats strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.hero-card .hc-stats span { font-size: .74rem; opacity: .85; }

/* search card that overlaps the hero */
.search-wrap { position: relative; z-index: 5; margin-top: -84px; }
.search {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 6px;
  background: var(--paper); border-radius: 26px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  max-width: 1040px; margin: 0 auto;
}
.search .cell { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 18px; transition: background .15s; }
.search .cell:hover, .search .cell:focus-within { background: var(--bg); }
.search .cell + .cell { border-left: 1px solid var(--line-soft); }
.search .cell .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.search .cell .ic svg { width: 20px; height: 20px; }
.search .cell div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search .cell label { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.search .cell input, .search .cell select { border: 0; padding: 0; height: 26px; background: transparent; font-weight: 700; outline: none; width: 100%; color: var(--ink); appearance: none; -webkit-appearance: none; }
.search .btn { height: 64px; border-radius: 20px; padding: 0 30px; }
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .search .cell + .cell { border-left: 0; }
  .search .cell:nth-child(3) { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; height: 56px; }
}

/* feature tiles */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); margin-bottom: 16px; }
.feature .fi svg { width: 24px; height: 24px; }
.feature h4 { margin-bottom: 4px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* two-wing split */
.wings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wing-card { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none; min-height: 460px; isolation: isolate; }
.wing-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.wing-card::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.wing-card.sunrise::before { background: linear-gradient(180deg, rgba(245, 158, 11, 0) 30%, rgba(120, 66, 6, .88) 100%); }
.wing-card.sunset::before { background: linear-gradient(180deg, rgba(139, 92, 246, 0) 30%, rgba(52, 28, 120, .9) 100%); }
.wing-card:hover { color: #fff; }
.wing-card:hover img { transform: scale(1.06); }
.wing-card h3 { color: #fff; font-size: 2.2rem; margin-bottom: 8px; }
.wing-card p { color: rgba(255, 255, 255, .88); max-width: 38ch; margin-bottom: 18px; }
.wing-card .wing-top { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; }
.wing-card .go { align-self: flex-start; }
@media (max-width: 760px) { .wings { grid-template-columns: 1fr; } .wing-card { min-height: 360px; } }

/* room type cards */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 5; isolation: isolate; box-shadow: var(--shadow); }
.type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.type-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 48, 0) 40%, rgba(8, 22, 48, .85) 100%); }
.type-card:hover img { transform: scale(1.06); }
.type-card:hover { color: #fff; }
.type-card .tc-price { position: absolute; top: 18px; right: 18px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.type-card .tc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.type-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.type-card p { color: rgba(255, 255, 255, .85); font-size: .95rem; margin-bottom: 16px; }
.type-card .tc-foot { display: flex; justify-content: space-between; align-items: center; }
.type-card .tc-foot span { font-size: .88rem; opacity: .9; }
.type-card .tc-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); transition: transform .2s; }
.type-card:hover .tc-go { transform: rotate(-45deg); }
.type-card .tc-go svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .types { grid-template-columns: 1fr; } .type-card { aspect-ratio: 4 / 3.6; } }

/* featured rooms carousel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.car-btns { display: flex; gap: 10px; }
@media (max-width: 1080px) { .carousel { grid-auto-columns: calc((100% - 44px) / 3); } }
@media (max-width: 760px) { .carousel { grid-auto-columns: 78%; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo-stack { position: relative; padding: 0 40px 40px 0; }
.photo-stack .p1 { border-radius: var(--r-xl); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.photo-stack .p2 { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 6px solid var(--paper); box-shadow: var(--shadow-lg); }
.photo-stack .badge-float { position: absolute; left: 22px; top: 22px; padding: 12px 16px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; }
.photo-stack .badge-float .stars svg { width: 15px; height: 15px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.facts div { background: var(--grad-soft); border-radius: var(--r-md); padding: 18px; }
.facts strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--ink-2); font-size: .88rem; font-weight: 600; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li span.ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.checks li span.ck svg { width: 15px; height: 15px; }

/* mosaic gallery */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.mosaic figure:first-child { grid-row: span 2; border-radius: var(--r-xl); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
}

/* reviews */
.stars { display: inline-flex; gap: 2px; color: var(--sunrise); }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: #dbe3ef; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border-bottom: 0; }
.review .who { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.review p { margin: 0; color: var(--ink-2); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--brand-soft); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); font-weight: 500; }
.quote footer { display: flex; gap: 12px; align-items: center; margin-top: auto; color: var(--ink-2); font-size: .88rem; }
.quote footer .ava { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.quote footer strong { display: block; color: var(--ink); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* call-to-action band */
.cta { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 72px 56px; color: #fff; isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(29, 78, 216, .95) 0%, rgba(37, 99, 235, .82) 45%, rgba(56, 189, 248, .35) 100%); }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 46ch; font-size: 1.08rem; margin-bottom: 26px; }
@media (max-width: 640px) { .cta { padding: 48px 26px; } }

/* ---------------------------------------------------------- banner (inner page headers) */
.banner-frame { padding: 16px 16px 0; }
.banner { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; isolation: isolate; min-height: 300px; display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 48, .82) 0%, rgba(8, 22, 48, .5) 50%, rgba(8, 22, 48, .1) 100%); }
.banner .wrap { position: relative; padding-top: 56px; padding-bottom: 52px; }
.banner h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 10px; }
.banner p { color: rgba(255, 255, 255, .86); max-width: 54ch; margin: 0; font-size: 1.05rem; }
.banner .crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; }
.banner .crumbs a { color: #fff; text-decoration: none; opacity: .85; }
.banner .crumbs a:hover { opacity: 1; }
.banner .btn-primary { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------- rooms list */
.toolbar {
  position: relative; z-index: 3; display: flex; gap: 14px 18px; align-items: flex-end; flex-wrap: wrap;
  padding: 20px 22px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow); margin: -44px 0 28px;
}
.toolbar .field { min-width: 150px; flex: 1; }
.toolbar .field.wide { flex: 0 0 auto; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; }
.room-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); margin: 8px 8px 0; border-radius: 16px; }
.room-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.room-card:hover .media img { transform: scale(1.07); }
.room-card .media .wing { position: absolute; left: 12px; top: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.room-card .media .price-chip { position: absolute; right: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.room-card .media .price-chip small { font-weight: 600; opacity: .85; font-size: .75rem; }
.room-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card .title { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.room-card h3 { font-size: 1.25rem; margin: 0; }
.room-card .type { font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.room-card .meta { display: flex; gap: 8px; color: var(--ink-2); font-size: .84rem; flex-wrap: wrap; }
.room-card .meta span { display: inline-flex; gap: 6px; align-items: center; background: var(--bg); padding: 6px 10px; border-radius: 10px; font-weight: 600; }
.room-card .meta svg { width: 15px; height: 15px; color: var(--brand); }
.room-card .cta-row { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.room-card .cta-row .from { font-size: .82rem; color: var(--ink-3); }
.room-card .cta-row .from strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.room-card .cta-row .view { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--brand); padding: 9px 14px; border-radius: 999px; background: var(--brand-soft); transition: background .2s, color .2s; }
.room-card:hover .cta-row .view { background: var(--grad); color: #fff; }
.room-card .cta-row .view svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- room detail */
.detail { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; padding: 28px 0 88px; }
.gallery { display: grid; gap: 12px; }
.gallery .main { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .thumbs button { padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.gallery .thumbs button:hover { transform: translateY(-2px); }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--brand); }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.amenities li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; background: var(--paper); border: 1px solid var(--line-soft); padding: 12px 14px; border-radius: 14px; }
.amenities svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.book-box { position: sticky; top: calc(var(--nav-h) + 20px); padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.book-box .bb-head { background: var(--grad); color: #fff; padding: 22px 26px; }
.book-box .bb-head .price-big { font-family: var(--display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.book-box .bb-head span { opacity: .85; }
.book-box .bb-body { padding: 22px 26px 26px; }
.sum { border-top: 1px solid var(--line-soft); margin-top: 16px; padding-top: 14px; display: grid; gap: 9px; font-size: .95rem; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .total { font-weight: 800; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 2px; font-size: 1.05rem; }
.avail { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.avail:empty { display: none; }
.avail.ok { color: var(--ok); background: var(--ok-soft); }
.avail.bad { color: var(--bad); background: var(--bad-soft); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .book-box { position: static; } }

.star-input { display: inline-flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: #dbe3ef; transition: transform .1s; }
.star-input label:hover { transform: scale(1.12); }
.star-input label svg { width: 34px; height: 34px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--sunrise); }
.star-input input:focus-visible + label { outline: 3px solid rgba(37, 99, 235, .35); border-radius: 6px; }

/* ---------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; gap: 16px; }
.booking { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px; align-items: center; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.booking:hover { box-shadow: var(--shadow); }
.booking img { width: 180px; height: 130px; object-fit: cover; border-radius: 16px; }
.booking h3 { margin: 0 0 4px; font-size: 1.3rem; }
.booking .dates { color: var(--ink-2); font-size: .93rem; }
.booking .money { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.booking .money span { background: var(--bg); padding: 6px 12px; border-radius: 10px; }
.booking .money strong { color: var(--ink); }
.booking .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 180px; padding-right: 6px; }
@media (max-width: 760px) {
  .booking { grid-template-columns: 1fr; }
  .booking img { width: 100%; height: 190px; }
  .booking .actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

.note { display: flex; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); align-items: center; box-shadow: var(--shadow-sm); }
.note.unread { background: linear-gradient(90deg, #f0f6ff, #fff 60%); border-color: #cfe0fb; }
.note .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); flex: none; }
.note.unread .ic { background: var(--grad); color: #fff; }
.note .ic svg { width: 20px; height: 20px; }
.note .txt { flex: 1; }
.note .txt p { margin: 0; }
.note.unread .txt p { font-weight: 700; }
.note .when { font-size: .8rem; color: var(--ink-3); }

.empty { text-align: center; padding: 60px 24px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-2); }
.empty h3 { color: var(--ink); }
.empty .btn { margin-top: 10px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 700; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.chip:hover { color: var(--brand); border-color: #b7cdf3; }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.chip .n { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: .78rem; }
.chip[aria-pressed="true"] .n { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-weight: 700; color: var(--ink-3); font-size: .78rem; padding: 14px 16px; background: #f8fbff; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover td { background: #f7fbff; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .actions .btn + .btn { margin-left: 6px; }
table.data .select { height: 38px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.t-room { display: flex; gap: 12px; align-items: center; }
.t-room img { width: 54px; height: 42px; object-fit: cover; border-radius: 10px; }
.t-user { display: flex; gap: 12px; align-items: center; }
.t-user .ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); font-weight: 800; font-size: .85rem; flex: none; }

/* ---------------------------------------------------------- auth */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--nav-h)); padding: 16px; gap: 16px; }
.auth-art { position: relative; overflow: hidden; border-radius: var(--r-xl); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: #fff; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 48, .05) 30%, rgba(8, 22, 48, .82) 100%); }
.auth-art .cap { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; max-width: 18ch; margin: 0 0 22px; }
.auth-art .proof { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; max-width: 420px; }
.auth-art .proof .ava-row { display: flex; }
.auth-art .proof .ava-row img { position: static; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; }
.auth-art .proof .ava-row img:first-child { margin-left: 0; }
.auth-art .proof span { font-size: .9rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 2.6rem; }
.auth-form .switch { text-align: center; color: var(--ink-2); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------------------------------------------------------- payment */
.pay-grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; padding-bottom: 88px; }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr; } }
.method-list { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .method-list { grid-template-columns: 1fr; } }
.method { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--paper); transition: all .15s; }
.method:hover { border-color: #b7cdf3; }
.method:has(input:checked) { border-color: var(--brand); background: #f5f9ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.method input { position: absolute; top: 14px; right: 14px; accent-color: var(--brand); width: 18px; height: 18px; }
.method > svg { width: 30px; height: 30px; color: var(--brand); }
.method strong { display: block; }
.method span { font-size: .84rem; color: var(--ink-2); }
.steps { display: flex; gap: 8px; margin: 0 0 24px; list-style: none; padding: 0; counter-reset: st; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-3); font-weight: 600; counter-increment: st; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); font-weight: 800; font-size: .82rem; flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--brand-dark); background: var(--brand-soft); }
.steps li.now::before { background: var(--grad); border-color: transparent; color: #fff; }
.receipt { text-align: center; padding: 48px 28px; }
.receipt .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 10px rgba(5, 150, 105, .08); }
.receipt .tick svg { width: 36px; height: 36px; }
.sum-card { padding: 0; overflow: hidden; }
.sum-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sum-card .sc-body { padding: 22px 24px 24px; }

/* ---------------------------------------------------------- admin */
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-h)); }
.side { background: var(--paper); border-right: 1px solid var(--line-soft); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.side .side-title { color: var(--ink-3); font-size: .78rem; font-weight: 700; padding: 0 14px 10px; }
.side button {
  display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink-2); cursor: pointer; text-align: left; font-weight: 600; transition: all .15s;
}
.side button svg { width: 20px; height: 20px; }
.side button:hover { background: var(--bg); color: var(--ink); }
.side button[aria-current="true"] { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.side .count { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.side button[aria-current="true"] .count { background: rgba(255, 255, 255, .25); color: #fff; }
.side .side-card { margin-top: auto; border-radius: var(--r-md); padding: 18px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.side .side-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.side .side-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 78, 216, .55), rgba(8, 22, 48, .88)); }
.side .side-card strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.side .side-card span { font-size: .82rem; opacity: .85; }
.admin-main { padding: 32px 36px 56px; min-width: 0; background: var(--bg); }
.admin-main h1 { font-size: 2.2rem; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px 0; }
.stat { position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat .si { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .si svg { width: 22px; height: 22px; }
.stat .si.blue { background: var(--brand-soft); color: var(--brand); }
.stat .si.green { background: var(--ok-soft); color: var(--ok); }
.stat .si.amber { background: var(--warn-soft); color: var(--warn); }
.stat .si.violet { background: var(--sunset-soft); color: var(--sunset-ink); }
.stat span { color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.stat strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-top: 2px; letter-spacing: -.02em; }
.stat small { color: var(--ink-3); font-size: .8rem; }
.stat.hero-stat { background: var(--grad); color: #fff; border: 0; box-shadow: var(--glow); }
.stat.hero-stat span, .stat.hero-stat small { color: rgba(255, 255, 255, .85); }
.stat.hero-stat .si { background: rgba(255, 255, 255, .2); color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; font-size: .9rem; margin-bottom: 12px; font-weight: 600; }
.bar { height: 12px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.bar.sunrise i { background: linear-gradient(90deg, #fbbf24, var(--sunrise)); }
.bar.sunset i { background: linear-gradient(90deg, #a78bfa, var(--sunset)); }
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .side .side-title, .side .side-card { display: none; }
  .side button { width: auto; white-space: nowrap; }
  .admin-main { padding: 22px 16px 48px; }
}
@media (min-width: 901px) { .side { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); align-self: start; overflow-y: auto; } }

/* ---------------------------------------------------------- modal + toast */
dialog.modal { border: 0; padding: 0; border-radius: 26px; width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--paper); }
dialog.modal::backdrop { background: rgba(8, 22, 48, .45); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 26px 0; }
.modal-head h3 { margin: 0; font-size: 1.4rem; }
.modal-body { padding: 18px 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 26px 24px; flex-wrap: wrap; }

.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast {
  display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px; font-size: .93rem; font-weight: 500; animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; }
.toast.ok svg { background: #10b981; color: #fff; }
.toast.bad svg { background: #f43f5e; color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.skel { background: linear-gradient(90deg, var(--bg-2), #f6f9fe, var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------- footer */
.footer { position: relative; background: var(--navy); color: #a9b8d1; padding: 72px 0 30px; margin-top: auto; overflow: hidden; isolation: isolate; }
.footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 65%); z-index: -1; }
.footer::after { content: ""; position: absolute; width: 460px; height: 460px; left: -200px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .3), transparent 65%); z-index: -1; }
.footer a { color: #dbe6f7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.footer .socials a:hover { background: var(--grad); text-decoration: none; }
.footer .socials svg { width: 18px; height: 18px; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; font-size: .85rem; color: #7f90ad; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------- small phones */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav-actions .btn-primary.btn-sm { display: none; }
  .brand { font-size: 1.3rem; }
  .section { padding: 64px 0; }
  .panel { padding: 20px; }
  .hero-frame, .banner-frame { padding: 8px 8px 0; }
  .hero { border-radius: 22px; min-height: 640px; }
  .hero-inner { padding: 0 22px 120px; grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .banner { border-radius: 22px; min-height: 240px; }
  .auth { padding: 0; }
}
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; padding: 0 32px 130px; } .hero-card { justify-self: start; } }
.features.three { grid-template-columns: repeat(3, 1fr); }
.features.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .features.three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .features.two { grid-template-columns: 1fr; } }

/* phones: one-column search, two-per-row filters */
@media (max-width: 560px) {
  .search { grid-template-columns: 1fr; padding: 8px; }
  .search .cell { padding: 8px 10px; }
  .search .cell:nth-child(3) { grid-column: auto; }
  .search .cell input { min-width: 0; }
  .search-wrap { margin-top: -64px; }
  .toolbar { padding: 16px; gap: 12px; }
  .toolbar .field { min-width: calc(50% - 6px); flex: 1 1 calc(50% - 6px); }
  .toolbar .field.wide { flex: 1 1 100%; }
  .toolbar #clearBtn { flex: 1 1 100%; }
  .hero-tag { font-size: .8rem; }
}
