/* ═══════════════════════════════════════════════════════════
   COLLEKT — PREMIUM GLASS & VELVET MATTE OBSIDIAN SYSTEM (glass.css)
   Loaded last in every page.
   Light Mode: Soft Frosted Pearl
   Dark Mode:  True Velvet Matte Obsidian (Zero Specular Glare)
   ═══════════════════════════════════════════════════════════ */

/* 0. BODY CANVAS & SMOOTH THEME TRANSITIONS */
html, body {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(135deg, #e8f4f2 0%, #f1f9f7 40%, #ecf6f4 75%, #e5f2ef 100%) !important;
}
html.dark body {
  background: #080d0c !important;
  background-image: none !important;
}

/* 0.1 SLEEK SCROLLBARS */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
html.dark ::-webkit-scrollbar-track {
  background: #080d0c;
}
::-webkit-scrollbar-thumb {
  background: rgba(19, 117, 111, 0.28);
  border-radius: 99px;
  border: 1px solid transparent;
  background-clip: content-box;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 117, 111, 0.55);
}
html.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}
html.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 212, 191, 0.35);
}

/* 1. LANDING NAV */
.nav-bar {
  background: rgba(8, 22, 20, 0.72) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24) !important;
}
.nav-bar.solid {
  background: rgba(8, 22, 20, 0.92) !important;
}

html.dark .nav-bar {
  background: rgba(11, 17, 16, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.50) !important;
}
html.dark .nav-bar.solid {
  background: rgba(11, 17, 16, 0.98) !important;
}

/* 2. APP TOPBAR */
.app-topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 2px 16px rgba(14, 59, 53, 0.05) !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
html.dark .app-topbar {
  background: rgba(11, 17, 16, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35) !important;
}

/* 3. SIDEBAR */
.app-sidebar {
  background: #0a1f1c !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.20) !important;
}
html.dark .app-sidebar {
  background: #0b1211 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: none !important;
}
.sidebar-nav-item.active {
  background: rgba(212, 146, 11, 0.16) !important;
  box-shadow: inset 3px 0 0 var(--amber) !important;
}
.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* 4. MODAL OVERLAY & BACKDROP */
.modal-overlay,
.settings-backdrop,
.upload-backdrop,
.modal-backdrop,
.popup-backdrop,
.popup-overlay,
.dialog-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(6, 16, 15, 0.50) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  justify-content: center !important;
  align-items: center !important;
  overflow-y: auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal-overlay.open,
.settings-backdrop.open,
.upload-backdrop.open,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay[style*="display: grid"],
.modal-overlay[style*="display:grid"],
.modal-overlay[style*="display: block"],
.modal-overlay[style*="display:block"],
.settings-backdrop[style*="display: flex"],
.settings-backdrop[style*="display:flex"],
.upload-backdrop[style*="display: flex"],
.upload-backdrop[style*="display:flex"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

html.dark .modal-overlay,
html.dark .settings-backdrop,
html.dark .upload-backdrop,
html.dark .modal-backdrop,
html.dark .popup-backdrop,
html.dark .popup-overlay,
html.dark .dialog-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 5. MODAL CARDS & PANELS */
.modal-card,
.modal-box,
.modal-dialog,
.modal-content,
.settings-panel,
.upload-modal-card,
.upload-panel,
.settings-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
  box-shadow: 0 24px 64px rgba(14, 59, 53, 0.16), 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  margin: auto !important;
  position: relative !important;
  max-width: min(540px, calc(100vw - 32px)) !important;
  box-sizing: border-box !important;
  float: none !important;
}
html.dark .modal-card,
html.dark .modal-box,
html.dark .modal-dialog,
html.dark .modal-content,
html.dark .settings-panel,
html.dark .upload-modal-card,
html.dark .upload-panel,
html.dark .settings-card {
  background: #101817 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65) !important;
  margin: auto !important;
}

/* 6. DROPDOWN PANELS */
.notif-panel, .profile-menu {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
  box-shadow: 0 18px 48px rgba(14, 59, 53, 0.16) !important;
}
html.dark .notif-panel, html.dark .profile-menu {
  background: #101817 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.60) !important;
}
.notif-item:hover, .profile-menu-item:hover {
  background: rgba(19, 117, 111, 0.06) !important;
}
html.dark .notif-item:hover, html.dark .profile-menu-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* 7. STAT CARDS */
.stat-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 4px 20px rgba(14, 59, 53, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
  border-radius: var(--r-lg) !important;
}
.stat-card:hover {
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(14, 59, 53, 0.10) !important;
  border-color: rgba(19, 117, 111, 0.24) !important;
  transform: translateY(-2px) !important;
}
html.dark .stat-card {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}
html.dark .stat-card:hover {
  background: #121b19 !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40) !important;
  transform: translateY(-2px) !important;
}

/* 8. CONTENT & UNIVERSAL CARDS */
.content-card, .card {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 4px 22px rgba(14, 59, 53, 0.05) !important;
  border-radius: var(--r-lg) !important;
}
html.dark .content-card, html.dark .card {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30) !important;
}

/* 9. WALLET CARDS */
.shuttlers-balance-card, .shuttlers-bank-card, .wallet-history-section {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 6px 26px rgba(14, 59, 53, 0.06) !important;
}
html.dark .shuttlers-balance-card,
html.dark .shuttlers-bank-card,
html.dark .wallet-history-section {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32) !important;
}
html.dark .btn-black-fund {
  background: #0f766e !important;
  color: #f8fafc !important;
  border: 1px solid rgba(45, 212, 191, 0.20) !important;
}
html.dark .btn-black-fund:hover {
  background: #115e59 !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}

/* 10. GIG, TENDER, TALENT, PROPOSAL & DASHBOARD CARDS */
.gig-card {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 4px 18px rgba(14, 59, 53, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}
.gig-card:hover {
  background: #ffffff !important;
  border-color: rgba(19, 117, 111, 0.26) !important;
  box-shadow: 0 12px 32px rgba(14, 59, 53, 0.11) !important;
  transform: translateY(-3px) !important;
}
html.dark .gig-card,
html.dark .tender-card,
html.dark .talent-card,
html.dark .talent-card-v2,
html.dark .rec-card,
html.dark .profile-strength-card,
html.dark .proposal-card,
html.dark .prop-card,
html.dark .prop-stat-card,
html.dark .profile-card,
html.dark .content-section,
html.dark .v-card,
html.dark .admin-metric-card,
html.dark .job-manage-card,
html.dark .form-section-card,
html.dark .preview-card,
html.dark .plan-card,
html.dark .tx-card-mobile,
html.dark .escrow-milestone-card {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}
html.dark .gig-card:hover,
html.dark .tender-card:hover,
html.dark .talent-card:hover,
html.dark .talent-card-v2:hover,
html.dark .rec-card:hover,
html.dark .prop-card:hover,
html.dark .v-card:hover,
html.dark .job-manage-card:hover,
html.dark .escrow-milestone-card:hover {
  background: #121b19 !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40) !important;
  transform: translateY(-2px) !important;
}

/* 11. PROJECT ROWS & CERTIFICATE ROWS */
.project-row {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(19, 117, 111, 0.11) !important;
  box-shadow: 0 2px 12px rgba(14, 59, 53, 0.04) !important;
  transition: all 0.2s ease !important;
}
.project-row:hover {
  background: #ffffff !important;
  border-color: rgba(19, 117, 111, 0.24) !important;
  box-shadow: 0 6px 20px rgba(14, 59, 53, 0.09) !important;
}
html.dark .project-row,
html.dark .cert-card-row {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: none !important;
}
html.dark .project-row:hover,
html.dark .cert-card-row:hover {
  background: #121b19 !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30) !important;
}

/* 12. LANDING ELEMENTS */
.hero-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(19, 117, 111, 0.16) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.26) !important;
}
.vcard {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 4px 18px rgba(14, 59, 53, 0.05) !important;
}
.vcard:hover {
  background: #ffffff !important;
  border-color: rgba(19, 117, 111, 0.24) !important;
  box-shadow: 0 12px 32px rgba(14, 59, 53, 0.11) !important;
}
.form-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
  box-shadow: 0 16px 48px rgba(14, 59, 53, 0.10) !important;
}
.side-card {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  box-shadow: 0 12px 36px rgba(14, 59, 53, 0.09) !important;
}
details {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(19, 117, 111, 0.11) !important;
  box-shadow: 0 2px 14px rgba(14, 59, 53, 0.04) !important;
}
.coming-card, .ben {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(19, 117, 111, 0.11) !important;
}
.launch-pill {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.persona-result {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.drawer {
  background: rgba(6, 14, 13, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Dark Mode Overrides for Landing Elements */
html.dark .hero-panel,
html.dark .vcard,
html.dark .form-card,
html.dark .side-card,
html.dark details,
html.dark .coming-card,
html.dark .ben,
html.dark .hiw-card,
html.dark .feat-card,
html.dark .testi-card {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32) !important;
}
html.dark .vcard:hover,
html.dark .hiw-card:hover,
html.dark .feat-card:hover,
html.dark .testi-card:hover {
  background: #121b19 !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42) !important;
}
html.dark .hp-head,
html.dark .hp-stat,
html.dark .hp-row,
html.dark .bens-wrap,
html.dark .ioc-strip,
html.dark .founder-band,
html.dark .ticker-wrap,
html.dark footer {
  background: #0b1110 !important;
  border-color: rgba(255, 255, 255, 0.055) !important;
}
html.dark .form-band,
html.dark .how-band,
html.dark .coming-band {
  background: #080d0c !important;
  border-color: rgba(255, 255, 255, 0.055) !important;
}
html.dark summary:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* 13. INPUTS, SELECTS & SEARCH (Recessed Matte Wells in Dark Mode) */
.form-input, .topbar-search, .whistory-filter-input, .mkt-search-input, .mkt-search-select, .msg-search {
  background: #ffffff !important;
  border: 1.5px solid rgba(19, 117, 111, 0.18) !important;
  color: #111918 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.form-input:focus, .topbar-search:focus, .whistory-filter-input:focus, .mkt-search-input:focus, .mkt-search-select:focus, .msg-search:focus {
  background: #ffffff !important;
  border-color: #13756F !important;
  box-shadow: 0 0 0 3px rgba(19, 117, 111, 0.12) !important;
}
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.dark select,
html.dark textarea,
html.dark .form-input,
html.dark .form-select,
html.dark .topbar-search,
html.dark .whistory-filter-input,
html.dark .mkt-search-input,
html.dark .mkt-search-select,
html.dark .msg-search {
  background-color: #09100f !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #E2E8F0 !important;
  box-shadow: none !important;
}
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html.dark select:focus,
html.dark textarea:focus,
html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .topbar-search:focus,
html.dark .whistory-filter-input:focus,
html.dark .mkt-search-input:focus,
html.dark .mkt-search-select:focus,
html.dark .msg-search:focus {
  background-color: #0c1413 !important;
  border-color: rgba(20, 184, 166, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.10) !important;
}

/* 14. BUTTONS & THEME TOGGLE */
.btn-ghost {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow: none !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}
.btn-outline {
  background: #ffffff !important;
  border: 1.5px solid rgba(19, 117, 111, 0.18) !important;
  color: var(--forest) !important;
  box-shadow: none !important;
}
.btn-outline:hover {
  background: rgba(19, 117, 111, 0.06) !important;
  border-color: var(--teal) !important;
}
html.dark .btn-outline {
  background: #121b19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #E2E8F0 !important;
  box-shadow: none !important;
}
html.dark .btn-outline:hover {
  background: #172320 !important;
  border-color: rgba(45, 212, 191, 0.28) !important;
  color: #2DD4BF !important;
}

.notif-btn, .theme-btn, .sidebar-toggle-btn, .topbar-icon-btn, #sidebarToggle {
  background: #f4f8f7 !important;
  border: 1px solid rgba(19, 117, 111, 0.16) !important;
  color: #0E3B35 !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}
.notif-btn:hover, .theme-btn:hover, .sidebar-toggle-btn:hover, .topbar-icon-btn:hover, #sidebarToggle:hover {
  background: #e6f2f0 !important;
  border-color: var(--teal) !important;
  transform: translateY(-1px) !important;
}
html.dark .notif-btn, html.dark .theme-btn, html.dark .sidebar-toggle-btn, html.dark .topbar-icon-btn, html.dark #sidebarToggle {
  background: #121b19 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #CBD5E1 !important;
  box-shadow: none !important;
}
html.dark .notif-btn:hover, html.dark .theme-btn:hover, html.dark .sidebar-toggle-btn:hover, html.dark .topbar-icon-btn:hover, html.dark #sidebarToggle:hover {
  background: #172320 !important;
  border-color: rgba(45, 212, 191, 0.25) !important;
  color: #2DD4BF !important;
}

/* 15. AI CHAT WINDOW */
.collekt-ai-chat-window {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.16) !important;
  box-shadow: 0 24px 64px rgba(14, 59, 53, 0.22) !important;
}
.ai-msg.bot {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
}
.ai-chip-prompt {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.16) !important;
}
html.dark .collekt-ai-chat-window {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65) !important;
}
html.dark .ai-chat-body {
  background: #09100f !important;
}
html.dark .ai-msg.bot {
  background: #131d1b !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #E2E8F0 !important;
}
html.dark .ai-chip-prompt {
  background: #131d1b !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #2DD4BF !important;
}

/* 16. MOBILE BOTTOM NAV */
.mobile-bottom-nav {
  background: rgba(9, 18, 16, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.30) !important;
}

/* 17. TOAST */
.toast {
  background: #0d1f1c !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

/* 18. SIDEBAR BACKDROP */
.sidebar-backdrop {
  background: rgba(4, 10, 9, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* 19. ADMIN & AUTH CARDS */
.audit-item {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.12) !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}
.audit-item:hover {
  border-color: rgba(19, 117, 111, 0.24) !important;
  box-shadow: 0 4px 14px rgba(14, 59, 53, 0.07) !important;
}
html.dark .audit-item {
  background: #0e1514 !important;
  border-color: rgba(255, 255, 255, 0.055) !important;
}
.login-card, .auth-card {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
  box-shadow: 0 20px 56px rgba(14, 59, 53, 0.14) !important;
}
html.dark .login-card,
html.dark .auth-card,
html.dark .auth-right,
html.dark .reg-right {
  background: #0b1110 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

/* 20. TABLES */
.table-head th {
  background: #f4f8f7 !important;
}
html.dark .table-head th {
  background: #0b1110 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.tx-row:hover td, .data-table tbody tr:hover td {
  background: rgba(19, 117, 111, 0.04) !important;
}
html.dark .tx-row:hover td, html.dark .data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025) !important;
}
html.dark .data-table td, html.dark .tx-row td {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* 21. PILLS, BADGES, PROFILE TRIGGER */
.pill-btn {
  background: #ffffff !important;
  border: 1px solid rgba(19, 117, 111, 0.16) !important;
  box-shadow: none !important;
}
.pill-btn:hover {
  background: #f0f7f6 !important;
  border-color: rgba(19, 117, 111, 0.30) !important;
}
.pill-btn.active {
  background: var(--forest) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(14, 59, 53, 0.20) !important;
}
html.dark .pill-btn,
html.dark .cat-chip,
html.dark .prop-pill,
html.dark .filter-pill-btn {
  background: #0e1514 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.065) !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
}
html.dark .pill-btn:hover,
html.dark .cat-chip:hover,
html.dark .prop-pill:hover,
html.dark .filter-pill-btn:hover {
  background: #141e1c !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
  color: #E2E8F0 !important;
}
html.dark .pill-btn.active,
html.dark .cat-chip.active,
html.dark .prop-pill.active,
html.dark .filter-pill-btn.active {
  background: #115e59 !important;
  border-color: rgba(45, 212, 191, 0.30) !important;
  color: #F1F5F9 !important;
  box-shadow: none !important;
}

.profile-trigger {
  background: #f4f8f7 !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
  box-shadow: none !important;
}
.profile-trigger:hover {
  background: #e8f2f0 !important;
}
html.dark .profile-trigger {
  background: #121b19 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}
html.dark .profile-trigger:hover {
  background: #172320 !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
}

.sidebar-badge {
  background: var(--amber) !important;
  box-shadow: none !important;
}
.sbal-badge {
  background: #f4f8f7 !important;
  border: 1px solid rgba(19, 117, 111, 0.14) !important;
}
html.dark .sbal-badge {
  background: #131d1b !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #CBD5E1 !important;
}

/* ═══════════════════════════════════════════════════════════
   22. VELVET MATTE DARK MODE TYPOGRAPHY & TOKENS
   Zero harsh pure-white halation; crisp, calm contrast.
   ═══════════════════════════════════════════════════════════ */

html.dark {
  --ink: #EDF2F1 !important;
  --forest: #0E3B35 !important;
  --forest-mid: #134e46 !important;
  --teal: #14B8A6 !important;
  --teal-mid: #2DD4BF !important;
  --teal-lt: rgba(20, 184, 166, 0.10) !important;
  --amber: #F59E0B !important;
  --amber-lt: rgba(245, 158, 11, 0.12) !important;
  --slate: #CBD5E1 !important;
  --muted: #849694 !important;
  --line: rgba(255, 255, 255, 0.055) !important;
  --paper: #080d0c !important;
  --white: #0e1514 !important;
}

/* ── Base Text & Headings (Warm Alabaster, Not Glaring #FFF) ── */
html.dark body {
  color: #DCE5E3 !important;
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark strong,
html.dark b,
html.dark th,
html.dark .section-heading,
html.dark .modal-title,
html.dark .card-title,
html.dark .form-title,
html.dark .sbal-amount,
html.dark .stat-value,
html.dark .gig-title,
html.dark .pm-name,
html.dark .am-val,
html.dark .sbank-val,
html.dark .founder-name,
html.dark .how-band h4,
html.dark .coming-card h4,
html.dark .tender-title,
html.dark .rec-title,
html.dark .prop-card-title {
  color: #EDF2F1 !important;
}

/* ── Paragraphs, Spans & Body Copy ── */
html.dark p,
html.dark li,
html.dark dd,
html.dark .card-body,
html.dark .tx-row td,
html.dark .data-table td,
html.dark .bubble.received,
html.dark .how-band p,
html.dark .coming-card p,
html.dark .vcard p,
html.dark details p {
  color: #CBD5E1 !important;
}

/* ── Labels & Checkboxes ── */
html.dark label,
html.dark .form-label,
html.dark .interests-label,
html.dark .prog-label,
html.dark .chk span,
html.dark label span,
html.dark .checks span {
  color: #E2E8F0 !important;
}
html.dark .chk span {
  background: #09100f !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}
html.dark .chk input:checked + span {
  background: rgba(20, 184, 166, 0.12) !important;
  border-color: rgba(45, 212, 191, 0.30) !important;
  color: #2DD4BF !important;
}

/* ── Muted, Secondary, & Metadata Text ── */
html.dark .text-muted,
html.dark .section-subheading,
html.dark .stat-label,
html.dark .gig-price,
html.dark .form-note,
html.dark .wcard-sub,
html.dark .sbal-title-wrap,
html.dark .sbank-lbl,
html.dark .notif-item-time,
html.dark .profile-menu-header .pm-email,
html.dark .empty-state,
html.dark .u-role,
html.dark .sidebar-section-label,
html.dark small,
html.dark .am-label,
html.dark .table-head th,
html.dark .ft-copy,
html.dark .profile-caret,
html.dark .stat-lbl,
html.dark .sh p {
  color: #849694 !important;
}

html.dark input::placeholder,
html.dark select::placeholder,
html.dark textarea::placeholder,
html.dark .form-input::placeholder,
html.dark .topbar-search::placeholder {
  color: #566866 !important;
}

html.dark option,
html.dark optgroup {
  background-color: #0e1514 !important;
  color: #E2E8F0 !important;
}

/* ── Tabs & Nav Buttons ── */
html.dark .wallet-tab-btn {
  color: #849694 !important;
}
html.dark .wallet-tab-btn:hover,
html.dark .wallet-tab-btn.active {
  color: #EDF2F1 !important;
}

html.dark .nav-links a,
html.dark .nav-links button,
html.dark .nav-contact-btn {
  color: rgba(237, 242, 241, 0.85) !important;
}
html.dark .nav-links a:hover,
html.dark .nav-links button:hover,
html.dark .nav-contact-btn:hover {
  color: #EDF2F1 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ── Modals & Popups ── */
html.dark .modal-card,
html.dark .modal-card h2,
html.dark .modal-card h3,
html.dark .modal-card h4,
html.dark .modal-card .modal-title {
  color: #EDF2F1 !important;
}
html.dark .modal-card p,
html.dark .modal-card label {
  color: #CBD5E1 !important;
}

/* ── Admin Dashboard Modules & Data ── */
html.dark .admin-header-nav h1,
html.dark .admin-pane h2,
html.dark .admin-pane h3,
html.dark .admin-pane h4,
html.dark .admin-pane strong,
html.dark .admin-pane label,
html.dark .audit-item,
html.dark .audit-desc,
html.dark .audit-user,
html.dark .admin-metric-value,
html.dark .admin-stat-num {
  color: #EDF2F1 !important;
}
html.dark .admin-pane p,
html.dark .admin-pane span:not(.badge-active):not(.badge-pending):not(.badge-suspended):not(.badge-verified):not(.status-badge) {
  color: #CBD5E1 !important;
}
html.dark .admin-nav-item {
  color: #849694 !important;
}
html.dark .admin-nav-item:hover,
html.dark .admin-nav-item.active {
  color: #EDF2F1 !important;
}

/* ── Dropdown Menus & Panels ── */
html.dark .notif-head h4,
html.dark .notif-item-text,
html.dark .notif-item-text strong,
html.dark .profile-menu-item,
html.dark .profile-menu-header .pm-name {
  color: #EDF2F1 !important;
}

/* ── Hardcoded Color Fallback Overrides (Attribute Selectors) ── */
html.dark [style*="color:var(--ink)"],
html.dark [style*="color: var(--ink)"],
html.dark [style*="color:#111918"],
html.dark [style*="color: #111918"],
html.dark [style*="color:#101515"],
html.dark [style*="color: #101515"],
html.dark [style*="color:#0E3B35"],
html.dark [style*="color: #0E3B35"],
html.dark [style*="color:#000"],
html.dark [style*="color: #000"],
html.dark [style*="color:#111"],
html.dark [style*="color:#222"],
html.dark [style*="color:#333"] {
  color: #EDF2F1 !important;
}

html.dark [style*="color:var(--slate)"],
html.dark [style*="color: var(--slate)"],
html.dark [style*="color:#3E5250"],
html.dark [style*="color: #3E5250"],
html.dark [style*="color:#444"],
html.dark [style*="color:#555"] {
  color: #CBD5E1 !important;
}

html.dark [style*="color:var(--muted)"],
html.dark [style*="color: var(--muted)"],
html.dark [style*="color:#6B8280"],
html.dark [style*="color: #6B8280"],
html.dark [style*="color:#666"],
html.dark [style*="color:#777"],
html.dark [style*="color:#888"] {
  color: #849694 !important;
}

/* ── Inline Background Overrides in Dark Mode ── */
html.dark [style*="background:white"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background: white"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background:#fff"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background: #fff"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background:#ffffff"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background: #ffffff"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background:var(--white)"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background: var(--white)"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background:var(--paper)"]:not(.btn):not(.badge):not(.status-badge),
html.dark [style*="background: var(--paper)"]:not(.btn):not(.badge):not(.status-badge) {
  background: #0e1514 !important;
  color: #CBD5E1 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ═══════════════════════════════════════════════════════════
   23. SWITCH TOGGLES & CLOSE BUTTONS (MATTE REFINED)
   ═══════════════════════════════════════════════════════════ */

.sett-toggle {
  position: relative; width: 51px; height: 31px; flex-shrink: 0;
}
.sett-slider {
  position: absolute; inset: 0;
  background: rgba(120, 120, 128, 0.22) !important;
  border-radius: 99px !important;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: background 0.25s ease !important;
}
.sett-slider::before {
  content: '';
  position: absolute;
  width: 27px; height: 27px; left: 1px; top: 1px;
  background: #FFFFFF !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20) !important;
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1) !important;
}
.sett-toggle input:checked + .sett-slider {
  background: #13756F !important;
  border-color: rgba(19, 117, 111, 0.4) !important;
  box-shadow: none !important;
}
.sett-toggle input:checked + .sett-slider::before {
  transform: translateX(20px) !important;
}
html.dark .sett-slider {
  background: #182422 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark .sett-toggle input:checked + .sett-slider {
  background: #0f766e !important;
  border-color: rgba(45, 212, 191, 0.30) !important;
  box-shadow: none !important;
}

.settings-close,
.modal-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  color: #111918 !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.settings-close:hover,
.modal-close:hover {
  background: rgba(0, 0, 0, 0.10) !important;
}
html.dark .settings-close,
html.dark .modal-close {
  background: #162220 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #CBD5E1 !important;
}
html.dark .settings-close:hover,
html.dark .modal-close:hover {
  background: #1d2c29 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #EDF2F1 !important;
}

/* ── Mobile-First Responsive Overrides (Glass Layer) ── */
@keyframes slideUpSheet {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
  .modal-overlay,
  .settings-backdrop,
  .upload-backdrop,
  .modal-backdrop,
  .popup-backdrop,
  .popup-overlay,
  .dialog-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow-x: hidden !important;
  }

  .modal-card,
  .modal-box,
  .modal-dialog,
  .modal-content,
  .settings-panel,
  .upload-modal-card,
  .upload-panel,
  .settings-card {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    border-radius: 26px 26px 0 0 !important;
    margin: 0 !important;
    padding: 20px 18px calc(26px + env(safe-area-inset-bottom, 16px)) 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45) !important;
    animation: slideUpSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-bottom: none !important;
  }

  .collekt-ai-chat-window {
    width: calc(100vw - 20px) !important;
    max-width: 420px !important;
    height: 72vh !important;
    max-height: calc(100vh - 80px) !important;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    border-radius: 20px !important;
  }

  .collekt-ai-fab {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }

  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .liquid-glass-nav {
    width: calc(100vw - 16px) !important;
    height: 58px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 2px !important;
  }
  .liquid-glass-lens {
    width: 64px !important;
    height: 64px !important;
    top: -3px !important;
  }
  .liquid-nav-item {
    font-size: 9px !important;
    max-width: 58px !important;
    gap: 2px !important;
  }
  .liquid-nav-icon-wrap {
    width: 24px !important;
    height: 24px !important;
  }
  .liquid-nav-svg {
    width: 18px !important;
    height: 18px !important;
  }
  .liquid-nav-label {
    font-size: 8.5px !important;
  }
}

/* ═════════════════════════════════════════════════════════
   LIQUID GLASS NAVIGATION & OPTICAL LENS MAGNIFIER
   Dual-mode: Frosted Pearl (Light) & Obsidian Emerald (Dark)
   ═════════════════════════════════════════════════════════ */

/* Mobile Conversation Active: Automatically hide bottom dock so input bar & keyboard are never blocked */
@media (max-width: 768px) {
  body.in-active-chat .liquid-glass-nav {
    display: none !important;
  }
}

/* The Floating Pill Bottom Navigation Bar (Mobile / Responsive) */
.liquid-glass-nav {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100vw - 20px));
  height: 58px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(19, 117, 111, 0.16);
  box-shadow:
    0 12px 32px rgba(14, 59, 53, 0.14),
    0 4px 12px rgba(14, 59, 53, 0.06);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

html.dark .liquid-glass-nav {
  background: rgba(13, 20, 19, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.60),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Navigation items track */
.liquid-nav-track {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Individual Navigation Item */
.liquid-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #3e5250;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100%;
  flex: 1;
  max-width: 76px;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

html.dark .liquid-nav-item {
  color: #849694;
}

.liquid-nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.liquid-nav-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.25s ease;
}

.liquid-nav-label {
  font-size: 9.5px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  line-height: 1.1;
  white-space: nowrap;
}

/* ═════════════════════════════════════════════════════════
   THE LIQUID GLASS OPTICAL LENS / ACTIVE INDICATOR
   ═════════════════════════════════════════════════════════ */
.liquid-glass-lens {
  position: absolute;
  top: 4px;
  left: 0;
  width: 60px;
  height: 48px;
  border-radius: 24px;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
  background: radial-gradient(
    circle at 40% 28%,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(232, 246, 244, 0.88) 45%,
    rgba(19, 117, 111, 0.16) 100%
  );
  border: 1px solid rgba(19, 117, 111, 0.22);
  box-shadow: 0 4px 14px rgba(14, 59, 53, 0.12);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.28s ease,
              height 0.28s ease,
              border-radius 0.28s ease;
  will-change: transform;
}

html.dark .liquid-glass-lens {
  background: #132a26;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.lens-specular-crescent,
.lens-caustic-ring {
  display: none !important;
}

/* ACTIVE ITEM INSIDE LENS */
.liquid-nav-item.active {
  color: #0E3B35;
  z-index: 6;
}

.liquid-nav-item.active .liquid-nav-icon-wrap {
  transform: scale(1.14) translateY(-1.5px);
}

.liquid-nav-item.active .liquid-nav-svg {
  stroke: #0E3B35;
}

.liquid-nav-item.active .liquid-nav-label {
  color: #0E3B35;
  font-weight: 800;
}

html.dark .liquid-nav-item.active {
  color: #EDF2F1;
}

html.dark .liquid-nav-item.active .liquid-nav-svg {
  stroke: #2DD4BF;
  filter: none;
}

html.dark .liquid-nav-item.active .liquid-nav-label {
  color: #EDF2F1;
  text-shadow: none;
}

/* ═════════════════════════════════════════════════════════
   GREEN NOTIFICATION BADGE (e.g. "27" on Chats)
   ═════════════════════════════════════════════════════════ */
.liquid-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.liquid-nav-badge.green-badge {
  background: #10b981;
  color: #ffffff;
  border: 1.5px solid #0b1614;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ═════════════════════════════════════════════════════════
   DESKTOP SIDEBAR INTEGRATION (>= 901px)
   Seamless matte integration inside the dark sidebar
   ═════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .liquid-glass-nav.docked-sidebar,
  .app-sidebar .liquid-glass-nav {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    padding: 6px;
    margin: 8px 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-track,
  .app-sidebar .liquid-glass-nav .liquid-nav-track {
    flex-direction: column;
    gap: 4px;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item,
  .app-sidebar .liquid-glass-nav .liquid-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    max-width: 100%;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68) !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item:hover,
  .app-sidebar .liquid-glass-nav .liquid-nav-item:hover {
    color: #ffffff !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-label,
  .app-sidebar .liquid-glass-nav .liquid-nav-label {
    font-size: 13px;
    font-weight: 700;
    color: inherit !important;
    text-shadow: none !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item.active,
  .app-sidebar .liquid-glass-nav .liquid-nav-item.active {
    color: #ffffff !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item.active .liquid-nav-icon-wrap,
  .app-sidebar .liquid-glass-nav .liquid-nav-item.active .liquid-nav-icon-wrap {
    transform: scale(1.06);
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item.active .liquid-nav-svg,
  .app-sidebar .liquid-glass-nav .liquid-nav-item.active .liquid-nav-svg {
    stroke: #2DD4BF !important;
    filter: none !important;
  }

  .liquid-glass-nav.docked-sidebar .liquid-nav-item.active .liquid-nav-label,
  .app-sidebar .liquid-glass-nav .liquid-nav-item.active .liquid-nav-label {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff !important;
    transform: none;
  }

  /* Desktop active indicator covers the active item cleanly */
  .liquid-glass-nav.docked-sidebar .liquid-glass-lens,
  .app-sidebar .liquid-glass-nav .liquid-glass-lens {
    width: calc(100% - 8px);
    height: 44px;
    left: 4px;
    top: 0;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.16) !important;
    border: 1px solid rgba(45, 212, 191, 0.24) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ── DESKTOP & ULTRA-WIDE ERGONOMICS (>= 901px) ──────────── */
@media (min-width: 901px) {
  .page-inner,
  .mkt-container {
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 32px 48px !important;
  }
  .app-main {
    max-width: 100%;
  }
}

/* ── GLOBAL REALTIME CALLING STYLES (WHATSAPP-GRADE LIQUID GLASS) ── */
.incoming-call-modal {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100005;
  background: rgba(11, 28, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 168, 132, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 168, 132, 0.25);
  border-radius: 20px;
  padding: 18px 22px;
  color: #fff;
  max-width: 380px;
  width: calc(100vw - 48px);
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: callSlideDown .35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .incoming-call-modal {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: 100%;
  }
}

@keyframes callSlideDown {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.call-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: callPulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.call-pulse.p2 { animation-delay: .5s; }
.call-pulse.p3 { animation-delay: 1.0s; }

@keyframes callPulseRing {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(7, 18, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px 32px;
  color: #fff;
  animation: callFadeIn .25s ease-out;
  box-sizing: border-box;
}

@keyframes callFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.call-header { text-align: center; z-index: 2; margin-top: 10px; }

.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.call-title {
  font-size: 24px;
  font-weight: 900;
  margin: 10px 0 6px;
  color: #fff;
}

.call-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.call-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  z-index: 2;
}

.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #000;
  z-index: 1;
  display: none;
}

.local-pip-video {
  position: absolute;
  bottom: 120px;
  right: 24px;
  width: 140px;
  height: 190px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--amber, #f59e0b);
  background: #000;
  z-index: 5;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  display: none;
  cursor: pointer;
  transition: transform .2s ease;
}

.local-pip-video:hover {
  transform: scale(1.04);
}

.call-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
  margin-bottom: 20px;
}

.call-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
}

.call-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.call-btn.active {
  background: #fff;
  color: #071210;
}

.call-btn.end-call {
  width: 68px;
  height: 68px;
  background: #ef4444;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
  transform: rotate(135deg);
}

.call-btn.end-call:hover {
  background: #dc2626;
  transform: rotate(135deg) scale(1.08);
}


/* ═════════════════════════════════════════════════════════════
   COLLEKT CELESTIAL LIVE WEATHER GLOW SYSTEM
   Reacts dynamically to real-time weather & diurnal solar/lunar cycles.
   - Sunny: Radiant golden sun flare & solar corona
   - Night: Ethereal silver-cyan moonlight & midnight starlight aura
   - Golden Hour: Dusk/dawn warm copper & twilight rose
   - Rain: Misty tropical teal & thunder-cloud slate
   ═════════════════════════════════════════════════════════════ */
:root {
  --celestial-glow-core: rgba(251, 191, 36, 0.42);
  --celestial-glow-mid: rgba(245, 158, 11, 0.20);
  --celestial-glow-edge: rgba(217, 119, 6, 0.08);
  --celestial-wheel-color: #f59e0b;
  --celestial-pulse-anim: solarBreathing 7s ease-in-out infinite alternate;
}

html.weather-sunny {
  --celestial-glow-core: rgba(251, 191, 36, 0.46);
  --celestial-glow-mid: rgba(245, 158, 11, 0.24);
  --celestial-glow-edge: rgba(217, 119, 6, 0.09);
  --celestial-wheel-color: #f59e0b;
  --celestial-pulse-anim: solarBreathing 7s ease-in-out infinite alternate;
}

html.weather-night {
  --celestial-glow-core: rgba(224, 242, 254, 0.48);
  --celestial-glow-mid: rgba(56, 189, 248, 0.28);
  --celestial-glow-edge: rgba(99, 102, 241, 0.14);
  --celestial-wheel-color: #38bdf8;
  --celestial-pulse-anim: lunarBreathing 9s ease-in-out infinite alternate;
}

html.weather-golden {
  --celestial-glow-core: rgba(251, 146, 60, 0.46);
  --celestial-glow-mid: rgba(244, 63, 94, 0.24);
  --celestial-glow-edge: rgba(168, 85, 247, 0.12);
  --celestial-wheel-color: #fb923c;
  --celestial-pulse-anim: solarBreathing 8s ease-in-out infinite alternate;
}

html.weather-rain {
  --celestial-glow-core: rgba(45, 212, 191, 0.42);
  --celestial-glow-mid: rgba(14, 165, 233, 0.22);
  --celestial-glow-edge: rgba(71, 85, 105, 0.12);
  --celestial-wheel-color: #2dd4bf;
  --celestial-pulse-anim: lunarBreathing 8s ease-in-out infinite alternate;
}

/* Ambient Celestial Weather Orb (Homepage & Large Screens) */
.celestial-weather-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1000px, 94vw);
  height: min(1000px, 94vw);
  max-width: 100vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    var(--celestial-glow-core) 0%,
    var(--celestial-glow-mid) 34%,
    var(--celestial-glow-edge) 58%,
    transparent 74%
  );
  filter: blur(52px);
  opacity: 0.92;
  animation: var(--celestial-pulse-anim);
  transition: opacity 1.2s ease, filter 1.2s ease, background 1.5s ease;
  will-change: transform, opacity;
}

html:not(.dark) .celestial-weather-orb {
  opacity: 0.38;
  filter: blur(64px);
}

/* Auth Left Dedicated Celestial Weather Orb (Login & Register) */
.auth-celestial-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(850px, 135%);
  height: min(850px, 135%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    var(--celestial-glow-core) 0%,
    var(--celestial-glow-mid) 36%,
    var(--celestial-glow-edge) 60%,
    transparent 76%
  );
  filter: blur(44px);
  opacity: 0.88;
  animation: var(--celestial-pulse-anim);
  transition: opacity 1.2s ease, filter 1.2s ease, background 1.5s ease;
  will-change: transform, opacity;
}

html:not(.dark) .auth-celestial-orb {
  opacity: 0.45;
}

/* Solar flare breathing animation */
@keyframes solarBreathing {
  0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.98; }
  100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.72; }
}

/* Lunar tide breathing animation */
@keyframes lunarBreathing {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.76; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.94; }
  100% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.76; }
}

/* Wheel SVG dynamic color synchronization */
.collekt-kinetic-wheel-svg,
.auth-kinetic-wheel-svg {
  color: var(--celestial-wheel-color) !important;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Live Weather Pill / Status Switcher - High Contrast & Crisp Visibility Across All Pages */
.live-weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(8, 26, 23, 0.84) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-weather-pill * {
  color: inherit;
  text-shadow: none !important;
}

.live-weather-pill .weather-pill-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-block;
}

.live-weather-pill .weather-pill-temp {
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
  text-shadow: none !important;
}

.live-weather-pill .weather-pill-desc {
  color: #f8fafc !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

.live-weather-pill:hover {
  transform: translateY(-1.5px);
  border-color: var(--celestial-wheel-color) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5) !important;
  background: rgba(12, 38, 34, 0.92) !important;
}

.live-weather-pill:active {
  transform: translateY(0);
}

/* Dedicated Auth Panel Weather Pill (login.html, register.html) - ALWAYS ultra-visible against photo carousels */
.auth-weather-pill,
.auth-left .live-weather-pill,
.reg-left .live-weather-pill {
  background: rgba(4, 18, 16, 0.88) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65) !important;
  text-shadow: none !important;
}

.auth-weather-pill .weather-pill-temp,
.auth-left .live-weather-pill .weather-pill-temp,
.reg-left .live-weather-pill .weather-pill-temp {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.auth-weather-pill .weather-pill-desc,
.auth-left .live-weather-pill .weather-pill-desc,
.reg-left .live-weather-pill .weather-pill-desc {
  color: #f8fafc !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

/* Landing page navbar: always dark glass so pill stays crisp luminous white */
.nav-bar .live-weather-pill {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px var(--celestial-glow-core) !important;
}

.nav-bar .live-weather-pill:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: var(--celestial-wheel-color) !important;
}

/* Dedicated Light Mode when inside light dashboard topbar */
html:not(.dark) .app-topbar .live-weather-pill {
  background: #ffffff !important;
  border: 1.5px solid rgba(14, 59, 53, 0.24) !important;
  color: #062b25 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 1px rgba(14, 59, 53, 0.3) !important;
}

html:not(.dark) .app-topbar .live-weather-pill .weather-pill-temp {
  color: #041f1a !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

html:not(.dark) .app-topbar .live-weather-pill .weather-pill-desc {
  color: #0c433b !important;
  font-weight: 750 !important;
  text-shadow: none !important;
}

@media (max-width: 680px) {
  .topbar-weather-pill {
    display: none !important;
  }
}

.weather-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 2px #fff;
  animation: liveWeatherBlink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes liveWeatherBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .celestial-weather-orb,
  .auth-celestial-orb {
    animation: none !important;
  }
}

/* Universal Crisp Typography — Zero Text Shadow or Glowing Writings */
*, *::before, *::after {
  text-shadow: none !important;
}
