/* ==========================================================================
   Innkeep — design tokens
   A warm, dark hospitality identity: brass key fobs and reception-desk
   wood tones, not a generic blue/violet tech dashboard. Serif display type
   (Fraunces) gives it a boutique-inn character; Work Sans keeps the dense
   operational screens (tables, forms) calm and legible; Space Mono marks
   room numbers, dates and other "data" so they read as facts, not prose.
   ========================================================================== */

:root {
  --bg: #1F1E1D;
  --bg-elevated: #262625;
  --surface: #262625;
  --surface-raised: #30302E;
  --border: #3A3A38;
  --border-soft: #302F2D;

  --text: #F5F4EF;
  --text-muted: #A3A097;
  --text-faint: #736F66;

  --accent: #D97757;
  --accent-strong: #E39170;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --accent-ink: #1F1E1D;

  --success: #7FAE8C;
  --success-soft: rgba(127, 174, 140, 0.14);
  --warning: #D69A52;
  --warning-soft: rgba(214, 154, 82, 0.14);
  --danger: #C46A57;
  --danger-soft: rgba(196, 106, 87, 0.14);
  --info: #7CA0B0;
  --info-soft: rgba(124, 160, 176, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'IBM Plex Mono', monospace;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-pop: 0 20px 48px rgba(0, 0, 0, 0.5);

  --sidebar-w: 248px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* ==========================================================================
   Light theme — swap the warm-dark surfaces for a warm-paper daytime look.
   Accent, semantic status colors, type and radii stay identical so the
   product still reads as Innkeep in either mode.
   ========================================================================== */

[data-theme="light"] {
  --bg: #F5F3EE;
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --border: #E2DDD3;
  --border-soft: #ECE8DF;

  --text: #2A2724;
  --text-muted: #5C574F;
  --text-faint: #8C877D;

  --shadow-card: 0 10px 26px rgba(40, 34, 28, 0.08);
  --shadow-pop: 0 18px 42px rgba(40, 34, 28, 0.14);
  color-scheme: light;
}

/* ==========================================================================
   Accent colors — only the interactive/brand accent changes; status colors
   (success/warning/danger/info) stay fixed so their meaning never shifts.
   ========================================================================== */

[data-accent="gold"] { --accent: #D97757; --accent-strong: #E39170; --accent-soft: rgba(217,119,87,0.14); --accent-ink: #1F1E1D; }
[data-accent="cyan"] { --accent: #4FB8C4; --accent-strong: #6FD0DB; --accent-soft: rgba(79,184,196,0.14); --accent-ink: #062225; }
[data-accent="blue"] { --accent: #5B8DEF; --accent-strong: #7FA6F5; --accent-soft: rgba(91,141,239,0.14); --accent-ink: #0B152B; }
[data-accent="red"] { --accent: #D9695A; --accent-strong: #E88A7D; --accent-soft: rgba(217,105,90,0.14); --accent-ink: #2B0B08; }
[data-accent="yellow"] { --accent: #D3B23C; --accent-strong: #E5C663; --accent-soft: rgba(211,178,60,0.14); --accent-ink: #2A2107; }
[data-accent="orange"] { --accent: #DB8A4B; --accent-strong: #E8A56E; --accent-soft: rgba(219,138,75,0.14); --accent-ink: #2B1608; }
[data-accent="green"] { --accent: #6FAE7F; --accent-strong: #8FC49D; --accent-soft: rgba(111,174,127,0.14); --accent-ink: #0C1F12; }
[data-accent="purple"] { --accent: #9B7FD4; --accent-strong: #B49CE0; --accent-soft: rgba(155,127,212,0.14); --accent-ink: #1C1430; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 6px;
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

/* ==========================================================================
   App shell
   ========================================================================== */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  /* Keep sidebar popovers above sticky booking-plan rows/cells. */
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--accent); }
.brand strong { font-family: var(--font-display); font-size: 17px; display: block; color: var(--text); }
.brand small { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.property-pill {
  margin: 0 8px 18px;
  padding: 9px 9px 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.property-pill-copy { min-width: 0; }
.property-pill strong { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-scroll-area { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.8; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav a.active svg { opacity: 1; }
.nav a.logout { margin-top: 14px; color: var(--text-faint); }
.nav a.logout:hover { color: var(--danger); background: var(--danger-soft); }

.sidebar-close { display: none; }

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 40;
}
.hamburger-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:hover { background: var(--surface); }
.hamburger-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hamburger-btn .hamburger-icon { width: 23px; height: 23px; display: block; transition: opacity .14s ease, transform .18s ease; }
.hamburger-btn .hamburger-icon-close { display: none; }
.hamburger-btn.is-open .hamburger-icon-menu { display: none; }
.hamburger-btn.is-open .hamburger-icon-close { display: block; }
.hamburger-btn:active { transform: scale(.94); }
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  white-space: nowrap;
}
.mobile-brand-mark { width: 27px; height: 27px; color: var(--accent); }
.mobile-brand strong { font-family: var(--font-display); font-size: 16px; }
.mobile-topbar-spacer { width: 40px; height: 40px; flex: 0 0 40px; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
  pointer-events: none;
}
.sidebar-backdrop.open { pointer-events: auto; }

/* Mobile icon-only primary navigation. Hidden on desktop; the full sidebar
   remains the complete navigation for channels, reports and settings. */
.mobile-bottom-nav {
  display: none;
}
.mobile-bottom-nav-item {
  color: var(--text-faint);
}
.mobile-bottom-nav-item svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.main-content { flex: 1; min-width: 0; padding: 28px 32px 60px; }
.main-content.auth-main { padding: 0; }

.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }



/* ========================================================================== 
   Subscription notification bell
   ========================================================================== */
.subscription-notification-center {
  position: relative;
  flex: 0 0 auto;
}
.subscription-notification-toggle {
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--surface-raised);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.subscription-notification-toggle:hover,
.subscription-notification-center.open .subscription-notification-toggle {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: var(--accent-soft);
}
.subscription-notification-toggle:active { transform: translateY(1px); }
.subscription-notification-toggle svg { width: 18px; height: 18px; display: block; }
.subscription-notification-toggle.has-alert { color: var(--accent-strong); }
.subscription-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--surface);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}
.subscription-notification-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 95;
  width: min(344px, calc(100vw - 24px));
  max-height: min(480px, calc(100vh - 96px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(.985);
  transform-origin: top right;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.subscription-notification-center.open .subscription-notification-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.sidebar-notification-center .subscription-notification-panel {
  left: -4px;
  right: auto;
  transform-origin: top left;
}
.subscription-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.subscription-notification-head strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
}
.subscription-notification-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}
.subscription-notification-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.subscription-notification-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.subscription-notification-item-icon svg { width: 18px; height: 18px; }
.subscription-notification-copy { min-width: 0; }
.subscription-notification-copy > strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.subscription-notification-copy p {
  margin: 5px 0 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}
.subscription-notification-copy > span {
  display: block;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.subscription-notification-copy a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}
.subscription-notification-empty {
  min-height: 108px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  text-align: center;
  font-size: 12px;
}
.subscription-notification-empty svg { width: 24px; height: 24px; opacity: .75; }
.mobile-notification-center .subscription-notification-toggle {
  width: 40px;
  height: 40px;
  border-color: transparent;
  background: transparent;
  color: var(--text);
}
.mobile-notification-center .subscription-notification-toggle:hover { background: var(--surface); }
.mobile-notification-center .subscription-notification-panel {
  position: fixed;
  top: 68px;
  right: 12px;
  left: auto;
  max-height: calc(100vh - 84px);
}

/* Tiny screens: notification panel becomes a full-width sheet under the top bar
   so it can never clip off the edge or run off the bottom. */
@media (max-width: 480px) {
  .subscription-notification-panel,
  .mobile-notification-center .subscription-notification-panel,
  .sidebar-notification-center .subscription-notification-panel {
    position: fixed;
    top: 64px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    transform-origin: top center;
  }
}

/* ==========================================================================
   Buttons & forms
   ========================================================================== */

.btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.full { width: 100%; justify-content: center; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* PCGate Super Admin: neutralize browser/password-manager autofill paint.
   Chrome/Edge can otherwise force a yellow/light background over dark-theme credential fields. */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  border-color: var(--border) !important;
  transition: background-color 999999s ease-out 0s;
}
.form input:-webkit-autofill:focus {
  border-color: var(--accent) !important;
}
.form input:autofill {
  background: var(--surface) !important;
  color: var(--text) !important;
}
.form textarea { resize: vertical; min-height: 80px; }
.form .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }

.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-faint); width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.password-toggle .eye-icon { width: 18px; height: 18px; }
.password-toggle .eye-closed { display: none; }
.password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
}
.alert.error { background: var(--danger-soft); border-color: rgba(196,106,87,0.4); color: #E8B3A6; }
.alert.success { background: var(--success-soft); border-color: rgba(127,174,140,0.4); color: #B9D6C0; }
.alert.info { background: var(--info-soft); border-color: rgba(124,160,176,0.4); color: #BBD4DE; }

/* ==========================================================================
   Panels, cards, tables
   ========================================================================== */

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-card .stat-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); }
.stat-card .stat-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.stat-card.accent { border-color: rgba(217,119,87,0.3); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
tbody td { padding: 13px 12px; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--text-faint); }
.empty-state h3 { margin-bottom: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: capitalize;
}
.badge.status-available, .badge.status-confirmed, .badge.status-paid, .badge.status-connected { background: var(--success-soft); color: var(--success); }
.badge.status-occupied, .badge.status-pending, .badge.status-partial { background: var(--warning-soft); color: var(--warning); }
.badge.status-cancelled, .badge.status-unpaid, .badge.status-maintenance { background: var(--danger-soft); color: var(--danger); }
.badge.status-checkedout, .badge.status-notconnected, .badge.status-readyforsetup { background: var(--info-soft); color: var(--info); }

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(6,5,3,0.65);
  z-index: 80; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-pop);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-close { background: none; border: none; color: var(--text-faint); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ==========================================================================
   Settings modal — ChatGPT-style: fixed left nav of categories, content pane
   on the right that swaps per category.
   ========================================================================== */

.settings-modal {
  max-width: 640px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
}
.settings-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
}
.settings-modal-head h3 { margin: 0; }
.settings-modal-body { display: flex; min-height: 380px; flex: 1; overflow: hidden; }

.settings-modal-nav {
  width: 180px; flex-shrink: 0;
  border-right: 1px solid var(--border-soft);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.settings-nav-item {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; text-align: left;
  color: var(--text-muted); font-size: 13.5px; font-family: var(--font-body); font-weight: 500;
  padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.settings-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.settings-nav-item:hover { background: var(--surface); color: var(--text); }
.settings-nav-item.active { background: var(--accent-soft); color: var(--accent-strong); }
.settings-nav-item.active svg { opacity: 1; }

.settings-modal-content { flex: 1; padding: 22px 24px; overflow-y: auto; }
.settings-pane[hidden] { display: none; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.settings-row-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.theme-options { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 3px; }
.theme-options button {
  width: 34px; height: 34px; padding: 0;
  background: none; border: none; color: var(--text-faint);
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.theme-options button:hover { background: var(--surface-raised); color: var(--text); }
.theme-options button:active { transform: scale(.94); }
.theme-options button svg { width: 16px; height: 16px; }
.theme-options button.active { background: var(--accent); color: var(--accent-ink); }
.theme-options button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.accent-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.accent-swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; padding: 0; position: relative;
}
.accent-swatch.active { border-color: var(--text); }
.accent-swatch.active::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(255,255,255,0.9); mix-blend-mode: overlay;
}

/* ==========================================================================
   Auth pages (login / signup / forgot / reset)
   ========================================================================== */

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative;
  background: radial-gradient(120% 120% at 15% 10%, #262625 0%, #1F1E1D 55%);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}
.auth-art .keyslots {
  position: absolute; inset: 0; opacity: 0.5;
}
.auth-art-content { position: relative; z-index: 1; }
.auth-art-brand { display: flex; align-items: center; gap: 10px; }
.auth-art-brand .brand-mark { width: 30px; height: 30px; color: var(--accent); }
.auth-art-brand strong { font-family: var(--font-display); font-size: 18px; }
.auth-art-quote {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  color: var(--text);
  max-width: 420px;
}
.auth-art-quote span { color: var(--accent); }
.auth-art-foot { position: relative; z-index: 1; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .auth-logo-mobile { display: none; }
.login-copy h1 { margin-bottom: 6px; }
.login-copy .eyebrow { margin-bottom: 10px; }
.login-copy p { margin-bottom: 26px; }
.auth-form-side form { margin-top: 6px; }
.auth-footnote { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12.5px; color: var(--text-faint); }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 2px; }
.auth-switch { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--text-muted); }

/* ==========================================================================
   Booking plan — Innkeep visual system with the dense 31-day timeline
   ========================================================================== */

.reservation-plan-page {
  --plan-accent: var(--accent);
  --plan-accent-strong: var(--accent-strong);
  --plan-accent-soft: var(--accent-soft);
  --plan-grid-bg: var(--surface);
  --plan-grid-bg-strong: var(--surface-raised);
  --plan-grid-line: var(--border);
  --plan-grid-line-soft: var(--border-soft);
  --plan-label-bg: var(--surface-raised);
  min-width: 0;
}

/* Keep this page heading identical to Rooms, Bookings, Customers, etc. */
.plan-titlebar { margin-bottom: 22px; }
.plan-titlebar .eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}
.plan-titlebar .eyebrow::before { display: none; }
.plan-titlebar h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.booking-plan-panel {
  padding: 18px 20px 20px;
  overflow: hidden;
}

.plan-controls {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  margin: 0 0 20px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  overflow-x: auto;
  scrollbar-width: none;
}
.plan-controls::-webkit-scrollbar { display: none; }
.plan-control-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.plan-control-button:hover {
  color: var(--accent-ink);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}
.plan-control-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-home-button { margin-left: 1px; }
.plan-range-label {
  min-width: 184px;
  padding: 0 10px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.plan-scroll {
  width: 100%;
  overflow: auto;
  padding-bottom: 9px;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}
.plan-scroll::-webkit-scrollbar { height: 9px; }
.plan-scroll::-webkit-scrollbar-track { background: transparent; }
.plan-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.plan-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.plan-grid {
  display: block;
  padding-top: 2px;
}
.plan-head-row,
.plan-room-row { display: flex; }

.plan-head-row {
  position: sticky;
  top: 0;
  z-index: 8;
  align-items: stretch;
  min-height: 52px;
  background: var(--surface);
}
.plan-room-column-head {
  position: sticky;
  left: 0;
  z-index: 11;
  width: var(--plan-room-width);
  flex: 0 0 var(--plan-room-width);
  display: flex;
  align-items: flex-end;
  padding: 0 11px 8px;
  color: var(--text-faint);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-day-head {
  width: var(--plan-day-width);
  flex: 0 0 var(--plan-day-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 5px 0 8px;
  color: var(--text-muted);
  background: var(--surface);
  font-family: var(--font-mono);
  line-height: 1;
}
.plan-day-head .plan-dow {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.plan-day-head strong {
  color: var(--text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.08em;
}
.plan-day-head.is-weekend .plan-dow { color: var(--text-muted); }
.plan-day-head.is-today {
  background: var(--accent-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.plan-day-head.is-today .plan-dow,
.plan-day-head.is-today strong { color: var(--accent-strong); }

.plan-rooms { display: flex; flex-direction: column; gap: 10px; }
.plan-room-row { min-height: 53px; }
.plan-room-label {
  position: sticky;
  left: 0;
  z-index: 6;
  width: var(--plan-room-width);
  flex: 0 0 var(--plan-room-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 11px;
  background: var(--plan-label-bg);
  border: 1px solid var(--plan-grid-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: 7px 0 12px rgba(0,0,0,0.06);
}
.plan-room-label strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.plan-room-label span {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-room-strip {
  position: relative;
  height: 53px;
  display: flex;
  flex: 0 0 calc(100% - var(--plan-room-width));
}
.plan-day-cell {
  width: var(--plan-day-width);
  flex: 0 0 var(--plan-day-width);
  height: 100%;
  background: var(--plan-grid-bg);
  border-top: 1px solid var(--plan-grid-line);
  border-right: 1px solid var(--plan-grid-line);
  border-bottom: 1px solid var(--plan-grid-line);
}
.plan-day-cell:first-child { border-left: none; }
.plan-day-cell.is-weekend { background: var(--bg); }
.plan-day-cell.is-today { background: var(--accent-soft); }

.plan-booking {
  position: absolute;
  top: 3px;
  bottom: 3px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 28px;
  padding: 0 11px;
  overflow: hidden;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-strong) 0%, var(--accent) 100%);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 13px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.18);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}
.plan-booking:hover {
  z-index: 5;
  color: var(--accent-ink);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.22);
}
.plan-booking-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-booking-nights {
  flex: 0 0 auto;
  color: var(--accent-ink);
  font-size: 8px;
  opacity: 0.58;
}
.plan-booking.is-clipped-start { border-radius: 2px var(--radius-sm) var(--radius-sm) 2px; }
.plan-booking.is-clipped-end { border-radius: var(--radius-sm) 2px 2px var(--radius-sm); }
.plan-booking.is-clipped-start.is-clipped-end { border-radius: 2px; }
.plan-booking.status-pending {
  color: #2B1608;
  background: linear-gradient(180deg, #E8A56E, #DB8A4B);
  border-color: #E8A56E;
}
.plan-booking.status-checkedout {
  color: #062225;
  background: linear-gradient(180deg, #6FD0DB, #4FB8C4);
  border-color: #6FD0DB;
}
.plan-booking.status-cancelled {
  color: #2B0B08;
  background: linear-gradient(180deg, #E88A7D, #D9695A);
  border-color: #E88A7D;
  opacity: 0.72;
  text-decoration: line-through;
}

@media (max-width: 760px) {
  .booking-plan-panel { padding: 14px 12px 16px; }
  .plan-controls {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 32px 32px minmax(0, 1fr) 32px 32px 32px;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 8px;
    gap: 5px;
    overflow: visible;
  }
  .plan-range-label {
    min-width: 0;
    width: auto;
    padding: 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px;
    letter-spacing: -0.055em;
  }
  .plan-control-button { width: 32px; height: 32px; min-width: 0; flex-basis: auto; }
  .plan-home-button { margin-left: 0; }
  .plan-grid { --plan-room-width: 132px !important; }
}

@media (max-width: 360px) {
  .plan-controls {
    grid-template-columns: 29px 29px minmax(0, 1fr) 29px 29px 29px;
    padding-inline: 6px;
    gap: 4px;
  }
  .plan-control-button { width: 29px; height: 29px; }
  .plan-control-button svg { width: 16px; height: 16px; }
  .plan-range-label { font-size: 9.5px; padding-inline: 0; }
}

/* ==========================================================================
   Misc utility
   ========================================================================== */

.filters-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filters-bar input, .filters-bar select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-family: var(--font-body);
}
.pagination { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; }

.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface-raised); border: 1px solid var(--border); color: var(--text);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; box-shadow: var(--shadow-pop);
  animation: toast-in 0.2s ease;
}
.toast.success { border-color: rgba(127,174,140,0.4); }
.toast.error { border-color: rgba(196,106,87,0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.settings-launcher {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: none; border: 1px dashed var(--border); color: var(--text-muted);
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; width: 100%;
  justify-content: flex-start;
}
.settings-launcher .icon-settings { width: 17px; height: 17px; flex-shrink: 0; }
.settings-launcher:hover { border-color: var(--accent); color: var(--accent); }

.lang-toggle { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 2px; }
.lang-toggle button { background: none; border: none; color: var(--text-faint); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 100px; cursor: pointer; }
.lang-toggle button.active { background: var(--accent); color: var(--accent-ink); }

.section-divider { border: none; border-top: 1px solid var(--border-soft); margin: 22px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card .auth-logo-mobile { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 22px; }
  .auth-card .auth-logo-mobile .brand-mark { width: 30px; height: 30px; color: var(--accent); }
  .auth-card .auth-logo-mobile strong { font-family: var(--font-display); font-size: 19px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .sidebar-notification-center { display: none; }
  .sidebar { display: none; }
  .sidebar.open {
    display: flex; position: fixed; inset: 0 auto 0 0; z-index: 50;
    width: 82%; max-width: 300px; box-shadow: var(--shadow-pop);
  }
  .sidebar-close {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px;
    width: 38px; height: 38px; padding: 0; background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: 11px; color: var(--text-muted); cursor: pointer; z-index: 2;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
  }
  .sidebar-close svg { width: 20px; height: 20px; }
  .sidebar-close:hover { color: var(--text); border-color: var(--border); background: var(--bg-elevated); }
  .sidebar-close:active { transform: scale(.94); }
  body.mobile-menu-open { overflow: hidden; }
  .sidebar-backdrop.open { display: block; }
  .mobile-topbar { display: flex; }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 62px;
    padding: 7px 8px;
    background: var(--bg-elevated);
    background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    z-index: 42;
  }
  .mobile-bottom-nav-item {
    position: relative;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--text-faint);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.16s ease, background 0.16s ease, transform 0.12s ease;
  }
  .mobile-bottom-nav-item:active { transform: scale(0.94); }
  .mobile-bottom-nav-item:hover { color: var(--text); }
  .mobile-bottom-nav-item.active {
    color: var(--accent-strong);
    background: var(--accent-soft);
  }
  .mobile-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
  }
  .sidebar .nav a { min-height: 44px; }
  .sidebar-scroll-area { -webkit-overflow-scrolling: touch; }
  .main-content { padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topbar { align-items: flex-start; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .auth-form-side { padding: 24px 18px; }
  .settings-modal-body { flex-direction: column; }
  .settings-modal-nav { width: 100%; flex-direction: row; border-right: none; border-bottom: 1px solid var(--border-soft); overflow-x: auto; }
}

/* ==========================================================================
   Print (download-pdf.php)
   ========================================================================== */

@media print {
  .no-print, .sidebar, .mobile-topbar, .mobile-bottom-nav, .sidebar-backdrop, .subscription-notification-center { display: none !important; }
  .app-shell { display: block; }
  .main-content { padding: 0; }
  body { background: #fff; color: #111; }
  .panel { box-shadow: none; border-color: #ccc; background: #fff; }
  table { color: #111; }
  thead th { color: #555; border-bottom-color: #999; }
  tbody td { border-bottom-color: #ddd; }
}

/* ==========================================================================
   Per-property header branding
   ========================================================================== */

.brand {
  color: var(--text);
  min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-copy { min-width: 0; }
.brand strong,
.mobile-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand strong { max-width: 154px; white-space: nowrap; }
.brand-mark,
.mobile-brand-mark,
.branding-preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-mark img,
.mobile-brand-mark img,
.branding-preview-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-mark.has-custom-logo,
.mobile-brand-mark.has-custom-logo {
  color: inherit;
}
.mobile-brand { max-width: calc(100% - 112px); }
.mobile-brand strong {
  display: block;
  max-width: min(190px, 48vw);
}

.settings-page-form,
.settings-account-panel,
.settings-alert {
  width: min(100%, 720px);
}
.settings-page-form { display: flex; flex-direction: column; }
.settings-page-panel { width: 100%; }
.settings-account-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.settings-account-field {
  min-width: 0;
  padding: 15px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.settings-account-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.settings-account-field strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.settings-account-email { font-family: var(--font-mono); font-size: 12.5px !important; }
.settings-section-head { margin-bottom: 18px; }
.settings-section-head h2 { margin-bottom: 4px; }
.settings-section-head p { margin: 0; font-size: 13.5px; }
.branding-editor {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 22px;
  align-items: start;
}
.branding-preview {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.branding-preview-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--accent);
  border-radius: 10px;
}
.branding-preview-copy { min-width: 0; }
.branding-preview-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
}
.branding-preview-copy small {
  display: block;
  margin-top: 5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.branding-fields { display: flex; flex-direction: column; gap: 16px; }
.branding-fields > div > label:first-child,
.branding-fields > label:not(.check-row) {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.branding-fields input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 14.5px var(--font-body);
}
.branding-fields input[type="text"]:focus {
  border-color: var(--accent);
  outline: none;
}
.field-hint {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 12px;
}
.native-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.file-picker {
  width: fit-content;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 9px 13px;
  color: var(--text) !important;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.file-picker:hover { border-color: var(--accent); color: var(--accent-strong) !important; background: var(--accent-soft); }
.file-picker svg { width: 17px; height: 17px; }
.native-file-input:focus-visible + .field-hint { color: var(--accent-strong); }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.check-row input { margin: 3px 0 0; accent-color: var(--accent); }
.remove-logo-row { margin-top: -2px; }
.settings-save-button {
  width: fit-content;
  min-width: 170px;
  justify-content: center;
  align-self: flex-start;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .branding-editor { grid-template-columns: 1fr; }
  .branding-preview { min-height: 96px; }
  .settings-save-button { width: 100%; }
}

@media (max-width: 390px) {
  .mobile-brand { gap: 6px; max-width: calc(100% - 102px); }
  .mobile-brand-mark { width: 25px; height: 25px; }
  .mobile-brand strong { max-width: 44vw; font-size: 15px; }
}


/* ==========================================================================
   Booking edit — delete reservation while preserving the customer
   ========================================================================== */

.booking-delete-zone {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.booking-delete-copy { min-width: 0; }
.booking-delete-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}
.booking-delete-copy p {
  margin: 0;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.booking-delete-form { flex: 0 0 auto; }
.booking-delete-form .btn svg { width: 17px; height: 17px; }

@media (max-width: 620px) {
  .booking-delete-zone {
    align-items: stretch;
    flex-direction: column;
  }
  .booking-delete-form .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   Custom destructive confirmation modal
   ========================================================================== */

body.confirm-modal-open { overflow: hidden; }

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 5, 3, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.confirm-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-modal {
  position: relative;
  width: min(100%, 440px);
  padding: 28px;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, var(--danger-soft), transparent 38%),
    var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}

.confirm-modal-backdrop.open .confirm-modal {
  transform: translateY(0) scale(1);
}

.confirm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.confirm-modal-close:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-soft);
}

.confirm-modal-close:focus-visible,
.confirm-modal-actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.confirm-modal-close svg { width: 17px; height: 17px; }

.confirm-modal-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(196, 106, 87, 0.28);
  border-radius: 15px;
}

.confirm-modal-icon svg { width: 24px; height: 24px; }

.confirm-modal-copy { padding-right: 30px; }

.confirm-modal-copy h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.confirm-modal-copy p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.btn.confirm-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 8px 22px rgba(196, 106, 87, 0.22);
}

.btn.confirm-danger:hover {
  background: #D47561;
  border-color: #D47561;
}

.btn.confirm-danger svg { width: 17px; height: 17px; }

@media (max-width: 620px) {
  .confirm-modal-backdrop {
    align-items: flex-end;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .confirm-modal {
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 22px;
    transform: translateY(32px);
  }

  .confirm-modal-copy { padding-right: 22px; }
  .confirm-modal-actions { flex-direction: column-reverse; }
  .confirm-modal-actions .btn { width: 100%; justify-content: center; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .confirm-modal-backdrop,
  .confirm-modal { transition: none; }
}
   Authenticated Windows desktop-app download page
   ========================================================================== */

.windows-app-topbar { align-items: flex-start; }
.windows-app-topbar .page-lead {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.windows-download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(320px, 1.18fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
}

.windows-download-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--accent);
  background:
    radial-gradient(circle at 25% 20%, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface), var(--surface-raised));
  border-right: 1px solid var(--border-soft);
}
.windows-download-art::before,
.windows-download-art::after {
  content: '';
  position: absolute;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
}
.windows-download-art::before { width: 260px; height: 260px; }
.windows-download-art::after { width: 185px; height: 185px; }
.windows-download-art svg {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  padding: 24px;
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.windows-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}
.download-kicker {
  width: fit-content;
  margin-bottom: 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.windows-download-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.windows-download-copy > p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.windows-feature-list {
  display: grid;
  gap: 11px;
  margin: 25px 0 28px;
}
.windows-feature-list > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.windows-feature-list svg { width: 17px; height: 17px; color: var(--accent); }
.windows-download-btn { width: fit-content; min-width: 220px; justify-content: center; }
.windows-download-btn svg { width: 18px; height: 18px; }
.windows-download-btn[disabled] { cursor: not-allowed; opacity: .55; }
.download-meta,
.download-admin-note {
  margin: 11px 0 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}
.download-admin-note { max-width: 520px; }
.windows-security-note {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(300px, 1.35fr);
  align-items: center;
  gap: 28px;
  margin-top: 18px;
}
.windows-security-note h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
}
.windows-security-note > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .windows-download-card { grid-template-columns: 1fr; }
  .windows-download-art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .windows-download-art::before { width: 190px; height: 190px; }
  .windows-download-art::after { width: 138px; height: 138px; }
  .windows-download-art svg { width: 88px; height: 88px; padding: 19px; border-radius: 23px; }
  .windows-security-note { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 620px) {
  .windows-app-topbar .page-lead { font-size: 13px; }
  .windows-download-card { min-height: 0; border-radius: 20px; }
  .windows-download-art { min-height: 170px; }
  .windows-download-copy { padding: 26px 20px 24px; }
  .windows-download-copy h2 { font-size: 31px; }
  .windows-download-btn { width: 100%; min-height: 48px; }
  .windows-security-note { padding: 20px; }
}

/* ========================================================================
   PCGate subscription access
   ======================================================================== */
.subscription-warning-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:12px 15px;border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-radius:13px}.subscription-warning-banner strong{display:block;color:var(--accent);font-size:13px}.subscription-warning-banner span{display:block;color:var(--text-muted);font-size:12px;margin-top:3px}.subscription-settings-panel{overflow:hidden}.subscription-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.subscription-settings-grid>div{border:1px solid var(--border-soft);background:var(--surface-raised);border-radius:13px;padding:14px}.subscription-settings-grid span{display:block;color:var(--text-muted);font-family:"Space Mono",monospace;font-size:9px;text-transform:uppercase;letter-spacing:.09em}.subscription-settings-grid strong{display:block;margin-top:8px;font-size:16px}.subscription-status{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid transparent}.subscription-status.active,.subscription-status.trial{background:rgba(111,174,127,.14);color:#84cd96;border-color:rgba(111,174,127,.24)}.subscription-status.expired,.subscription-status.cancelled{background:rgba(217,105,90,.14);color:#ef8b7e;border-color:rgba(217,105,90,.24)}.subscription-status.suspended{background:rgba(219,138,75,.14);color:#e6a46f;border-color:rgba(219,138,75,.24)}.subscription-status.scheduled{background:rgba(91,141,239,.14);color:#8eb2f8;border-color:rgba(91,141,239,.24)}.subscription-contact-inline{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;color:var(--text-muted);font-size:13px}.subscription-lock-shell{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(circle at 20% 10%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 38%),var(--bg)}.subscription-lock-card{width:min(760px,100%);background:var(--surface);border:1px solid var(--border);border-radius:28px;padding:34px;box-shadow:var(--shadow-pop)}.subscription-lock-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.subscription-lock-brand .brand-mark{width:46px;height:46px}.subscription-lock-brand strong{display:block;font-family:"Fraunces",serif;font-size:23px}.subscription-lock-brand small{display:block;color:var(--text-muted);margin-top:2px}.subscription-lock-card h1{font-family:"Fraunces",serif;font-size:42px;line-height:1.08;margin:0;max-width:620px}.subscription-lock-lead{font-size:15px;line-height:1.7;color:var(--text-muted);max-width:640px;margin:15px 0 22px}.subscription-lock-period{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.subscription-lock-period>div{background:var(--surface-raised);border:1px solid var(--border-soft);border-radius:14px;padding:15px}.subscription-lock-period span{display:block;color:var(--text-muted);font-family:"Space Mono",monospace;font-size:9px;text-transform:uppercase;letter-spacing:.09em}.subscription-lock-period strong{display:block;margin-top:8px}.subscription-lock-contact{border:1px solid var(--border-soft);background:color-mix(in srgb,var(--accent) 6%,var(--surface-raised));border-radius:16px;padding:18px;margin-bottom:20px}.subscription-lock-contact h2{font-family:"Fraunces",serif;margin:0 0 8px}.subscription-lock-contact p{color:var(--text-muted);line-height:1.6;margin:0}.subscription-contact-list{display:flex;gap:16px;flex-wrap:wrap;margin-top:13px;font-size:13px}.lang-copy-en{display:none}.subscription-lock-card .button-row{display:flex;gap:10px;justify-content:flex-end}
html[lang="en"] .lang-copy-el{display:none}html[lang="en"] .lang-copy-en{display:block}
@media(max-width:760px){.subscription-settings-grid{grid-template-columns:1fr 1fr}.subscription-lock-card{padding:24px 20px;border-radius:22px}.subscription-lock-card h1{font-size:32px}.subscription-lock-period{grid-template-columns:1fr}.subscription-warning-banner{align-items:flex-start}.subscription-warning-banner .btn{flex-shrink:0}}
@media(max-width:480px){.subscription-settings-grid{grid-template-columns:1fr}.subscription-lock-card .button-row{flex-direction:column}.subscription-lock-card .button-row .btn{width:100%}}


/* Account identity: keep client login details readable on phones. */
@media (max-width: 640px) {
  .settings-account-identity { grid-template-columns: 1fr; }
}

/* Innkeep 2026 brand mark -------------------------------------------------- */
.brand-mark svg,
.mobile-brand-mark svg,
.branding-preview-logo svg,
.auth-art-brand .brand-mark svg,
.auth-logo-mobile .brand-mark svg,
.subscription-lock-brand .brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-art-brand .brand-mark,
.auth-card .auth-logo-mobile .brand-mark {
  width: 36px;
  height: 36px;
}

.auth-art-brand { gap: 12px; }
.auth-art-brand strong { letter-spacing: -0.02em; }

.print-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.print-brand-identity { display:flex; align-items:center; gap:12px; }
.print-brand-mark { width:44px; height:44px; flex:0 0 44px; }
.print-brand-mark svg { width:100%; height:100%; display:block; }
.print-brand-copy strong { display:block; font-family:var(--font-display); font-size:20px; line-height:1; }
.print-brand-copy span { display:block; margin-top:5px; color:var(--text-faint); font-size:11px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.08em; }
.print-brand-property { text-align:right; }
.print-brand-property strong { display:block; font-size:15px; }
.print-brand-property span { display:block; margin-top:4px; color:var(--text-faint); font-size:11px; }

.booking-email-option {
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:14px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);
  background:var(--surface-raised);
  cursor:pointer;
}
.booking-email-option input { width:18px; height:18px; margin-top:1px; flex:0 0 auto; accent-color:var(--accent); }
.booking-email-option strong { display:block; font-size:13px; color:var(--text); }
.booking-email-option small { display:block; margin-top:4px; color:var(--text-faint); line-height:1.45; }

@media print {
  .print-brand-header { border-bottom-color:#d8d8d8; }
  .print-brand-copy strong, .print-brand-property strong { color:#111; }
  .print-brand-copy span, .print-brand-property span { color:#666; }
}
