/* Ramada Arena — visual language borrowed from archi.ge (navy #0f2c3e, blue #238ccc, light #eaf2f7) + Ramada red #d11242 */
@font-face { font-family: 'Archi'; src: url('assets/fonts/Archi_MT-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archi'; src: url('assets/fonts/Archi_MT-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('assets/fonts/FiraGO-Book.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('assets/fonts/FiraGO-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }

:root {
  --navy: #0f2c3e;
  --navy-2: #163b53;
  --blue: #238ccc;
  --blue-2: #2fa3ea;
  --blue-soft: #eaf2f7;
  --blue-softer: #f0f7fb;
  --red: #d11242;
  --red-soft: #fde8ee;
  --amber: #f59e0b;
  --amber-soft: #fff4de;
  --green: #1d8f6a;
  --green-soft: #e3f5ee;
  --purple: #7c3aed;
  --purple-soft: #efe9fd;
  --text: #333333;
  --muted: #797984;
  --border: #e5e7ec;
  --bg: #f4f7fa;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(15, 44, 62, 0.08);
  --radius: 16px;
  --font-head: 'Archi', 'FiraGO', system-ui, sans-serif;
  --font-body: 'FiraGO', 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0; font-weight: 700; letter-spacing: 0.01em; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 15px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---- layout ---- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img.archi { height: 42px; width: auto; }
.brand img.ramada { height: 34px; width: auto; }
.brand .sep { width: 1px; height: 34px; background: var(--border); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); color: var(--navy); font-size: 15px; }
.brand-text span { font-size: 11px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.online-stack { display: flex; align-items: center; gap: 8px; }
.avatars { display: flex; }
.avatars .avatar { margin-inline-start: -8px; border: 2px solid #fff; }
.avatars .avatar:first-child { margin-inline-start: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.06em; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.7; } }
.conn { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.conn.off .dot { background: var(--amber); }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .brand-text, .conn span, .brand .sep { display: none; }
  .brand img.archi { height: 32px; }
  .brand img.ramada { height: 26px; }
  .topbar .spacer { flex: 0; }
  .nav a, .nav button { padding: 6px 9px; font-size: 13px; }
  .main { padding: 14px 12px 50px; }
  .card { padding: 14px; }
  .card h2 { font-size: 18px; }
  .toasts { top: auto; bottom: 12px; inset-inline-end: 12px; }
}
.nav { display: flex; gap: 4px; }
.nav a, .nav button { padding: 8px 12px; border-radius: 10px; color: var(--navy); font-weight: 500; font-size: 14px; background: transparent; border: 0; }
.nav a.active, .nav a:hover, .nav button:hover { background: var(--blue-soft); }

.main { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; width: 100%; }
.grid { display: grid; gap: 20px; }
.grid-dash { grid-template-columns: minmax(0, 1fr) 340px; }
.grid-unit { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 980px) { .grid-dash, .grid-unit { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.card h3 { font-size: 15px; margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.stat .v { font-family: var(--font-head); font-size: 30px; color: var(--navy); line-height: 1; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat.accent-blue .v { color: var(--blue); }
.stat.accent-red .v { color: var(--red); }
.stat.accent-amber .v { color: var(--amber); }
.stat.accent-green .v { color: var(--green); }
.stat .eyes { position: absolute; inset-inline-end: 12px; top: 12px; display: flex; }
.stat-action { border: 1px solid transparent; text-align: start; font: inherit; cursor: pointer; }
.stat-action:hover, .stat-action:focus-visible { border-color: var(--red); outline-offset: 3px; }
.stat-hint { font-size: 11px; color: var(--red); }

/* ---- avatar ---- */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.user-row:last-child { border-bottom: 0; }
.user-row .info { flex: 1; min-width: 0; }
.user-row .info b { display: block; font-size: 14px; }
.user-row .info span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .where { font-size: 12px; color: var(--blue); font-weight: 500; white-space: nowrap; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }

/* ---- building ---- */
.building-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #0b1e2b; }
.building-wrap svg { display: block; width: 100%; height: auto; }
.floor-poly { fill: rgba(35, 140, 204, 0.32); stroke: rgba(255, 255, 255, 0.75); stroke-width: 1; cursor: pointer; transition: fill 0.15s; }
.floor-poly:hover, .floor-poly.active { fill: rgba(35, 140, 204, 0.6); }
.floor-poly.none { fill: rgba(209, 18, 66, 0.22); }
.floor-poly.none:hover { fill: rgba(209, 18, 66, 0.5); }
.floor-poly.has-hold { fill: rgba(245, 158, 11, 0.4); }
.floor-poly.has-viewers { stroke: #fff; stroke-width: 2; }
.floor-label { font-family: var(--font-body); font-size: 12px; direction: ltr; fill: #fff; pointer-events: none; font-weight: 600; paint-order: stroke; stroke: rgba(15, 44, 62, 0.8); stroke-width: 3px; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.floor-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -2px; }
.floor-legend .lg-avail::before { background: rgba(35, 140, 204, 0.6); }
.floor-legend .lg-none::before { background: rgba(209, 18, 66, 0.5); }
.floor-legend .lg-hold::before { background: rgba(245, 158, 11, 0.6); }
.floor-legend .lg-view::before { background: #fff; border: 2px solid var(--navy); box-sizing: border-box; }

.floor-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 16px; }
.floor-chip { border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; background: var(--card); position: relative; transition: transform 0.1s, box-shadow 0.1s; }
.floor-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--blue); }
.floor-chip b { font-family: var(--font-head); font-size: 18px; color: var(--navy); display: block; }
.floor-chip small { font-size: 11px; color: var(--muted); display: block; }
.floor-chip.none b { color: var(--red); }
.floor-chip .eye { position: absolute; top: -6px; inset-inline-end: -6px; background: var(--blue); color: #fff; border-radius: 999px; font-size: 10px; padding: 2px 6px; font-weight: 600; }
.floor-chip .hold-dot { position: absolute; top: -4px; inset-inline-start: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

/* ---- floor view ---- */
.inventory-browser { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.inventory-browser .card-head { align-items: flex-start; }
.inventory-browser .card-head p { margin: 6px 0 0; line-height: 1.5; }
.inventory-browser .card-head button { flex: none; }
#inventory-title { scroll-margin-top: 100px; }
.inventory-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 16px; border-radius: 12px; background: var(--blue-softer); }
.inventory-range { border: 0; margin: 0; padding: 0; min-width: 0; }
.inventory-range legend, .inventory-field label { display: block; font-size: 12px; color: var(--navy); margin-bottom: 6px; padding: 0; }
.inventory-range > div { display: flex; gap: 6px; }
.inventory-filters input, .inventory-filters select { min-width: 0; width: 100%; padding: 9px 8px; border: 1px solid #cbdbe6; border-radius: 8px; background: #fff; color: var(--navy); font-size: 13px; }
.inventory-filters input:focus, .inventory-filters select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.inventory-count { font-size: 12px; color: var(--muted); margin: 14px 0 12px; }
.apartment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.apartment-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: center; color: var(--navy); transition: border-color .15s, box-shadow .15s; }
.apartment-chip:hover, .apartment-chip:focus-visible { border-color: var(--blue); box-shadow: var(--shadow); outline-offset: 3px; }
.apartment-number small { display: block; color: var(--muted); font-size: 10px; }
.apartment-number b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.15; }
.apartment-price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.apartment-meta, .apartment-coefficient { font-size: 10px; color: #637585; }
.apartment-status { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 4px; font-size: 10px; }
.apartment-chip.sold { background: #fff8fa; border-color: #f0dce2; }
.apartment-chip.sold .apartment-number { color: var(--red); }
.apartment-chip.reserved { background: #faf8ff; border-color: #e4dcf7; }
.apartment-chip.reserved .apartment-number { color: var(--purple); }
.apartment-chip.held { background: #fffbf1; border-color: #efd7a7; }
.apartment-chip.not_for_sale { background: #f5f5f6; }
.apartment-viewers { position: absolute; top: -6px; right: -4px; background: var(--blue); color: white; border-radius: 999px; padding: 2px 6px; font-size: 10px; }
.inventory-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }
.inventory-pagination span { font-size: 12px; color: var(--muted); }
.inventory-pagination button:disabled { opacity: .4; cursor: default; }
.inventory-empty { padding: 28px 12px; text-align: center; color: var(--muted); background: var(--blue-softer); border-radius: 12px; font-size: 14px; }
@media (max-width: 620px) {
  .inventory-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
  .inventory-range { grid-column: 1 / -1; }
  .inventory-browser .card-head { flex-wrap: wrap; }
  .apartment-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
}

.plan-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.plan-wrap svg { display: block; width: 100%; height: auto; }
.unit-poly { fill: rgba(35, 140, 204, 0.0); stroke: rgba(35, 140, 204, 0.0); cursor: pointer; transition: fill 0.15s; }
.unit-poly.available { fill: rgba(35, 140, 204, 0.35); stroke: rgba(35, 140, 204, 0.9); stroke-width: 1.5; }
.unit-poly.available:hover { fill: rgba(35, 140, 204, 0.6); }
.unit-poly.held { fill: rgba(245, 158, 11, 0.5); stroke: #d97706; stroke-width: 2; animation: blink 1.2s infinite; }
.unit-poly.reserved { fill: rgba(124, 58, 237, 0.3); stroke: rgba(124, 58, 237, 0.8); }
.unit-poly.sold { fill: rgba(209, 18, 66, 0.35); stroke: rgba(209, 18, 66, 0.6); }
.unit-poly.not_for_sale { fill: rgba(120, 120, 130, 0.35); stroke: rgba(120, 120, 130, 0.6); }
.unit-poly.selected { stroke: var(--navy); stroke-width: 3; }
@keyframes blink { 0%, 100% { fill-opacity: 0.5; } 50% { fill-opacity: 0.9; } }
.unit-label { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--navy); pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.unit-eye { font-size: 12px; fill: #fff; pointer-events: none; }

.unit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.unit-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--card); display: flex; flex-direction: column; gap: 4px; position: relative; transition: box-shadow 0.1s, transform 0.1s; }
.unit-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.unit-card .num { font-family: var(--font-head); font-size: 18px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
.unit-card .meta { font-size: 12px; color: var(--muted); }
.unit-card.sold, .unit-card.not_for_sale { opacity: 0.55; }
.unit-card .timer { font-size: 12px; color: #b45309; font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
.badge.available { background: var(--blue-soft); color: var(--blue); }
.badge.held { background: var(--amber-soft); color: #b45309; }
.badge.reserved { background: var(--purple-soft); color: var(--purple); }
.badge.sold { background: var(--red-soft); color: var(--red); }
.badge.not_for_sale { background: #eee; color: #666; }
.badge.eyes { background: var(--navy); color: #fff; }
.badge.queue { background: var(--amber-soft); color: #b45309; }

/* ---- unit page ---- */
.unit-hero { display: grid; grid-template-columns: 1fr; gap: 14px; }
.unit-hero img { width: 100%; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.unit-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.unit-title h1 { font-size: 30px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.spec { background: var(--blue-softer); border-radius: 10px; padding: 10px 12px; }
.spec .l { font-size: 11px; color: var(--muted); }
.spec .v { font-family: var(--font-head); font-size: 20px; color: var(--navy); }
.coefficient-spec { margin-top: 10px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.coefficient-spec .l { font-size: 12px; color: var(--muted); }
.coefficient-spec .v { color: var(--navy); font-size: 20px; font-weight: 700; }
.coefficient-spec .tiny { color: var(--muted); font-variant-numeric: tabular-nums; }
.roi-card { margin-top: 18px; border: 1px solid #cce3df; border-radius: 14px; padding: 20px; background: linear-gradient(120deg, #f0faf6, #f3f8fc); }
.roi-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.roi-heading h2 { margin: 0; font-size: 18px; }
.roi-occupancy { background: #fff; color: #21755e; border: 1px solid #cce3df; border-radius: 99px; padding: 5px 10px; font-size: 12px; }
.roi-results { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; align-items: center; margin: 20px 0 16px; }
.roi-results > div { display: flex; flex-direction: column; gap: 5px; }
.roi-results strong { color: var(--navy); font-size: 21px; font-variant-numeric: tabular-nums; }
.roi-results .roi-main strong { color: var(--green); font-size: 34px; line-height: 1.1; }
.roi-negative .roi-main strong { color: var(--red); }
.roi-results span { font-size: 12px; color: #4c6370; }
.roi-source, .roi-note, .roi-warning { font-size: 12px; line-height: 1.6; margin: 12px 0 0; color: #526977; }
.roi-warning { padding: 10px 12px; color: #85490a; background: #fff0cf; border-radius: 8px; }
.roi-details { border-top: 1px solid #d4e6e5; padding-top: 12px; font-size: 12px; }
.roi-details summary { color: var(--navy); cursor: pointer; width: fit-content; }
.roi-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; margin-bottom: 0; }
.roi-details dl > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #dcebe9; padding-bottom: 6px; }
.roi-details dt { color: #526977; }
.roi-details dd { margin: 0; color: var(--navy); text-align: end; }
@media (max-width: 620px) { .roi-card { padding: 16px; } .roi-results { grid-template-columns: 1fr 1fr; gap: 16px; } .roi-results .roi-main { grid-column: 1 / -1; } .roi-details dl { grid-template-columns: 1fr; } }
.pressure { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pressure-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.pressure-line.blue { background: var(--blue-soft); color: var(--navy); }
.pressure-line.red { background: var(--red-soft); color: var(--red); }
.pressure-line.amber { background: var(--amber-soft); color: #b45309; }
.pressure-line .avatars { margin-inline-start: auto; }

.hold-panel { position: sticky; top: 84px; }
.countdown { text-align: center; padding: 10px 0 6px; }
.ring { width: 170px; height: 170px; margin: 0 auto; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--blue-soft); stroke-width: 10; }
.ring .bar { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.ring .bar.urgent { stroke: var(--red); }
.ring .time { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .time b { font-family: var(--font-head); font-size: 38px; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.ring .time small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ring.urgent .time b { color: var(--red); animation: shake 1s infinite; }
@keyframes shake { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.holder { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 8px 0 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 600; width: 100%; transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(35, 140, 204, 0.35); }
.btn.primary:hover { background: var(--blue-2); }
.btn.danger { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(209, 18, 66, 0.35); }
.btn.amber { background: var(--amber); color: #fff; }
.btn.ghost { background: var(--blue-soft); color: var(--navy); }
.btn.outline { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; border-radius: 10px; }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input, .field select { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.field input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }

.queue-list { display: flex; flex-direction: column; gap: 6px; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.queue-item .pos { font-family: var(--font-head); color: var(--amber); font-size: 18px; width: 24px; text-align: center; }
.queue-item .name { flex: 1; }
.queue-item .name small { display: block; color: var(--muted); font-size: 12px; }

/* ---- feed ---- */
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--blue-softer); font-size: 13px; line-height: 1.35; }
.feed-item.sold { background: var(--red-soft); }
.feed-item.hold { background: var(--amber-soft); }
.feed-item.queue { background: var(--amber-soft); }
.feed-item.page_enter { background: #eaf5ef; }
.feed-item.page_enter .ico { color: #1d8f6a; }
.feed-item.page_leave { background: #f1f3f5; }
.feed-item.page_leave .ico { color: #687582; }
.feed-item .t { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.feed-item .ico { font-size: 16px; line-height: 1.2; }
.feed-item a { font-weight: 600; }

/* ---- toasts ---- */
.toasts { position: fixed; top: 76px; inset-inline-end: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 100; width: min(360px, calc(100vw - 32px)); }
.toast { background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 44, 62, 0.25); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border-inline-start: 5px solid var(--blue); animation: slideIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); cursor: pointer; }
.toast.sold { border-inline-start-color: var(--red); background: linear-gradient(135deg, #fff, var(--red-soft)); }
.toast.hold { border-inline-start-color: var(--amber); }
.toast.queue { border-inline-start-color: var(--amber); }
.toast.expired { border-inline-start-color: var(--muted); }
.toast.turn { border-inline-start-color: var(--green); background: linear-gradient(135deg, #fff, var(--green-soft)); }
.toast .ico { font-size: 22px; }
.toast b { display: block; font-size: 14px; color: var(--navy); }
.toast span { font-size: 13px; color: var(--text); }
.toast .t { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
@keyframes slideIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- login ---- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-visual { background: var(--navy) url('assets/img/building.png') center/cover no-repeat; position: relative; }
.login-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 44, 62, 0.15), rgba(15, 44, 62, 0.85)); }
.login-visual .caption { position: absolute; bottom: 36px; inset-inline: 36px; color: #fff; z-index: 1; }
.login-visual .caption h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.login-visual .caption p { margin: 0; opacity: 0.85; font-size: 14px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 32px; }
.login-box .logos { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 24px; }
.login-box .logos img.archi { height: 60px; }
.login-box .logos img.ramada { height: 46px; }
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.login-box p.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-box .err { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 8px; text-align: center; }
.google-btn { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--border); background: #fff; color: var(--muted); padding: 11px; border-radius: 12px; width: 100%; font-size: 14px; cursor: not-allowed; }
@media (max-width: 860px) { .login-page { grid-template-columns: 1fr; } .login-visual { min-height: 200px; } }

/* ---- reservation celebration ---- */
.reservation-celebration { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 24px; color: #fff; background: radial-gradient(ellipse at 50% 38%, rgba(35, 140, 204, .3), transparent 58%), radial-gradient(ellipse at 5% 90%, rgba(209, 18, 66, .24), transparent 45%), rgba(7, 26, 41, .9); overflow: auto; opacity: 1; transition: opacity .45s ease; }
.reservation-celebration[open] { display: grid; place-items: center; }
.reservation-celebration::backdrop { background: rgba(7, 26, 41, .35); backdrop-filter: blur(5px); }
.reservation-celebration.is-leaving { opacity: 0; }
.celebration-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebration-content { position: relative; width: min(720px, 100%); text-align: center; animation: celebration-arrive .65s cubic-bezier(.16, 1, .3, 1) both; }
.celebration-brands { display: inline-flex; align-items: center; gap: 18px; background: #fff; padding: 11px 20px; border-radius: 12px; }
.celebration-brands img { width: auto; height: 30px; }
.celebration-brands span { height: 28px; border-left: 1px solid #e5e7ec; }
.celebration-emoji { position: relative; width: 200px; margin: 22px auto 12px; }
.celebration-emoji > span { display: block; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 126px; line-height: 1.25; filter: drop-shadow(0 15px 35px rgba(255, 202, 73, .22)); animation: celebration-party 1.2s ease-in-out infinite; }
.celebration-emoji i { position: absolute; color: #ffda78; font-size: 30px; font-style: normal; top: 18%; left: -3%; animation: celebration-sparkle 1.6s ease-in-out infinite alternate; }
.celebration-emoji i:nth-of-type(2) { color: #69d5ff; top: 62%; left: 92%; animation-delay: -.5s; }
.celebration-emoji i:nth-of-type(3) { font-size: 19px; top: 5%; left: 91%; animation-delay: -1s; }
.celebration-eyebrow { display: inline-block; margin: 0 0 18px; border: 1px solid rgba(255, 215, 109, .35); border-radius: 99px; padding: 8px 18px; color: #ffe4a1; background: rgba(255, 215, 109, .08); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.celebration-content h2 { color: #fff; font-family: var(--font-body); font-size: clamp(30px, 4.5vw, 54px); line-height: 1.16; letter-spacing: -.035em; margin-bottom: 18px; }
.celebration-content h2 span, .celebration-content h2 bdi { display: block; }
.celebration-content h2 bdi { color: #ffda78; overflow-wrap: anywhere; }
.celebration-content h2 bdi:empty { display: none; }
#reservation-celebration-message { font-size: 16px; line-height: 1.6; color: #d5e7f3; margin: 0 auto; max-width: 470px; }
.celebration-unit { font-size: 14px; color: #fff; margin: 18px 0 25px; }
.celebration-continue { border: 1px solid #f5c664; background: #ffda78; color: #0f2c3e; padding: 13px 26px; font-size: 14px; font-weight: 700; border-radius: 99px; box-shadow: 0 8px 35px rgba(255, 215, 109, .15); }
.celebration-continue:hover { background: #ffe9b4; }
.celebration-close { position: fixed; z-index: 2; top: 16px; right: 16px; height: 44px; width: 44px; border: 1px solid #8296a3; border-radius: 50%; color: #fff; background: #173548; font-size: 28px; line-height: 1; }
.celebration-close:focus-visible, .celebration-continue:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.celebration-progress { height: 2px; width: 90px; overflow: hidden; margin: 24px auto 0; background: rgba(255, 255, 255, .15); }
.celebration-progress span { display: block; height: 100%; background: #ffda78; transform-origin: left; animation: celebration-countdown 8.5s linear forwards; }
@keyframes celebration-arrive { from { opacity: 0; transform: translateY(28px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes celebration-party { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(9deg) scale(1.07); } }
@keyframes celebration-sparkle { from { transform: scale(.65) rotate(-12deg); opacity: .45; } to { transform: scale(1.15) rotate(12deg); opacity: 1; } }
@keyframes celebration-countdown { to { transform: scaleX(0); } }
@media (max-width: 540px), (max-height: 750px) {
  .reservation-celebration { padding: 58px 20px 24px; }
  .celebration-emoji { margin-top: 18px; margin-bottom: 8px; }
  .celebration-emoji > span { font-size: 95px; }
  .celebration-brands img { height: 24px; }
  .celebration-eyebrow { margin-bottom: 14px; font-size: 10px; }
  .celebration-content h2 { font-size: clamp(28px, 6vw, 38px); margin-bottom: 12px; }
  #reservation-celebration-message { font-size: 14px; }
  .celebration-unit { margin: 14px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reservation-celebration, .reservation-celebration * { animation: none !important; transition: none !important; }
  .celebration-confetti, .celebration-progress { display: none; }
}

/* ---- modal ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 44, 62, 0.55); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal { background: #fff; border-radius: 18px; padding: 24px; width: 100%; max-width: 440px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { margin: 0 0 14px; font-size: 14px; color: var(--text); }
.modal .actions { display: flex; gap: 10px; margin-top: 8px; }
.modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-wide { max-width: 660px; }
.reservation-list { margin: 18px 0; }
.reservation-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line, #e4eaf0); }
.reservation-row a { font-weight: 700; }
.reservation-row p { margin: 5px 0; }
.reservation-row small { color: var(--muted); }
.reservation-row .btn { flex-shrink: 0; }
.reservation-fee { font-size: 12px; color: var(--navy); }
.reservation-fee-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--blue-soft); border-radius: 10px; padding: 12px; font-size: 13px; }
.reservation-fee-summary strong { font-size: 18px; color: var(--navy); }
.takeover-offer { border: 1px solid #dfc8fc; border-radius: 12px; padding: 12px; background: #faf5ff; }
.btn.takeover { width: 100%; background: var(--purple); color: #fff; }
.btn.takeover:hover { background: #6927c2; }
.btn.takeover:disabled { opacity: .55; cursor: not-allowed; }
.takeover-offer p { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--navy); }
@media (max-width: 520px) { .reservation-row { align-items: stretch; flex-direction: column; gap: 10px; } }

/* ---- admin ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 12px; color: var(--muted); font-weight: 500; }
.avatar-pick { display: flex; align-items: center; gap: 12px; }
.avatar-pick input[type=file] { display: none; }

/* ---- misc ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--blue); font-weight: 500; }
.progress-bar { height: 8px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.progress-bar.red i { background: linear-gradient(90deg, var(--red), #ff5c85); }
.kv { display: flex; justify-content: space-between; font-size: 13px; margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; background: var(--blue-softer); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.eyes-inline { display: inline-flex; align-items: center; gap: 6px; }
.flash { animation: flash 0.8s ease-out; }
@keyframes flash { 0% { background: var(--amber-soft); } 100% { background: transparent; } }
.toggle { display: flex; gap: 6px; }
.toggle button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.toggle button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.toggle.lang button { padding: 5px 9px; font-size: 12px; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.tiny { font-size: 11px; color: var(--muted); }
.src { font-size: 11px; color: var(--muted); margin-top: 12px; }
