/* ══════════════════════════════════════════════════════
   ACCESSIBILITY — Skip Link & Focus
══════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary, #0f766e);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE TABLES — horizontal scroll on mobile
══════════════════════════════════════════════════════ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══════════════════════════════════════════════════════
   CSS VARIABLES — LIGHT & DARK THEME SUPPORT
══════════════════════════════════════════════════════ */

:root {
  /* Background Colors */
  --color-bg: #ecf1f4;
  --color-bg-accent: #d9e9e6;
  --color-bg-cool: #dbe4f5;
  --color-surface: #ffffff;
  --color-surface-soft: #f6fafc;
  
  /* Text Colors */
  --color-text: #16242f;
  --color-text-muted: #506676;
  --color-muted: #506676;
  
  /* Border & UI */
  --color-border: #c7d3dc;
  
  /* Accent Colors */
  --color-primary: #0f766e;
  --color-primary-strong: #0a5c57;
  --color-primary-light: #14b8a6;
  
  /* Semantic Colors */
  --color-success: #0c8e64;
  --color-warning: #b15b17;
  --color-error: #dc2626;
  --color-info: #2563eb;
  
  /* Map & Component Specific */
  --color-map-marker-border: #fff;
  --color-hero-gradient-start: #ffffff;
  --color-hero-gradient-mid: #f1f8f8;
  --color-hero-gradient-end: #eaf0fd;
  --color-proof-strip-start: rgba(255, 255, 255, 0.7);
  --color-proof-strip-end: rgba(241, 248, 255, 0.8);
  --color-proof-item-bg: rgba(255, 255, 255, 0.72);
  --color-empty-bg: rgba(255, 255, 255, 0.64);
  --color-cta-gradient-start: #ffffff;
  --color-cta-gradient-mid: #e8f4f2;
  --color-cta-gradient-end: #e9eefb;
  
  /* Badge Colors */
  --badge-open-bg: #edf4ff;
  --badge-open-text: #2556d6;
  --badge-progress-bg: #ebfcf6;
  --badge-progress-text: #047857;
  --badge-closed-bg: #f1f4f7;
  --badge-closed-text: #3a4a57;
  
  /* Alert Colors */
  --alert-success-border: #b9f2d8;
  --alert-success-bg: #ecfdf3;
  --alert-success-text: #166546;
  --alert-error-border: #fca5a5;
  --alert-error-bg: #fef2f2;
  --alert-error-text: #991b1b;
  
  /* Shadows */
  --shadow-sm: 0 10px 24px rgba(15, 30, 40, 0.08);
  --shadow-md: 0 18px 42px rgba(15, 30, 40, 0.12);
  --shadow-hover: 0 12px 32px rgba(15, 30, 40, 0.14);
  
  /* Spacing & Layout */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --container-narrow: 680px;
  --container-default: 1080px;
  --container-wide: 1360px;
  --container-full: 1600px;
  --container: var(--container-default);

  /* Animation */
  --dur-fast: 180ms;
  --dur-base: 420ms;
  --ease-standard: cubic-bezier(0.2, 0.72, 0.2, 1);
}

/* ══════════════════════════════════════════════════════
   DARK THEME
══════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Background Colors — Deep blue-black slate */
  --color-bg: #0f172a;
  --color-bg-accent: #1e293b;
  --color-bg-cool: #1e293b;
  --color-surface: #1e293b;
  --color-surface-soft: #334155;
  
  /* Text Colors — Light slate */
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-muted: #94a3b8;
  
  /* Border & UI */
  --color-border: #334155;
  
  /* Accent Colors — Brighter teal for dark mode */
  --color-primary: #14b8a6;
  --color-primary-strong: #2dd4bf;
  --color-primary-light: #5eead4;
  
  /* Semantic Colors — Adjusted for dark backgrounds */
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #60a5fa;
  
  /* Map & Component Specific */
  --color-map-marker-border: #1e293b;
  --color-hero-gradient-start: #1e293b;
  --color-hero-gradient-mid: #0f172a;
  --color-hero-gradient-end: #1e293b;
  --color-proof-strip-start: rgba(30, 41, 59, 0.8);
  --color-proof-strip-end: rgba(15, 23, 42, 0.9);
  --color-proof-item-bg: rgba(51, 65, 85, 0.8);
  --color-empty-bg: rgba(30, 41, 59, 0.6);
  --color-cta-gradient-start: #1e293b;
  --color-cta-gradient-mid: #0f172a;
  --color-cta-gradient-end: #1e293b;
  
  /* Badge Colors — Dark mode versions */
  --badge-open-bg: #1e3a8a;
  --badge-open-text: #93c5fd;
  --badge-progress-bg: #064e3b;
  --badge-progress-text: #34d399;
  --badge-closed-bg: #334155;
  --badge-closed-text: #cbd5e1;
  
  /* Alert Colors — Dark mode versions */
  --alert-success-border: #064e3b;
  --alert-success-bg: #064e3b;
  --alert-success-text: #34d399;
  --alert-error-border: #7f1d1d;
  --alert-error-bg: #450a0a;
  --alert-error-text: #fca5a5;
  
  /* Shadows — Darker for dark mode */
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════════════════════════
   SMOOTH THEME TRANSITIONS
══════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  transition: background-color 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Exclude certain elements from transitions for performance */
.map-marker,
.skeleton,
.toast,
.modal-backdrop,
.modal {
  transition: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1100px 520px at 8% -8%, var(--color-bg-accent), transparent),
    radial-gradient(980px 460px at 100% 0%, var(--color-bg-cool), transparent),
    var(--color-bg);
  color: var(--color-text);
  font-family: "Onest", "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.skip-link:focus-visible {
  top: 12px;
}

.shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: var(--space-4);
}

.shell--narrow { --container: var(--container-narrow); }
.shell--wide   { --container: var(--container-wide); }
.shell--full   { --container: var(--container-full); }

/* ══════════════════════════════════════════════════════
   LAYOUT — Sidebar + Content grid
══════════════════════════════════════════════════════ */

.layout-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-4);
  align-items: start;
}

.layout-sidebar__aside {
  position: sticky;
  top: 72px;
}

.layout-sidebar__main {
  min-width: 0;
}

@media (max-width: 1360px) {
  .layout-sidebar {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .layout-sidebar__aside {
    position: static;
    margin-bottom: var(--space-4);
  }
}

/* ══════════════════════════════════════════════════════
   GLOBAL NAVBAR
══════════════════════════════════════════════════════ */

.global-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-full);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 56px;
  gap: var(--space-3);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.navbar-brand {
  font-family: Unbounded, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: var(--color-primary-strong);
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.navbar-center a,
.navbar-center button {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.navbar-center a:hover,
.navbar-center button:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.navbar-center a.active {
  background: var(--color-primary);
  color: #fff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* House pill */
.house-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.house-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.house-pill__arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* House switcher dropdown */
.house-switcher {
  position: relative;
}

.house-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 950;
}

.house-switcher:hover .house-switcher__menu,
.house-switcher__menu:hover {
  display: block;
}

.house-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--dur-fast);
}

.house-switcher__item:hover {
  background: var(--color-bg);
}

.house-switcher__item.active {
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 600;
}

/* Nav "More" dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 950;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown__menu:hover {
  display: block;
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background var(--dur-fast);
}

.nav-dropdown__item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Avatar dropdown */
.avatar-dropdown {
  position: relative;
}

.avatar-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px;
  border-radius: 999px;
  transition: opacity var(--dur-fast);
  border: none;
  background: none;
}

.avatar-dropdown__trigger:hover {
  opacity: 0.85;
}

.avatar-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 950;
}

.avatar-dropdown:hover .avatar-dropdown__menu,
.avatar-dropdown__menu:hover {
  display: block;
}

.avatar-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background var(--dur-fast);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.avatar-dropdown__item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.avatar-dropdown__divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 8px;
}

/* Notification bell */
.navbar-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.navbar-bell:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.navbar-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error);
  border: 2px solid var(--color-surface);
}

/* Theme toggle in navbar */
.navbar-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.navbar-theme-toggle:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ══════════════════════════════════════════════════════
   HAMBURGER MENU (Mobile)
══════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.4rem;
  transition: background var(--dur-fast);
}

.hamburger-btn:hover {
  background: var(--color-bg);
}

.hamburger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s;
}

.hamburger-overlay.open {
  display: block;
  opacity: 1;
}

.hamburger-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--color-surface);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: var(--space-4);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.hamburger-drawer.open {
  transform: translateX(0);
}

.hamburger-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.hamburger-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-close:hover {
  background: var(--color-bg);
}

.hamburger-section {
  margin-bottom: var(--space-4);
}

.hamburger-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-2);
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--dur-fast);
}

.hamburger-link:hover {
  background: var(--color-bg);
}

.hamburger-link.active {
  background: var(--color-primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   HOUSE SIDEBAR
══════════════════════════════════════════════════════ */

.house-sidebar {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.house-sidebar__header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.house-sidebar__house-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

/* ── House switcher dropdown ── */
.house-switcher {
  position: relative;
  width: 100%;
}
.house-switcher__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text);
  text-align: left;
}
.house-switcher__trigger:hover .house-switcher__name {
  color: var(--color-primary);
}
.house-switcher__name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.house-switcher__arrow {
  font-size: 1rem;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.house-switcher__trigger[aria-expanded="true"] .house-switcher__arrow {
  transform: rotate(180deg);
}
.house-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -1rem;
  right: -1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
}
.house-switcher__option {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.house-switcher__option:last-child {
  border-bottom: none;
}
.house-switcher__option:hover {
  background: var(--color-border);
}
.house-switcher__option--active {
  color: var(--color-primary);
  font-weight: 600;
}
.house-switcher__option--add {
  color: var(--color-primary);
  font-weight: 500;
}
.house-switcher__add-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.house-switcher__add-single:hover {
  background: var(--color-primary);
  color: #fff;
}

.house-sidebar__address {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.house-sidebar details {
  border-bottom: 1px solid var(--color-border);
}

.house-sidebar details:last-child {
  border-bottom: none;
}

.house-sidebar summary {
  display: flex;
  align-items: center;
  padding: 10px var(--space-4);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.house-sidebar summary::-webkit-details-marker {
  display: none;
}

.house-sidebar summary::after {
  content: ">";
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.15s;
  transform: rotate(90deg);
}

.house-sidebar details:not([open]) summary::after {
  transform: rotate(0deg);
}

.house-sidebar__links {
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  gap: 1px;
}

.house-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.house-sidebar__link:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.house-sidebar__link.active {
  background: var(--color-primary);
  color: #fff;
}

.house-sidebar__link-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════
   BOTTOM TABS (Mobile)
══════════════════════════════════════════════════════ */

.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(15, 30, 40, 0.08);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-tabs__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 100%;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}

.bottom-tab-item:active {
  background: var(--color-bg);
  border-radius: 12px;
}

.bottom-tab-item__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bottom-tab-item.active {
  color: var(--color-primary);
}

.bottom-tab-item.active .bottom-tab-item__icon {
  transform: scale(1.1);
}

.bottom-tab-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 1.6rem;
  border: 3px solid var(--color-surface);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  margin-top: -20px;
}

.bottom-tab-fab:hover,
.bottom-tab-fab:active {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

/* ══════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════ */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  max-width: var(--container-wide);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  color: var(--color-border);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: 500;
}

.breadcrumbs--mobile-back {
  display: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Navbar + Layout
══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .bottom-tabs {
    display: block;
  }

  .navbar-center {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .house-pill {
    max-width: 140px;
  }

  .breadcrumbs {
    display: none;
  }

  .breadcrumbs--mobile-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
  }

  .breadcrumbs--mobile-back a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
  }
}

@media (max-width: 360px) {
  .bottom-tab-item {
    min-width: 48px;
    font-size: 0.65rem;
  }

  .bottom-tab-item__icon {
    font-size: 1.2rem;
  }

  .bottom-tab-fab {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.brand {
  font-family: "Onest", sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--color-surface-soft);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.topbar-cta {
  min-height: 44px;
}

.hero {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(140deg, var(--color-hero-gradient-start) 0%, var(--color-hero-gradient-mid) 58%, var(--color-hero-gradient-end) 100%);
  box-shadow: var(--shadow-md);
}

.hero--premium {
  position: relative;
  overflow: hidden;
}

.hero--premium::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 70%);
  pointer-events: none;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
}

.hero-tag {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  font-weight: 700;
}

.hero h1 {
  margin: var(--space-2) 0 0;
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.hero p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  max-width: 56ch;
  font-size: 1.03rem;
}

.hero-side {
  display: grid;
  gap: var(--space-3);
}

.hero-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.hero-kpi {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--color-surface-soft);
}

.hero-kpi strong {
  font-size: 1.24rem;
  font-weight: 800;
}

.proof-list {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 30px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  display: grid;
  gap: 8px;
}

.hero-badges {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-surface);
  box-shadow: 0 8px 18px rgba(10, 102, 96, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--color-primary-strong), var(--color-primary));
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.25);
}

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.section {
  margin-top: var(--space-6);
}

.section h2 {
  margin: 0 0 var(--space-3);
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
}

.proof-strip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-proof-strip-start), var(--color-proof-strip-end));
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-3);
}

.proof-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-proof-item-bg);
  padding: var(--space-2);
  display: grid;
  gap: 2px;
}

.proof-item strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 30, 40, 0.11);
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
}

.card p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
}

.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), #6aa6a2);
}

.kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.kpi .value {
  font-size: 1.7rem;
  font-weight: 800;
}

.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.list {
  display: grid;
  gap: var(--space-2);
}

.list-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--color-surface-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-open {
  background: var(--badge-open-bg);
  color: var(--badge-open-text);
}

.badge-progress {
  background: var(--badge-progress-bg);
  color: var(--badge-progress-text);
}

.badge-closed {
  background: var(--badge-closed-bg);
  color: var(--badge-closed-text);
}

/* ══════════════════════════════════════════════════════
   VERIFICATION BADGES
══════════════════════════════════════════════════════ */

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.verification-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verification-badge--unverified {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #d1d5db;
}

.verification-badge--verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #10b981;
}

.verification-badge--confirmed {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #3b82f6;
}

[data-theme="dark"] .verification-badge--unverified {
  background: #374151;
  color: #9ca3af;
  border-color: #4b5563;
}

[data-theme="dark"] .verification-badge--verified {
  background: #064e3b;
  color: #34d399;
  border-color: #059669;
}

[data-theme="dark"] .verification-badge--confirmed {
  background: #1e3a8a;
  color: #60a5fa;
  border-color: #2563eb;
}

.verification-badge--small {
  padding: 4px 6px;
  font-size: 0.75rem;
}

.verification-badge--inline {
  padding: 2px 5px;
  font-size: 0.7rem;
  margin-left: 4px;
}

.verification-badge__icon {
  font-size: 0.9em;
}

.verification-badge__text {
  line-height: 1;
}

/* Verification section on profile */
.verification-section {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-top: var(--space-3);
}

.verification-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.verification-section__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.verification-confirmers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.verification-confirmers__avatars {
  display: flex;
  align-items: center;
}

.verification-confirmers__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
}

.verification-confirmers__avatar:first-child {
  margin-left: 0;
}

.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
  text-decoration: none;
  background: var(--color-surface);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.tab.active {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.form-grid {
  display: grid;
  gap: var(--space-3);
}

.label {
  font-size: 0.94rem;
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.table,
.compare {
  width: 100%;
  border-collapse: collapse;
}

.table {
  min-width: 760px;
}

.table th,
.table td,
.compare th,
.compare td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.table th,
.compare th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.compare th[scope="row"] {
  text-transform: none;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: 0;
}

.right {
  color: var(--color-success);
  font-weight: 700;
}

.wrong {
  color: var(--color-warning);
  font-weight: 700;
}

.empty {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-empty-bg);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--alert-success-border);
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  font-size: 0.92rem;
}

.alert-error {
  border-color: var(--alert-error-border);
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}

.timeline {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-2);
  align-items: start;
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-surface);
  font-weight: 700;
  font-size: 0.9rem;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.outcome {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.outcome h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.faq {
  display: grid;
  gap: var(--space-2);
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--color-surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 22px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-primary-strong);
  font-size: 1.05rem;
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.stat strong {
  font-size: 1.42rem;
  font-weight: 800;
}

.cta-strip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: linear-gradient(140deg, var(--color-cta-gradient-start), var(--color-cta-gradient-mid) 56%, var(--color-cta-gradient-end));
  box-shadow: var(--shadow-sm);
}

.cta-contact {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

.footer-meta {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.modal-demo {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-soft));
}

.stack {
  display: grid;
  gap: var(--space-3);
}

.muted {
  color: var(--color-text-muted);
}

.focusable:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.tab:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal var(--dur-base) var(--ease-standard) forwards;
}

.reveal-delay-1 {
  animation-delay: 90ms;
}

.reveal-delay-2 {
  animation-delay: 180ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shell {
    padding: var(--space-3);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-cta {
    width: 100%;
  }

  .nav {
    width: 100%;
  }

  .hero {
    padding: var(--space-4);
  }

  .hero h1 {
    max-width: 14ch;
  }

  .grid-3,
  .grid-2,
  .outcome-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .compare {
    min-width: 650px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.6rem;
  }

  .chip,
  .btn,
  .tab {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 12vw, 2.5rem);
  }

  .section {
    margin-top: var(--space-5);
  }
}

/* ══════════════════════════════════════════════════════
   MAP
══════════════════════════════════════════════════════ */

.map-search-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.input {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--dur-fast);
  outline: none;
}

.input:focus-visible {
  border-color: var(--color-primary);
}

.map-search-row .input {
  flex: 1;
}

.map-container {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border);
}

.map-note {
  margin-top: var(--space-2);
  font-size: .875rem;
}

.map-marker {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 2.5px solid var(--color-map-marker-border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15,118,110,.5);
  cursor: pointer;
  transition: transform var(--dur-fast);
}

[data-theme="dark"] .map-marker {
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.5);
}

.map-marker:hover {
  transform: scale(1.4);
}

.map-popup {
  font-family: "Onest", sans-serif;
  min-width: 180px;
}

.map-popup strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 4px;
}

.map-popup-meta {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.map-popup-link {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.map-popup-link:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   AUTH
══════════════════════════════════════════════════════ */

.auth-providers {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: var(--shadow-sm);
}

.oauth-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.oauth-vk {
  background: #0077ff;
  color: #fff;
}

.oauth-yandex {
  background: #fc3f1d;
  color: #fff;
}

.oauth-max {
  background: #1a1a2e;
  color: #fff;
}

.auth-avatar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ══════════════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════════════ */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-xs {
  width: 26px;
  height: 26px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-placeholder {
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.avatar-xs.avatar-placeholder {
  font-size: .7rem;
}

/* ══════════════════════════════════════════════════════
   FORUM — layout
══════════════════════════════════════════════════════ */

.forum-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.forum-sidebar {
  position: sticky;
  top: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.forum-house-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.forum-house-title a {
  text-decoration: none;
  color: var(--color-text);
}

.forum-channels-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-channel {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px var(--space-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.sidebar-channel:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.sidebar-channel.active {
  background: var(--color-primary);
  color: var(--color-surface);
}

.sidebar-channel-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.forum-main {
  min-width: 0;
}

.forum-channel-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   FORUM — channel grid (home)
══════════════════════════════════════════════════════ */

.channel-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.channel-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.channel-body {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-weight: 700;
  font-size: 1rem;
}

.channel-meta {
  font-size: .8rem;
  margin-bottom: 2px;
}

.channel-preview {
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-preview-author {
  font-weight: 600;
  color: var(--color-text);
}

.channel-arrow {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   FORUM — posts
══════════════════════════════════════════════════════ */

.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card {
  padding: var(--space-4);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-pinned {
  border-left: 3px solid var(--color-primary);
}

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-author-name {
  font-weight: 600;
  font-size: .9rem;
}

.post-time {
  font-size: .8rem;
  white-space: nowrap;
}

.post-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.post-body-preview {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.post-stat {
  font-size: .8rem;
}

/* ══════════════════════════════════════════════════════
   FORUM — post full
══════════════════════════════════════════════════════ */

.post-breadcrumb {
  font-size: .85rem;
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.post-breadcrumb a {
  text-decoration: none;
  color: var(--color-primary);
}

.post-full {
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.post-full-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: var(--space-3) 0;
}

.post-full-body {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════════════════
   FORUM — reactions
══════════════════════════════════════════════════════ */

.reactions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.reactions-bar--sm {
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.reaction-btn:hover,
.reaction-btn--active {
  background: var(--color-bg-accent);
  border-color: var(--color-primary);
}

.reaction-btn--sm {
  padding: 2px 7px;
  font-size: .78rem;
}

.reaction-picker-wrap {
  position: relative;
}

.reaction-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px dashed var(--color-border);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color var(--dur-fast);
  font-family: inherit;
}

.reaction-add:hover {
  border-color: var(--color-primary);
}

.reaction-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 4px;
  z-index: 100;
}

.reaction-picker-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px;
  transition: background var(--dur-fast);
  font-family: inherit;
}

.reaction-picker-btn:hover {
  background: var(--color-bg);
}

/* ══════════════════════════════════════════════════════
   FORUM — replies
══════════════════════════════════════════════════════ */

.replies-section {
  margin-top: var(--space-4);
}

.replies-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.reply-item {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  border-left: 3px solid var(--color-border);
}

.reply-author-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.reply-body {
  font-size: .95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ══════════════════════════════════════════════════════
   COMPOSE
══════════════════════════════════════════════════════ */

.post-compose,
.reply-compose {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
}

.compose-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.compose-title-input {
  flex: 1;
}

.compose-body {
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.auth-prompt {
  padding: var(--space-4);
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   MANAGEMENT COMPANY CARD
══════════════════════════════════════════════════════ */

.mc-card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.mc-card-title {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.mc-card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.mc-card-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mc-contact {
  font-size: .85rem;
  text-decoration: none;
  color: var(--color-text-muted);
}

.mc-contact:hover {
  color: var(--color-primary);
}

/* ══════════════════════════════════════════════════════
   VALUE ICONS
══════════════════════════════════════════════════════ */

.value-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: .85rem;
}

/* ══════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-4);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — forum
══════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    position: static;
  }

  .forum-channels-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .sidebar-channel {
    flex-direction: row;
    font-size: .8rem;
    padding: 6px var(--space-2);
  }

  .map-container {
    height: 300px;
  }

  .auth-providers {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════
   SKELETON LOADING STATES
══════════════════════════════════════════════════════ */

/* Base skeleton element with shimmer animation */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-border) 0%,
    var(--color-surface-soft) 50%,
    var(--color-border) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Shimmer animation keyframes */
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton text line */
.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  margin-bottom: 0;
}

/* Skeleton title - larger text */
.skeleton-title {
  height: 1.4em;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
}

/* Skeleton avatar - circular */
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-avatar-sm {
  width: 32px;
  height: 32px;
}

.skeleton-avatar-xs {
  width: 26px;
  height: 26px;
}

.skeleton-avatar-lg {
  width: 56px;
  height: 56px;
}

/* Skeleton card - full card placeholder */
.skeleton-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
}

/* Skeleton button */
.skeleton-btn {
  height: 44px;
  width: 120px;
  border-radius: 12px;
}

/* Skeleton input field */
.skeleton-input {
  height: 46px;
  width: 100%;
  border-radius: 12px;
}

/* Skeleton textarea */
.skeleton-textarea {
  height: 120px;
  width: 100%;
  border-radius: 12px;
}

/* Skeleton table row */
.skeleton-table-row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.skeleton-table-cell {
  height: 1.2em;
  flex: 1;
}

.skeleton-table-cell-sm {
  flex: 0.5;
}

.skeleton-table-cell-lg {
  flex: 2;
}

/* Skeleton stats grid */
.skeleton-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.skeleton-stat {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.skeleton-stat-value {
  height: 2rem;
  width: 60%;
  margin-bottom: var(--space-2);
}

.skeleton-stat-label {
  height: 1rem;
  width: 80%;
}

/* Skeleton channel card */
.skeleton-channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.skeleton-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-channel-body {
  flex: 1;
  min-width: 0;
}

/* Skeleton post card */
.skeleton-post {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.skeleton-post-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.skeleton-post-meta {
  flex: 1;
}

.skeleton-post-author {
  height: 1rem;
  width: 40%;
  margin-bottom: var(--space-1);
}

.skeleton-post-time {
  height: 0.8rem;
  width: 30%;
}

/* Skeleton feed item */
.skeleton-feed-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.skeleton-feed-item:last-child {
  border-bottom: none;
}

/* Staggered animation delays for skeleton groups */
.skeleton-delay-1 { animation-delay: 0.1s; }
.skeleton-delay-2 { animation-delay: 0.2s; }
.skeleton-delay-3 { animation-delay: 0.3s; }
.skeleton-delay-4 { animation-delay: 0.4s; }
.skeleton-delay-5 { animation-delay: 0.5s; }

/* HTMX indicator - hides when request is in flight */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: block;
}

.htmx-request.htmx-indicator {
  display: block;
}

/* When content is loading, hide the original content */
.htmx-request .content-to-replace {
  display: none;
}

/* Skeleton container for HTMX */
.skeleton-container {
  min-height: 200px;
}

/* Reduced motion preference for skeletons */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--color-border);
  }
}

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATION SYSTEM
══════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
  pointer-events: auto;
  animation: toast-slide-in 0.3s var(--ease-standard);
  position: relative;
  overflow: hidden;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.toast-exit {
  animation: toast-fade-out 0.3s var(--ease-standard) forwards;
}

.toast.success {
  border-left-color: var(--color-success);
}

.toast.error {
  border-left-color: var(--color-error);
}

.toast.info {
  border-left-color: var(--color-info);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: var(--badge-progress-bg);
  color: var(--badge-progress-text);
}

.toast.error .toast-icon {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}

.toast.info .toast-icon {
  background: var(--badge-open-bg);
  color: var(--badge-open-text);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.3;
}

.toast.success .toast-progress {
  background: var(--color-success);
}

.toast.error .toast-progress {
  background: var(--color-error);
}

.toast.info .toast-progress {
  background: var(--color-info);
}

@media (max-width: 520px) {
  .toast-container {
    left: var(--space-3);
    right: var(--space-3);
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
══════════════════════════════════════════════════════ */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(15, 30, 40, 0.08);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 100%;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-standard);
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
  background: var(--color-bg);
}

.mobile-nav-item-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
}

.mobile-nav-item-label {
  white-space: nowrap;
}

.mobile-nav-item.active {
  color: var(--color-primary);
}

.mobile-nav-item.active .mobile-nav-item-icon {
  transform: scale(1.1);
}

/* Center FAB button in mobile nav */
.mobile-nav-fab-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 100%;
}

.mobile-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-surface);
  font-size: 1.6rem;
  border: 3px solid var(--color-surface);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard), 
              box-shadow var(--dur-fast) var(--ease-standard);
  margin-top: -20px;
}

.mobile-fab:hover,
.mobile-fab:active {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.mobile-fab-icon {
  line-height: 1;
  font-weight: 300;
}

/* Show mobile nav and adjust layout on small screens */
@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }

  /* Add padding to shell to prevent content being hidden behind nav */
  .shell {
    padding-bottom: calc(64px + var(--space-4) + env(safe-area-inset-bottom, 0));
  }

  /* Reduce footer padding to avoid double spacing */
  .footer-meta {
    padding-bottom: calc(var(--space-4) + 64px);
  }
}

/* Extra small screens - adjust nav item sizing */
@media (max-width: 360px) {
  .mobile-nav-item {
    min-width: 48px;
    font-size: 0.65rem;
  }

  .mobile-nav-item-icon {
    font-size: 1.2rem;
  }

  .mobile-fab {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* ══════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════════ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-soft);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--dur-fast) var(--ease-standard);
  color: var(--color-text);
}

.theme-toggle:hover {
  background: var(--color-bg-accent);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.34);
  outline-offset: 3px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

/* Show sun icon in light mode */
[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: block;
}

/* Show moon icon in dark mode */
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ══════════════════════════════════════════════════════
   ADDRESS AUTOCOMPLETE
══════════════════════════════════════════════════════ */

.address-autocomplete-wrap {
  position: relative;
}

.address-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
}

.address-suggestion-item {
  padding: 12px var(--space-3);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item:focus {
  background: var(--color-bg-accent);
}

.suggestion-main {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
}

.suggestion-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.address-loading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

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

.selected-address {
  background: var(--color-bg-accent);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.selected-address-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.selected-address-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.selected-address-change {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

.selected-address-change:hover {
  color: var(--color-primary-strong);
}

.map-preview-container {
  margin-top: var(--space-3);
}

.map-preview-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.map-preview {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
}

/* Disabled button state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}


/* ══════════════════════════════════════════════════════
   BREADCRUMB NAVIGATION — SEO Optimized
══════════════════════════════════════════════════════ */

.breadcrumb {
  padding: var(--space-2) 0;
  margin-bottom: var(--space-2);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-1);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--dur-fast) var(--ease-standard);
  padding: 4px 6px;
  border-radius: 6px;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
  background: rgba(15, 118, 110, 0.08);
}

.breadcrumb-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.breadcrumb-icon {
  font-size: 0.9rem;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  opacity: 0.6;
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 6px;
}

/* Mobile breadcrumb optimization */
@media (max-width: 640px) {
  .breadcrumb {
    padding: var(--space-1) 0;
  }
  
  .breadcrumb-list {
    gap: 2px;
  }
  
  .breadcrumb-link,
  .breadcrumb-current,
  .breadcrumb-separator {
    font-size: 0.75rem;
  }
  
  /* Truncate long names on mobile */
  .breadcrumb-link span:not(.breadcrumb-icon),
  .breadcrumb-current span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Markdown post body ────────────────────────────────────────────────────── */
.post-markdown p { margin: 0 0 .75em; line-height: 1.7; }
.post-markdown p:last-child { margin-bottom: 0; }
.post-markdown strong { font-weight: 700; }
.post-markdown em { font-style: italic; }
.post-markdown code { font-family: monospace; font-size: .88em; background: var(--color-bg-subtle, #f1f5f9); padding: .1em .35em; border-radius: 3px; }
.post-markdown h3 { font-size: 1.05rem; font-weight: 700; margin: 1em 0 .4em; }
.post-markdown h4 { font-size: .95rem; font-weight: 600; margin: .75em 0 .3em; }
.post-markdown ul { margin: .5em 0 .75em 1.25em; padding: 0; list-style: disc; }
.post-markdown li { margin-bottom: .25em; line-height: 1.6; }
.post-markdown a { color: var(--color-primary, #0f766e); text-decoration: underline; word-break: break-all; }
mark { background: #fef08a; color: inherit; border-radius: 2px; padding: 0 2px; }
[data-theme="dark"] mark { background: #713f12; color: #fef9c3; }
.post-markdown hr { border: none; border-top: 1px solid var(--color-border, #e2e8f0); margin: 1.25em 0; }
.ocr-status { font-size: .875rem; margin-top: 6px; min-height: 1.4em; }
.ocr-status.loading { color: var(--text-muted); }
.ocr-status.success { color: var(--color-success, #16a34a); }
.ocr-status.error   { color: var(--color-danger, #dc2626); }

/* ══════════════════════════════════════════════════════
   NOTIFICATION BELL DROPDOWN
══════════════════════════════════════════════════════ */

.notification-bell-wrap {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--color-surface);
  pointer-events: none;
  z-index: 2;
}

.notification-badge.pulse {
  animation: notif-pulse 1.5s ease-in-out 3;
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.notif-mark-all {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-dropdown-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.notif-dropdown-footer a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.notif-dropdown-footer a:hover {
  text-decoration: underline;
}

/* ── Notification Items ── */

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
  cursor: pointer;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--color-surface-soft);
}

.notification-item.unread {
  background: rgba(37, 99, 235, 0.04);
}

.notification-item.read {
  opacity: 0.7;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-dot--critical { background: var(--color-error); }
.notif-dot--important { background: var(--color-warning); }
.notif-dot--normal { background: var(--color-info); }
.notif-dot--low { background: var(--color-border); }
.notif-dot--unread { background: var(--color-info); }

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.notification-item.unread .notif-title {
  font-weight: 600;
}

.notif-body {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.notif-menu-btn {
  opacity: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity var(--dur-fast), background var(--dur-fast);
}

.notification-item:hover .notif-menu-btn {
  opacity: 1;
}

.notif-menu-btn:hover {
  background: var(--color-bg);
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════
   ACTIVITY FEED
══════════════════════════════════════════════════════ */

.feed-section {
  margin-bottom: var(--space-4);
}

/* ── Filter pills ── */

.feed-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 var(--space-3) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-filters::-webkit-scrollbar {
  display: none;
}

.feed-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast);
  text-decoration: none;
}

.feed-filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.feed-filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Time section headers ── */

.feed-time-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: var(--space-3) 0 var(--space-1) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

/* ── Feed cards ── */

.feed-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-2) var(--space-3);
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
  position: relative;
}

.feed-card:hover {
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-sm);
}

.feed-card.unread::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-info);
}

/* Card type accents */
.feed-card--emergency {
  border-left-color: var(--color-error);
  background: rgba(220, 38, 38, 0.03);
}

.feed-card--emergency.pinned {
  border-left-width: 4px;
  padding: var(--space-3);
}

.feed-card--poll {
  border-left-color: #7c3aed;
}

.feed-card--forum {
  border-left-color: transparent;
}

.feed-card--ticket-resolved {
  border-left-color: var(--color-success);
}

.feed-card--ticket-progress {
  border-left-color: var(--color-warning);
}

.feed-card--mc-response {
  border-left-color: var(--color-warning);
}

.feed-card--document {
  border-left-color: transparent;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.feed-card--member {
  border-left-color: transparent;
  opacity: 0.7;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

/* Card inner elements */

.feed-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.feed-card__content {
  flex: 1;
  min-width: 0;
}

.feed-card__title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.feed-card.unread .feed-card__title {
  font-weight: 600;
}

.feed-card__preview {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.feed-card__reactions {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
}

.feed-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.feed-card__badge--uk {
  background: rgba(177, 91, 23, 0.1);
  color: var(--color-warning);
}

.feed-card__badge--channel {
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary);
}

.feed-card__badge--status-resolved {
  background: rgba(12, 142, 100, 0.1);
  color: var(--color-success);
}

.feed-card__badge--status-progress {
  background: rgba(177, 91, 23, 0.1);
  color: var(--color-warning);
}

.feed-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  text-decoration: none;
  transition: background var(--dur-fast);
}

.feed-card__cta:hover {
  background: rgba(124, 58, 237, 0.15);
}

.feed-card__menu-btn {
  opacity: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity var(--dur-fast), background var(--dur-fast);
}

.feed-card:hover .feed-card__menu-btn {
  opacity: 1;
}

.feed-card__menu-btn:hover {
  background: var(--color-bg);
}

.feed-card__file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Undo bar ── */

.feed-undo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.feed-undo-bar a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.feed-undo-bar a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   CATCH-UP BANNER
══════════════════════════════════════════════════════ */

.catchup-banner {
  position: sticky;
  top: 56px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--space-4);
  background: #e8f4fd;
  border-bottom: 1px solid #bddcf0;
  font-size: 0.85rem;
  color: #1a5276;
}

[data-theme="dark"] .catchup-banner {
  background: #1a3a5c;
  border-bottom-color: #2a5478;
  color: #bddcf0;
}

.catchup-banner__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.catchup-banner__text {
  flex: 1;
}

.catchup-banner__text strong {
  font-weight: 600;
}

.catchup-banner__close {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.1rem;
  padding: 4px;
  opacity: 0.6;
  transition: opacity var(--dur-fast);
}

.catchup-banner__close:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR BADGES
══════════════════════════════════════════════════════ */

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}

.sidebar-badge--count {
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-info);
}

.sidebar-badge--urgent {
  background: rgba(220, 38, 38, 0.12);
  color: var(--color-error);
}

.sidebar-badge--new {
  background: rgba(12, 142, 100, 0.12);
  color: var(--color-success);
}

.house-sidebar__link .sidebar-badge {
  margin-left: auto;
}

.house-sidebar__link.active .sidebar-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   NOTIFICATION SETTINGS PAGE
══════════════════════════════════════════════════════ */

.notif-settings {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-4);
}

.notif-settings__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.notif-settings__section {
  margin-bottom: var(--space-5);
}

.notif-settings__section-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.notif-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  transition: border-color var(--dur-fast);
}

.notif-category-row:hover {
  border-color: var(--color-primary);
}

.notif-category-row__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-category-row__info {
  flex: 1;
  min-width: 0;
}

.notif-category-row__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.notif-category-row__desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.notif-category-row__expand {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 4px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.toggle-switch__slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-switch__slider::after {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quiet hours */
.quiet-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.quiet-hours select {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
}

.quiet-hours label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  width: 100%;
}

/* Muted channels list */
.muted-channels {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.muted-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.muted-channel-row__name {
  flex: 1;
}

.muted-channel-row__action {
  font-size: 0.78rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.muted-channel-row__action:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   FULL NOTIFICATIONS PAGE
══════════════════════════════════════════════════════ */

.notifications-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4);
}

.notifications-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.notifications-page__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.notifications-page__actions {
  display: flex;
  gap: 8px;
}

.notif-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.notif-filter-tab {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.notif-filter-tab:hover {
  color: var(--color-text);
}

.notif-filter-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.notif-full-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.notif-full-item:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-soft);
}

.notif-full-item.unread {
  border-left: 3px solid var(--color-info);
}

.notif-full-item.read {
  opacity: 0.7;
}

.notif-full-item__content {
  flex: 1;
  min-width: 0;
}

.notif-full-item__title {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.notif-full-item.unread .notif-full-item__title {
  font-weight: 600;
}

.notif-full-item__body {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.notif-full-item__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.notif-full-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

.notif-action-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.notif-action-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.notif-full-empty {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  color: var(--color-text-muted);
}

.notif-full-empty__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

/* ══════════════════════════════════════════════════════
   NOTIFICATIONS + FEED — RESPONSIVE
══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Dropdown becomes full-width sheet */
  .notification-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 2000;
  }

  .notif-dropdown-header {
    padding: 16px;
    font-size: 1rem;
  }

  /* Feed cards */
  .feed-card {
    padding: var(--space-2);
    border-radius: 8px;
  }

  .feed-card__menu-btn {
    opacity: 1;
  }

  /* Filter pills scroll hint */
  .feed-filters {
    padding-right: var(--space-4);
  }

  /* Settings page */
  .notif-settings {
    padding: var(--space-3);
  }

  .notif-category-row {
    flex-wrap: wrap;
  }

  .quiet-hours {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Full notifications page */
  .notifications-page {
    padding: var(--space-2);
  }

  .notifications-page__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .notif-full-item {
    flex-direction: column;
    gap: 8px;
  }

  .notif-full-item__actions {
    align-self: flex-start;
  }

  /* Catch-up banner */
  .catchup-banner {
    top: 48px;
    padding: 8px var(--space-3);
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════════════════════
   UX IMPROVEMENTS — Phase 7 (2026-03-17)
   Micro-interactions, animations, card hovers, toasts,
   scroll reveals, form feedback, empty state polish
══════════════════════════════════════════════════════ */

/* ── 1. SCROLL-TRIGGERED REVEAL ANIMATIONS ── */
/* Elements with .reveal-on-scroll fade+slide in when visible */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children: each .reveal-child delays by index */
.reveal-on-scroll.revealed .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll.revealed .reveal-child:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll.revealed .reveal-child:nth-child(3) { transition-delay: 0.15s; }
.reveal-on-scroll.revealed .reveal-child:nth-child(4) { transition-delay: 0.2s; }
.reveal-on-scroll.revealed .reveal-child:nth-child(5) { transition-delay: 0.25s; }
.reveal-on-scroll.revealed .reveal-child:nth-child(6) { transition-delay: 0.3s; }

/* ── 2. CARD HOVER EFFECTS ── */
/* Lift-on-hover for cards: forum posts, company cards, proposals */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ── 3. TOAST NOTIFICATION SYSTEM ── */
/* Global toast container — fixed bottom-center */
.toast-container {
  position: fixed;
  bottom: 80px; /* above mobile tabs */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 2rem);
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: #1e293b;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toast-in 0.35s ease forwards;
  cursor: pointer;
}
.toast.toast-success { background: #047857; }
.toast.toast-error   { background: #b91c1c; }
.toast.toast-warning { background: #b45309; }
.toast.toast-info    { background: #1d4ed8; }
.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}
.toast__icon { font-size: 1.2rem; flex-shrink: 0; }
.toast__close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 2px;
}
.toast__close:hover { color: #fff; }

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(20px); opacity: 0; }
}

/* ── 4. BUTTON INTERACTION POLISH ── */
/* Active press effect on all buttons */
.btn:active {
  transform: scale(0.97);
}
/* Smooth focus ring for keyboard navigation */
.btn:focus-visible {
  outline: 3px solid var(--color-primary-light, #14b8a6);
  outline-offset: 2px;
}

/* ── 5. FORM INPUT FOCUS ANIMATIONS ── */
/* Glow effect on input focus */
.input:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--color-primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── 6. INLINE FORM VALIDATION STYLES ── */
/* Visual feedback for valid/invalid fields */
.field-valid {
  border-color: var(--color-success, #0c8e64) !important;
  box-shadow: 0 0 0 3px rgba(12, 142, 100, 0.1) !important;
}
.field-invalid {
  border-color: var(--color-error, #dc2626) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-hint {
  font-size: 0.8rem;
  margin-top: 4px;
  transition: color 0.2s;
}
.field-hint.hint-error { color: var(--color-error); }
.field-hint.hint-success { color: var(--color-success); }

/* ── 7. PASSWORD STRENGTH METER ── */
/* Dynamic color-coded strength bar */
.pw-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}
.pw-strength-fill[data-level="0"] { width: 0; background: #dc2626; }
.pw-strength-fill[data-level="1"] { width: 25%; background: #dc2626; }
.pw-strength-fill[data-level="2"] { width: 50%; background: #d97706; }
.pw-strength-fill[data-level="3"] { width: 75%; background: #2563eb; }
.pw-strength-fill[data-level="4"] { width: 100%; background: #16a34a; }
.pw-strength-text {
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
  transition: color 0.2s;
}

/* ── 8. LOADING SPINNER ── */
/* Reusable loading spinner for buttons and sections */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--color-primary);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Button loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn.loading .btn-text { visibility: hidden; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── 9. EMPTY STATE IMPROVEMENTS ── */
/* Consistent empty state styling across all modules */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: empty-float 3s ease-in-out infinite;
}
.empty-state__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.empty-state__desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
@keyframes empty-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── 10. LINK HOVER UNDERLINE ANIMATION ── */
/* Subtle animated underline on nav links */
.nav-link-animated {
  position: relative;
  text-decoration: none;
}
.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}
.nav-link-animated:hover::after {
  width: 100%;
}

/* ── 11. ACCORDION SMOOTH OPEN/CLOSE ── */
/* Smooth height animation for FAQ and collapsible sections */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}
.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0.75rem 1.25rem 1rem;
}
.accordion-arrow {
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

/* ── 12. SKELETON LOADING PULSE ── */
/* Improved skeleton shimmer effect */
.skeleton-pulse {
  background: linear-gradient(90deg,
    var(--color-surface-soft) 25%,
    var(--color-border) 37%,
    var(--color-surface-soft) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ── 13. PROGRESS BAR ANIMATION ── */
/* Animated fill for quorum and other progress bars */
.progress-animated .progress-fill {
  animation: progress-grow 1s ease forwards;
}
@keyframes progress-grow {
  from { width: 0; }
}

/* ── 14. TOOLTIP ── */
/* Lightweight pure-CSS tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1e293b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ── 15. COPY-TO-CLIPBOARD FEEDBACK ── */
.copy-btn.copied {
  color: var(--color-success) !important;
}
.copy-btn.copied::after {
  content: '✓ Скопировано';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  animation: copy-fade 1.5s ease forwards;
}
@keyframes copy-fade {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* ── 16. MOBILE TOUCH RIPPLE ── */
@media (hover: none) {
  .btn, .chip, .oauth-btn {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════════
   UX IMPROVEMENTS — Phase 7b (2026-03-17)
   CountUp animations, quorum celebration, timeline
══════════════════════════════════════════════════════ */

/* ── Animated number counter ── */
[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* ── Quorum bar celebration animation ── */
.qb-fill {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.qb-threshold--passed::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid #16a34a;
  border-radius: 50%;
  animation: pulse-ring 1s ease-out 3;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.qb-fill--celebrate {
  animation: glow-bar 1.5s ease-in-out 2;
}
@keyframes glow-bar {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 16px rgba(22, 163, 106, 0.5); }
}

/* ── How It Works timeline connector ── */
.hiw-timeline {
  position: relative;
}
.hiw-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: var(--color-border, #e5e7eb);
  z-index: 0;
}
.hiw-timeline-fill {
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  background: var(--color-primary, #0f766e);
  height: 0;
  transition: height 0.5s ease;
  z-index: 1;
}

/* ── For Tenants benefit cards — accent borders + hover ── */
.benefit-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.benefit-card--emergency { border-top: 4px solid #ef4444; }
.benefit-card--tickets   { border-top: 4px solid #3b82f6; }
.benefit-card--forum     { border-top: 4px solid #22c55e; }
.benefit-icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ── Social proof stats bar on login ── */
.auth-stats {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 1rem;
}
.auth-stats span { display: flex; align-items: center; gap: 0.4rem; }
.auth-stats-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success, #16a34a);
}

/* ── Landing page mobile CTA simplification ── */
@media (max-width: 768px) {
  .hero-cta-secondary { display: none !important; }
  .hero-proof-links { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .hero-proof-links.open { max-height: 500px; }
}

/* ── Invite nudge bar ── */
.invite-nudge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.invite-nudge .btn { white-space: nowrap; }

/* ── Password confirmation match indicator ── */
.pw-match-feedback {
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
  transition: color 0.2s;
}
.pw-match-feedback.match   { color: var(--color-success, #16a34a); }
.pw-match-feedback.nomatch { color: var(--color-error, #dc2626); }

/* ── Autofocus glow ── */
input:autofill, input:-webkit-autofill {
  box-shadow: 0 0 0 30px var(--color-surface, #fff) inset !important;
  -webkit-text-fill-color: var(--color-text) !important;
}

[data-theme="dark"] input:autofill,
[data-theme="dark"] input:-webkit-autofill {
  box-shadow: 0 0 0 30px var(--color-surface, #1e293b) inset !important;
  -webkit-text-fill-color: var(--color-text, #f8fafc) !important;
}

/* ══════════════════════════════════════════════════════
   BREADCRUMBS — Schema.org structured navigation
══════════════════════════════════════════════════════ */
.breadcrumbs { padding: 0.75rem 1rem; font-size: 0.82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-text-muted); }
.breadcrumb-sep { color: var(--color-text-muted); margin: 0 0.15rem; }
