/* InstaConnect Online -- shared stylesheet (marketing, admin and guest room pages). */
:root {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b5d56;
  --brand-soft: #e6f4f1;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --green: #15803d;
  --green-soft: #dcfce7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

img, svg { max-width: 100%; }
a { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(640px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stack > * + * { margin-top: .75rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .05s;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f1f5f9; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.sm { padding: .42rem .8rem; font-size: .82rem; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --- forms --- */
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
input[type=text], input[type=password], input[type=number], input[type=url],
input[type=datetime-local], input[type=email], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
textarea { resize: vertical; min-height: 84px; }
.field + .field { margin-top: .85rem; }
.checkline { display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; }
.checkline input { width: auto; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.notice { border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; }
.notice.err { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.notice.ok { background: var(--green-soft); color: var(--green); border: 1px solid #bbf7d0; }

.pill {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-dark);
}
.pill.new { background: var(--amber-soft); color: var(--amber); }
.pill.accepted { background: #dbeafe; color: #1d4ed8; }
.pill.done { background: var(--green-soft); color: var(--green); }
.pill.cancelled { background: #f1f5f9; color: var(--muted); }

/* --- marketing --- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1rem; }
/* --- the InstaConnect Online mark --- */
.ic-logo { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--ink); flex: none; }
.ic-emblem { color: var(--brand); flex: none; display: block; }
.ic-wm { display: grid; line-height: 1; }
.ic-wm-1 { font-weight: 800; font-size: .96rem; letter-spacing: .135em; white-space: nowrap; }
.ic-wm-2 {
  font-weight: 600; font-size: .55rem; letter-spacing: .44em; color: var(--brand-dark);
  white-space: nowrap;
  margin-top: .3rem; padding-top: .26rem; border-top: 1px solid rgba(15, 118, 110, .35);
  text-indent: .02em;
}
.ic-logo.on-dark, .admin-head .ic-logo { color: #fff; }
.ic-logo.on-dark .ic-wm-2, .admin-head .ic-wm-2 {
  color: rgba(255, 255, 255, .82); border-top-color: rgba(255, 255, 255, .32);
}

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: var(--brand-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 44ch; }

.phone {
  width: min(300px, 100%); margin-inline: auto; background: var(--ink); border-radius: 34px;
  padding: 11px; box-shadow: 0 24px 60px rgba(11, 18, 32, .28);
}
.phone-screen { background: #fff; border-radius: 24px; overflow: hidden; }
.phone-top { background: var(--brand); color: #fff; padding: 1.1rem 1rem .9rem; }
.phone-list { padding: .6rem; display: grid; gap: .45rem; }
.phone-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 12px; background: #f6f8fb; font-size: .86rem; font-weight: 600; }
.phone-row .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); display: grid; place-items: center; font-size: .95rem; }

.features { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .6rem; }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: .5rem; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.75rem, 4vw, 3rem); text-align: center; }
.cta p { color: #c7d2e0; max-width: 52ch; margin-inline: auto; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.1); }

.site-foot { background: #fff; border-top: 1px solid var(--line); padding: 2rem 0; font-size: .88rem; color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--muted); font-size: .94rem; }

/* --- admin --- */
.admin-head { background: var(--ink); color: #fff; }
.admin-head a { color: #fff; }
.admin-head .wrap { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; flex-wrap: wrap; }
.admin-head .logo { color: #fff; }
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .4rem 0; }
.admin-nav a { display: block; padding: .45rem .8rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.admin-nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.admin-main { padding: 1.75rem 0 4rem; }
.stat-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; }

.req { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.req + .req { margin-top: .7rem; }
.req.new { border-left: 4px solid var(--amber); }
.req.accepted { border-left: 4px solid #2563eb; }
.req ul { margin: .6rem 0; padding-left: 1.1rem; font-size: .92rem; }
.roomtag { font-weight: 800; font-size: 1.05rem; }

.split { display: grid; gap: 1rem; }
.duo { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .duo { grid-template-columns: 1.25fr .75fr; gap: 3rem; } }
@media (min-width: 860px) { .split { grid-template-columns: 290px 1fr; align-items: start; } }
.thread-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.thread-list a { display: block; padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.thread-list a:hover { background: #f8fafc; }
.thread-list a.on { background: var(--brand-soft); }
.chatbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 420px; }
.chatlog { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; max-height: 55vh; }
.bubble { max-width: 78%; padding: .55rem .8rem; border-radius: 14px; font-size: .93rem; }
.bubble.guest { background: #f1f5f9; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.reception { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .t { display: block; font-size: .68rem; opacity: .7; margin-top: .2rem; }
.chatform { border-top: 1px solid var(--line); padding: .75rem; display: flex; gap: .5rem; }

table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th, table.grid td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.grid th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tablewrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; }

.item-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.item-row + .item-row { margin-top: .5rem; }
.item-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .item-grid { grid-template-columns: 1.1fr 1.6fr 110px auto; align-items: center; } }

/* --- QR sheet: the card that goes in the room --- */
.qr-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1rem;
  text-align: center; break-inside: avoid;
}
.qr-brand { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.qr-brandtext { display: grid; line-height: 1; text-align: left; }
.qr-brandname { font-weight: 800; font-size: .72rem; letter-spacing: .15em; color: var(--ink); }
.qr-brandsub {
  font-weight: 600; font-size: .44rem; letter-spacing: .44em; color: var(--brand-dark);
  margin-top: .22rem; padding-top: .18rem; border-top: 1px solid rgba(15, 118, 110, .35);
}
.qr-tagline {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark);
  font-weight: 700; margin-top: .45rem;
}
.qr-rule {
  height: 1px; background: var(--line); margin: .7rem 0;
  background-image: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.qr-card .hotelname { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.qr-card .roomno { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.qr-card img { width: 100%; max-width: 180px; display: block; margin: .45rem auto .3rem; }
.qr-how { font-size: .78rem; }
.qr-delivers { font-size: .66rem; color: var(--muted); margin-top: .2rem; line-height: 1.45; }
.qr-alt { font-size: .68rem; color: var(--ink-soft); line-height: 1.55; }
.qr-wifi { font-size: .66rem; color: var(--muted); margin-top: .45rem; }

@media print {
  body { background: #fff; }
  .noprint, .site-head, .admin-head, .admin-nav, .site-foot, .alertbar { display: none !important; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .qr-card { border: 1px dashed #94a3b8; box-shadow: none; page-break-inside: avoid; }
  .wrap { width: 100%; }
}

/* --- guest room page --- */
body.guest { background: #fff; padding-bottom: 88px; }
.g-head { background: var(--brand); color: #fff; padding: 1.4rem 0 1.2rem; }
.g-head .wrap { width: min(680px, 100% - 2rem); }
.g-head h1 { font-size: 1.5rem; margin-bottom: .1rem; }
.g-head .sub { opacity: .92; font-size: .92rem; }
.g-room { display: inline-block; background: rgba(255,255,255,.18); border-radius: 999px; padding: .2rem .75rem; font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.g-wrap { width: min(680px, 100% - 2rem); margin-inline: auto; padding: 1.1rem 0 2rem; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 20;
  border-top: 1px solid var(--line); display: flex; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(15,23,42,.06);
}
.tabbar button {
  flex: 1; background: none; border: 0; padding: .35rem .1rem; font: inherit; cursor: pointer;
  color: var(--muted); font-size: .66rem; font-weight: 700; display: grid; gap: .1rem; justify-items: center;
  border-radius: 10px; position: relative;
}
.tabbar button .ico { font-size: 1.2rem; line-height: 1.1; }
.tabbar button.on { color: var(--brand-dark); background: var(--brand-soft); }
.tabbar .dot { position: absolute; top: .2rem; right: 22%; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.tile-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem;
  text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow); color: var(--ink);
}
.tile .ico { font-size: 1.5rem; }
.tile b { display: block; margin-top: .3rem; }
.tile span { color: var(--muted); font-size: .8rem; }

.wifi-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.1rem; }
.wifi-card .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .65; }
.wifi-card .v { font-size: 1.15rem; font-weight: 700; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; }
.wifi-card .copy { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .8rem; cursor: pointer; }

.menu-cat { margin-top: 1.4rem; }
.menu-cat h3 { border-bottom: 2px solid var(--brand-soft); padding-bottom: .3rem; }
.menu-item { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.menu-item .name { font-weight: 650; }
.menu-item .desc { color: var(--muted); font-size: .85rem; }
.menu-item .price { font-weight: 700; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: .3rem; }
.qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.05rem; line-height: 1; cursor: pointer; color: var(--ink); font-family: inherit;
}
.qty button.plus { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty .n { min-width: 1.2rem; text-align: center; font-weight: 700; }

.basket {
  position: fixed; left: 0; right: 0; bottom: 74px; z-index: 19;
  width: min(680px, 100% - 2rem); margin-inline: auto;
}
.basket .inner {
  background: var(--ink); color: #fff; border-radius: 999px; padding: .6rem .7rem .6rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  box-shadow: 0 10px 30px rgba(11,18,32,.3);
}
.basket .btn { background: var(--brand); }

.req-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem; }
.req-card + .req-card { margin-top: .6rem; }
.req-card ul { margin: .45rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); }

.g-chatlog { display: flex; flex-direction: column; gap: .5rem; min-height: 180px; }
.g-chatform { display: flex; gap: .5rem; margin-top: .9rem; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 40;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* --- the welcome sheet shown once, right after registration --- */
.sheet-backdrop {
  min-height: 100vh; background: linear-gradient(160deg, #0b1220, #134e4a);
  padding: clamp(1rem, 4vw, 3rem) 1rem; display: flex; align-items: flex-start;
  justify-content: center;
}
.sheet {
  width: min(680px, 100%); background: #fff; border-radius: 22px;
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 30px 70px rgba(2, 20, 20, .45);
}
.sheet-head { text-align: center; margin-bottom: 1.4rem; }
.sheet-head h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .4rem; }
.sheet-head .tick {
  width: 54px; height: 54px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; font-size: 1.7rem;
  margin: 0 auto .8rem; font-weight: 700;
}
.creds { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1rem; }
.creds > div {
  display: flex; gap: 1rem; justify-content: space-between; align-items: baseline;
  padding: .65rem .9rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.creds > div:last-child { border-bottom: 0; }
.creds .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.creds .v { font-weight: 700; font-size: 1.05rem; word-break: break-all; text-align: right; }
.delivery { background: var(--bg); border-radius: 14px; padding: 1rem; margin: 1.2rem 0; }
.msg-preview summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.msg-preview pre {
  white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 12px;
  padding: .9rem; font-size: .8rem; line-height: 1.5; margin-top: .6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.next-steps { padding-left: 1.2rem; }
.next-steps li { margin-bottom: .5rem; color: var(--muted); }
.next-steps strong { color: var(--ink); }

/* --- terms and privacy --- */
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }


/* --- footer layout --- */
.foot-top { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1fr auto; align-items: start; } }
.foot-top .row { gap: 1rem 1.4rem; }

.notice.warn { background: var(--amber-soft); color: var(--amber); border: 1px solid #fde68a; }
.hotel-badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  padding: .16rem .6rem; border-radius: 999px; font-weight: 700;
}
.hotel-badge.op { background: var(--brand); border-color: var(--brand); }
.op-head { background: #10261f; }

/* --- the alert bar over the dashboard --- */
.alertbar {
  position: sticky; top: 0; z-index: 60; background: var(--amber); color: #fff;
  cursor: pointer; box-shadow: 0 6px 18px rgba(180, 83, 9, .3);
  animation: alertin .25s ease-out;
}
@keyframes alertin { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.alertbar .wrap { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; }
.alertbar strong { font-size: .98rem; }
.alertbar .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.alertbar .btn { background: #fff; color: var(--amber); }
.alertbar .btn:hover { background: #fff7ed; }
.alertbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.alertbar .btn.ghost.muted { opacity: .7; text-decoration: line-through; }
.alert-x {
  background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  padding: 0 .2rem; opacity: .8;
}
.nav-count {
  display: inline-block; min-width: 1.25rem; padding: 0 .3rem; margin-left: .35rem;
  border-radius: 999px; background: var(--amber); color: #fff; font-size: .7rem;
  font-weight: 800; text-align: center;
}

/* --- chat channels --- */
.chan {
  display: inline-block; padding: .08rem .45rem; border-radius: 999px; font-size: .66rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
}
.chan-roomservice { background: #fef3c7; color: #b45309; }
.chan-housekeeping { background: #e0e7ff; color: #4338ca; }
.chan-service { background: #fae8ff; color: #a21caf; }
.chan-tabs { display: flex; gap: .2rem; padding: .5rem .7rem 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.chan-tabs a {
  padding: .35rem .7rem; border-radius: 10px 10px 0 0; font-size: .82rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.chan-tabs a.on { background: var(--brand-soft); color: var(--brand-dark); }

.chan-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: .8rem; }
.chan-chips button {
  position: relative; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .4rem .85rem; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  color: var(--muted); white-space: nowrap;
}
.chan-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-dot {
  position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); border: 2px solid #fff;
}

.g-brandfoot { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 2rem;
  padding-top: 1rem; border-top: 1px solid var(--line); }

/* --- activation steps --- */
.steps-v { display: grid; gap: .8rem; }
.step-v {
  display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; align-items: flex-start;
}
.step-v .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--muted);
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.step-v.now { border-color: var(--brand); box-shadow: var(--shadow); }
.step-v.now .n { background: var(--brand); color: #fff; }
.step-v.done .n { background: var(--green-soft); color: var(--green); }
.step-v h3 { margin-bottom: .2rem; }
.fee { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3rem; }
.bigcode { font-size: 1.3rem; letter-spacing: .12em; text-align: center; font-weight: 700; }

/* --- operator --- */
.op-tabs { display: flex; gap: .3rem; overflow-x: auto; margin-top: 1.25rem; }
.op-tabs a {
  padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .9rem; white-space: nowrap; border: 1px solid var(--line);
  background: #fff;
}
.op-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.op-n { display: inline-block; margin-left: .3rem; font-weight: 800; opacity: .75; }
.op-n.hot { background: var(--amber); color: #fff; border-radius: 999px; padding: 0 .4rem; opacity: 1; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: .35rem .6rem .35rem 0; width: 38%; vertical-align: top;
  font-weight: 700;
}
table.kv td { padding: .35rem 0; font-size: .9rem; word-break: break-word; }


/* --- headers on a narrow phone ---
   The logo and the buttons will not fit on one line on a phone. Before this
   the header was a single non wrapping flex row, so the logo was squeezed
   below its own width and the wordmark ran underneath the buttons. Now the
   logo keeps its full width and the buttons drop to a row of their own. */
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; gap: .75rem; padding: .8rem 0; }
  .site-head nav.row { width: 100%; gap: .5rem; flex-wrap: nowrap; }
  .site-head nav.row .btn { flex: 1 1 0; justify-content: center; padding-inline: .55rem; }

  .admin-head .wrap { gap: .6rem; }
  .admin-head .row { width: 100%; justify-content: space-between; gap: .5rem; }
}

@media (max-width: 380px) {
  .ic-wm-1 { font-size: .84rem; letter-spacing: .1em; }
  .ic-wm-2 { font-size: .5rem; letter-spacing: .34em; }
  .site-head nav.row .btn { font-size: .78rem; }
}

/* --- veg and non veg marks: the square outline with a dot India expects --- */
.foodmark {
  display: inline-block; width: .85em; height: .85em; border-radius: 2px;
  border: 1.5px solid currentColor; position: relative; margin-left: .4em;
  vertical-align: -0.05em; flex: none;
}
.foodmark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: .42em; height: .42em; border-radius: 50%; background: currentColor;
}
.foodmark.veg { color: #15803d; }
.foodmark.nonveg { color: #b91c1c; }
.foodsel.veg { border-color: #15803d; color: #15803d; }
.foodsel.nonveg { border-color: #b91c1c; color: #b91c1c; }

/* --- a section that is closed or paused --- */
.closed-card {
  background: var(--amber-soft); border: 1px solid #fde68a; border-radius: var(--radius);
  padding: 1.4rem; text-align: center; color: var(--amber);
}
.closed-card .ico { font-size: 2rem; }
.closed-card p { margin: .5rem 0 0; font-weight: 600; }
.closed-card p.small { font-weight: 400; }

/* --- the services page --- */
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.svc-card.off { opacity: .72; background: #fbfcfd; }
.svc-card.paused { border-color: var(--amber); }
.svc-head {
  display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: .9rem;
}
.svc-icon {
  font-size: 1.3rem; width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--brand-soft); display: grid; place-items: center;
}
.svc-form { border-top: 1px solid var(--line); padding-top: .9rem; }
.svc-grid { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.card.dim { opacity: .7; }

/* --- archived chats --- */
.arch-day {
  padding: .45rem .9rem; background: var(--bg); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
}

/* --- an automatic message, clearly not a person --- */
.bubble.system {
  align-self: center; background: var(--bg); color: var(--muted); font-size: .85rem;
  border: 1px dashed var(--line); max-width: 90%; text-align: center;
}
.g-chatlog .bubble.system { align-self: center; }

/* --- statuses --- */
.pill.in_progress { background: #dbeafe; color: #1d4ed8; }
.pill.on_the_way { background: #ede9fe; color: #6d28d9; }
.req.in_progress { border-left: 4px solid #2563eb; }
.req.on_the_way { border-left: 4px solid #7c3aed; }

/* The tab bar grows with the hotel's sections, so let it scroll. */
.tabbar { overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex: 0 0 auto; min-width: 4.6rem; }

/* --- subscription plans as the hotel sees them --- */
.plan-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.plan-card:hover { border-color: #cbd5e1; }
.plan-card.on { border-color: var(--brand); box-shadow: var(--shadow); }
.plan-card input { width: auto; margin-bottom: .6rem; accent-color: var(--brand); }
.plan-body { display: block; }
.plan-name { display: block; font-weight: 800; font-size: 1.05rem; }
.plan-price {
  display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--brand-dark); margin-top: .2rem;
}
.plan-period { display: block; font-size: .8rem; color: var(--muted); }
.plan-features { display: block; margin-top: .7rem; font-size: .84rem; color: var(--ink-soft); }
.plan-features span { display: block; padding-left: 1rem; position: relative; margin-bottom: .25rem; }
.plan-features span::before {
  content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}
.pay-line {
  display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  padding: .8rem 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.pay-line .k {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 700;
}
.pay-line .v { font-size: 1.15rem; font-weight: 700; word-break: break-all; }

/* --- the guest's language switch: first thing on the page --- */
.langbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.langbar-inner {
  width: min(680px, 100% - 2rem); margin-inline: auto; display: flex; align-items: center;
  gap: .55rem; padding: .5rem 0;
}
.langbar .globe { font-size: 1.25rem; line-height: 1; }
.langbar-label { margin: 0; font-size: .82rem; font-weight: 700; color: #fff; }
.langbar select {
  flex: 1; min-width: 0; background: #fff; color: var(--ink); border: 0; border-radius: 999px;
  padding: .45rem .9rem; font-weight: 700; font-size: .95rem;
}
.lang-sheet {
  position: fixed; inset: 0; z-index: 80; background: rgba(11, 18, 32, .72);
  display: flex; align-items: flex-end; justify-content: center; padding: 1rem;
}
@media (min-width: 640px) { .lang-sheet { align-items: center; } }
.lang-sheet-card {
  background: #fff; border-radius: 22px; padding: 1.4rem 1.2rem; width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto; text-align: center;
}
.lang-sheet-card h2 { margin: .3rem 0 .2rem; font-size: 1.4rem; }
.globe-big { font-size: 2.4rem; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1rem; }
@media (min-width: 480px) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }
.lang-grid button {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .65rem .5rem;
  font: inherit; cursor: pointer; display: grid; gap: .1rem; color: var(--ink);
}
.lang-grid button strong { font-size: 1rem; }
.lang-grid button span { font-size: .72rem; color: var(--muted); }
.lang-grid button.on { border-color: var(--brand); background: var(--brand-soft); }

/* Right to left languages (Arabic, Urdu) mirror the layout. */
[dir="rtl"] .menu-item, [dir="rtl"] .spread, [dir="rtl"] .row { direction: rtl; }
[dir="rtl"] .foodmark { margin-left: 0; margin-right: .4em; }
[dir="rtl"] .bubble.guest { align-self: flex-end; }
[dir="rtl"] .bubble.reception { align-self: flex-start; }

/* On the dashboard: the language a guest wrote in. */
.langtag {
  display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; background: #e0e7ff; color: #4338ca; border-radius: 999px;
  padding: .05rem .4rem; margin-left: .3rem; vertical-align: middle;
}

/* A guest's message translated for the desk, under the original. */
.bubble .tr-line {
  display: block; margin-top: .35rem; padding-top: .35rem;
  border-top: 1px dashed rgba(15, 23, 42, .18); font-size: .88rem;
}

/* Shown until the browser has been allowed to play sound on this screen. */
.sound-enable {
  display: block; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: #fef3c7; color: #92400e; padding: .6rem 1rem; text-align: center;
  font-size: .92rem;
}
.sound-enable:hover { background: #fde68a; }

/* --- operator usage dashboard --- */
.use-h { font-size: 1.2rem; margin: 1.8rem 0 .8rem; }
.range-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.range-pick a { padding: .45rem .85rem; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.range-pick a.on { background: var(--ink); color: #fff; }
.chart-card { margin-top: 1rem; }
.bars { display: grid; grid-template-columns: auto 1fr; gap: .5rem; height: 180px; }
.bars-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .7rem; color: var(--muted); text-align: right; }
.bars-plot {
  display: flex; align-items: flex-end; gap: 2px; height: 100%;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 50%;
}
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bar { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-slot:hover .bar, .bar-slot:focus .bar { background: var(--brand-dark); }
.bar-slot:hover::after, .bar-slot:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff;
  font-size: .75rem; padding: .3rem .55rem; border-radius: 8px; z-index: 5; pointer-events: none;
}
.bars-x { display: flex; justify-content: space-between; margin-left: 2rem; margin-top: .3rem; }
.health { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700;
  padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.health.ok { background: #dcfce7; color: #166534; }
.health.low { background: #fef3c7; color: #92400e; }
.health.slow { background: #ffedd5; color: #9a3412; }
.health.bad { background: #fee2e2; color: #991b1b; }
.health.off { background: #f1f5f9; color: #475569; }
.health-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.health-count { display: inline-flex; align-items: center; gap: .4rem; }
.usage-table td { vertical-align: top; }
.warn-text { color: #9a3412; font-weight: 700; }
