/* ============================================================
   SeaSpray Whitby — SSDev demo build
   Palette: North Sea navy / steel / brass
   ============================================================ */
:root {
  --ink: #0b1d2a;          /* deep navy — primary bg */
  --ink-2: #0f2534;        /* raised navy */
  --ink-3: #16334a;        /* card navy */
  --steel: #8fa8b8;        /* steel blue — secondary text */
  --foam: #f2efe9;         /* off-white — primary text on dark */
  --brass: #d9a441;        /* brass — accent */
  --brass-2: #b8842c;      /* deep brass */
  --sea: #1d4e6b;          /* mid sea blue */
  --ok: #3fa06a;
  --warn: #d97c41;
  --bad: #c65353;
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --max: 1200px;
  --rad: 14px;
  --shadow: 0 18px 50px rgba(4, 12, 18, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--foam);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: var(--ink); }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: .01em; }
.kicker {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 56ch; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 92vw); margin: 0 auto; }
section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled { background: rgba(11, 29, 42, .92); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.35); padding-block: .75rem; }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: .6rem; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo span em { color: var(--brass); font-style: normal; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); transition: color .25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--foam); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass); }
.nav-cta { padding: .62rem 1.4rem !important; border: 1px solid var(--brass); border-radius: 100px; color: var(--brass) !important; }
.nav-cta:hover { background: var(--brass); color: var(--ink) !important; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; z-index: 1001; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--foam); margin: 6px 0; transition: .3s; }
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0; background: rgba(11,29,42,.98); backdrop-filter: blur(18px);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.3rem; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 1rem 2.2rem; border-radius: 100px; cursor: pointer;
  border: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  will-change: transform;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #e6b558; box-shadow: 0 10px 34px rgba(217,164,65,.35); }
.btn-ghost { background: transparent; color: var(--foam); border: 1px solid rgba(242,239,233,.28); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-sm { padding: .6rem 1.3rem; font-size: .78rem; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 clamp(3rem, 8vh, 6rem); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,29,42,.38) 0%, rgba(11,29,42,.22) 38%, rgba(11,29,42,.95) 100%),
              linear-gradient(100deg, rgba(11,29,42,.55) 0%, rgba(11,29,42,0) 55%); }
.hero-content { width: min(var(--max), 92vw); margin: 0 auto; }
.hero h1 { max-width: 13ch; text-wrap: balance; }
.hero .lead { margin: 1.4rem 0 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-strip {
  display: flex; gap: clamp(1.4rem, 4vw, 3.4rem); margin-top: clamp(2rem, 5vh, 3.6rem);
  padding-top: 1.6rem; border-top: 1px solid rgba(242,239,233,.18); flex-wrap: wrap;
}
.hero-strip .stat b { font-family: var(--font-display); font-size: 1.5rem; display: block; color: var(--brass); }
.hero-strip .stat span { font-size: .8rem; color: var(--steel); letter-spacing: .05em; text-transform: uppercase; }

/* cinematic ken burns for static hero — single slow settle, then stops */
.kenburns { animation: kb 18s ease-out 1 forwards; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .kenburns { animation: none; } }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(143,168,184,.14);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(217,164,65,.35); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.6rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--steel); font-size: .95rem; }
.card-meta { display: flex; gap: 1rem; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.card-meta span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--foam); background: rgba(143,168,184,.12); padding: .3rem .8rem; border-radius: 100px; }
.card-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--brass); }
.card-price small { font-size: .8rem; color: var(--steel); font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---------- sections ---------- */
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); display: flex; flex-direction: column; gap: 1rem; }
.bg-raise { background: var(--ink-2); }
.bg-img-sec { position: relative; isolation: isolate; }
.bg-img-sec .bg { position: absolute; inset: 0; z-index: -2; }
.bg-img-sec .bg img { width: 100%; height: 100%; object-fit: cover; }
.bg-img-sec .scrim { position: absolute; inset: 0; z-index: -1; background: rgba(11,29,42,.86); }

/* contour accent */
.contour { position: absolute; right: -8%; top: 4%; width: 46%; opacity: .06; z-index: 0; pointer-events: none; }

/* ---------- reviews ---------- */
.review { background: var(--ink-3); border: 1px solid rgba(143,168,184,.14); border-radius: var(--rad); padding: 1.8rem; }
.review .stars { color: var(--brass); letter-spacing: .2em; margin-bottom: .8rem; }
.review p { color: var(--foam); font-size: .97rem; font-style: italic; }
.review footer { margin-top: 1rem; color: var(--steel); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: #081521; padding: 3.5rem 0 2rem; border-top: 1px solid rgba(143,168,184,.12); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-display); text-transform: uppercase; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .06em; }
.footer a, .footer p { color: var(--steel); font-size: .92rem; }
.footer li { list-style: none; margin-bottom: .55rem; }
.footer a:hover { color: var(--brass); }
.footer-bar { border-top: 1px solid rgba(143,168,184,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--steel); }
.footer-bar b { color: var(--brass); }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 2000; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.2rem; transition: opacity .6s ease, visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .mark { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .12em; }
.preloader .mark em { color: var(--brass); font-style: normal; }
.preloader .line { width: 160px; height: 2px; background: rgba(143,168,184,.2); overflow: hidden; border-radius: 2px; }
.preloader .line i { display: block; height: 100%; width: 0; background: var(--brass); animation: load 1.1s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- reveals (layout-safe: small offsets, cleared on complete) ---------- */
.rv { opacity: 0; transform: translateY(20px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }

/* ---------- booking engine (public) ---------- */
.bk-shell { max-width: 860px; margin: 0 auto; background: var(--ink-2); border: 1px solid rgba(143,168,184,.16); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.bk-steps { display: flex; border-bottom: 1px solid rgba(143,168,184,.14); }
.bk-steps .st { flex: 1; text-align: center; padding: 1rem .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); border-bottom: 2px solid transparent; white-space: nowrap; }
.bk-steps .st.on { color: var(--brass); border-bottom-color: var(--brass); }
.bk-steps .st.done { color: var(--foam); }
.bk-body { padding: clamp(1.4rem, 4vw, 2.6rem); min-height: 380px; }
.bk-foot { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem clamp(1.4rem, 4vw, 2.6rem); border-top: 1px solid rgba(143,168,184,.14); gap: 1rem; flex-wrap: wrap; }
.bk-total { font-family: var(--font-display); font-size: 1.3rem; color: var(--brass); }
.bk-total small { font-family: var(--font-body); color: var(--steel); font-size: .78rem; display: block; letter-spacing: .02em; }

.bk-opt { display: flex; gap: 1.2rem; align-items: center; padding: 1.1rem 1.3rem; border: 1px solid rgba(143,168,184,.18); border-radius: 12px; cursor: pointer; transition: border-color .25s, background .25s, transform .2s; margin-bottom: .9rem; }
.bk-opt:hover { border-color: var(--brass); transform: translateX(4px); }
.bk-opt.sel { border-color: var(--brass); background: rgba(217,164,65,.08); }
.bk-opt .ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: rgba(217,164,65,.12); display: flex; align-items: center; justify-content: center; color: var(--brass); }
.bk-opt b { display: block; font-size: 1.02rem; }
.bk-opt small { color: var(--steel); font-size: .84rem; }
.bk-opt .pr { margin-left: auto; font-family: var(--font-display); color: var(--brass); font-size: 1.1rem; white-space: nowrap; }

/* calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-head b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.cal-nav { display: flex; gap: .5rem; }
.cal-nav button { background: var(--ink-3); color: var(--foam); border: 1px solid rgba(143,168,184,.2); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 1rem; transition: border-color .2s, color .2s; }
.cal-nav button:hover { border-color: var(--brass); color: var(--brass); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--steel); padding: .4rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 9px; border: 1px solid rgba(143,168,184,.14); font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s; background: var(--ink-3); position: relative; }
.cal-day:hover:not(.off):not(.blocked) { border-color: var(--brass); }
.cal-day.sel { background: var(--brass); color: var(--ink); font-weight: 700; border-color: var(--brass); }
.cal-day.off { opacity: .25; cursor: default; background: transparent; }
.cal-day.blocked { opacity: .4; cursor: not-allowed; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(198,83,83,.16) 4px, rgba(198,83,83,.16) 8px); }
.cal-day .cap { font-size: .58rem; color: var(--steel); }
.cal-day.sel .cap { color: rgba(11,29,42,.75); }
.cal-day.low .cap { color: var(--warn); font-weight: 700; }
.cal-legend { display: flex; gap: 1.4rem; margin-top: 1rem; font-size: .74rem; color: var(--steel); flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; }

/* slots */
.slot-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.slot { padding: .7rem 1.3rem; border: 1px solid rgba(143,168,184,.2); border-radius: 100px; cursor: pointer; font-size: .9rem; font-weight: 600; transition: all .2s; background: var(--ink-3); }
.slot:hover { border-color: var(--brass); }
.slot.sel { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.slot.full { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot small { display: block; font-size: .68rem; color: var(--steel); font-weight: 500; }
.slot.sel small { color: rgba(11,29,42,.7); }

/* pax stepper */
.pax-row { display: flex; align-items: center; gap: 1.6rem; margin: 1.2rem 0; }
.stepper { display: flex; align-items: center; gap: 1rem; background: var(--ink-3); border: 1px solid rgba(143,168,184,.2); border-radius: 100px; padding: .4rem; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(217,164,65,.14); color: var(--brass); font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--brass); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper b { min-width: 2ch; text-align: center; font-size: 1.2rem; font-family: var(--font-display); }

/* forms */
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .f-row { grid-template-columns: 1fr; } }
.f-field label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: .45rem; }
.f-field input, .f-field textarea, .f-field select {
  width: 100%; background: var(--ink-3); border: 1px solid rgba(143,168,184,.22); border-radius: 10px;
  color: var(--foam); padding: .85rem 1rem; font-size: .95rem; font-family: var(--font-body);
  transition: border-color .2s; outline: none;
}
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { border-color: var(--brass); }

/* summary / confirm */
.sum-box { background: var(--ink-3); border: 1px solid rgba(143,168,184,.16); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.2rem; }
.sum-box .row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .94rem; border-bottom: 1px dashed rgba(143,168,184,.14); }
.sum-box .row:last-child { border-bottom: 0; }
.sum-box .row span { color: var(--steel); }
.sum-box .row.total { font-family: var(--font-display); font-size: 1.1rem; color: var(--brass); border-top: 1px solid rgba(143,168,184,.2); margin-top: .5rem; padding-top: .8rem; }
.pay-mock { border: 1px dashed rgba(217,164,65,.5); border-radius: 12px; padding: 1.3rem; text-align: center; color: var(--steel); font-size: .9rem; }
.pay-mock b { color: var(--brass); display: block; font-size: 1.05rem; margin-bottom: .3rem; }

.confirm-hero { text-align: center; padding: 2rem 0; }
.confirm-hero .tick { width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 50%; background: rgba(63,160,106,.14); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.confirm-hero .ref { font-family: var(--font-display); font-size: 1.8rem; color: var(--brass); letter-spacing: .06em; margin: .8rem 0; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: .7rem; }
.toast { background: var(--ink-3); border: 1px solid rgba(217,164,65,.4); border-left: 4px solid var(--brass); color: var(--foam); padding: .9rem 1.3rem; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow); animation: toastIn .35s cubic-bezier(.2,.8,.2,1); max-width: 340px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateX(24px); transition: .35s; }

/* ============ ADMIN CONSOLE ============ */
.adm-login { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.adm-login-card { width: min(420px, 94vw); background: var(--ink-2); border: 1px solid rgba(143,168,184,.16); border-radius: 18px; padding: 2.6rem; box-shadow: var(--shadow); }
.adm-login-card .mark { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; margin-bottom: .4rem; }
.adm-login-card .mark em { color: var(--brass); font-style: normal; }
.adm-login-card p { color: var(--steel); font-size: .9rem; margin-bottom: 1.6rem; }
.adm-hint { margin-top: 1.2rem; font-size: .8rem; color: var(--steel); text-align: center; }
.adm-hint b { color: var(--brass); }

.adm { display: grid; grid-template-columns: 240px 1fr; min-height: 100svh; }
.adm-side { background: #081521; border-right: 1px solid rgba(143,168,184,.12); padding: 1.6rem 1rem; position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; }
.adm-side .mark { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; padding: 0 .8rem 1.4rem; }
.adm-side .mark em { color: var(--brass); font-style: normal; }
.adm-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.adm-nav button {
  display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left;
  background: none; border: 0; color: var(--steel); font-size: .92rem; font-weight: 600;
  padding: .78rem .9rem; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; font-family: var(--font-body);
}
.adm-nav button:hover { background: rgba(143,168,184,.08); color: var(--foam); }
.adm-nav button.on { background: rgba(217,164,65,.14); color: var(--brass); }
.adm-nav .badge { margin-left: auto; background: var(--brass); color: var(--ink); font-size: .68rem; font-weight: 800; border-radius: 100px; padding: .1rem .5rem; }
.adm-side .out-btn { color: var(--steel); background: none; border: 1px solid rgba(143,168,184,.2); border-radius: 10px; padding: .6rem; cursor: pointer; font-size: .82rem; }
.adm-main { padding: clamp(1.4rem, 3vw, 2.6rem); background: var(--ink); min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.adm-head h2 { font-size: 1.6rem; }
.adm-head p { color: var(--steel); font-size: .88rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--ink-2); border: 1px solid rgba(143,168,184,.14); border-radius: 12px; padding: 1.2rem 1.4rem; }
.kpi b { font-family: var(--font-display); font-size: 1.7rem; display: block; color: var(--foam); }
.kpi span { font-size: .76rem; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .up { color: var(--ok); font-size: .78rem; }

.tbl-wrap { background: var(--ink-2); border: 1px solid rgba(143,168,184,.14); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 700px; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--steel); padding: .95rem 1.2rem; border-bottom: 1px solid rgba(143,168,184,.14); white-space: nowrap; }
td { padding: .95rem 1.2rem; border-bottom: 1px solid rgba(143,168,184,.08); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(143,168,184,.05); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 100px; }
.chip.pending { background: rgba(217,124,65,.14); color: var(--warn); }
.chip.confirmed { background: rgba(63,160,106,.14); color: var(--ok); }
.chip.completed { background: rgba(143,168,184,.14); color: var(--steel); }
.chip.cancelled { background: rgba(198,83,83,.14); color: var(--bad); }
.chip.deposit { background: rgba(217,164,65,.14); color: var(--brass); }

.adm-toolbar { display: flex; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.adm-toolbar input, .adm-toolbar select { background: var(--ink-2); border: 1px solid rgba(143,168,184,.2); color: var(--foam); border-radius: 10px; padding: .6rem 1rem; font-size: .88rem; outline: none; font-family: var(--font-body); }
.adm-toolbar input:focus { border-color: var(--brass); }

/* drawer */
.drawer-veil { position: fixed; inset: 0; background: rgba(4,10,16,.6); z-index: 1200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-veil.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 94vw); background: var(--ink-2); border-left: 1px solid rgba(143,168,184,.16); z-index: 1300; transform: translateX(102%); transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { padding: 1.4rem 1.6rem; border-bottom: 1px solid rgba(143,168,184,.14); display: flex; justify-content: space-between; align-items: center; }
.drawer-head b { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; }
.drawer-head button { background: none; border: 0; color: var(--steel); font-size: 1.4rem; cursor: pointer; }
.drawer-body { padding: 1.6rem; overflow-y: auto; flex: 1; }
.drawer-actions { padding: 1.2rem 1.6rem; border-top: 1px solid rgba(143,168,184,.14); display: flex; gap: .8rem; flex-wrap: wrap; }
.audit { margin-top: 1.4rem; }
.audit h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--steel); margin-bottom: .8rem; }
.audit-item { display: flex; gap: .9rem; padding: .55rem 0; font-size: .84rem; border-left: 2px solid rgba(217,164,65,.35); padding-left: 1rem; margin-left: .3rem; }
.audit-item time { color: var(--steel); white-space: nowrap; font-size: .76rem; }

/* availability manager */
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; margin: 1.2rem 0; }
.avail-grid .d { text-align: center; padding: .9rem .2rem; border-radius: 10px; border: 1px solid rgba(143,168,184,.18); cursor: pointer; font-size: .82rem; font-weight: 700; transition: all .2s; background: var(--ink-2); }
.avail-grid .d.on { background: rgba(63,160,106,.14); border-color: var(--ok); color: var(--ok); }
.avail-grid .d small { display: block; font-weight: 500; color: var(--steel); font-size: .68rem; }

/* month calendar (admin) */
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mcal .mc-day { min-height: 86px; border: 1px solid rgba(143,168,184,.12); border-radius: 10px; padding: .5rem; font-size: .78rem; background: var(--ink-2); }
.mcal .mc-day.other { opacity: .3; }
.mcal .mc-day .n { color: var(--steel); font-weight: 700; }
.mcal .ev { margin-top: .3rem; background: rgba(217,164,65,.16); color: var(--brass); border-radius: 6px; padding: .18rem .4rem; font-size: .68rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcal .ev.full { background: rgba(63,160,106,.16); color: var(--ok); }
.mcal .ev.blk { background: rgba(198,83,83,.16); color: var(--bad); }

/* template editor */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-editor textarea { width: 100%; min-height: 300px; background: var(--ink-2); border: 1px solid rgba(143,168,184,.2); border-radius: 12px; color: var(--foam); padding: 1.2rem; font-family: "SF Mono", Menlo, monospace; font-size: .84rem; line-height: 1.7; outline: none; resize: vertical; }
.tpl-preview { background: #fff; color: #1a1a1a; border-radius: 12px; padding: 1.6rem; font-size: .9rem; line-height: 1.7; min-height: 300px; }
.tpl-preview .pv-head { border-bottom: 1px solid #e4e4e4; padding-bottom: .8rem; margin-bottom: 1rem; font-size: .8rem; color: #666; }

.live-note { margin-top: 1.4rem; font-size: .82rem; color: var(--steel); border-left: 3px solid var(--brass); padding: .6rem 1rem; background: rgba(217,164,65,.05); border-radius: 0 8px 8px 0; }
.live-note b { color: var(--brass); }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 1100; transform: translateX(-102%); transition: transform .35s; width: 250px; }
  .adm-side.open { transform: none; }
  .adm-mobile-bar { display: flex !important; }
}
.adm-mobile-bar { display: none; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #081521; border-bottom: 1px solid rgba(143,168,184,.12); position: sticky; top: 0; z-index: 1000; }
.adm-mobile-bar button { background: none; border: 1px solid rgba(143,168,184,.25); color: var(--foam); border-radius: 8px; padding: .45rem .8rem; cursor: pointer; }

/* proposal page */
.prop { background: #0d1b26; }
.prop-hero { padding: 9rem 0 4rem; border-bottom: 1px solid rgba(143,168,184,.14); }
.prop h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
.prop section { padding: 3.4rem 0; border-bottom: 1px solid rgba(143,168,184,.08); }
.prop p, .prop li { color: var(--steel); font-size: .98rem; max-width: 70ch; }
.prop li { margin-bottom: .5rem; }
.prop ul, .prop ol { padding-left: 1.3rem; margin: 1rem 0; }
.prop strong { color: var(--foam); }
.num-callout { background: var(--ink-2); border: 1px solid rgba(217,164,65,.3); border-radius: 14px; padding: 1.8rem; margin: 1.6rem 0; }
.num-callout .big { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--brass); }
.map-tbl td, .map-tbl th { white-space: normal; }
.phase { display: flex; gap: 1.4rem; padding: 1.2rem 0; border-bottom: 1px dashed rgba(143,168,184,.14); }
.phase .ph-n { font-family: var(--font-display); color: var(--brass); font-size: 1.3rem; flex: 0 0 44px; }
.invest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.4rem 0; }
@media (max-width: 800px) { .invest-grid { grid-template-columns: 1fr; } }
.invest-card { background: var(--ink-2); border: 1px solid rgba(143,168,184,.16); border-radius: 14px; padding: 1.8rem; }
.invest-card .amt { font-family: var(--font-display); font-size: 1.9rem; color: var(--brass); margin: .6rem 0; }
.invest-card ul { padding-left: 1.2rem; }

/* misc */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--steel); }
.accent { color: var(--brass); }
