/* Visit Studio Design System - High Performance CSS Tokens */
:root {
  --ink: #1f1b3b;
  --ink-dark: #120f26;
  --ink-light: #322c54;
  --muted: #747285;
  --muted-light: #9c99ad;
  --purple: #6c54a0;
  --purple-light: #8b74c2;
  --pale: #f4f1f9;
  --line: #e5e2ed;
  --bg: #f8f8fb;
  --surface: #ffffff;
  --green: #15803d;
  --green-bg: #eaf6ef;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(31, 27, 59, 0.05);
  --shadow-md: 0 4px 18px rgba(31, 27, 59, 0.07);
  --shadow-lg: 0 12px 36px rgba(31, 27, 59, 0.10);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Layout Shell */
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 240px;
  inset: 0 auto 0 0;
  z-index: 40;
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
  padding: 0 8px 16px 8px;
  border-bottom: 1px solid var(--line);
}

.monogram {
  width: 36px;
  height: 38px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--purple) 100%);
  border-radius: 9px 9px 9px 2px;
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 22px 'Playfair Display', Georgia, serif;
  box-shadow: 0 3px 10px rgba(108, 84, 160, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.brand small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--accent-gold-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-org {
  margin: 14px 8px 8px;
  padding: 8px 12px;
  background: var(--pale);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted-light);
  margin: 22px 12px 8px;
  text-transform: uppercase;
}

.nav-item {
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  width: 100%;
  border-radius: 7px;
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: #f4f3f7;
  color: var(--ink);
}

.nav-item.active {
  background: var(--pale);
  color: var(--purple);
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-note {
  border: 1px solid var(--line);
  background: #faf9fd;
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.sidebar-note strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  margin-bottom: 3px;
}

/* Main Area */
.main {
  grid-column: 2;
  margin-left: 0;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
  margin-left: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Role Switcher in Topbar */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--pale);
  color: var(--purple);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(108, 84, 160, 0.2);
}

.role-switcher-select {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(108, 84, 160, 0.2);
}

/* Page Content */
.content {
  padding: 30px 36px 60px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}

.eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 4px;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 4px;
}

.page-desc {
  color: var(--muted);
  font-size: 12.5px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  min-height: 38px;
  transition: all 0.15s ease;
}

.btn:hover {
  background: #f7f6fa;
  border-color: #cac5d6;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn.primary:hover {
  background: var(--ink-light);
  box-shadow: 0 4px 12px rgba(31, 27, 59, 0.2);
}

.btn.gold {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold-dark);
}

.btn.gold:hover {
  background: var(--accent-gold-dark);
}

.btn.soft {
  background: var(--pale);
  border-color: rgba(108, 84, 160, 0.15);
  color: var(--purple);
}

.btn.soft:hover {
  background: #ece7f5;
}

.btn.danger {
  background: var(--red-bg);
  border-color: rgba(185, 28, 28, 0.2);
  color: var(--red);
}

.btn.small {
  font-size: 11px;
  padding: 5px 11px;
  min-height: 29px;
  border-radius: 5px;
}

.btn svg {
  width: 15px;
  height: 15px;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
}

.kpi-card.purple::before { background: var(--purple); }
.kpi-card.gold::before { background: var(--accent-gold); }
.kpi-card.green::before { background: var(--green); }
.kpi-card.blue::before { background: var(--blue); }

.kpi-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.filter-input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 12px;
  background: #fff;
  min-height: 34px;
  color: var(--ink);
}

.filter-input:focus {
  border-color: var(--purple);
  outline: none;
}

.filter-search {
  flex: 1;
  min-width: 200px;
}

/* Panels and Tables */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
  text-align: left;
}

th {
  background: #faf9fd;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: #fbfafc;
}

td small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge.confirmed, .badge.active, .badge.booked, .badge.delivered {
  background: var(--green-bg);
  color: var(--green);
}

.badge.upcoming, .badge.visit_scheduled, .badge.lead {
  background: var(--blue-bg);
  color: var(--blue);
}

.badge.completed, .badge.checked_in {
  background: var(--pale);
  color: var(--purple);
}

.badge.pending, .badge.sent {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge.cancelled, .badge.no_show, .badge.failed, .badge.inactive {
  background: var(--red-bg);
  color: var(--red);
}

.badge.reschedule_requested {
  background: #fdf2f8;
  color: #db2777;
}

/* Digital Invitation Builder Layout */
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.builder-form-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.builder-form-section:last-child {
  border-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--pale);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
}

.step-header h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #4a4658;
  margin-bottom: 5px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #d9d5e3;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  min-height: 38px;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 84, 160, 0.12);
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.preview-sticky {
  position: sticky;
  top: 84px;
}

/* Luxury Customer Invitation Card */
.invitation-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(31, 27, 59, 0.08);
  font-family: 'Inter', sans-serif;
}

.inv-inner {
  padding: 24px 22px 22px;
}

.inv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.inv-agency {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--purple);
}

.inv-agency-sub {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
}

.inv-dev-badge {
  text-align: right;
}
.inv-dev-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.inv-dev-sub {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
  text-transform: uppercase;
}

.inv-hero {
  padding: 16px 0 14px;
}

.inv-hero .eyebrow {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--accent-gold-dark);
}

.inv-hero h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 6px 0 8px;
}

.inv-hero p {
  color: var(--muted);
  font-size: 12px;
}

.inv-badge-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--purple);
  background: var(--pale);
  letter-spacing: 0.4px;
}

.inv-property-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.inv-property-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 4px 0 12px;
}

.inv-prop-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inv-prop-specs span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.inv-prop-specs b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.inv-schedule-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}

.inv-date-box {
  border: 1px solid #dcd7ea;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.inv-date-month {
  display: block;
  background: var(--pale);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 3px 0;
  color: var(--purple);
}

.inv-date-day {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  padding: 2px 0 4px;
  color: var(--ink);
}

.inv-schedule-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.inv-schedule-text p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.inv-detail-block {
  margin-bottom: 14px;
  font-size: 12px;
}

.inv-detail-block span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 3px;
}

.inv-advisor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}

.inv-advisor-row span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}
.inv-advisor-row b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.inv-qr-section {
  text-align: center;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  margin-top: 16px;
}
.inv-qr-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.inv-qr-caption {
  font-size: 10px;
  color: var(--muted);
}

.inv-disclaimer {
  background: #f7f5fa;
  border-left: 3px solid var(--purple);
  padding: 10px 12px;
  margin-top: 20px;
  color: #797387;
  font-size: 9.5px;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.inv-footer {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  text-align: center;
  font-size: 8.5px;
  letter-spacing: 0.6px;
  color: var(--muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 15, 38, 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.modal-desc {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 8px;
  z-index: 200;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

/* Public Customer Page Styles */
.public-customer-shell {
  min-height: 100vh;
  background: #f1eff6;
  padding: 18px 14px 40px;
}

.public-customer-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.public-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.hidden { display: none !important; }

/* Mobile & Tablet Drawer, Backdrop, Header & Bottom Bar Elements */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.sidebar-header-row .brand {
  border-bottom: 0;
  padding-bottom: 0;
  flex: 1;
}

.sidebar-close-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.sidebar-close-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.hamburger-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.hamburger-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--blue);
}

.sidebar-mobile-actions {
  display: none;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.mobile-role-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mobile-role-select {
  width: 100%;
  margin-bottom: 8px;
  height: 36px;
  border-radius: 8px;
}
.mobile-reset-btn {
  width: 100%;
  justify-content: center;
  font-size: 11.5px;
  height: 32px;
}

/* Mobile Bottom Navigation Bar - 100% Permanently Fixed to Viewport Glass */
.mobile-bottom-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 64px !important;
  background: #ffffff !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid #e2e8f0 !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 0 4px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.12) !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

.mob-nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-btn svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
  transition: transform 0.15s ease;
}
.mob-nav-btn.active {
  color: #2563eb !important;
  font-weight: 700 !important;
}
.mob-nav-btn.active svg {
  stroke-width: 2.3;
  transform: translateY(-2px);
  color: #2563eb;
}
.mob-nav-create {
  position: relative;
  top: -12px;
}
.mob-nav-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.42);
  border: 3px solid #fff;
  transition: transform 0.15s ease;
}
.mob-nav-btn:active .mob-nav-fab {
  transform: scale(0.92);
}

/* ======================================================== */
/* Responsive Design: Tablet View (<= 1024px)              */
/* ======================================================== */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
  }

  .shell:not(.hidden) {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 285px !important;
    z-index: 1000000 !important;
    background: #ffffff !important;
    box-shadow: none;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 20px 16px !important;
    border-right: 1px solid var(--line) !important;
    overflow-y: auto !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 14px 0 40px rgba(15, 23, 42, 0.25) !important;
  }

  .sidebar-close-btn {
    display: flex !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .main {
    width: 100% !important;
    margin-left: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .topbar {
    padding: 0 16px !important;
    height: 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .desktop-topbar-controls {
    display: none !important;
  }

  .sidebar-mobile-actions {
    display: block !important;
  }

  .user-profile .user-meta {
    display: none !important;
  }

  .content {
    padding: 22px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .builder-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .preview-sticky {
    position: static !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .panel, .card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  table {
    min-width: 580px !important;
    width: 100% !important;
  }

  .filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .filter-search {
    flex: 1 1 180px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .filter-input {
    max-width: 100% !important;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .public-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ======================================================== */
/* Responsive Design: Mobile Phones (<= 640px)              */
/* ======================================================== */
@media (max-width: 640px) {
  body:not(.public-mode):not(.auth-mode) .mobile-bottom-nav:not(.hidden) {
    display: flex !important;
  }
  .mobile-bottom-nav.hidden,
  #mobileBottomNav.hidden,
  body.public-mode .mobile-bottom-nav,
  body.public-mode #mobileBottomNav,
  body.auth-mode .mobile-bottom-nav,
  body.auth-mode #mobileBottomNav {
    display: none !important;
  }

  .content {
    padding: 16px 12px calc(80px + env(safe-area-inset-bottom, 0px)) 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .topbar {
    padding: 0 12px !important;
    height: 56px !important;
  }

  .topbar-left {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .crumb {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .crumb-prefix {
    display: none !important;
  }

  .crumb b {
    font-size: 14px !important;
    margin-left: 0 !important;
    letter-spacing: -0.2px !important;
  }

  .topbar-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .logout-text {
    display: none !important;
  }
  .logout-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    gap: 8px !important;
  }

  .filter-search, .filter-input {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  .page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-header .actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .page-header .actions .btn {
    width: 100% !important;
    justify-content: center !important;
    height: 42px !important;
    font-size: 13.5px !important;
  }

  .page-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  .page-desc {
    font-size: 12px !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .kpi-card {
    padding: 12px 10px !important;
  }

  .kpi-value {
    font-size: 20px !important;
  }

  .kpi-label {
    font-size: 10px !important;
  }

  .kpi-sub {
    font-size: 9px !important;
  }

  .fields-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .builder-form-section {
    padding: 14px 12px !important;
  }

  .panel-header {
    padding: 12px 14px !important;
  }

  .panel-body {
    padding: 14px 12px !important;
  }

  .modal-card {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .modal-title {
    font-size: 19px !important;
  }

  /* Public Invitation Pass on Mobile - Clean, Compact & Zero Dead Space */
  .public-customer-shell {
    padding: 10px 8px 30px !important;
  }

  .invitation-card {
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10) !important;
  }

  .inv-inner {
    padding: 16px 14px 16px !important;
  }

  .inv-top {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
  }

  .inv-dev-badge {
    text-align: right !important;
    align-self: center !important;
  }

  .inv-hero h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin: 4px 0 6px !important;
  }

  .inv-hero {
    margin: 8px 0 !important;
    padding: 4px 0 !important;
  }

  .public-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .public-actions-grid .btn {
    min-height: 46px !important;
    font-size: 13.5px !important;
  }

  table {
    min-width: 520px !important;
  }

  .searchable-select-trigger {
    min-height: 42px !important;
    font-size: 13.5px !important;
  }

  .searchable-dropdown-panel {
    max-height: 260px !important;
  }
}

/* Very Compact Mobile Devices (<= 380px) */
@media (max-width: 380px) {
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .mob-nav-btn span {
    font-size: 9px !important;
  }

  .mob-nav-fab {
    width: 42px !important;
    height: 42px !important;
  }
}

/* Ultra-Luxury Real Estate Authentication Portal - Executive White & Blue Edition */
.shell.auth-mode,
.shell:has(.auth-viewport) {
  display: block;
}

.auth-viewport {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 18% 18%, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.auth-viewport::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(96, 165, 250, 0.08) 50%, transparent 70%);
  top: -120px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.auth-viewport::after {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(219, 234, 254, 0.5) 60%, transparent 80%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.auth-container-box {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(30, 58, 138, 0.14), 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Left Showcase Panel - Executive Royal Blue */
.auth-showcase-panel {
  padding: 50px 44px;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 55%, #172554 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.auth-brand-logo {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.auth-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.auth-brand-subtitle {
  font-size: 11px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.auth-hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.auth-hero-desc {
  font-size: 13.5px;
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 32px;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.auth-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 15px;
  flex-shrink: 0;
}

.auth-feat-text strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.auth-feat-text span {
  font-size: 11.5px;
  color: #bfdbfe;
  line-height: 1.4;
}

.auth-quote-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid #60a5fa;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.5;
  font-style: italic;
}

.auth-quote-author {
  font-style: normal;
  display: block;
  font-size: 10.5px;
  color: #93c5fd;
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Right Form Panel - Crisp Clean White */
.auth-form-panel {
  padding: 50px 44px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.auth-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px #3b82f6;
}

.auth-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 26px;
  line-height: 1.4;
}

.auth-input-group {
  margin-bottom: 18px;
}

.auth-input-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.auth-input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #f8faff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  color: #0f172a;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.auth-input-wrapper input:focus {
  border-color: #2563eb;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.auth-pwd-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-pwd-toggle:hover {
  color: #1d4ed8;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1e40af;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
  margin-top: 6px;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}

.auth-quick-header span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
}

.auth-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-role-card {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8faff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
}

.auth-role-card:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.auth-role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.auth-role-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e3a8a;
}

.auth-role-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
}

.auth-role-email {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-security-footer {
  text-align: center;
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Responsive adjustment for login */
@media (max-width: 860px) {
  .auth-container-box {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-showcase-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 36px 28px;
  }
}

/* Custom Searchable Select Dropdown Component */
.searchable-select-container {
  position: relative;
  width: 100%;
}

.searchable-select-trigger {
  width: 100%;
  padding: 9px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.searchable-select-trigger:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.searchable-select-trigger.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.searchable-select-val {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
  font-weight: 500;
}

.searchable-arrow {
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.searchable-select-trigger.active .searchable-arrow {
  transform: rotate(180deg);
  color: #2563eb;
}

.searchable-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 100;
  overflow: hidden;
  animation: dropdownSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.searchable-search-box {
  padding: 8px 10px;
  background: #f8faff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.searchable-search-box svg {
  color: #64748b;
  flex-shrink: 0;
}

.searchable-search-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 26px 6px 9px;
  font-size: 12.5px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.searchable-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.searchable-clear-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
}

.searchable-clear-btn:hover {
  color: var(--ink);
}

.searchable-options-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
}

.searchable-option {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease;
}

.searchable-option:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.searchable-option.selected {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}

.searchable-option svg {
  color: #2563eb;
  flex-shrink: 0;
}

.searchable-no-results {
  padding: 16px 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}

@keyframes invSpin {
  to { transform: rotate(360deg); }
}

.inv-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #6c54a0;
  border-radius: 50%;
  animation: invSpin 0.8s linear infinite;
}

/* ======================================================== */
/* STRICT PUBLIC & AUTH VIEW RESTRICTIONS                   */
/* Prevent internal staff navigation & shell from showing   */
/* or occupying space on guest passes or public views.      */
/* ======================================================== */
body.public-mode #appShell,
html.public-mode #appShell,
.shell.hidden,
#appShell.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.public-mode #publicViewContainer,
html.public-mode #publicViewContainer {
  display: block !important;
}

body.public-mode #mobileBottomNav,
body.public-mode .mobile-bottom-nav,
body.auth-mode #mobileBottomNav,
body.auth-mode .mobile-bottom-nav,
#mobileBottomNav.hidden,
.mobile-bottom-nav.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateY(100%) !important;
}
